74919bb30ceebe344ad3f83b4e23e5f1f7b9901f
[gnulib.git] / ChangeLog
1 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2
3         openat: correct new comment
4         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5
6 2011-05-10  Jim Meyering  <meyering@redhat.com>
7
8         openat: add comments
9         * lib/openat-proc.c (openat_proc_name): Add comments,
10         mostly from Eric Blake.
11
12 2011-05-09  Eric Blake  <eblake@redhat.com>
13
14         openat: reduce syscalls in first probe of /proc
15         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16         be a directory.  Simplify the probe for .. bugs.
17         * modules/openat (Depends-on): Drop same-inode.
18         Reported by Bastien ROUCARIES.
19
20 2011-05-09  Jim Meyering  <meyering@redhat.com>
21
22         maint.mk: change semantics/name of tight_scope variables
23         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
24         Rename variables to align with semantics that make them more useful.
25
26         maint.mk: tweak new rule's name not to impinge
27         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
28         (sc_tight_scope): Use new rule name rather than $@-0.
29
30         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
31         * top/maint.mk (sc_tight_scope): New rule.
32         (sc_tight_scope-0): New rule, ifdef'd out.
33         (_gl_TS_dir): Default.
34         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
35         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
36
37 2011-05-09  Simon Josefsson  <simon@josefsson.org>
38
39         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
40         Haible <bruno@clisp.org>.
41
42 2011-05-08  Bruno Haible  <bruno@clisp.org>
43
44         Comments.
45         * m4/isnanf.m4: Add comment.
46         * m4/isnanl.m4: Likewise.
47
48 2011-05-08  Bruno Haible  <bruno@clisp.org>
49
50         glob: Remove obsolete macro.
51         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
52
53 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
54
55         intprops: Sun C 5.11 supports __typeof__
56         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
57         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
58         which is new.
59         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
60
61         intprops: switch to usual gnulib indenting and naming
62         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
63         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
64
65         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
66
67 2011-05-08  Jim Meyering  <meyering@redhat.com>
68
69         maint.mk: suppress "Entering/Leaving directory" diag in announcement
70         * top/maint.mk (release-prep): Use make's --no-print-directory
71         option when generating the announcement.  This eliminates the
72         pesky "make[2]: Entering/Leaving directory" diagnostics in the
73         generated announcement template.
74
75 2011-05-08  Bruno Haible  <bruno@clisp.org>
76
77         tzset: Fix gettimeofday wrapper on Solaris 2.6.
78         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
79         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
80
81 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
82
83         ignore-value, verify: Omit include files from lib_SOURCES.
84         * modules/ignore-value, modules/verify (Makefile.am):
85         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
86         that leads Automake to duplicate use of am__objects_... variables
87         in Makefile.in.  See
88         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
89
90 2011-05-07  Bruno Haible  <bruno@clisp.org>
91
92         fclose: Simplify autoconf macro.
93         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
94         defined.
95
96 2011-05-07  Bruno Haible  <bruno@clisp.org>
97
98         canonicalize-lgpl: Fix autoconf macro ordering bug.
99         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
100         gl_STDLIB_H_DEFAULTS.
101
102 2011-05-06  Eric Blake  <eblake@redhat.com>
103
104         maintainer-makefile: make sc_po_check easier to tune
105         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
106         to probe for strings, such as an alternate location for gnulib.
107
108         fclose: guarantee behavior on seekable stdin
109         * modules/fclose (Depends-on): Add fflush.
110         * doc/posix-functions/fclose.texi (fclose): Document this.
111         * tests/test-fclose.c (main): Make test for this unconditional.
112
113 2011-05-06  Bruno Haible  <bruno@clisp.org>
114
115         fflush, fpurge: Relicense under LGPLv2+.
116         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
117         * modules/fpurge (License): Likewise.
118         With permission from Eric Blake and Jim Meyering.
119         Suggested by Eric Blake.
120
121 2011-05-06  Karl Berry  <karl@gnu.org>
122
123         * MODULES.html.sh (func_all_modules): remove exit.
124
125 2011-05-06  Jim Meyering  <meyering@redhat.com>
126
127         maint.mk: use info-gnu@ as the default only for a stable release
128         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
129         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
130         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
131         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
132
133 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
134
135         assert-h: new module, which supports C1X-style static_assert
136         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
137         * lib/verify.h: Revamp so that this can be copied into assert.h,
138         while retaining the ability to use it standalone as before.
139         Rename private identifiers so as not to encroach on the
140         standard C namespace, since this is now used by assert.h.
141         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
142         the old verify_true.
143         (_GL_VERIFY_TRUE): New macro, with much of the contents of
144         the old verify_true.  Use _GL_VERIFY_TYPE.
145         (_GL_VERIFY): New macro, with much of the contents of the old verify.
146         (static_assert): New macro, if _GL_STATIC_ASSERT_H
147         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
148         defined when this file is copied into the replacement assert.h.
149         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
150         and _Static_assert is not built in.
151         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
152         defined, and use the new macros mentioned above.
153         * doc/posix-headers/assert.texi: Document this.
154
155 2011-05-05  Bruno Haible  <bruno@clisp.org>
156
157         fclose, fflush: Respect rules for use of AC_LIBOBJ.
158         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
159         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
160         gl_REPLACE_FCLOSE here.
161         * modules/fflush (Depends-on): Remove fclose.
162         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
163         combination with module 'fclose'.
164
165 2011-05-05  Bruno Haible  <bruno@clisp.org>
166
167         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
168         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
169         gl_FUNC_FFLUSH.
170         (gl_FUNC_FFLUSH): Use it.
171         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
172         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
173         gl_REPLACE_FSEEKO here.
174
175 2011-05-05  Bruno Haible  <bruno@clisp.org>
176
177         tzset: Relicense under LGPL.
178         * modules/tzset (License): Change to LGPL.
179         No agreement needed; it's a no-op.
180
181         strtoimax, strtoumax: Relicense under LGPL.
182         * modules/strtoimax (License): Change to LGPL.
183         * modules/strtoumax (License): Likewise.
184         With permission from Jim Meyering, Paul Eggert:
185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
187
188         getgroups: Relicense under LGPL.
189         * modules/getgroups (License): Change to LGPL.
190         With permission from Jim Meyering, Paul Eggert, Eric Blake:
191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
194
195         nanosleep: Relicense under LGPL.
196         * modules/nanosleep (License): Change to LGPL.
197         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
198         Haible:
199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
203
204         futimens: Relicense under LGPL.
205         * modules/futimens (License): Change to LGPL.
206         With permission from Eric Blake:
207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
208
209         fflush: Relicense under LGPL.
210         * modules/fflush (License): Change to LGPL.
211         With permission from Eric Blake, Bruno Haible, Jim Meyering:
212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
215
216         tmpfile: Relicense under LGPL.
217         * modules/tmpfile (License): Change to LGPL.
218         With permission from Ben Pfaff:
219         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
220
221         isfinite: Relicense under LGPL.
222         * modules/isfinite (License): Change to LGPL.
223         With permission from Ben Pfaff, Bruno Haible:
224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
226
227         acosl..tanl: Relicense under LGPL.
228         * modules/acosl (License): Change to LGPL.
229         * modules/asinl (License): Likewise.
230         * modules/atanl (License): Likewise.
231         * modules/cosl (License): Likewise.
232         * modules/expl (License): Likewise.
233         * modules/logl (License): Likewise.
234         * modules/sinl (License): Likewise.
235         * modules/sqrtl (License): Likewise.
236         * modules/tanl (License): Likewise.
237         Source code originally from glibc and Paolo Bonzini. Agreements:
238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
240
241 2011-05-05  Bruno Haible  <bruno@clisp.org>
242
243         signal: Define sighandler_t.
244         * lib/signal.in.h (sighandler_t): New type.
245         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
246         whether sighandler_t is defined.
247         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
248         * modules/signal (Depends-on): Add extensions.
249         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
250         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
251         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
252
253 2011-05-05  Eric Blake  <eblake@redhat.com>
254
255         maint: remove useless REPLACE_*_H macros
256         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
257         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
258         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
259         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
260         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
261         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
262         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
263         * m4/btowc.m4: Update callers.
264         * m4/dirfd.m4: Likewise.
265         * m4/duplocale.m4: Likewise.
266         * m4/fchdir.m4: Likewise.
267         * m4/fdopendir.m4: Likewise.
268         * m4/inet_ntop.m4: Likewise.
269         * m4/inet_pton.m4: Likewise.
270         * m4/ioctl.m4: Likewise.
271         * m4/mbrlen.m4: Likewise.
272         * m4/mbrtowc.m4: Likewise.
273         * m4/mbsinit.m4: Likewise.
274         * m4/mbsnrtowcs.m4: Likewise.
275         * m4/mbsrtowcs.m4: Likewise.
276         * m4/poll.m4: Likewise.
277         * m4/setlocale.m4: Likewise.
278         * m4/wcrtomb.m4: Likewise.
279         * m4/wcsnrtombs.m4: Likewise.
280         * m4/wcsrtombs.m4: Likewise.
281         * m4/wctob.m4: Likewise.
282         * m4/wcwidth.m4: Likewise.
283         * modules/posix_spawn: Likewise.
284         * modules/posix_spawn_file_actions_addclose: Likewise.
285         * modules/posix_spawn_file_actions_adddup2: Likewise.
286         * modules/posix_spawn_file_actions_addopen: Likewise.
287         * modules/posix_spawn_file_actions_destroy: Likewise.
288         * modules/posix_spawn_file_actions_init: Likewise.
289         * modules/posix_spawnattr_destroy: Likewise.
290         * modules/posix_spawnattr_getflags: Likewise.
291         * modules/posix_spawnattr_getpgroup: Likewise.
292         * modules/posix_spawnattr_getschedparam: Likewise.
293         * modules/posix_spawnattr_getschedpolicy: Likewise.
294         * modules/posix_spawnattr_getsigdefault: Likewise.
295         * modules/posix_spawnattr_getsigmask: Likewise.
296         * modules/posix_spawnattr_init: Likewise.
297         * modules/posix_spawnattr_setflags: Likewise.
298         * modules/posix_spawnattr_setpgroup: Likewise.
299         * modules/posix_spawnattr_setschedparam: Likewise.
300         * modules/posix_spawnattr_setschedpolicy: Likewise.
301         * modules/posix_spawnattr_setsigdefault: Likewise.
302         * modules/posix_spawnattr_setsigmask: Likewise.
303         * modules/posix_spawnp: Likewise.
304
305 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
306
307         Add option to do-release-commit-and-tag to specify branch.
308         * build-aux/do-release-commit-and-tag: Add --branch.
309
310 2011-05-03  Bruno Haible  <bruno@clisp.org>
311
312         Avoid unnecessary compilation units, through conditional dependencies.
313         * modules/accept (Depends-on): Add conditions to the dependencies.
314         * modules/acosl (Depends-on): Likewise.
315         * modules/argz (Depends-on): Likewise.
316         * modules/asinl (Depends-on): Likewise.
317         * modules/atanl (Depends-on): Likewise.
318         * modules/atoll (Depends-on): Likewise.
319         * modules/bind (Depends-on): Likewise.
320         * modules/btowc (Depends-on): Likewise.
321         * modules/canonicalize-lgpl (Depends-on): Likewise.
322         * modules/ceil (Depends-on): Likewise.
323         * modules/ceilf (Depends-on): Likewise.
324         * modules/ceill (Depends-on): Likewise.
325         * modules/chdir-long (Depends-on): Likewise.
326         * modules/chown (Depends-on): Likewise.
327         * modules/close (Depends-on): Likewise.
328         * modules/connect (Depends-on): Likewise.
329         * modules/cosl (Depends-on): Likewise.
330         * modules/dirfd (Depends-on): Likewise.
331         * modules/dprintf (Depends-on): Likewise.
332         * modules/dprintf-posix (Depends-on): Likewise.
333         * modules/error (Depends-on): Likewise.
334         * modules/euidaccess (Depends-on): Likewise.
335         * modules/expl (Depends-on): Likewise.
336         * modules/faccessat (Depends-on): Likewise.
337         * modules/fchdir (Depends-on): Likewise.
338         * modules/fclose (Depends-on): Likewise.
339         * modules/fcntl (Depends-on): Likewise.
340         * modules/fdopendir (Depends-on): Likewise.
341         * modules/fflush (Depends-on): Likewise.
342         * modules/floor (Depends-on): Likewise.
343         * modules/floorf (Depends-on): Likewise.
344         * modules/floorl (Depends-on): Likewise.
345         * modules/fnmatch (Depends-on): Likewise.
346         * modules/fopen (Depends-on): Likewise.
347         * modules/fprintf-posix (Depends-on): Likewise.
348         * modules/frexp (Depends-on): Likewise.
349         * modules/frexp-nolibm (Depends-on): Likewise.
350         * modules/frexpl (Depends-on): Likewise.
351         * modules/frexpl-nolibm (Depends-on): Likewise.
352         * modules/fseek (Depends-on): Likewise.
353         * modules/fsusage (Depends-on): Likewise.
354         * modules/ftell (Depends-on): Likewise.
355         * modules/ftello (Depends-on): Likewise.
356         * modules/futimens (Depends-on): Likewise.
357         * modules/getcwd (Depends-on): Likewise.
358         * modules/getcwd-lgpl (Depends-on): Likewise.
359         * modules/getdelim (Depends-on): Likewise.
360         * modules/getdomainname (Depends-on): Likewise.
361         * modules/getgroups (Depends-on): Likewise.
362         * modules/gethostname (Depends-on): Likewise.
363         * modules/getline (Depends-on): Likewise.
364         * modules/getlogin_r (Depends-on): Likewise.
365         * modules/getopt-posix (Depends-on): Likewise.
366         * modules/getpeername (Depends-on): Likewise.
367         * modules/getsockname (Depends-on): Likewise.
368         * modules/getsockopt (Depends-on): Likewise.
369         * modules/getsubopt (Depends-on): Likewise.
370         * modules/getusershell (Depends-on): Likewise.
371         * modules/glob (Depends-on): Likewise.
372         * modules/grantpt (Depends-on): Likewise.
373         * modules/iconv_open (Depends-on): Likewise.
374         * modules/iconv_open-utf (Depends-on): Likewise.
375         * modules/inet_ntop (Depends-on): Likewise.
376         * modules/inet_pton (Depends-on): Likewise.
377         * modules/ioctl (Depends-on): Likewise.
378         * modules/isapipe (Depends-on): Likewise.
379         * modules/isfinite (Depends-on): Likewise.
380         * modules/isinf (Depends-on): Likewise.
381         * modules/lchown (Depends-on): Likewise.
382         * modules/ldexpl (Depends-on): Likewise.
383         * modules/link (Depends-on): Likewise.
384         * modules/linkat (Depends-on): Likewise.
385         * modules/listen (Depends-on): Likewise.
386         * modules/logl (Depends-on): Likewise.
387         * modules/lstat (Depends-on): Likewise.
388         * modules/mbrlen (Depends-on): Likewise.
389         * modules/mbrtowc (Depends-on): Likewise.
390         * modules/mbsinit (Depends-on): Likewise.
391         * modules/mbsnrtowcs (Depends-on): Likewise.
392         * modules/mbsrtowcs (Depends-on): Likewise.
393         * modules/mbtowc (Depends-on): Likewise.
394         * modules/memcmp (Depends-on): Likewise.
395         * modules/mkdir (Depends-on): Likewise.
396         * modules/mkdtemp (Depends-on): Likewise.
397         * modules/mkfifo (Depends-on): Likewise.
398         * modules/mkfifoat (Depends-on): Likewise.
399         * modules/mknod (Depends-on): Likewise.
400         * modules/mkostemp (Depends-on): Likewise.
401         * modules/mkostemps (Depends-on): Likewise.
402         * modules/mkstemp (Depends-on): Likewise.
403         * modules/mkstemps (Depends-on): Likewise.
404         * modules/mktime (Depends-on): Likewise.
405         * modules/nanosleep (Depends-on): Likewise.
406         * modules/open (Depends-on): Likewise.
407         * modules/openat (Depends-on): Likewise.
408         * modules/perror (Depends-on): Likewise.
409         * modules/poll (Depends-on): Likewise.
410         * modules/popen (Depends-on): Likewise.
411         * modules/posix_spawn (Depends-on): Likewise.
412         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
413         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
414         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
415         * modules/posix_spawnp (Depends-on): Likewise.
416         * modules/pread (Depends-on): Likewise.
417         * modules/printf-posix (Depends-on): Likewise.
418         * modules/ptsname (Depends-on): Likewise.
419         * modules/putenv (Depends-on): Likewise.
420         * modules/pwrite (Depends-on): Likewise.
421         * modules/readline (Depends-on): Likewise.
422         * modules/readlink (Depends-on): Likewise.
423         * modules/readlinkat (Depends-on): Likewise.
424         * modules/recv (Depends-on): Likewise.
425         * modules/recvfrom (Depends-on): Likewise.
426         * modules/regex (Depends-on): Likewise.
427         * modules/remove (Depends-on): Likewise.
428         * modules/rename (Depends-on): Likewise.
429         * modules/renameat (Depends-on): Likewise.
430         * modules/rmdir (Depends-on): Likewise.
431         * modules/round (Depends-on): Likewise.
432         * modules/roundf (Depends-on): Likewise.
433         * modules/roundl (Depends-on): Likewise.
434         * modules/rpmatch (Depends-on): Likewise.
435         * modules/select (Depends-on): Likewise.
436         * modules/send (Depends-on): Likewise.
437         * modules/sendto (Depends-on): Likewise.
438         * modules/setenv (Depends-on): Likewise.
439         * modules/setlocale (Depends-on): Likewise.
440         * modules/setsockopt (Depends-on): Likewise.
441         * modules/shutdown (Depends-on): Likewise.
442         * modules/sigaction (Depends-on): Likewise.
443         * modules/signbit (Depends-on): Likewise.
444         * modules/sigprocmask (Depends-on): Likewise.
445         * modules/sinl (Depends-on): Likewise.
446         * modules/sleep (Depends-on): Likewise.
447         * modules/snprintf (Depends-on): Likewise.
448         * modules/snprintf-posix (Depends-on): Likewise.
449         * modules/socket (Depends-on): Likewise.
450         * modules/sprintf-posix (Depends-on): Likewise.
451         * modules/sqrtl (Depends-on): Likewise.
452         * modules/stat (Depends-on): Likewise.
453         * modules/strchrnul (Depends-on): Likewise.
454         * modules/strdup-posix (Depends-on): Likewise.
455         * modules/strerror (Depends-on): Likewise.
456         * modules/strerror_r-posix (Depends-on): Likewise.
457         * modules/strndup (Depends-on): Likewise.
458         * modules/strnlen (Depends-on): Likewise.
459         * modules/strptime (Depends-on): Likewise.
460         * modules/strsep (Depends-on): Likewise.
461         * modules/strsignal (Depends-on): Likewise.
462         * modules/strstr-simple (Depends-on): Likewise.
463         * modules/strtod (Depends-on): Likewise.
464         * modules/strtoimax (Depends-on): Likewise.
465         * modules/strtok_r (Depends-on): Likewise.
466         * modules/strtoumax (Depends-on): Likewise.
467         * modules/symlink (Depends-on): Likewise.
468         * modules/symlinkat (Depends-on): Likewise.
469         * modules/tanl (Depends-on): Likewise.
470         * modules/tcgetsid (Depends-on): Likewise.
471         * modules/tmpfile (Depends-on): Likewise.
472         * modules/trunc (Depends-on): Likewise.
473         * modules/truncf (Depends-on): Likewise.
474         * modules/truncl (Depends-on): Likewise.
475         * modules/uname (Depends-on): Likewise.
476         * modules/unlink (Depends-on): Likewise.
477         * modules/unlockpt (Depends-on): Likewise.
478         * modules/unsetenv (Depends-on): Likewise.
479         * modules/usleep (Depends-on): Likewise.
480         * modules/utimensat (Depends-on): Likewise.
481         * modules/vasprintf (Depends-on): Likewise.
482         * modules/vdprintf (Depends-on): Likewise.
483         * modules/vdprintf-posix (Depends-on): Likewise.
484         * modules/vfprintf-posix (Depends-on): Likewise.
485         * modules/vprintf-posix (Depends-on): Likewise.
486         * modules/vsnprintf (Depends-on): Likewise.
487         * modules/vsnprintf-posix (Depends-on): Likewise.
488         * modules/vsprintf-posix (Depends-on): Likewise.
489         * modules/wcrtomb (Depends-on): Likewise.
490         * modules/wcscasecmp (Depends-on): Likewise.
491         * modules/wcscspn (Depends-on): Likewise.
492         * modules/wcsdup (Depends-on): Likewise.
493         * modules/wcsncasecmp (Depends-on): Likewise.
494         * modules/wcsnrtombs (Depends-on): Likewise.
495         * modules/wcspbrk (Depends-on): Likewise.
496         * modules/wcsrtombs (Depends-on): Likewise.
497         * modules/wcsspn (Depends-on): Likewise.
498         * modules/wcsstr (Depends-on): Likewise.
499         * modules/wcstok (Depends-on): Likewise.
500         * modules/wcswidth (Depends-on): Likewise.
501         * modules/wctob (Depends-on): Likewise.
502         * modules/wctomb (Depends-on): Likewise.
503         * modules/wctype (Depends-on): Likewise.
504         * modules/wcwidth (Depends-on): Likewise.
505         * modules/write (Depends-on): Likewise.
506
507 2011-05-03  Bruno Haible  <bruno@clisp.org>
508
509         Support for conditional dependencies.
510         * doc/gnulib.texi (Module description): Document the syntax of
511         conditional dependencies.
512         * gnulib-tool: New option --conditional-dependencies.
513         (func_usage): Document it.
514         (cond_dependencies): New variable.
515         (func_get_automake_snippet_conditional,
516         func_get_automake_snippet_unconditional): New functions, extracted from
517         func_get_automake_snippet.
518         (func_get_automake_snippet): Use them.
519         (sed_first_32_chars): New variable.
520         (func_module_shellfunc_name): New function.
521         (func_module_shellvar_name): New function.
522         (func_module_conditional_name): New function.
523         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
524         func_cond_module_condition): New functions.
525         (func_modules_transitive_closure): Add support for conditional
526         dependencies.
527         (func_emit_lib_Makefile_am): For a conditional module, enclose the
528         conditional automake snippet in an automake conditional.
529         (func_emit_autoconf_snippets): Emit shell functions that contain the
530         code for conditional modules.
531         (func_import, func_create_testdir): Update specification.
532
533 2011-05-03  Eric Blake  <eblake@redhat.com>
534
535         test-getaddrinfo: report error information
536         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
537
538 2011-05-03  Jim Meyering  <meyering@redhat.com>
539
540         bootstrap: avoid build failure when $GZIP is set
541         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
542         program name.  If defined at all, it is supposed to list gzip options.
543         Reported by Alan Curry in http://debbugs.gnu.org/8609
544
545 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
546
547         readme-release: new module with release instructions
548         * modules/readme-release: New module.
549         * top/README-release: New file, from coreutils, grep, diffutils.
550         * MODULES.html.sh (Support for maintaining and releasing): Add it.
551
552 2011-05-02  Eric Blake  <eblake@redhat.com>
553
554         fflush: also replace fclose when fixing fflush
555         * modules/fflush (Depends-on): Add fclose.
556         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
557         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
558         memstreams with no backing fd.
559         * doc/posix-functions/fclose.texi (fclose): Document the use of
560         fflush module to fix the bug.
561         * tests/test-fclose.c (main): Relax test when fclose is used in
562         isolation.
563
564         fclose: add some tests
565         * modules/fclose-tests: New test module.
566         * tests/test-fclose.c: New file.
567         * doc/posix-functions/fclose.texi (fclose): Document the bug.
568
569         fclose: reduced dependencies
570         * modules/fclose (Depends-on): Switch from fflush/fseeko to
571         simpler lseek.
572         * lib/fclose.c (rpl_fclose): Likewise.
573         Reported by Simon Josefsson.
574
575         exit: drop remaining clients
576         * modules/argmatch (Depends-on): Replace exit with stdlib.
577         * modules/copy-file (Depends-on): Likewise.
578         * modules/execute (Depends-on): Likewise.
579         * modules/exitfail (Depends-on): Likewise.
580         * modules/obstack (Depends-on): Likewise.
581         * modules/pagealign_alloc (Depends-on): Likewise.
582         * modules/pipe-filter-gi (Depends-on): Likewise.
583         * modules/pipe-filter-ii (Depends-on): Likewise.
584         * modules/savewd (Depends-on): Likewise.
585         * modules/spawn-pipe (Depends-on): Likewise.
586         * modules/wait-process (Depends-on): Likewise.
587         * modules/xsetenv (Depends-on): Likewise.
588         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
589         * modules/git-merge-changelog (Depends-on): Likewise.
590         * modules/long-options (Depends-on): Likewise.
591         * modules/pt_chown (Depends-on): Likewise.
592         * modules/sysexits (Depends-on): Likewise.
593
594         freading: relax license from LGPLv3+ to LGPLv2+
595         * modules/freading (License): Relax LGPL version.
596
597 2011-05-02  Bruno Haible  <bruno@clisp.org>
598
599         fchdir: Remove unused dependencies.
600         * modules/fchdir (Depends-on): Remove include_next.
601
602 2011-05-02  Bruno Haible  <bruno@clisp.org>
603
604         gnulib-tool: Refactor.
605         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
606         from func_emit_autoconf_snippets.
607         (func_emit_autoconf_snippets): Use it.
608
609 2011-05-02  Simon Josefsson  <simon@josefsson.org>
610
611         * NEWS: Document removal of 'exit'.
612         * modules/exit: Remove file.
613
614 2011-05-01  Bruno Haible  <bruno@clisp.org>
615
616         Update DEPENDENCIES.
617         * DEPENDENCIES (gettext): Recommend the newest release.
618         Reported by Simon Josefsson.
619
620 2011-05-01  Bruno Haible  <bruno@clisp.org>
621
622         gnulib-tool: Reduce code duplication.
623         * gnulib-tool (func_emit_autoconf_snippets): New function.
624         (func_import, func_create_testdir): Use it.
625
626 2011-04-30  Eric Blake  <eblake@redhat.com>
627
628         fclose: don't fail on non-seekable input stream
629         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
630         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
631         since fflush is allowed to fail in that case.
632
633 2011-04-30  Bruno Haible  <bruno@clisp.org>
634
635         dup3: cleanup
636         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
637
638 2011-04-30  Bruno Haible  <bruno@clisp.org>
639
640         netdb: Make it work in C++ mode.
641         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
642         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
643         module.
644         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
645         gl_MODULE_INDICATOR_FOR_TESTS.
646         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
647         * modules/netdb-c++-tests: New file.
648         * tests/test-netdb-c++.cc: New file.
649
650 2011-04-30  Bruno Haible  <bruno@clisp.org>
651
652         New modules 'vfscanf', 'vscanf'.
653         * modules/vfscanf: New file.
654         * modules/vscanf: New file.
655         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
656         here.
657         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
658         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
659
660 2011-04-30  Bruno Haible  <bruno@clisp.org>
661
662         passfd: Add comments.
663         * lib/passfd.c: Add comments about platforms.
664
665 2011-04-30  Bruno Haible  <bruno@clisp.org>
666
667         sys_uio: Make <sys/uio.h> self-contained.
668         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
669         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
670
671 2011-04-30  Bruno Haible  <bruno@clisp.org>
672
673         sys_socket: Ensure 'struct iovec' definition.
674         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
675         <sys/socket.h>.
676         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
677
678 2011-04-30  Bruno Haible  <bruno@clisp.org>
679
680         sys_uio: Protect definition of 'struct iovec'.
681         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
682         it as a C struct.
683
684 2011-04-30  Bruno Haible  <bruno@clisp.org>
685
686         manywarnings: fix indentation
687         * m4/manywarnings.m4: Indent by 2 spaces consistently.
688
689 2011-04-30  Pádraig Brady <P@draigBrady.com>
690
691         manywarnings: add -Wno-missing-field-initializers if needed.
692         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
693         option if it's needed to allow initialization with { 0, }
694
695 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
696
697         announce-gen: cosmetic improvement
698         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
699
700 2011-04-29  Jim Meyering  <meyering@redhat.com>
701
702         vc-list-files: indent with spaces, not TABs
703         * build-aux/vc-list-files: Convert leading TABs to spaces,
704         to match the style of most other files in gnulib.
705
706         announce-gen: indent with spaces, not TABs
707         * build-aux/announce-gen: Convert all TABs to spaces, to match
708         the style of most other files in gnulib.
709
710 2011-04-29  Eric Blake  <eblake@redhat.com>
711
712         quotearg: avoid uninitialized variable use
713         * lib/quotearg.c (quoting_options_from_style): Initialize
714         remaining fields, and ensure that custom styles are only used via
715         quoting_options rather than quoting_style.
716
717 2011-04-29  Jim Meyering  <meyering@redhat.com>
718
719         maint.mk: remove unused VC-tag variable
720         * top/maint.mk (VC-tag): Remove unused variable.
721
722 2011-04-29  Bruno Haible  <bruno@clisp.org>
723
724         netdb: fix gai_strerror replacements
725         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
726         * modules/netdb: Substitute it.
727
728 2011-04-29  Jim Meyering  <meyering@redhat.com>
729
730         test-getcwd.c: avoid new set-but-not-used warning
731         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
732         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
733         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
734         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
735
736         test-hash.c: avoid a new shadowing warning
737         * tests/test-hash.c (main): Don't shadow "dup".
738
739 2011-04-28  Eric Blake  <eblake@redhat.com>
740
741         getaddrinfo: fix gai_strerror signature
742         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
743         and work around mingw with UNICODE defined.
744         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
745         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
746         * modules/netdb (Makefile.am): Substitute it.
747         * lib/netdb.in.h (gai_strerror): Declare replacement.
748         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
749         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
750         the fix.
751
752         getsockopt: avoid compiler warning
753         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
754         Reported by Matthias Bolte.
755
756         tests: drop unused link dependency
757         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
758         * modules/dirent-safer-tests (Makefile.am): Likewise.
759         * modules/fdopendir-tests (Makefile.am): Likewise.
760         * modules/mkfifoat-tests (Makefile.am): Likewise.
761         * modules/openat-safer-tests (Makefile.am): Likewise.
762         * modules/openat-tests (Makefile.am): Likewise.
763         * modules/readlinkat-tests (Makefile.am): Likewise.
764         * modules/symlinkat-tests (Makefile.am): Likewise.
765         * modules/linkat-tests (Makefile.am): Likewise.
766         (Depends-on): Switch to filenamecat-lgpl.
767         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
768         LIBINTL.
769         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
770         * tests/test-linkat.c (main): Don't require xalloc.
771
772         hash, mgetgroups: drop xalloc dependency
773         * lib/hash.c (includes): Adjust includes.
774         * lib/mgetgroups.c (includes): Likewise.
775         (xgetgroups): Move...
776         * lib/xgetgroups.c: ...to new file.
777         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
778         * modules/xgetgroups: New file, split from...
779         * modules/mgetgroups: ...here.
780         (Depends-on): Add xalloc-oversized.
781         * modules/hash (Depends-on): Likewise.
782         * modules/hash-tests (Depends-on): Drop xalloc.
783         (test_hash_LDADD): Drop unused library.
784         * tests/test-hash.c (main): Break xalloc dependency.
785         (includes): Drop unused include.
786
787         xalloc-oversized: new module
788         * modules/xalloc-oversized: New module.
789         * modules/xalloc (Depends-on): Add it.
790         * lib/xalloc.h (xalloc_oversized): Move...
791         * lib/xalloc-oversized.h: ...into new file.
792
793         utimecmp: drop dependency on xmalloc
794         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
795         due to memory pressure.
796         * modules/utimecmp (Depends-on): Drop xalloc.
797
798 2011-04-27  Eric Blake  <eblake@redhat.com>
799
800         getcwd: fix mingw bugs
801         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
802         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
803         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
804
805 2011-04-27  Bruno Haible  <bruno@clisp.org>
806
807         mkstemps: Ensure declaration on MacOS X 10.5.
808         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
809         * doc/glibc-functions/mkstemps.texi: Document header file problem on
810         MacOS X.
811
812 2011-04-27  Bruno Haible  <bruno@clisp.org>
813
814         mkstemp: More documentation.
815         * doc/posix-functions/mkstemp.texi: Document header file problem on
816         MacOS X.
817
818 2011-04-27  Bruno Haible  <bruno@clisp.org>
819
820         mkstemp: Tweak configure message when cross-compiling.
821         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
822         result as a guess.
823
824 2011-04-27  Bruno Haible  <bruno@clisp.org>
825
826         clean-temp: Clarify what it does.
827         * lib/clean-temp.h: Add more comments.
828         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
829         module.
830         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
831         * doc/glibc-functions/mkstemps.texi: Likewise.
832         * doc/glibc-functions/mkostemps.texi: Likewise.
833
834 2011-04-27  Eric Blake  <eblake@redhat.com>
835
836         fchdir: avoid extra chdir and fix test
837         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
838         getcwd-lgpl.
839         * lib/fchdir.c (get_name): Any absolute name will do; it does not
840         have to be canonical.
841         (canonicalize_file_name): Drop unused macro.
842         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
843
844         filenamecat-lgpl: fix licence
845         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
846         when it was first created.
847
848         linkat, renameat: add missing dependency
849         * modules/linkat (Depends-on): Require getcwd-lgpl.
850         * modules/renameat (Depends-on): Likewise.
851
852         tests: reduce dependencies
853         * tests/test-linkat.c (main): Use lighter-weight getcwd.
854         * tests/test-renameat.c (main): Likewise.
855         * modules/linkat-tests (Depends-on): Relax dependency.
856         * modules/renameat-tests (Depends-on): Likewise.
857         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
858         dependency explicit.
859
860         save-cwd: reduce default dependency
861         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
862         * lib/save-cwd.c: Update comments.
863         * NEWS: Document the semantic change.
864
865         getcwd: enhance tests
866         * tests/test-getcwd-lgpl.c: New file, taken from...
867         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
868         repeat long path stress tests from m4 probe.
869         * modules/getcwd-lgpl-tests: New module.
870         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
871         * m4/getcwd-abort-bug.m4: Update comment.
872         * m4/getcwd-path-max.m4: Likewise.
873
874         getcwd-lgpl: new module
875         * modules/getcwd-lgpl: New module.
876         * lib/getcwd-lgpl.c: New file.
877         * doc/posix-functions/getcwd.texi (getcwd): Document it.
878         * MODULES.html.sh (lacking POSIX:2008): Likewise.
879         * modules/getcwd (configure.ac): Set C witness.
880         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
881
882         getcwd: tweak comments
883         * m4/getcwd-abort-bug.m4: Fix comments.
884         * m4/getcwd-path-max.m4: Likewise.
885         * m4/getcwd.m4: Likewise.
886
887 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
888         and Eric Blake  <eblake@redhat.com>
889
890         mkstemp: replace if system version uses wrong permissions
891         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
892         read/write mode bits set in file created by mkstemp.
893         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
894
895 2011-04-27  Eric Blake  <eblake@redhat.com>
896
897         passfd: avoid compiler warning
898         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
899         Reported by Laine Stump.
900
901 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
902
903         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
904         required by the NetBSD (and perhaps other 4.4BSD derived) join.
905
906 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
907         and Eric Blake  <eblake@redhat.com>
908
909         mkstemp: mention clean-temp module
910         * lib/mkstemp.c: Add comment.
911         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
912
913 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
914
915         inttypes: also provide default values for 32-bit tests
916         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
917         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
918
919 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
920
921         strtoumax: remove dependency on strtoimax
922         This is like the strtoull change of yesterday.
923         * modules/strtoumax (Files): Add lib/strtoimax.c.
924         (Depends-on): Remove strtoimax and add verify.
925
926         inttypes-incomplete: new module
927         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
928         all but the PRI* and SCN* parts of gl_INTTYPES_H.
929         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
930         of gl_INTTYPES_H.
931         (gl_INTTYPES_H): Rewrite in terms of these new macros.
932         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
933         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
934         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
935         * modules/strtoumax, modules/xstrtol (Depends-on):
936         Depend on inttypes-incomplete, not inttypes.
937         * modules/inttypes-incomplete: New module, containing the contents
938         of the old modules/inttypes module, except that the Files: section
939         omits m4/inttypes-pri.m4, and the configure.ac section invokes
940         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
941         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
942         (Depends-on): Depend only on inttypes-incomplete.
943         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
944
945         inttypes: omit now-redundant strtoimax and strtoumax work
946         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
947         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
948
949         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
950         This supports apps that need pointers to strtoimax and strtoumax,
951         and ports to HP-UX 11.00 64.bit, which has macros that expand to
952         nonexistent functions.  See
953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
954         et seq.
955         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
956         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
957         a macro.
958         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
959
960 2011-04-25  Simon Josefsson  <simon@josefsson.org>
961
962         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
963
964 2011-04-25  Bruno Haible  <bruno@clisp.org>
965
966         strtol, strtoul: Mark modules as obsolete.
967         * modules/strtol (Status, Notice): New sections.
968         * modules/strtoul (Status, Notice): New sections.
969
970 2011-04-25  Bruno Haible  <bruno@clisp.org>
971
972         strtod: Remove check for strtod, unless supporting old platforms.
973         * modules/strtod-obsolete: New file.
974         * m4/strtod-obsolete.m4: New file.
975         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
976         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
977         * modules/strtod (Depends-on): Add strtod-obsolete.
978         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
979
980 2011-04-25  Bruno Haible  <bruno@clisp.org>
981
982         strcase: Make module obsolete.
983         * modules/strcase (Status, Notice): New sections.
984
985 2011-04-25  Bruno Haible  <bruno@clisp.org>
986
987         dup2: Remove check for dup2, unless supporting old obsolete platforms.
988         * modules/dup2-obsolete: New file.
989         * m4/dup2-obsolete.m4: New file.
990         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
991         gl_FUNC_DUP2_OBSOLETE is not also defined.
992         * modules/dup2 (Depends-on): Add dup2-obsolete.
993         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
994
995 2011-04-25  Bruno Haible  <bruno@clisp.org>
996
997         strnlen: Avoid memchr related link error on old obsolete platforms.
998         * modules/memchr-obsolete: New file.
999         * m4/memchr-obsolete.m4: New file.
1000         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1001         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1002         * modules/memchr (Depends-on): Add memchr-obsolete.
1003         * modules/strnlen (Depends-on): Likewise.
1004         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1005
1006 2011-04-25  Jim Meyering  <meyering@redhat.com>
1007
1008         maint.mk: makefile_at_at_check extend and clean up
1009         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1010         in addition to */Makefile.am.
1011         Exempt legitimate uses of @VAR@ notation, e.g.,
1012         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1013         Remove obsolete coreutils-specific comment.
1014         Prompted by discussion here:
1015         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1016
1017 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1018
1019         strtoul: remove dependency on strtol
1020         This is so that 'configure' need not check for strtol merely because
1021         the application needs strtoul.
1022         * modules/strtoul (Files): Add lib/strtol.c.
1023         (Depends-on): Remove strtol.
1024
1025         strtoull: remove dependency on strtoul
1026         This is like the strtoll change.
1027         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1028         (Depends-on): Remove strtoul.
1029
1030         strtoll: remove dependency on strtol
1031         This is so that 'configure' need not check for strtol merely because
1032         the application needs strtoll.
1033         * modules/strtoll (Files): Add lib/strtol.c.
1034         (Depends-on): Remove strtol.
1035
1036 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1037
1038         inttypes: Move some configure check to module 'imaxdiv'.
1039         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1040         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1041         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1042
1043 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1044
1045         inttypes: Move some configure check to module 'imaxabs'.
1046         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1047         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1048         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1049
1050 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1051
1052         inttypes: Remove configure tests that are not needed since 2009-12-31.
1053         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1054         gl_cv_header_working_inttypes_h.
1055
1056 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1057
1058         * modules/strnlen (Depends-on): Remove memchr.
1059         The strnlen implementation doesn't need the memchr module's fixes; see
1060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1061
1062         strtol: remove dependency on wchar
1063         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1064         * modules/strtol (Depends-on): Remove wchar.
1065
1066 2011-04-21  Eric Blake  <eblake@redhat.com>
1067
1068         passfd: fix test regression on Linux
1069         * modules/passfd-tests (configure.ac): Correct socketpair check.
1070
1071         passfd: speed up configure and drop unused code
1072         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1073         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1074         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1075         Instead of probing at configure for unix_scm_rights_bsd44_way,
1076         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1077         check to a struct member probe.
1078         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1079         (sendfd, recvfd): Update preprocessor checks.
1080         * modules/passfd (Files): Reflect rename, and drop unused file.
1081         (Depends-on): Drop unused dependency.
1082
1083         passfd: allow compilation on mingw
1084         * modules/sys_socket (Depends-on): Add sys_uio.
1085         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1086         iovec and a minimal struct msghdr.
1087         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1088         * tests/test-sys_socket.c (main): Enhance test.
1089         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1090         guaranteed to provide what we need.
1091         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1092         * modules/passfd-tests (Depends-on): Add sys_wait.
1093         * tests/test-passfd.c (main): Skip test on mingw, for now.
1094         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1095         partial 'struct msghdr' implementation.
1096
1097         sys_uio: new module
1098         * modules/sys_uio: New module.
1099         * modules/sys_uio-tests: Likewise.
1100         * lib/sys_uio.in.h: New file.
1101         * m4/sys_uio_h.m4: Likewise.
1102         * tests/test-sys_uio.c: Likewise.
1103         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1104         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1105
1106 2011-04-20  Jim Meyering  <meyering@redhat.com>
1107
1108         useless-if-before-free: avoid false-positive
1109         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1110         disjunct so that it too requires a terminating ";".  Without that,
1111         this script would identify as useless one statement from gcc that
1112         was not:
1113           if (aligned_ptr)
1114             free (((void **) aligned_ptr) [-1]);
1115
1116 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1117
1118         doc: update users.txt.
1119         * users.txt: Add barcode.
1120
1121 2011-04-19  Bruno Haible  <bruno@clisp.org>
1122
1123         ioctl: Remove link dependency on native Windows.
1124         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1125         (gl_close_fn, gl_ioctl_fn): New types.
1126         (struct fd_hook): Renamed from struct close_hook. Change type of
1127         private_close_fn field. Add private_ioctl_fn field.
1128         (close_hook_fn): Add parameter for primary close method.
1129         (execute_close_hooks, execute_all_close_hooks): Likewise.
1130         (ioctl_hook_fn): New type.
1131         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1132         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1133         argument.
1134         (unregister_fd_hook): Renamed from unregister_close_hook.
1135         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1136         Don't include <unistd.h>.
1137         (close): Remove undef.
1138         (anchor): Update.
1139         (execute_close_hooks): Add argument for primary close method.
1140         (execute_all_close_hooks): Likewise.
1141         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1142         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1143         argument. Allow each argument to be NULL.
1144         (unregister_fd_hook): Renamed from unregister_close_hook.
1145         * lib/close.c (rpl_close): Pass 'close' function pointer to
1146         execute_all_close_hooks.
1147         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1148         (primary_ioctl): New function.
1149         (ioctl): Don't call ioctlsocket here. Instead, call
1150         execute_all_ioctl_hooks.
1151         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1152         close method.
1153         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1154         (fd_sockets_hook): Renamed from close_sockets_hook.
1155         (gl_sockets_startup, gl_sockets_cleanup): Update.
1156         * modules/fd-hook: Renamed from modules/close-hook. Update.
1157         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1158         * modules/sockets (Depends-on): Likewise.
1159         * modules/ioctl (Depends-on): Add fd-hook.
1160         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1161         GNULIB_SOCKET.
1162
1163 2011-04-19  Bruno Haible  <bruno@clisp.org>
1164
1165         Move the support of O_NONBLOCK in open() to the 'open' module.
1166         * modules/nonblocking (Depends-on): Remove 'open'.
1167         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1168         gl_cv_have_open_O_NONBLOCK.
1169         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1170         O_NONBLOCK support.
1171         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1172
1173 2011-04-17  Bruno Haible  <bruno@clisp.org>
1174
1175         pipe2: Simplify code.
1176         * lib/pipe2.c (pipe2): Reduce code duplication.
1177
1178 2011-04-17  Bruno Haible  <bruno@clisp.org>
1179
1180         nonblocking: Add comment.
1181         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1182
1183 2011-04-17  Bruno Haible  <bruno@clisp.org>
1184
1185         nonblocking: Add tests for sockets.
1186         * tests/test-nonblocking-socket.sh: New file.
1187         * tests/test-nonblocking-socket-main.c: New file.
1188         * tests/test-nonblocking-socket-child.c: New file.
1189         * tests/test-nonblocking-socket.h: New file.
1190         * tests/socket-server.h: New file.
1191         * tests/socket-client.h: New file.
1192         * modules/nonblocking-socket-tests: New file.
1193         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1194
1195 2011-04-17  Bruno Haible  <bruno@clisp.org>
1196
1197         nonblocking: Add tests for pipes.
1198         * tests/test-nonblocking-pipe.sh: New file.
1199         * tests/test-nonblocking-pipe-main.c: New file.
1200         * tests/test-nonblocking-pipe-child.c: New file.
1201         * tests/test-nonblocking-pipe.h: New file.
1202         * tests/test-nonblocking-writer.h: New file.
1203         * tests/test-nonblocking-reader.h: New file.
1204         * tests/test-nonblocking-misc.h: New file.
1205         * modules/nonblocking-pipe-tests: New file.
1206         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1207
1208 2011-04-16  Bruno Haible  <bruno@clisp.org>
1209
1210         gettext: Clarify the needed programmer actions.
1211         * modules/gettext (Notice): New field.
1212         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1213
1214 2011-04-16  Bruno Haible  <bruno@clisp.org>
1215
1216         strchrnul: Tweak last commit.
1217         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1218         bug.
1219         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1220         as in _GL_FUNCDECL_SYS.
1221         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1222         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1223
1224 2011-04-15  Eric Blake  <eblake@redhat.com>
1225
1226         strchrnul: work around cygwin bug
1227         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1228         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1230         * modules/string (Makefile.am): Substitute it.
1231         * lib/string.in.h (strchrnul): Use it.
1232
1233 2011-04-15  Bruno Haible  <bruno@clisp.org>
1234
1235         Don't require lib/stdio-write.c when only module 'stdio' is used.
1236         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1237         invocation.
1238         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1239
1240 2011-04-14  Bruno Haible  <bruno@clisp.org>
1241
1242         Support non-blocking pipe I/O in read() on native Windows.
1243         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1244         (read): New declaration.
1245         * lib/read.c: New file.
1246         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1247         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1248         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1249         vscanf): New declarations.
1250         * lib/stdio-read.c: New file.
1251         * m4/read.m4: New file.
1252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1253         REPLACE_READ.
1254         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1255         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1256         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1257         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1258         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1259         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1260         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1261         * modules/read: New file.
1262         * modules/nonblocking (Files): Add lib/stdio-read.c.
1263         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1264         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1265         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1266         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1267         * modules/pread (Depends-on): Add read.
1268         * modules/safe-read (Depends-on): Likewise.
1269         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1270         gets, scanf, vfscanf, vscanf): Verify signatures.
1271         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1272         problem with non-blocking pipes.
1273         * doc/posix-functions/fgetc.texi: Likewise.
1274         * doc/posix-functions/fgets.texi: Likewise.
1275         * doc/posix-functions/fread.texi: Likewise.
1276         * doc/posix-functions/fscanf.texi: Likewise.
1277         * doc/posix-functions/getc.texi: Likewise.
1278         * doc/posix-functions/getchar.texi: Likewise.
1279         * doc/posix-functions/gets.texi: Likewise.
1280         * doc/posix-functions/scanf.texi: Likewise.
1281         * doc/posix-functions/vfscanf.texi: Likewise.
1282         * doc/posix-functions/vscanf.texi: Likewise.
1283
1284 2011-04-14  Bruno Haible  <bruno@clisp.org>
1285
1286         Support non-blocking pipe I/O in write() on native Windows.
1287         * lib/write.c (rpl_write): Split a write request that failed merely
1288         because the byte count was larger than the pipe buffer's size.
1289         * doc/posix-functions/write.texi: Mention the problem with large byte
1290         counts.
1291
1292 2011-04-14  Bruno Haible  <bruno@clisp.org>
1293
1294         wchar: Ensure that wchar_t gets defined on uClibc.
1295         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1296         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1297
1298 2011-04-13  Bruno Haible  <bruno@clisp.org>
1299
1300         safe-write, full-read: Avoid unnecessary compilation units.
1301         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1302         (Depends-on): Remove safe-read. Add ssize_t.
1303         * modules/full-read (Files): Add lib/full-write.c.
1304         (Depends-on): Add full-write.
1305
1306 2011-04-13  Bruno Haible  <bruno@clisp.org>
1307
1308         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1309         * modules/pwrite (Depends-on): Add 'write'.
1310
1311 2011-04-13  Bruno Haible  <bruno@clisp.org>
1312
1313         Support non-blocking pipe I/O in write() on native Windows.
1314         * lib/unistd.in.h (write): Enable replacement also if
1315         GNULIB_UNISTD_H_NONBLOCKING is 1.
1316         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1317         (rpl_write): When failing to write on a non-blocking pipe, change
1318         errno from ENOSPC to EAGAIN.
1319         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1320         putchar, puts, vfprintf, vprintf): Enable replacement also if
1321         GNULIB_STDIO_H_NONBLOCKING is 1.
1322         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1323         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1324         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1325         CALL_WITH_SIGPIPE_EMULATION.
1326         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1327         * m4/nonblocking.m4: New file.
1328         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1329         for non-blocking I/O support.
1330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1331         GNULIB_UNISTD_H_NONBLOCKING.
1332         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1333         required for non-blocking I/O support.
1334         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1335         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1336         lib/stdio-write.c, m4/asm-underscore.m4.
1337         (Depends-on): Add stdio, unistd.
1338         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1339         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1340         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1341         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1342         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1343         problem with non-blocking pipes.
1344         * doc/posix-functions/fputc.texi: Likewise.
1345         * doc/posix-functions/fputs.texi: Likewise.
1346         * doc/posix-functions/fwrite.texi: Likewise.
1347         * doc/posix-functions/printf.texi: Likewise.
1348         * doc/posix-functions/putc.texi: Likewise.
1349         * doc/posix-functions/putchar.texi: Likewise.
1350         * doc/posix-functions/puts.texi: Likewise.
1351         * doc/posix-functions/vfprintf.texi: Likewise.
1352         * doc/posix-functions/vprintf.texi: Likewise.
1353         * doc/posix-functions/write.texi: Likewise.
1354
1355 2011-04-10  Jim Meyering  <meyering@redhat.com>
1356
1357         maint.mk: prohibit doubled words
1358         Detect them also when they're separated by a newline.
1359         There are 3 ways to customize it:
1360           - disable the test on a per file basis, as usual with rules using
1361             $(VC_LIST_EXCEPT)
1362           - replace the default doubled-word-selecting regexp (affects all files)
1363           - ignore a particular file-vs-doubled-word match
1364         I nearly used that last one to ignore the "is is" match in
1365         coreutils' NEWS file, since the text was "ls -is is ..."
1366         To do that, I would have added this line to cfg.mk:
1367           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1368         but it would have ignored any "is is" match in NEWS.
1369         Low probability, but still...
1370         Instead, I changed the text, slightly:
1371           -  ls -is is now consistent with ls -lis in ignoring values returned
1372           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1373         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1374         (prohibit_doubled_word_): Define.
1375         (sc_prohibit_doubled_word): New rule.
1376         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1377
1378 2011-04-10  Jim Meyering  <meyering@redhat.com>
1379
1380         maint: fix doubled-word typo in comment
1381         * m4/gethostname.m4: s/is is/it is/
1382         * m4/getdomainname.m4: Likewise.
1383
1384 2011-04-10  Jim Meyering  <meyering@redhat.com>
1385
1386         maint: remove doubled word: s/it it/it/
1387         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1388
1389 2011-04-10  Jim Meyering  <meyering@redhat.com>
1390
1391         maint.mk: remove useless semicolon and backslash
1392         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1393         semicolon and backslash.
1394
1395 2011-04-10  Bruno Haible  <bruno@clisp.org>
1396
1397         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1398         * modules/stdint-tests (Depends-on): Add wchar.
1399
1400 2011-04-10  Jim Meyering  <meyering@redhat.com>
1401
1402         maint: remove doubled words in comments, e.g., s/a a/a/
1403         * lib/strptime.c (day_of_the_week): s/the the/the/
1404         * tests/test-chown.h (test_chown): s/a a/a/
1405
1406         test-chown.h: correct a cast
1407         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1408         when the destination is a stat.st_gid.
1409
1410 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1411
1412         getaddrinfo: Fix test for sa_len member.
1413         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1414         include <sys/types.h> before <sys/socket.h>.
1415
1416 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1417
1418         maint: change "can not" to "cannot"
1419         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1420         boundaries.
1421
1422 2011-04-09  Jim Meyering  <meyering@redhat.com>
1423
1424         maint: change "a a" to "a"
1425         * tests/test-lchown.h (test_lchown): s/a a/a/
1426
1427         maint.mk: prohibit \<the the\>
1428         * top/maint.mk (sc_prohibit_the_the): New rule.
1429
1430         maint: fix "the the" in comment
1431         * lib/count-one-bits.h: s/the the/the/
1432
1433         maint: change "can not" to "cannot"
1434         But do not change the occurrences in maintain.texi or in
1435         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1436         * doc/gnulib-tool.texi: s/can not/cannot/
1437         * doc/posix-functions/accept.texi (accept): Likewise.
1438         * doc/posix-functions/socket.texi (socket): Likewise.
1439         * lib/mbrtowc.c: Likewise.
1440
1441         maint.mk: prohibit use of "can not"
1442         * top/maint.mk (sc_prohibit_can_not): New rule.
1443         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1444
1445 2011-04-09  Bruno Haible  <bruno@clisp.org>
1446
1447         careadlinkat: Guard against misuse of careadlinkatcwd.
1448         * lib/careadlinkat.c: Include <stdlib.h>.
1449         (careadlinkatcwd): Check that the fd argument is as expected.
1450
1451 2011-04-09  Bruno Haible  <bruno@clisp.org>
1452
1453         careadlinkat: Use common coding style.
1454         * lib/careadlinkat.c: Move gnulib includes after system includes.
1455
1456 2011-04-09  Bruno Haible  <bruno@clisp.org>
1457
1458         careadlinkat: Clarify specification.
1459         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1460         (careadlinkatcwd): Add comment.
1461         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
1462
1463 2011-04-09  Bruno Haible  <bruno@clisp.org>
1464
1465         areadlinkat: Avoid link error on many platforms.
1466         * modules/areadlinkat (Depends-on): Add areadlink.
1467
1468 2011-04-09  Bruno Haible  <bruno@clisp.org>
1469
1470         allocator, careadlinkat: Fix double-inclusion guard.
1471         * lib/allocator.h: Fix double-inclusion guard.
1472         * lib/careadlinkat.h: Likewise.
1473
1474 2011-04-09  Bruno Haible  <bruno@clisp.org>
1475
1476         relocatable-prog-wrapper: Update after module 'areadlink' changed.
1477         * lib/relocwrapper.c: Update dependencies hierarchy.
1478         * build-aux/install-reloc: Update list of files to be compiled.
1479         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
1480         lib/allocator.[hc].
1481
1482 2011-04-08  Eric Blake  <eblake@redhat.com>
1483
1484         strftime: silence gnulib-tool warning
1485         * modules/strftime-tests (Depends-on): Drop automatic dependency.
1486
1487 2011-04-08  Bruno Haible  <bruno@clisp.org>
1488
1489         verify: Fix syntax error with GCC 4.6 in C++ mode.
1490         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
1491         (HAVE_STATIC_ASSERT): New macro.
1492         (verify_true, verify): Use 'static_assert' if it is supported and
1493         '_Static_assert' is not supported.
1494
1495 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1496
1497         allocator: New module.
1498         * modules/allocator, lib/allocator.c: New files.
1499         * lib/allocator.h (stdlib_allocator): New decl.
1500         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
1501         Remove.  Do not include <stdlib.h>.
1502         (careadlinkat): Use stdlib_allocator instead of rolling our own.
1503         * modules/careadlinkat (Files): Remove lib/allocator.h.
1504         (Depends-on): Add allocator.
1505
1506         stdlib: let modules use system malloc, realloc
1507         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
1508         if !_GL_USE_STDLIB_ALLOC.
1509         (malloc, realloc): Limit this change to a smaller scope.
1510
1511         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
1512         (malloc, realloc): Don't #undef; no longer needed.
1513         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1514         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1515         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1516         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1517         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1518         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1519         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1520         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1521
1522         careadlinkat: rename members to avoid problem
1523         * lib/allocator.h (struct allocator): Rename members from
1524         malloc/realloc to allocate/reallocate, to avoid problems if malloc
1525         and realloc are #define'd.  Reported by Eric Blake in
1526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
1527         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
1528
1529 2011-04-08  Eric Blake  <eblake@redhat.com>
1530
1531         nonblocking: reduce dependency
1532         * tests/test-nonblocking.c: Only test sockets when in use.
1533         * modules/nonblocking-tests (Depends-on): Drop socket.
1534         (Makefile.am): Link even if sockets are not present.
1535         * modules/pipe2-tests (Makefile.am): Likewise.
1536         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
1537
1538         pipe2: fix O_NONBLOCK support on mingw
1539         * modules/pipe2 (Depends-on): Add nonblocking.
1540         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
1541         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
1542         * tests/test-nonblocking.c (main): Likewise.
1543         * modules/pipe2-tests (Makefile.am): Avoid link failure.
1544
1545         fcntl-h: fix O_ACCMODE on cygwin
1546         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
1547         * lib/fcntl.in.h (O_ACCMODE): Fix it.
1548
1549         pipe-filter: drop O_NONBLOCK workarounds
1550         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
1551         * modules/pipe-filter-ii (Depends-on): Likewise.
1552         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
1553
1554         nonblocking: provide O_NONBLOCK for mingw
1555         * modules/nonblocking (Depends-on): Add open.
1556         (configure.ac): Set new witness macro.
1557         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
1558         * modules/fcntl-h (Makefile.am): Substitute it.
1559         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
1560         nonblocking module is in use.
1561         * lib/nonblocking.c: Adjust portability test.
1562         * lib/open.c (open): Don't let native open see gnulib flag.
1563         * tests/test-fcntl-h.c (main): Enhance test.
1564         * tests/test-open.h (test_open): Likewise.
1565         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
1566
1567         careadlinkat: fix compilation error on mingw
1568         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
1569         within struct allocator.
1570
1571 2011-04-06  Eric Blake  <eblake@redhat.com>
1572
1573         binary-io: relicense under LGPLv2+
1574         * modules/binary-io (License): Relax to LGPLv2+.
1575         Requested for libvirt, and required by pipe2.
1576
1577 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1578
1579         verify: use _Static_assert if available
1580         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
1581         (verify_true, verify): Use it if available.  This generates better
1582         diagnostics with GCC 4.6.0 and later.
1583
1584 2011-04-05  Bruno Haible  <bruno@clisp.org>
1585
1586         Remove leftover generated .h files after config.status changed.
1587
1588         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
1589         GL_GENERATE_ALLOCA_H.
1590         * modules/alloca-opt (Makefile.am): Remove alloca.h if
1591         GL_GENERATE_ALLOCA_H evaluates to false.
1592
1593         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
1594         GL_GENERATE_ARGZ_H.
1595         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
1596         evaluates to false.
1597
1598         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
1599         GL_GENERATE_BYTESWAP_H.
1600         * modules/byteswap (Makefile.am): Remove byteswap.h if
1601         GL_GENERATE_BYTESWAP_H evaluates to false.
1602
1603         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
1604         GL_GENERATE_ERRNO_H.
1605         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
1606         evaluates to false.
1607
1608         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
1609         GL_GENERATE_FLOAT_H.
1610         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
1611         evaluates to false.
1612
1613         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
1614         GL_GENERATE_FNMATCH_H.
1615         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
1616         GL_GENERATE_FNMATCH_H evaluates to false.
1617
1618         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
1619         GL_GENERATE_GLOB_H.
1620         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
1621         evaluates to false.
1622
1623         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
1624         automake conditional GL_GENERATE_ICONV_H.
1625         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
1626         evaluates to false.
1627
1628         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
1629         GL_GENERATE_NETINET_IN_H.
1630         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
1631         GL_GENERATE_NETINET_IN_H evaluates to false.
1632
1633         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
1634         conditional GL_GENERATE_PTHREAD_H.
1635         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
1636         * modules/pthread (Makefile.am): Remove pthread.h if
1637         GL_GENERATE_PTHREAD_H evaluates to false.
1638
1639         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
1640         GL_GENERATE_SCHED_H.
1641         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
1642         evaluates to false.
1643
1644         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
1645         conditional GL_GENERATE_SELINUX_CONTEXT_H.
1646         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
1647         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
1648
1649         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
1650         GL_GENERATE_STDARG_H.
1651         * modules/stdarg (Makefile.am): Remove stdarg.h if
1652         GL_GENERATE_STDARG_H evaluates to false.
1653
1654         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
1655         GL_GENERATE_STDBOOL_H.
1656         * modules/stdbool (Makefile.am): Remove stdbool.h if
1657         GL_GENERATE_STDBOOL_H evaluates to false.
1658
1659         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
1660         conditional GL_GENERATE_STDDEF_H.
1661         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
1662         * modules/stddef (Makefile.am): Remove stddef.h if
1663         GL_GENERATE_STDDEF_H evaluates to false.
1664
1665         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
1666         GL_GENERATE_STDINT_H.
1667         * modules/stdint (Makefile.am): Remove stdint.h if
1668         GL_GENERATE_STDINT_H evaluates to false.
1669
1670         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
1671         GL_GENERATE_SYSEXITS_H.
1672         * modules/sysexits (Makefile.am): Remove sysexits.h if
1673         GL_GENERATE_SYSEXITS_H evaluates to false.
1674
1675         Reported by Karl Berry and Ralf Wildenhues.
1676
1677 2011-04-05  Bruno Haible  <bruno@clisp.org>
1678
1679         Ensure to rebuild generated .h files when config.status has changed.
1680         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
1681         config.status.
1682         * modules/ctype (Makefile.am): Likewise.
1683         * modules/dirent (Makefile.am): Likewise.
1684         * modules/errno (Makefile.am): Likewise.
1685         * modules/fcntl-h (Makefile.am): Likewise.
1686         * modules/float (Makefile.am): Likewise.
1687         * modules/getopt-posix (Makefile.am): Likewise.
1688         * modules/glob (Makefile.am): Likewise.
1689         * modules/iconv-h (Makefile.am): Likewise.
1690         * modules/inttypes (Makefile.am): Likewise.
1691         * modules/langinfo (Makefile.am): Likewise.
1692         * modules/locale (Makefile.am): Likewise.
1693         * modules/math (Makefile.am): Likewise.
1694         * modules/netdb (Makefile.am): Likewise.
1695         * modules/netinet_in (Makefile.am): Likewise.
1696         * modules/poll-h (Makefile.am): Likewise.
1697         * modules/pthread (Makefile.am): Likewise.
1698         * modules/pty (Makefile.am): Likewise.
1699         * modules/sched (Makefile.am): Likewise.
1700         * modules/search (Makefile.am): Likewise.
1701         * modules/selinux-h (Makefile.am): Likewise.
1702         * modules/signal (Makefile.am): Likewise.
1703         * modules/spawn (Makefile.am): Likewise.
1704         * modules/stdarg (Makefile.am): Likewise.
1705         * modules/stdbool (Makefile.am): Likewise.
1706         * modules/stddef (Makefile.am): Likewise.
1707         * modules/stdint (Makefile.am): Likewise.
1708         * modules/stdio (Makefile.am): Likewise.
1709         * modules/stdlib (Makefile.am): Likewise.
1710         * modules/string (Makefile.am): Likewise.
1711         * modules/strings (Makefile.am): Likewise.
1712         * modules/sys_file (Makefile.am): Likewise.
1713         * modules/sys_ioctl (Makefile.am): Likewise.
1714         * modules/sys_select (Makefile.am): Likewise.
1715         * modules/sys_socket (Makefile.am): Likewise.
1716         * modules/sys_stat (Makefile.am): Likewise.
1717         * modules/sys_time (Makefile.am): Likewise.
1718         * modules/sys_times (Makefile.am): Likewise.
1719         * modules/sys_utsname (Makefile.am): Likewise.
1720         * modules/sys_wait (Makefile.am): Likewise.
1721         * modules/sysexits (Makefile.am): Likewise.
1722         * modules/termios (Makefile.am): Likewise.
1723         * modules/time (Makefile.am): Likewise.
1724         * modules/unistd (Makefile.am): Likewise.
1725         * modules/wchar (Makefile.am): Likewise.
1726         * modules/wctype-h (Makefile.am): Likewise.
1727         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
1728
1729 2011-04-05  Bruno Haible  <bruno@clisp.org>
1730
1731         pipe2: Relicense under LGPLv2+.
1732         * modules/pipe2 (License): Change to LGPLv2+.
1733         Requested by Eric Blake, for libvirt.
1734
1735 2011-04-05  Bruce Korb  <bkorb@gnu.org>
1736
1737         bootstrap: compute gnulib_extra_files after updating build_aux
1738         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
1739         change build_aux or also supply gnulib_extra_files.  Handle correctly.
1740
1741 2011-04-05  Eric Blake  <eblake@redhat.com>
1742
1743         bootstrap: preserve git whitelist item sorting
1744         * build-aux/bootstrap (sort_patterns): New function.
1745         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
1746
1747 2011-04-05  Simon Josefsson  <simon@josefsson.org>
1748
1749         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
1750         sc_space_tab check.
1751
1752 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1753
1754         areadlink, areadlinkat: rewrite in terms of careadlinkat
1755         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
1756         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
1757         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
1758         (malloc, realloc): Remove #undefs.
1759         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
1760         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
1761         readlink, ssize_t, stdint, unistd.
1762         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
1763         areadlink, stdint.
1764
1765         careadlinkat: new module
1766         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
1767         * modules/careadlinkat: New files, written by me with
1768         a review and feedback from Ben Pfaff in
1769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
1770
1771 2011-04-01  Bruno Haible  <bruno@clisp.org>
1772
1773         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
1774         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
1775         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
1776         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1777         Reported by Bruce Korb <bruce.korb@gmail.com>.
1778
1779 2011-04-01  Bruno Haible  <bruno@clisp.org>
1780
1781         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
1782         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
1783         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
1784         * modules/wcpcpy (Depends-on): Add extensions.
1785         * modules/wcpncpy (Depends-on): Likewise.
1786         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
1787         systems.
1788         * doc/posix-functions/wcpncpy.texi: Likewise.
1789         * doc/posix-functions/wcwidth.texi: Likewise.
1790
1791 2011-03-31  Eric Blake  <eblake@redhat.com>
1792
1793         nonblocking: fix mingw test failures
1794         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
1795         non-blocking flag on regular file.
1796         (get_nonblocking_flag): Set errno on invalid fd.
1797         * tests/test-nonblocking.c (main): Avoid test failure on
1798         directories if fchdir is not active.
1799         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1800
1801 2011-03-31  Bruno Haible  <bruno@clisp.org>
1802
1803         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1804         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1805         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1806         Reported by Simon Josefsson <simon@josefsson.org>.
1807
1808 2011-03-31  Bruno Haible  <bruno@clisp.org>
1809         and Eric Blake  <eblake@redhat.com>
1810
1811         nonblocking: new module
1812         * modules/nonblocking: New module.
1813         * modules/nonblocking-tests: Likewise.
1814         * lib/nonblocking.h: New file.
1815         * lib/nonblocking.c: Likewise.
1816         * tests/test-nonblocking.c: New test.
1817         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1818
1819 2011-03-30  Bruno Haible  <bruno@clisp.org>
1820
1821         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1822         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1823         instead of 'printf' format for GCC >= 4.4.
1824         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1825         (fprintf, printf, vfprintf, vprintf): Declare with
1826         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1827         the system's vfprintf() function.
1828         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1829
1830 2011-03-30  Eric Blake  <eblake@redhat.com>
1831
1832         passfd: fix scoping bug
1833         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1834         before sendmsg/recvmsg.
1835
1836         passfd: standardize coding conventions
1837         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1838         can be learned at compile time.
1839         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1840         ifdefs.
1841         (sendfd, recvfd): Follow gnulib code conventions.
1842
1843         passfd: fix incorrect sendmsg arguments
1844         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1845         incorrect msg_controllen value.
1846         * modules/passfd-tests (Depends-on): Check for alarm.
1847         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1848         Reported by Bastien ROUCARIES.
1849
1850 2011-03-30  Bruno Haible  <bruno@clisp.org>
1851
1852         c-strcasestr: Relicense under LGPLv2+.
1853         * modules/c-strcasestr (License): Change to LGPLv2+.
1854         Requested by Eric Blake, for libvirt.
1855
1856 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1857
1858         * users.txt: Add libidn2.  Fix libtasn1 link.
1859
1860 2011-03-30  Jim Meyering  <meyering@redhat.com>
1861
1862         tests: readlink* ("",... fails with EINVAL on newer kernels
1863         readlink and readlinkat have typically failed with ENOENT for
1864         the invalid, empty file name,  "".  However, with the advent
1865         of linux-2.6.39, they fail with EINVAL.
1866         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1867         when operating on the empty file name.
1868         * tests/test-readlink.h (test_readlink): Likewise.
1869
1870 2011-03-29  Bruno Haible  <bruno@clisp.org>
1871
1872         Relicense some modules under LGPLv2+, for libidn2.
1873         * modules/array-mergesort (License): Change to LGPLv2+.
1874         * modules/c-strcaseeq (License): Likewise.
1875         * modules/striconveh (License): Likewise.
1876         * modules/striconveha (License): Likewise.
1877         * modules/uniconv/base (License): Likewise.
1878         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1879         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1880         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1881         * modules/unictype/base (License): Likewise.
1882         * modules/unictype/bidiclass-of (License): Likewise.
1883         * modules/unictype/category-M (License): Likewise.
1884         * modules/unictype/category-none (License): Likewise.
1885         * modules/unictype/category-of (License): Likewise.
1886         * modules/unictype/category-test (License): Likewise.
1887         * modules/unictype/category-test-withtable (License): Likewise.
1888         * modules/unictype/combining-class (License): Likewise.
1889         * modules/unictype/joiningtype-of (License): Likewise.
1890         * modules/unictype/scripts (License): Likewise.
1891         * modules/uninorm/base (License): Likewise.
1892         * modules/uninorm/canonical-decomposition (License): Likewise.
1893         * modules/uninorm/composition (License): Likewise.
1894         * modules/uninorm/decompose-internal (License): Likewise.
1895         * modules/uninorm/decomposition-table (License): Likewise.
1896         * modules/uninorm/nfc (License): Likewise.
1897         * modules/uninorm/nfd (License): Likewise.
1898         * modules/uninorm/u32-normalize (License): Likewise.
1899         * modules/unistr/base (License): Likewise.
1900         * modules/unistr/u32-cpy (License): Likewise.
1901         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1902         * modules/unistr/u32-to-u8 (License): Likewise.
1903         * modules/unistr/u32-uctomb (License): Likewise.
1904         * modules/unistr/u8-check (License): Likewise.
1905         * modules/unistr/u8-mblen (License): Likewise.
1906         * modules/unistr/u8-mbtouc (License): Likewise.
1907         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1908         * modules/unistr/u8-mbtoucr (License): Likewise.
1909         * modules/unistr/u8-prev (License): Likewise.
1910         * modules/unistr/u8-strlen (License): Likewise.
1911         * modules/unistr/u8-to-u32 (License): Likewise.
1912         * modules/unistr/u8-uctomb (License): Likewise.
1913         * modules/unitypes (License): Likewise.
1914         Requested by Simon Josefsson.
1915
1916 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1917
1918         lib-symbol-visibility: Add a notice.
1919         * modules/lib-symbol-visibility (Notice): New field.
1920
1921 2011-03-29  Bruno Haible  <bruno@clisp.org>
1922
1923         getaddrinfo: Doc fix.
1924         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1925         section "fixed in Gnulib".
1926
1927 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1928
1929         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1930         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1931
1932 2011-03-26  Bruno Haible  <bruno@clisp.org>
1933
1934         unictype/property-byname: Reduce the number of load-time relocations.
1935         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1936         (UC_PROPERTY_INDEX_*): New enumeration values.
1937         (uc_property_byname): Convert an index from the lookup table to an
1938         uc_property_t.
1939         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1940         values.
1941
1942 2011-03-26  Bruno Haible  <bruno@clisp.org>
1943
1944         unictype/property-byname: Allow omitted word separators and aliases.
1945         * lib/unictype/pr_byname.gperf: Add property names without word
1946         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1947         for 'space'.
1948
1949 2011-03-26  Bruno Haible  <bruno@clisp.org>
1950
1951         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1952         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1953         also hyphens to space.
1954         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1955         without spaces.
1956         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1957
1958 2011-03-26  Bruno Haible  <bruno@clisp.org>
1959
1960         unictype/joiningtype-byname: Recognize long names as well.
1961         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1962         a long name.
1963         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1964         unictype/joiningtype_byname.h.
1965         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1966         * lib/unictype/joiningtype_byname.gperf: New file.
1967         * modules/unictype/joiningtype-byname (Files): Add
1968         lib/unictype/joiningtype_byname.gperf.
1969         (Depends-on): Add gperf.
1970         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1971         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1972         long names.
1973
1974         Tests for module 'unictype/joiningtype-longname'.
1975         * modules/unictype/joiningtype-longname-tests: New file.
1976         * tests/unictype/test-joiningtype_longname.c: New file.
1977
1978         New module 'unictype/joiningtype-longname'.
1979         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1980         * lib/unictype/joiningtype_longname.c: New file.
1981         * modules/unictype/joiningtype-longname: New file.
1982         * modules/unictype/joiningtype-all (Depends-on): Add
1983         unictype/joiningtype-longname.
1984
1985 2011-03-26  Bruno Haible  <bruno@clisp.org>
1986
1987         unictype/bidiclass-byname: Recognize long names as well.
1988         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1989         name.
1990         * lib/unictype/bidi_byname.c: Include <string.h>,
1991         unictype/bidi_byname.h.
1992         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1993         * lib/unictype/bidi_byname.gperf: New file.
1994         * modules/unictype/bidiclass-byname (Files): Add
1995         lib/unictype/bidi_byname.gperf.
1996         (Depends-on): Add gperf.
1997         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1998         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1999         long names.
2000
2001         Tests for module 'unictype/bidiclass-longname'.
2002         * modules/unictype/bidiclass-longname-tests: New file.
2003         * tests/unictype/test-bidi_longname.c: New file.
2004
2005         New module 'unictype/bidiclass-longname'.
2006         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2007         * lib/unictype/bidi_longname.c: New file.
2008         * modules/unictype/bidiclass-longname: New file.
2009         * modules/unictype/bidiclass-all (Depends-on): Add
2010         unictype/bidiclass-longname.
2011
2012 2011-03-26  Bruno Haible  <bruno@clisp.org>
2013
2014         unictype/bidi*: Rename modules.
2015         * modules/unictype/bidiclass-all: Renamed from
2016         modules/unictype/bidicategory-all.
2017         * modules/unictype/bidiclass-name: Renamed from
2018         modules/unictype/bidiclass-name.
2019         (Description): Update.
2020         * modules/unictype/bidiclass-name-tests: Renamed from
2021         modules/unictype/bidicategory-name-tests.
2022         * modules/unictype/bidiclass-byname: Renamed from
2023         modules/unictype/bidicategory-byname.
2024         (Description): Update.
2025         * modules/unictype/bidiclass-byname-tests: Renamed from
2026         modules/unictype/bidicategory-byname-tests.
2027         * modules/unictype/bidiclass-of: Renamed from
2028         modules/unictype/bidicategory-of.
2029         (Description): Update.
2030         * modules/unictype/bidiclass-of-tests: Renamed from
2031         modules/unictype/bidicategory-of-tests.
2032         * modules/unictype/bidiclass-test: Renamed from
2033         modules/unictype/bidicategory-test.
2034         (Description): Update.
2035         * modules/unictype/bidiclass-test-tests: Renamed from
2036         modules/unictype/bidicategory-test-tests.
2037         * modules/unictype/bidicategory-all: New file, a simple redirection.
2038         * modules/unictype/bidicategory-name: Likewise.
2039         * modules/unictype/bidicategory-byname: Likewise.
2040         * modules/unictype/bidicategory-of: Likewise.
2041         * modules/unictype/bidicategory-test: Likewise.
2042         * modules/unictype/property-bidi-* (Dependencies): Update.
2043         * lib/unictype/bidi_*.c: Update comment.
2044
2045 2011-03-26  Bruno Haible  <bruno@clisp.org>
2046
2047         unictype/bidi*: Rename functions, part 2.
2048         * modules/unictype/bidicategory-name (configure.ac): Update required
2049         libunistring version.
2050         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2051
2052 2011-03-25  Bruno Haible  <bruno@clisp.org>
2053
2054         New module 'unictype/combining-class-all'.
2055         * modules/unictype/combining-class-all: New file.
2056
2057         Tests for module 'unictype/combining-class-byname'.
2058         * modules/unictype/combining-class-byname-tests: New file.
2059         * tests/unictype/test-combiningclass_byname.c: New file.
2060
2061         New module 'unictype/combining-class-byname'.
2062         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2063         * lib/unictype/combiningclass_byname.c: New file.
2064         * lib/unictype/combiningclass_byname.gperf: New file.
2065         * modules/unictype/combining-class-byname: New file.
2066
2067         Tests for module 'unictype/combining-class-longname'.
2068         * modules/unictype/combining-class-longname-tests: New file.
2069         * tests/unictype/test-combiningclass_longname.c: New file.
2070
2071         New module 'unictype/combining-class-longname'.
2072         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2073         * lib/unictype/combiningclass_longname.c: New file.
2074         * modules/unictype/combining-class-longname: New file.
2075
2076         Tests for module 'unictype/combining-class-name'.
2077         * modules/unictype/combining-class-name-tests: New file.
2078         * tests/unictype/test-combiningclass_name.c: New file.
2079
2080         New module 'unictype/combining-class-name'.
2081         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2082         * lib/unictype/combiningclass_name.c: New file.
2083         * modules/unictype/combining-class-name: New file.
2084
2085 2011-03-25  Bruno Haible  <bruno@clisp.org>
2086
2087         unictype/combining-class: Rename source files.
2088         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2089         of unictype/combining.h.
2090         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2091         Update.
2092         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2093         * modules/unictype/combining-class (Description): Fix.
2094         (Files, Makefile.am): Update.
2095         * tests/unictype/test-combiningclass.c: Renamed from
2096         tests/unictype/test-combining.c.
2097         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2098
2099 2011-03-25  Bruno Haible  <bruno@clisp.org>
2100
2101         unictype: Update list of canonical combining classes.
2102         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2103
2104 2011-03-25  Bruno Haible  <bruno@clisp.org>
2105
2106         unictype/category-byname: Recognize long names as well.
2107         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2108         a long name.
2109         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2110         unictype/categ_byname.h.
2111         (UC_CATEGORY_INDEX_*): New enumeration values.
2112         (uc_general_category_byname): Use uc_general_category_lookup and
2113         convert from index to value.
2114         * lib/unictype/categ_byname.gperf: New file.
2115         * modules/unictype/category-byname (Files): Add
2116         lib/unictype/categ_byname.gperf.
2117         (Depends-on): Add gperf.
2118         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2119         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2120         long names.
2121
2122         Tests for module 'unictype/category-longname'.
2123         * modules/unictype/category-longname-tests: New file.
2124         * tests/unictype/test-categ_longname.c: New file.
2125
2126         New module 'unictype/category-longname'.
2127         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2128         * lib/unictype/categ_longname.c: New file.
2129         * modules/unictype/category-longname: New file.
2130         * modules/unictype/category-all (Depends-on): Add it.
2131
2132 2011-03-25  Bruno Haible  <bruno@clisp.org>
2133
2134         Tests for module 'unictype/category-LC'.
2135         * modules/unictype/category-LC-tests: New file.
2136         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2137
2138         New module 'unictype/category-LC'.
2139         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2140         (UC_CATEGORY_LC): New declaration.
2141         (UC_CASED_LETTER): New macro.
2142         * lib/gen-uni-tables.c (is_category_LC): New function.
2143         (output_categories): Also handle category LC.
2144         (UC_CATEGORY_MASK_LC): New enumeration value.
2145         (general_category_byname): Also handle category LC.
2146         * lib/unictype/categ_LC.c: New file.
2147         * lib/unictype/categ_LC.h: New file, automatically generated.
2148         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2149         category LC.
2150         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2151         * modules/unictype/category-LC: New file.
2152         * modules/unictype/category-byname (Depends-on): Add
2153         unictype/category-LC.
2154         * modules/unictype/category-all (Depends-on): Likewise.
2155
2156 2011-03-25  Eric Blake  <eblake@redhat.com>
2157
2158         xmalloc: revert yesterday's regression
2159         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2160         realloc's underlying behavior (allowing allocation of zero-size
2161         objects, especially if malloc-gnu is also in use).
2162
2163 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2164
2165         maint.mk: add missing version to VC-tag
2166         * top/maint.mk: git tag was missing actual tag name; add it.
2167
2168         valgrind: do leak checking, and exit with code 1 on error (not 0)
2169         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2170         to VALGRIND.
2171
2172 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2173
2174         posix-modules: say what it does.
2175         * posix-modules: Add a line to the --help output saying what it does.
2176
2177 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2178
2179         xmalloc: Do not leak if underlying realloc is C99 compatible.
2180         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2181         This avoids a leak on C99-based systems.  See
2182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2183
2184 2011-03-24  Eric Blake  <eblake@redhat.com>
2185
2186         realloc: document portability problem
2187         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2188         passing 0 size to realloc.
2189
2190 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2191
2192         doc: update users.txt
2193         * users.txt: Add cvsps, tmpwatch
2194
2195 2011-03-23  Matt Rice  <ratmice@gmail.com>
2196
2197         doc: update users.txt
2198         * users.txt: Add gdb.
2199
2200 2011-03-23  Jim Meyering  <meyering@redhat.com>
2201
2202         doc: update users.txt
2203         Looking through matches up to the following URL (there are still
2204         several more pages), I found several projects that use gnulib:
2205         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2206         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2207         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2208
2209 2011-03-22  Bruno Haible  <bruno@clisp.org>
2210
2211         unictype/bidi*: Rename functions.
2212         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2213         uc_bidi_class, uc_is_bidi_class): New declarations.
2214         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2215         uc_bidi_category_byname.
2216         (uc_bidi_category_byname): New function.
2217         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2218         u_bidi_category_name.
2219         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2220         (uc_bidi_category_name): New function.
2221         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2222         uc_bidi_category.
2223         (uc_bidi_category): New function.
2224         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2225         uc_is_bidi_category. Invoke uc_bidi_class.
2226         (uc_is_bidi_category): New function.
2227         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2228         instead of uc_bidi_category_byname.
2229         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2230         instead of uc_bidi_category_name.
2231         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2232         uc_bidi_category.
2233         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2234         instead of uc_is_bidi_category.
2235
2236 2011-03-21  Bruno Haible  <bruno@clisp.org>
2237
2238         New module 'unictype/joininggroup-all'.
2239         * modules/unictype/joininggroup-all: New file.
2240
2241         Tests for module 'unictype/joininggroup-of'.
2242         * modules/unictype/joininggroup-of-tests: New file.
2243         * tests/unictype/test-joininggroup_of.c: New file.
2244         * tests/unictype/test-joininggroup_of.h: New file, automatically
2245         generated by gen-uni-tables.
2246
2247         New module 'unictype/joininggroup-of'.
2248         * modules/unictype/joininggroup-of: New file.
2249         * lib/unictype/joininggroup_of.c: New file.
2250         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2251         gen-uni-tables.
2252
2253         Tests for module 'unictype/joininggroup-byname'.
2254         * modules/unictype/joininggroup-byname-tests: New file.
2255         * tests/unictype/test-joininggroup_byname.c: New file.
2256
2257         New module 'unictype/joininggroup-byname'.
2258         * modules/unictype/joininggroup-byname: New file.
2259         * lib/unictype/joininggroup_byname.c: New file.
2260         * lib/unictype/joininggroup_byname.gperf: New file.
2261
2262         Tests for module 'unictype/joininggroup-name'.
2263         * modules/unictype/joininggroup-name-tests: New file.
2264         * tests/unictype/test-joininggroup_name.c: New file.
2265
2266         New module 'unictype/joininggroup-name'.
2267         * modules/unictype/joininggroup-name: New file.
2268         * lib/unictype/joininggroup_name.c: New file.
2269         * lib/unictype/joininggroup_name.h: New file.
2270
2271         New module 'unictype/joiningtype-all'.
2272         * modules/unictype/joiningtype-all: New file.
2273
2274         Tests for module 'unictype/joiningtype-of'.
2275         * modules/unictype/joiningtype-of-tests: New file.
2276         * tests/unictype/test-joiningtype_of.c: New file.
2277         * tests/unictype/test-joiningtype_of.h: New file, automatically
2278         generated by gen-uni-tables.
2279
2280         New module 'unictype/joiningtype-of'.
2281         * modules/unictype/joiningtype-of: New file.
2282         * lib/unictype/joiningtype_of.c: New file.
2283         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2284         gen-uni-tables.
2285
2286         Tests for module 'unictype/joiningtype-byname'.
2287         * modules/unictype/joiningtype-byname-tests: New file.
2288         * tests/unictype/test-joiningtype_byname.c: New file.
2289
2290         New module 'unictype/joiningtype-byname'.
2291         * modules/unictype/joiningtype-byname: New file.
2292         * lib/unictype/joiningtype_byname.c: New file.
2293
2294         Tests for module 'unictype/joiningtype-name'.
2295         * modules/unictype/joiningtype-name-tests: New file.
2296         * tests/unictype/test-joiningtype_name.c: New file.
2297
2298         New module 'unictype/joiningtype-name'.
2299         * modules/unictype/joiningtype-name: New file.
2300         * lib/unictype/joiningtype_name.c: New file.
2301
2302         unictype: Add support for Arabic shaping properties.
2303         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2304         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2305         declarations.
2306         (UC_JOINING_GROUP_*): New enumeration values.
2307         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2308         declarations.
2309         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2310         (unicode_joining_type): New variable.
2311         (UC_JOINING_GROUP_*): New enumeration values.
2312         (unicode_joining_group): New variable.
2313         (fill_arabicshaping, joining_type_as_c_identifier,
2314         output_joining_type_test, output_joining_type,
2315         joining_group_as_c_identifier, output_joining_group_test,
2316         output_joining_group): New functions.
2317         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2318         fill_arabicshaping and output_joining_type_test, output_joining_type,
2319         output_joining_group_test, output_joining_group.
2320         Reported by Simon Josefsson.
2321
2322 2011-03-21  Jim Meyering  <meyering@redhat.com>
2323
2324         strftime: fix a bug in yesterday's change
2325         * lib/strftime.c (add): Accommodate width's initial value of -1.
2326         Otherwise, nstrftime would copy uninitialized data into
2327         the result buffer.
2328
2329 2011-03-21  Jim Meyering  <meyering@redhat.com>
2330
2331         tests: add strftime-tests module
2332         * tests/test-strftime.c: New file.
2333         * modules/strftime-tests: New module.
2334
2335 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2336
2337         strftime: don't assume a byte count fits in 'int'
2338         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2339         found this problem by static analysis, using gcc -Wstrict-overflow
2340         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2341         on an integer overflow having undefined behavior, but it turns out
2342         that the argument is a size, which might not fit in 'int' anyway,
2343
2344 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2345
2346         stdio: don't require ignore_value around fwrite
2347
2348         This patch works around libc bug 11959
2349         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2350         Without this patch, applications must often write
2351         ignore_value (fwrite (...)) even though the ignore_value is
2352         not helpful here.  It's common to write many objects, using
2353         fwrite/printf/etc., and then use ferror to detect output error.
2354
2355         I considered making this patch optional, but decided against it,
2356         because libc is obviously being inconsistent here: there is no
2357         reason libc should insist that user code must inspect fwrite
2358         return's value without also insisting that it inspect printf's,
2359         putchar's, etc.  If user code wants to have a strict style where
2360         all these functions' values are checked (so that ferror need not
2361         be checked), we could add support for that style in a new gnulib
2362         module, but in the meantime it's better to be consistent and to
2363         support common usage.
2364
2365         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2366         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2367         that we are compiling in checking mode, and if not C++, and
2368         if not already wrapping fwrite for some other reason.
2369         (fwrite): #define to rpl_fwrite if the latter is defined.
2370
2371 2011-03-20  Bruno Haible  <bruno@clisp.org>
2372
2373         verror: Fix compilation error introduced on 2011-02-13.
2374         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2375         instead of __attribute__.
2376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2377
2378 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2379             Bruno Haible  <bruno@clisp.org>
2380
2381         socklen: do not depend on sys_socket
2382         While trying to modify Emacs to use gnulib's socklen module,
2383         I discovered a circular dependency: socklen depends on sys_socket
2384         and vice versa.  Emacs can use socklen, but it does not need
2385         sys_socket because it has its own substitute for sys/socket.h.
2386         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2387         gl_TYPE_SOCKLEN_T.
2388         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2389         gl_PREREQ_SYS_H_SOCKET.
2390         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2391         gl_PREREQ_SYS_H_SOCKET.
2392         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2393         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2394         * modules/socklen (Depends-on): Do not depend on sys_socket.
2395         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2396
2397 2011-03-20  Jim Meyering  <meyering@redhat.com>
2398
2399         maint.mk: sort file names *after* new transformation
2400         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2401         prefix would have led to an unwarranted failure in GNU parted.
2402         Sort after that transformation.
2403
2404 2011-03-19  Jim Meyering  <meyering@redhat.com>
2405
2406         maint.mk: fix po-file syntax-check rule
2407         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2408         Patch by Bruno Haible.
2409
2410 2011-03-19  Bruno Haible  <bruno@clisp.org>
2411
2412         socklen: Update comment.
2413         * m4/socklen.m4: Update comment about platforms.
2414
2415 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2416             Bruno Haible  <bruno@clisp.org>
2417
2418         inet_ntop, inet_pton: Simplify.
2419         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2420         documented to provide socklen_t and we already depend on sys_socket.
2421         * modules/inet_pton (Depends-on): Likewise.
2422         * lib/arpa_inet.in.h: Adjust comment.
2423
2424 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2425             Bruno Haible  <bruno@clisp.org>
2426
2427         netdb: Simplify.
2428         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2429         documented to provide socklen_t and we already depend on sys_socket.
2430         * lib/netdb.in.h: Adjust comment.
2431
2432 2011-03-19  Bruno Haible  <bruno@clisp.org>
2433
2434         sys_socket, netdb: Document problem with socklen_t.
2435         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2436         platforms.
2437         * doc/posix-headers/netdb.texi: Likewise.
2438
2439 2011-03-18  Eric Blake  <eblake@redhat.com>
2440
2441         maint.mk: let po check work in VPATH build
2442         * top/maint.mk (po_file): Allow cfg.mk override.
2443         (sc_po_check): Allow VPATH use.
2444         Reported by Jiri Denemark.
2445
2446 2011-03-16  Jim Meyering  <meyering@redhat.com>
2447
2448         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2449         Before, you would have had to create one .x-sc_ file per rule in order
2450         to exempt offending files.  Now, you may instead use a Make variable --
2451         usually defined in cfg.mk -- whose name identifies the affected rule.
2452         * top/maint.mk (_sc_excl): Define.
2453         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2454         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2455
2456 2011-03-13  Bruno Haible  <bruno@clisp.org>
2457
2458         ignore-value tests: Avoid warnings.
2459         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2460         empty for gcc < 3.4.
2461
2462 2011-03-13  Bruno Haible  <bruno@clisp.org>
2463
2464         passfd: Fix link error on Solaris.
2465         * modules/passfd (Description): Correct.
2466         (Depends-on): Add socketlib.
2467         (Link): New section.
2468         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
2469
2470 2011-03-13  Bruno Haible  <bruno@clisp.org>
2471
2472         passfd: Fix link error on AIX 5.2.
2473         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
2474
2475 2011-03-13  Bruno Haible  <bruno@clisp.org>
2476
2477         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
2478         * lib/sys_socket.in.h: Include <stddef.h>.
2479         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
2480         CMSG_FIRSTHDR. Remove unused variable.
2481
2482 2011-03-13  Bruno Haible  <bruno@clisp.org>
2483
2484         passfd: Fix compilation error on OpenBSD.
2485         * lib/passfd.c: Include <sys/uio.h>.
2486
2487 2011-03-13  Bruno Haible  <bruno@clisp.org>
2488
2489         passfd test: Fix warnings.
2490         * tests/test-passfd.c: Include <sys/wait.h>.
2491         (main): Fix typo.
2492
2493 2011-03-13  Bruno Haible  <bruno@clisp.org>
2494
2495         passfd module, part 4, tweaks.
2496         * tests/test-passfd.c: Reorder includes.
2497         (main): Fix perror and printf calls.
2498
2499 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2500
2501         passfd module, part 4.
2502         * modules/passfd-tests: New file.
2503         * tests/test-passfd.c: New file.
2504
2505 2011-03-13  Jim Meyering  <meyering@redhat.com>
2506
2507         Makefile: rely on GNU make; derive syntax-check rule names
2508         Rather than requiring that each sc_ rule be listed as a dependent
2509         of "check", use features of GNU make to derive the list.
2510         * Makefile (syntax-check-rules): Define.
2511         (check): Depend on the new variable, not the hard-coded list.
2512
2513 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2514             Bruno Haible  <bruno@clisp.org>
2515
2516         passfd module, part 3.
2517         * lib/passfd.h (recvfd): Add a flags argument.
2518         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
2519         (recvfd): Add a flags argument.
2520         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
2521         exists.
2522         * modules/passfd (Depends-on): Add cloexec.
2523         Suggested by Eric Blake.
2524
2525 2011-03-13  Bruno Haible  <bruno@clisp.org>
2526
2527         passfd module, part 2, tweaks.
2528         * modules/passfd (Files): Reorder.
2529         (Depends-on): Remove errno.
2530         (Include): Remove <sys/socket.h>, <sys/un.h>.
2531         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
2532         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
2533         specification header. Include <sys/socket.h> always. Don't include
2534         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
2535         (sendfd): Clarify that it sets errno when it fails.
2536         (recvfd): Fix specification.
2537
2538 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2539
2540         passfd module, part 2.
2541         * modules/passfd: New file.
2542         * lib/passfd.h: New file.
2543         * lib/passfd.c: New file.
2544
2545 2011-03-12  Bruno Haible  <bruno@clisp.org>
2546
2547         wcswidth, mbswidth: Avoid integer overflow.
2548         * lib/wcswidth.c: Include <limits.h>.
2549         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
2550         * lib/mbswidth.c: Include <limits.h>.
2551         (mbsnwidth): Avoid 'int' overflow.
2552         Reported by Jim Meyering.
2553
2554 2011-03-12  Bruno Haible  <bruno@clisp.org>
2555
2556         futimens, utimensat: Avoid endless recursion on Solaris 10.
2557         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
2558         Solaris.
2559         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
2560         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
2561
2562 2011-03-11  Jim Meyering  <meyering@redhat.com>
2563
2564         maint.mk: relax a regexp to accommodate other formatting styles
2565         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
2566         between "ngettext" and the following "(".
2567
2568 2011-03-11  Pádraig Brady <P@draigBrady.com>
2569
2570         maint.mk: suppress a false positive warning
2571         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
2572         diagnostics are marked with ngettext.
2573
2574 2011-03-10  Eric Blake  <eblake@redhat.com>
2575
2576         wchar: add explicit dependencies, for Tru64
2577         * modules/mbmemcasecoll (Depends-on): Add wchar.
2578         * modules/mbtowc (Depends-on): Likewise.
2579         * modules/vasnprintf (Depends-on): Likewise.
2580         * modules/unistdio/u-printf-args (Depends-on): Likewise.
2581         * modules/wctomb (Depends-on): Likewise.
2582         Reported by Peter O'Gorman.
2583
2584 2011-03-08  Bruno Haible  <bruno@clisp.org>
2585
2586         passfd module, part 1, tweaks.
2587         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
2588         Improve indentation. Improve AC_MSG_CHECKING messages.
2589         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
2590         gl_SOCKET_FAMILIES.
2591
2592 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2593
2594         passfd module, part 1.
2595         * m4/afunix.m4: New file.
2596         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
2597         sockets.
2598
2599 2011-03-08  Bruno Haible  <bruno@clisp.org>
2600
2601         regex-quote: New API.
2602         * lib/regex-quote.h: Include <stdbool.h>.
2603         (struct regex_quote_spec): New type.
2604         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2605         New declarations.
2606         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2607         'const struct regex_quote_spec *' argument.
2608         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
2609         (pcre_special): New constant.
2610         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2611         New functions.
2612         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2613         'const struct regex_quote_spec *' argument.
2614         * modules/regex-quote (Depends-on): Add stdbool.
2615         * tests/test-regex-quote.c (check): Update for new API. Add test for
2616         anchored results.
2617         * NEWS: Mention the API change.
2618         Reported by Reuben Thomas and Eric Blake.
2619
2620 2011-03-06  Bruno Haible  <bruno@clisp.org>
2621
2622         regex-quote: Fix creation of POSIX extended regular expressions.
2623         * lib/regex-quote.c (ere_special): Add grouping and alternation
2624         operators.
2625
2626 2011-03-05  Bruno Haible  <bruno@clisp.org>
2627
2628         doc: Improve doc regarding autopoint vs. gnulib.
2629         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
2630         disable autopoint while running autoreconf.
2631         Suggested by Ralf Wildenhues.
2632
2633 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2634
2635         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
2636         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
2637
2638 2011-03-03  Bruce Korb  <bkorb@gnu.org>
2639
2640         parse-duration: remove xalloc.h dependency
2641         * lib/parse-duration.c (parse_period): handle NULL return from
2642         strdup instead of calling xstrdup().
2643         * modules/parse-duration: remove "xalloc" dependency
2644
2645 2011-03-03  Matthew Booth  <mbooth@redhat.com>
2646
2647         bootstrap: honor m4_base when running aclocal
2648         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
2649
2650 2011-03-02  Jim Meyering  <meyering@redhat.com>
2651
2652         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
2653         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
2654         on request from Matt Booth.
2655
2656 2011-03-01  Eric Blake  <eblake@redhat.com>
2657
2658         test-link: work on Hurd
2659         * tests/test-link.h (test_link): Hurd rejects linking directories
2660         with EISDIR instead of the POSIX-mandated EPERM.
2661
2662 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2663
2664         stdio: simplify by moving files to printf-posix, sigpipe
2665         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
2666         since this symbol is needed only if printf is replaced.
2667         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
2668         Require gl_ASM_SYMBOL_PREFIX.
2669         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
2670         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
2671         (Depends-on): Add 'raise'.
2672         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
2673         * modules/stdio (Files): Remove lib/stdio-write.c,
2674         m4/asm-underscore.m4.
2675         (Depends-on): Remove 'raise'.
2676
2677         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
2678         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
2679         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
2680         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
2681
2682 2011-02-28  Bruno Haible  <bruno@clisp.org>
2683
2684         localcharset: Assume ANSI C behaviour of free().
2685         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
2686         calling free().
2687         Suggested by Simon Josefsson <simon@josefsson.org>.
2688
2689 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
2690             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
2691             Bruno Haible  <bruno@clisp.org>  (tiny change)
2692
2693         On Cygwin, use /proc file system instead of win32 API.
2694         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
2695         Win32 file names.
2696         (DllMain): Simplify by removing Cygwin specific code.
2697         (find_shared_library_fullname): Use Linux specific implementation also
2698         for Cygwin.
2699         (get_shared_library_fullname): Update accordingly.
2700         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
2701         Win32 file names.
2702         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
2703         Cygwin specific code.
2704
2705 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
2706             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
2707
2708         Fix OpenMP flag detection for various Fortran compilers.
2709         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
2710         OpenMP-conditional compilation construct, to force compile
2711         failure with missing OpenMP flag.
2712         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
2713
2714 2011-02-25  Eric Blake  <eblake@redhat.com>
2715
2716         strstr: expand test coverage
2717         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
2718         compilation.
2719         * tests/test-memmem.c (main): Duplicate tests.
2720         * tests/test-strcasestr.c (main): Likewise.
2721         * tests/test-c-strcasestr.c (main): Likewise.
2722
2723 2011-02-25  Jim Meyering  <meyering@redhat.com>
2724
2725         maint.mk: detect missing-NL-at-EOF, too
2726         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
2727         it also detects when a file lacks a newline at EOF.
2728         (require_exactly_one_NL_at_EOF_): Renamed from
2729         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
2730         since people may well have .x-sc_... file names tied to the
2731         existing name.  Suggested by Eric Blake.
2732
2733 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2734
2735         dirname: move m4/dos.m4 functionality into lib/dosname.h
2736
2737         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
2738         extracts symbols from it, puts them into config.h; but it's much
2739         easier to use the symbols directly.  filename.h already does this,
2740         but it disagrees with dos.m4 in some respects.  This patch
2741         introduces a different include file dosname.h that packages up
2742         dos.m4, and then later we can work on merging filename.h and
2743         dosname.h.  Applications that need only the easy-to-configure
2744         symbols should consider including dosname.h rather than dirname.h.
2745         * NEWS: Mention incompatible changes.
2746         * m4/dos.m4: Remove.
2747         * lib/dosname.h, modules/dosname: New files.
2748         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
2749         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
2750         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
2751         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
2752         Include dosname.h, not dirname.h.
2753         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
2754         Include dosname.h, for definitions of symbols like ISSLASH
2755         that used to be in config.h.
2756         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
2757         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2758         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2759         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2760         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
2761         * modules/rmdir (Files): Likewise.
2762         * modules/stat (Files): Likewise.
2763         * modules/unlink (Files): Likewise.
2764         * modules/dirname-lgpl (Depends-on): Add dosname.
2765         * modules/lstat (Depends-on): Likewise.
2766         * modules/openat (Depends-on): Likewise.
2767         * modules/rmdir (Depends-on): Likewise.
2768         * modules/savewd (Depends-on): Likewise.
2769         * modules/stat (Depends-on): Likewise.
2770         * modules/unlink (Depends-on): Likewise.
2771         * modules/openat (Depends-on): Remove dirname-lgpl.
2772         * modules/savewd (Depends-on): Likewise.
2773         * tests/test-dirname.c: Do not use removed symbols like
2774         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
2775         the remaining symbols, e.g., ISSLASH ('\\').
2776
2777 2011-02-25  Eric Blake  <eblake@redhat.com>
2778
2779         strstr: revert patches that introduced bug and pessimization
2780         * lib/str-two-way.h: Add another reference.
2781         (two_way_short_needle, two_way_long_needle): Revert changes from
2782         2011-02-24; they pessimize search speed.
2783         (critical_factorization): Partially revert changes from
2784         2010-06-22; they violate the requirement that the left half of the
2785         needle be smaller than the period of the needle.
2786
2787 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2788
2789         filenamecat: remove unnecessary dependency on dirname-lgpl
2790         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
2791         is no direct dependency, just an indirect one via filenamecat-lgpl.
2792
2793         remove: remove unnecessary use of m4/dos.m4
2794         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
2795         * modules/remove (FILES): Remove m4/dos.m4.
2796
2797         * lib/openat-proc.c: Don't include dirname.h; not needed.
2798
2799         backupfile: remove unnecessary use of m4/dos.m4
2800         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2801         of its symbols are used by the backupfile code.  backupfile.c does
2802         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2803         for the rare case of programs that want all their backup file
2804         names to live within 8+3 limits, and dos.m4 doesn't address that.
2805         * modules/backupfile (Files): Remove m4/dos.m4.
2806
2807 2011-02-24  Jim Meyering  <meyering@redhat.com>
2808
2809         strstr: fix a bug whereby strstr would mistakenly return NULL
2810         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2811         in period calculation.
2812         (two_way_long_needle): Likewise.
2813         The original problem was reported by Mike Stump in
2814         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2815         Ralf Wildenhues provided the short needle and haystack.
2816         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2817         Add a more involved test to trigger the bug in two_way_long_needle.
2818
2819 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2820
2821         gnulib-tool: remove use of bold display in help screen
2822         * gnulib-tool (func_usage): Do not use bold display anymore in the
2823         help screen.  That was just meant to be a temporary emphasis for a
2824         backward-incompatible change.
2825
2826 2011-02-23  Bruno Haible  <bruno@clisp.org>
2827
2828         Fix misindentation of preprocessor directives.
2829         * lib/argp-namefrob.h: Reindent preprocessor directives.
2830         * lib/getopt_int.h (struct _getopt_data): Likewise.
2831         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2832         * lib/vasnprintf.c (decode_long_double): Likewise.
2833         * tests/test-argmatch.c: Insert blank lines, for clarity.
2834         * tests/test-exclude.c: Likewise.
2835
2836 2011-02-22  Bruno Haible  <bruno@clisp.org>
2837
2838         ioctl: Fix for MacOS X in 64-bit mode.
2839         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2840         value.
2841         Suggested by Eric Blake.
2842         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2843
2844 2011-02-22  Jim Meyering  <meyering@redhat.com>
2845
2846         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2847         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2848         in lib/.
2849
2850 2011-02-22  Eric Blake  <eblake@redhat.com>
2851
2852         maint: avoid any CDPATH issue
2853         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2854
2855         maint: adjust cpp indentation for my modules, as well
2856         * Makefile (sc_cpp_indent_check): Add my name.
2857         * lib/fbufmode.c: Filter through cppi.
2858         * lib/fpurge.c: Likewise.
2859         * lib/freadable.c: Likewise.
2860         * lib/freading.c: Likewise.
2861         * lib/fwritable.c: Likewise.
2862         * lib/fwriting.c: Likewise.
2863         * lib/sigaction.c: Likewise.
2864
2865 2011-02-22  Jim Meyering  <meyering@redhat.com>
2866
2867         maint: adjust cpp indentation to reflect nesting depth
2868         I.e., in a block of code that begins with an unnested "#if",
2869         put one space between the "#" in column 1 and following token.
2870         For example,
2871         -#include <sys/vfs.h>
2872         +# include <sys/vfs.h>
2873         Do this only in .c files that are part of a module I maintain.
2874         * lib/linkat.c: Filter through cppi.
2875         * lib/nanosleep.c: Likewise.
2876         * lib/openat.c: Likewise.
2877         * lib/openat-die.c: Likewise.
2878         * lib/dup3.c: Likewise.
2879         * lib/fchownat.c: Likewise.
2880         * lib/flock.c: Likewise.
2881         * lib/fsync.c: Likewise.
2882         * lib/fts.c: Likewise.
2883         * lib/getpass.c: Likewise.
2884         * lib/gettimeofday.c: Likewise.
2885         * lib/userspec.c: Likewise.
2886         * Makefile (sc_cpp_indent_check): New rule, to check this.
2887
2888 2011-02-22  Bruno Haible  <bruno@clisp.org>
2889
2890         New module 'wctomb'.
2891         * lib/stdlib.in.h (wctomb): New declaration.
2892         * lib/wctomb.c: New file.
2893         * lib/wctomb-impl.h: New file.
2894         * m4/wctomb.m4: New file.
2895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2896         REPLACE_WCTOMB.
2897         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2898         REPLACE_WCTOMB.
2899         * modules/wctomb: New file.
2900         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2901         * doc/posix-functions/wctomb.texi: Mention the new module.
2902         * modules/wctob (Depends-on): Add wctomb.
2903
2904 2011-02-22  Bruno Haible  <bruno@clisp.org>
2905
2906         New module 'mbtowc'.
2907         * lib/stdlib.in.h (mbtowc): New declaration.
2908         * lib/mbtowc.c: New file.
2909         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2910         * m4/mbtowc.m4: New file.
2911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2912         REPLACE_MBTOWC.
2913         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2914         REPLACE_MBTOWC.
2915         * modules/mbtowc: New file.
2916         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2917         * doc/posix-functions/mbtowc.texi: Mention the new module.
2918         * modules/btowc (Depends-on): Add mbtowc.
2919
2920 2011-02-22  Bruno Haible  <bruno@clisp.org>
2921
2922         wcrtomb: Add more tests for native Windows platforms.
2923         * tests/test-wcrtomb-w32-1.sh: New file.
2924         * tests/test-wcrtomb-w32-2.sh: New file.
2925         * tests/test-wcrtomb-w32-3.sh: New file.
2926         * tests/test-wcrtomb-w32-4.sh: New file.
2927         * tests/test-wcrtomb-w32-5.sh: New file.
2928         * tests/test-wcrtomb-w32.c: New file.
2929         * modules/wcrtomb-tests (Files): Add them.
2930         (Makefile.am): Arrange to run these tests.
2931         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2932         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2933
2934 2011-02-20  Bruno Haible  <bruno@clisp.org>
2935
2936         wcrtomb: Enhance test.
2937         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2938
2939 2011-02-20  Bruno Haible  <bruno@clisp.org>
2940
2941         mbrtowc: Tiny optimization.
2942         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2943
2944 2011-02-20  Jim Meyering  <meyering@redhat.com>
2945
2946         test-exclude.c: remove unmatched #endif
2947         * tests/test-exclude.c: Remove stray #endif, left over from
2948         the change of a week ago.
2949
2950 2011-02-19  Jim Meyering  <meyering@redhat.com>
2951
2952         git-version-gen: skip "-dirty" check when appropriate
2953         * build-aux/git-version-gen: Don't run any git commands when the
2954         version string comes from .tarball-version.  Prior to this, we
2955         would run git update-index --refresh even from a just-unpacked
2956         tarball directory, and that could affect a .git/ directory in a
2957         parent of the build directory.  Reported by Mike Frysinger.
2958
2959 2011-02-19  Bruno Haible  <bruno@clisp.org>
2960
2961         unictype/property-byname: Reduce the size of the 'data' segment.
2962         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2963
2964 2011-02-19  Bruno Haible  <bruno@clisp.org>
2965
2966         unictype/scripts: Reduce the size of the 'data' segment.
2967         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2968         '%pic'.
2969         * lib/unictype/scripts_byname.gperf: Regenerated.
2970
2971 2011-02-19  Bruno Haible  <bruno@clisp.org>
2972
2973         stdint: Update documentation.
2974         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2975
2976 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2977
2978         stdint: omit redundant check for wchar.h
2979         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2980         always tests whether wchar.h exists, so remove the now-redundant test.
2981
2982 2011-02-18  Bruno Haible  <bruno@clisp.org>
2983
2984         stdint: Cut dependency to module 'wchar'.
2985         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2986         include the necessary prerequisites.
2987         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2988         * modules/stdint (Depends-on): Remove wchar.
2989         (Makefile.am): Substitute HAVE_WCHAR_H.
2990         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2991
2992 2011-02-18  Eric Blake  <eblake@redhat.com>
2993
2994         longlong: skip, rather than fail, on cross-compilation
2995         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2996         when cross-compiling; regression from 2011-02-16.
2997
2998 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2999
3000         * NEWS: Mention 2011-02-08 change to stdlib.
3001
3002 2011-02-17  Bruno Haible  <bruno@clisp.org>
3003
3004         getloadavg: Add comments about platforms.
3005         * m4/getloadavg.m4: Add comment.
3006         * lib/getloadavg.c: Likewise.
3007
3008 2011-02-17  Bruno Haible  <bruno@clisp.org>
3009
3010         getloadavg: Fix link error on Solaris 2.6.
3011         * modules/getloadavg (Link): New section.
3012         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3013         linking test-getloadavg.
3014         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3015         getloadavg.
3016
3017 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3018
3019         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3020         It was 'int', but this doesn't match the IRIX 6.5 manual.
3021         Suggested by Bruno Haible in
3022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3023
3024 2011-02-17  Bruno Haible  <bruno@clisp.org>
3025
3026         havelib: Fix comments.
3027         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3028         change.
3029
3030 2011-02-17  Bruno Haible  <bruno@clisp.org>
3031
3032         havelib: Update config.rpath.
3033         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3034
3035 2011-02-17  Bruno Haible  <bruno@clisp.org>
3036
3037         getloadavg test: Add some plausibility checks.
3038         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3039         is improbable.
3040
3041 2011-02-16  Eric Blake  <eblake@redhat.com>
3042
3043         maintainer-makefile: make syntax-check a no-op from tarballs
3044         * top/maint.mk (no-vc-detected): New rule.
3045         (local-checks-available): Use it to avoid hanging if someone tries
3046         'make syntax-check' from a tarball.  Also append to any non-syntax
3047         checks already defined in cfg.mk.
3048
3049 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3050
3051         longlong: tune, particularly for common case of c99
3052
3053         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3054         or running anything if c99, or if unsigned long long int does not
3055         work.  In either case, we know the answer without further tests.
3056         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3057         it at most once, and use its results for both long long int and
3058         unsigned long long int.  This is more likely to be efficient in
3059         the common case where the program wants to check for both long
3060         long int and unsigned long long int.
3061         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3062         since the answer is already known.
3063
3064 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3065
3066         getloadavg: set errno
3067         * lib/getloadavg.c: Set errno when returning -1.  If no other
3068         error number looks appropriate, set it to ENOSYS if the getloadavg
3069         looks like it can't possibly ever work, ENOTSUP otherwise.
3070         Suggested by Bruno Haible in
3071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3072
3073         getloadavg: trim unused parts and speed up 'configure'
3074         * NEWS: Document this.
3075         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3076         always compiled if getloadavg is absent.
3077         Move test code to ...
3078         * tests/test-getloadavg.c: New file, containing previous
3079         contents of test from lib/getloadavg.c.  It also contains
3080         suggestions by Bruno Haible in
3081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3082         * modules/getloadavg-tests: New file.
3083         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3084         Do tests in the same order as they're needed for getloadavg.c.
3085         Omit setgid-related tests that generate symbols KMEM_GROUP,
3086         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3087         Do only the tests that are needed to see whether the system has
3088         getloadavg, moving the other tests into ...
3089         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3090         NLIST_NAME_UNION; nobody should be using it.  Do not define
3091         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3092         relevant, as the user of this module shouldn't care how getloadavg
3093         is implemented.
3094
3095         getloadavg: omit unused var
3096         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3097
3098 2011-02-15  Jim Meyering  <meyering@redhat.com>
3099
3100         doc: update users.txt
3101         * users.txt: Update iwhd's URL.
3102
3103 2011-02-13  Bruno Haible  <bruno@clisp.org>
3104
3105         Consistent macro naming for macros that use GCC __attribute__.
3106         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3107         _ATTRIBUTE_NONNULL_.
3108         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3109         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3110         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3111         ATTRIBUTE_DEPRECATED.
3112         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3113         ATTRIBUTE_NORETURN.
3114         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3115         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3116         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3117         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3118         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3119         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3120         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3121         ATTRIBUTE_SENTINEL.
3122         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3123         ATTRIBUTE_RETURN_CHECK.
3124         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3125         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3126         ATTRIBUTE_NORETURN.
3127         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3128         Reported by Paul Eggert.
3129
3130 2011-02-13  Bruno Haible  <bruno@clisp.org>
3131
3132         Don't interfere with a program's definition of __attribute__.
3133         * lib/argp.h (__attribute__): Remove definition.
3134         (_GL_ATTRIBUTE_FORMAT): New macro.
3135         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3136         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3137         (_GL_ATTRIBUTE_FORMAT): New macro.
3138         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3139         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3140         GCC 3 or newer.
3141         * lib/error.h (__attribute__): Remove definition.
3142         (_GL_ATTRIBUTE_FORMAT): New macro.
3143         (error, error_at_line): Use it.
3144         * lib/hash.h (__attribute__): Remove definition.
3145         (ATTRIBUTE_WUR): Update definition. Define always.
3146         * lib/openat.h (__attribute__): Remove definition.
3147         (ATTRIBUTE_NORETURN): Update definition. Define always.
3148         * lib/sigpipe-die.h (__attribute__): Remove definition.
3149         (ATTRIBUTE_NORETURN): Update definition. Define always.
3150         * lib/vasnprintf.h (__attribute__): Remove definition.
3151         (_GL_ATTRIBUTE_FORMAT): New macro.
3152         (asnprintf, vasnprintf): Use it.
3153         * lib/xalloc.h (__attribute__): Remove definition.
3154         (ATTRIBUTE_NORETURN): Update definition. Define always.
3155         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3156         * lib/xmemdup0.h (__attribute__): Remove definition.
3157         (ATTRIBUTE_NORETURN): Update definition. Define always.
3158         * lib/xprintf.h (__attribute__): Remove definition.
3159         (_GL_ATTRIBUTE_FORMAT): New macro.
3160         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3161         * lib/xstrtol.h (__attribute__): Remove definition.
3162         (ATTRIBUTE_NORETURN): Update definition. Define always.
3163         * lib/xvasprintf.h (__attribute__): Remove definition.
3164         (_GL_ATTRIBUTE_FORMAT): New macro.
3165         (xasprintf, xvasprintf): Use it.
3166         * tests/test-argmatch.c (__attribute__): Remove definition.
3167         (ATTRIBUTE_NORETURN): Update definition. Define always.
3168         * tests/test-exclude.c (__attribute__): Remove definition.
3169         (ATTRIBUTE_NORETURN): Update definition. Define always.
3170         Reported by Paul Eggert.
3171
3172 2011-02-13  Bruno Haible  <bruno@clisp.org>
3173
3174         mbrtowc: Add more tests for native Windows platforms.
3175         * tests/test-mbrtowc-w32-1.sh: New file.
3176         * tests/test-mbrtowc-w32-2.sh: New file.
3177         * tests/test-mbrtowc-w32-3.sh: New file.
3178         * tests/test-mbrtowc-w32-4.sh: New file.
3179         * tests/test-mbrtowc-w32-5.sh: New file.
3180         * tests/test-mbrtowc-w32.c: New file.
3181         * modules/mbrtowc-tests (Files): Add them.
3182         (Makefile.am): Arrange to run these tests.
3183         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3184         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3185
3186 2011-02-13  Bruno Haible  <bruno@clisp.org>
3187
3188         mbrtowc: Work around native Windows bug.
3189         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3190         guess when no suitable locale for testing was found.
3191         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3192
3193 2011-02-13  Bruno Haible  <bruno@clisp.org>
3194
3195         mbsinit: Work around mingw bug.
3196         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3197         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3198         Windows.
3199         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3200
3201 2011-02-13  Bruno Haible  <bruno@clisp.org>
3202
3203         mbsinit: Don't crash for a NULL argument.
3204         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3205         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3206
3207 2011-02-13  Bruno Haible  <bruno@clisp.org>
3208
3209         Don't interfere with a program's definition of __attribute__.
3210         * lib/stdio.in.h (__attribute__): Remove definition.
3211         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3212         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3213         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3214         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3215         * lib/string.in.h (__attribute__): Remove definition.
3216         Reported by Paul Eggert.
3217
3218 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3219
3220         stdlib: don't get in the way of non-GCC __attribute__
3221         See thread starting at
3222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3223         Revert previous stdlib change, installing the following instead:
3224         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3225         to get in the way of a non-GCC compiler that supports __attribute__.
3226         (_GL_ATTRIBUTE_RETURN): New macro.
3227         (_Exit): Use it instead of __attribute__.
3228
3229 2011-02-12  Bruno Haible  <bruno@clisp.org>
3230
3231         quotearg test: Avoid test failure on mingw.
3232         * tests/test-quotearg.sh: Convert the locale identifier from native
3233         Windows syntax to Unix syntax.
3234
3235 2011-02-12  Bruno Haible  <bruno@clisp.org>
3236
3237         setlocale: Prefer gnulib's override over libintl's override.
3238         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3239         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3240         GNULIB_defined_setlocale is set.
3241
3242 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3243
3244         stdlib: support non-GCC __attribute__
3245
3246         Fix a serious and tricky problem encountered when attempting to
3247         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3248         5.5, but it crashed due to memory corruption on Solaris 10 with
3249         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3250         bits that are otherwise zero.  This tagging is optional inside
3251         Emacs but is preferred and is used when __attribute__ ((__aligned
3252         (8))) works, as it does with both recent-enough GCC and with Sun C
3253         5.11.  However, Sun C 5.11 is not GCC and does not #define
3254         __GNUC__ and __GNUC_MINOR__.
3255
3256         When I added the getloadavg module to Emacs, it brought in
3257         stdlib.in.h, which contained this fragment:
3258
3259            #ifndef __attribute__
3260            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3261            #  define __attribute__(Spec)   /* empty */
3262            # endif
3263            #endif
3264
3265         When files that include <stdlib.h> were compiled with Sun C 5.11,
3266         the above code disabled __attribute__ ((__aligned (8))), which
3267         caused variables to not be properly aligned, which eventually led
3268         to the pointer corruption mentioned above.  (This was a bit hard
3269         to diagnose, unfortunately.)
3270
3271         Several "#define __attribute__(X) /* empty */" code snippets need
3272         to be eradicated from Gnulib to work with non-GCC compilers that
3273         support __attribute__.  The Autoconf way to do this is to test for
3274         each kind of attribute that we want support for, and selectively
3275         enable that in source code.
3276
3277         Fix this problem just for stdlib.h, by adding a test for the
3278         __noreturn__ attribute, and change stdlib.in.h to use that test
3279         when needed.  This technique can be easily generalized to the
3280         other *.in.h files and attributes, and a similar technique can be
3281         used for *.h and *.c files.  This patch is enough to solve the
3282         problem for Emacs + getloadavg, and I thought I'd publish it for
3283         feedback before undertaking further, similar fixes in other
3284         modules.
3285
3286         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3287         because it's not needed for stdlib.h.  It merely substitutes the
3288         value directly into stdlib.h.  We may well need to #define it, or
3289         similar symbols, for other modules, but it's nice to also have an
3290         option to not #define it for applications like Emacs that do not
3291         need it.
3292
3293         * lib/stdlib.in.h (__attribute__): Do not #define.
3294         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3295         be defined only if the _Exit module is also used.
3296         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3298         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3299         platforms.
3300         * modules/_Exit (Files): Add m4/attribute.m4.
3301         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3302         * m4/attribute.m4: New file.
3303
3304 2011-02-12  Bruno Haible  <bruno@clisp.org>
3305
3306         wcsrtombs: Work around bug on native Windows.
3307         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3308         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3309         instead of len.
3310         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3311
3312 2011-02-12  Bruno Haible  <bruno@clisp.org>
3313
3314         mbsrtowcs: Work around bug on native Windows.
3315         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3316         against mingw bug.
3317         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3318
3319 2011-02-12  Bruno Haible  <bruno@clisp.org>
3320
3321         Avoid setlocale bugs in tests.
3322         * modules/btowc (Dependencies): Add setlocale.
3323         * modules/c-strcase (Dependencies): Likewise.
3324         * modules/mbmemcasecmp (Dependencies): Likewise.
3325         * modules/mbmemcasecoll (Dependencies): Likewise.
3326         * modules/mbrtowc (Dependencies): Likewise.
3327         * modules/mbscasecmp (Dependencies): Likewise.
3328         * modules/mbscasestr (Dependencies): Likewise.
3329         * modules/mbschr (Dependencies): Likewise.
3330         * modules/mbscspn (Dependencies): Likewise.
3331         * modules/mbsinit (Dependencies): Likewise.
3332         * modules/mbsncasecmp (Dependencies): Likewise.
3333         * modules/mbsnrtowcs (Dependencies): Likewise.
3334         * modules/mbspbrk (Dependencies): Likewise.
3335         * modules/mbspcasecmp (Dependencies): Likewise.
3336         * modules/mbsrchr (Dependencies): Likewise.
3337         * modules/mbsrtowcs (Dependencies): Likewise.
3338         * modules/mbsspn (Dependencies): Likewise.
3339         * modules/mbsstr (Dependencies): Likewise.
3340         * modules/nl_langinfo (Dependencies): Likewise.
3341         * modules/quotearg (Dependencies): Likewise.
3342         * modules/unicase/locale-language (Dependencies): Likewise.
3343         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3344         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3345         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3346         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3347         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3348         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3349         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3350         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3351         * modules/vasnprintf-posix (Dependencies): Likewise.
3352         * modules/wcrtomb (Dependencies): Likewise.
3353         * modules/wcsnrtombs (Dependencies): Likewise.
3354         * modules/wcsrtombs (Dependencies): Likewise.
3355
3356 2011-02-12  Bruno Haible  <bruno@clisp.org>
3357
3358         setlocale: Workaround native Windows bug.
3359         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3360         succeeds but sets LC_CTYPE to "C", report a failure.
3361         * tests/test-setlocale2.sh: New file.
3362         * tests/test-setlocale2.c: New file.
3363         * modules/setlocale-tests (Files): Add the new files.
3364         (Makefile.am): Enable test-setlocale2.sh test.
3365         * doc/posix-functions/setlocale.texi: Mention workaround.
3366
3367 2011-02-11  Bruno Haible  <bruno@clisp.org>
3368
3369         Tests for module 'setlocale'.
3370         * modules/setlocale-tests: New file.
3371         * tests/test-setlocale1.sh: New file.
3372         * tests/test-setlocale1.c: New file.
3373
3374         New module 'setlocale'.
3375         * lib/locale.in.h (setlocale): New declaration.
3376         * lib/setlocale.c: New file, based on
3377         gettext/gettext-runtime/intl/setlocale.c.
3378         * m4/setlocale.m4: New file.
3379         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3380         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3381         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3382         REPLACE_SETLOCALE.
3383         * modules/setlocale: New file.
3384         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3385         * doc/posix-functions/setlocale.texi: Mention the new module.
3386
3387 2011-02-11  Bruno Haible  <bruno@clisp.org>
3388
3389         Prepare for locale dependent tests on mingw.
3390         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3391         because it has the wrong locale encoding.
3392         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3393         French_France.1252 instead of "fr".
3394         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3395         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3396         because it has the wrong locale encoding.
3397         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3398         native Windows, try Turkish_Turkey.65001.
3399         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3400         Chinese_China.54936.
3401
3402         Prepare for locale dependent tests on mingw.
3403         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3404         differently.
3405         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3406         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3407         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3408         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3409
3410 2011-02-11  Eric Blake  <eblake@redhat.com>
3411
3412         strptime: avoid compiler warnings
3413         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3414         compiler warnings about dead code.
3415         Reported by Daniel P. Berrange.
3416
3417 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3418
3419         doc: update users.txt
3420         * users.txt: Add rcs.
3421
3422 2011-02-10  John W. Eaton  <jwe@gnu.org>
3423
3424         doc: update users.txt
3425         * users.txt: Add octave.
3426
3427 2011-02-10  Jim Meyering  <meyering@redhat.com>
3428
3429         doc: update users.txt
3430         * users.txt: Add iwhd.
3431
3432 2011-02-09  Bruno Haible  <bruno@clisp.org>
3433
3434         gnulib-tool: Make copyright notice adjustment more robust.
3435         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3436         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3437         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3438         License".
3439         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3440
3441 2011-02-06  Bruno Haible  <bruno@clisp.org>
3442
3443         New module 'towctrans'.
3444         * modules/towctrans: New file.
3445         * lib/wctype.in.h (towctrans): New declaration.
3446         * lib/towctrans.c: New file.
3447         * lib/towctrans-impl.h: New file.
3448         * m4/towctrans.m4: New file.
3449         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3450         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3451         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3452         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3453         * doc/posix-functions/towctrans.texi: Mention the new module.
3454
3455 2011-02-06  Bruno Haible  <bruno@clisp.org>
3456
3457         New module 'wctrans'.
3458         * modules/wctrans: New file.
3459         * lib/wctype.in.h (wctrans): New declaration.
3460         * lib/wctrans.c: New file.
3461         * lib/wctrans-impl.h: New file.
3462         * m4/wctrans.m4: New file.
3463         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
3464         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
3465         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
3466         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
3467         * doc/posix-functions/wctrans.texi: Mention the new module.
3468
3469 2011-02-06  Bruno Haible  <bruno@clisp.org>
3470
3471         New module 'iswctype'.
3472         * modules/iswctype: New file.
3473         * lib/wctype.in.h (iswctype): New declaration.
3474         * lib/iswctype.c: New file.
3475         * lib/iswctype-impl.h: New file.
3476         * m4/iswctype.m4: New file.
3477         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
3478         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
3479         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
3480         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
3481         * doc/posix-functions/iswctype.texi: Mention the new module and the
3482         HP-UX 11.00 problem.
3483
3484 2011-02-06  Bruno Haible  <bruno@clisp.org>
3485
3486         New module 'wctype'.
3487         * modules/wctype: Change to represent the wctype() substitute.
3488         * lib/wctype.in.h (wctype): New declaration.
3489         * lib/wctype.c: New file.
3490         * lib/wctype-impl.h: New file.
3491         * m4/wctype.m4: New file.
3492         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
3493         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
3494         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
3495         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
3496         * doc/posix-functions/wctype.texi: Mention the new module and the
3497         HP-UX 11.00 problem.
3498
3499 2011-02-06  Bruno Haible  <bruno@clisp.org>
3500
3501         wctype-h: Ensure wctype_t and wctrans_t are defined.
3502         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
3503         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3504         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3505         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
3506         HAVE_WCTRANS_T.
3507         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
3508
3509 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3510
3511         flock: fix license typo
3512
3513         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
3514         omitted.
3515
3516 2011-02-08  Bruno Haible  <bruno@clisp.org>
3517
3518         Split large sed scripts, for HP-UX sed.
3519         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
3520         to avoid HP-UX limit of 99 commands, in the near future.
3521         * modules/stdlib (Makefile.am): Likewise.
3522         * modules/unistd (Makefile.am): Likewise.
3523         * modules/wchar (Makefile.am): Likewise.
3524         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3525         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
3526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
3527
3528 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3529             Bruno Haible  <bruno@clisp.org>
3530
3531         stdlib: improve random_r modularization
3532         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
3533         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
3534         you also need the random_r module to get this material right.
3535         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
3536         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
3537         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
3538
3539 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3540
3541         stdlib: don't depend on stdint
3542         * lib/stdlib.in.h: Don't include <stdint.h> merely because
3543         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
3544         be independent of whether stdint.h is needed.
3545         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
3546         here, instead of ...
3547         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
3548         struct random_data should be using the random_r module, not just
3549         the stdlib module (which wouldn't make sense: what package needs
3550         just struct random_data without also needing random_r?).
3551         * modules/stdlib (Depends-on): Remove stdint.
3552
3553         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
3554         See the thread rooted at
3555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
3556         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
3557         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
3558         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
3559         __VMS)); previously it was always included (via fcntl--.h).
3560         (getloadavg): Do not use c_strtod.  Instead, approximate it by
3561         hand; this is good enough for load averages.  Also, do not use
3562         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
3563         flags directly if available and don't bother otherwise.  (Packages
3564         that need the extra reliability should use the modules that define
3565         these flags on older platforms that lack them.)
3566         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
3567         fcntl-safer.
3568
3569 2011-02-08  Jim Meyering  <meyering@redhat.com>
3570
3571         di-set.h, ino-map.h: add multiple-inclusion guard
3572         Technically, the guard is required only for ino-map.h, due to its
3573         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
3574         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
3575         * lib/ino-map.h: Likewise.
3576
3577 2011-02-06  Bruno Haible  <bruno@clisp.org>
3578
3579         iswblank: Ensure declaration on glibc systems.
3580         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
3581         * modules/iswblank (Dependencies): Add 'extensions'.
3582         * doc/posix-functions/iswblank.texi: Document the glibc problem.
3583
3584 2011-02-06  Bruno Haible  <bruno@clisp.org>
3585
3586         New module 'iswblank'.
3587         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
3588         * modules/iswblank: New file.
3589         * modules/wctype-h (Files): Remove lib/iswblank.c.
3590         (Makefile.am): Substitute GNULIB_ISWBLANK.
3591         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
3592         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
3593         (gl_WCTYPE_H_DEFAULTS): New macro.
3594         (gl_WCTYPE_H): Require it. Remove iswblank related code.
3595         * modules/iswblank-tests: New file.
3596         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
3597         * tests/test-wctype-h.c (main): Remove iswblank tests.
3598         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
3599         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
3600         of 'wctype-h'.
3601         * NEWS: Mention the change.
3602         * modules/mbchar (Depends-on): Add iswblank.
3603
3604 2011-02-08  Bruno Haible  <bruno@clisp.org>
3605
3606         di-set tests: Refactor.
3607         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
3608         unnecessary includes.
3609         (ASSERT): Remove macro.
3610         (main): Make C90 compliant by avoiding variable declaration after
3611         statement.
3612         * modules/di-set-tests (Files): Add tests/macros.h.
3613
3614 2011-02-08  Bruno Haible  <bruno@clisp.org>
3615
3616         ino-map tests: Refactor.
3617         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
3618         unnecessary includes.
3619         (ASSERT): Remove macro.
3620         (main): Make C90 compliant by avoiding variable declaration after
3621         statement.
3622         * modules/ino-map-tests (Files): Add tests/macros.h.
3623
3624 2011-02-08  Jim Meyering  <meyering@redhat.com>
3625
3626         di-set: add "const" to a cast
3627         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
3628         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
3629
3630 2011-02-06  Bruno Haible  <bruno@clisp.org>
3631
3632         Rename module 'wctype' to 'wctype-h'.
3633         * modules/wctype-h: Renamed from modules/wctype.
3634         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
3635         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
3636         (Files, Depends-on, Makefile.am): Update.
3637         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
3638         (Files, Makefile.am): Update.
3639         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
3640         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
3641         * doc/posix-headers/wctype.texi: Update.
3642         * doc/posix-functions/iswalnum.texi: Update.
3643         * doc/posix-functions/iswalpha.texi: Update.
3644         * doc/posix-functions/iswblank.texi: Update.
3645         * doc/posix-functions/iswcntrl.texi: Update.
3646         * doc/posix-functions/iswdigit.texi: Update.
3647         * doc/posix-functions/iswgraph.texi: Update.
3648         * doc/posix-functions/iswlower.texi: Update.
3649         * doc/posix-functions/iswprint.texi: Update.
3650         * doc/posix-functions/iswpunct.texi: Update.
3651         * doc/posix-functions/iswspace.texi: Update.
3652         * doc/posix-functions/iswupper.texi: Update.
3653         * doc/posix-functions/iswxdigit.texi: Update.
3654         * doc/posix-functions/towlower.texi: Update.
3655         * doc/posix-functions/towupper.texi: Update.
3656         * NEWS: Mention the change.
3657         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
3658         * modules/mbchar (Dependencies): Likewise.
3659         * modules/mbswidth (Dependencies): Likewise.
3660         * modules/quotearg (Dependencies): Likewise.
3661         * modules/regex (Dependencies): Likewise.
3662         * modules/wcscasecmp (Dependencies): Likewise.
3663         * modules/wcsncasecmp (Dependencies): Likewise.
3664         * modules/wcwidth (Dependencies): Likewise.
3665
3666 2011-02-06  Bruno Haible  <bruno@clisp.org>
3667
3668         New module 'wcswidth'.
3669         * modules/wcswidth: New file.
3670         * lib/wchar.in.h (wcswidth): New declaration.
3671         * lib/wcswidth.c: New file.
3672         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
3673         * m4/wcswidth.m4: New file.
3674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
3675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
3676         REPLACE_WCSWIDTH.
3677         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
3678         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
3679         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
3680         * doc/posix-functions/wcswidth.texi: Mention the new module.
3681
3682 2011-02-06  Bruno Haible  <bruno@clisp.org>
3683
3684         New module 'wcstok'.
3685         * modules/wcstok: New file.
3686         * lib/wchar.in.h (wcstok): New declaration.
3687         * lib/wcstok.c: New file.
3688         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
3689         * m4/wcstok.m4: New file.
3690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
3691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
3692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
3693         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
3694         * doc/posix-functions/wcstok.texi: Mention the new module.
3695
3696 2011-02-06  Bruno Haible  <bruno@clisp.org>
3697
3698         New module 'wcsstr'.
3699         * modules/wcsstr: New file.
3700         * lib/wchar.in.h (wcsstr): New declaration.
3701         * lib/wcsstr.c: New file.
3702         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
3703         * m4/wcsstr.m4: New file.
3704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
3705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
3706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
3707         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
3708         * doc/posix-functions/wcsstr.texi: Mention the new module.
3709
3710 2011-02-06  Bruno Haible  <bruno@clisp.org>
3711
3712         New module 'wcspbrk'.
3713         * modules/wcspbrk: New file.
3714         * lib/wchar.in.h (wcspbrk): New declaration.
3715         * lib/wcspbrk.c: New file.
3716         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
3717         * m4/wcspbrk.m4: New file.
3718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
3719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
3720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
3721         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
3722         * doc/posix-functions/wcspbrk.texi: Mention the new module.
3723
3724 2011-02-06  Bruno Haible  <bruno@clisp.org>
3725
3726         New module 'wcsspn'.
3727         * modules/wcsspn: New file.
3728         * lib/wchar.in.h (wcsspn): New declaration.
3729         * lib/wcsspn.c: New file.
3730         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
3731         * m4/wcsspn.m4: New file.
3732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
3733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
3734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
3735         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
3736         * doc/posix-functions/wcsspn.texi: Mention the new module.
3737
3738 2011-02-06  Bruno Haible  <bruno@clisp.org>
3739
3740         New module 'wcscspn'.
3741         * modules/wcscspn: New file.
3742         * lib/wchar.in.h (wcscspn): New declaration.
3743         * lib/wcscspn.c: New file.
3744         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
3745         * m4/wcscspn.m4: New file.
3746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
3747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
3748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
3749         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
3750         * doc/posix-functions/wcscspn.texi: Mention the new module.
3751
3752 2011-02-06  Bruno Haible  <bruno@clisp.org>
3753
3754         New module 'wcsrchr'.
3755         * modules/wcsrchr: New file.
3756         * lib/wchar.in.h (wcsrchr): New declaration.
3757         * lib/wcsrchr.c: New file.
3758         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
3759         * m4/wcsrchr.m4: New file.
3760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
3761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
3762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
3763         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
3764         * doc/posix-functions/wcsrchr.texi: Mention the new module.
3765
3766 2011-02-06  Bruno Haible  <bruno@clisp.org>
3767
3768         New module 'wcschr'.
3769         * modules/wcschr: New file.
3770         * lib/wchar.in.h (wcschr): New declaration.
3771         * lib/wcschr.c: New file.
3772         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
3773         * m4/wcschr.m4: New file.
3774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
3775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
3776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
3777         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
3778         * doc/posix-functions/wcschr.texi: Mention the new module.
3779
3780 2011-02-06  Bruno Haible  <bruno@clisp.org>
3781
3782         New module 'wcsdup'.
3783         * modules/wcsdup: New file.
3784         * lib/wchar.in.h (wcsdup): New declaration.
3785         * lib/wcsdup.c: New file.
3786         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
3787         * m4/wcsdup.m4: New file.
3788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
3789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
3790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
3791         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
3792         * doc/posix-functions/wcsdup.texi: Mention the new module.
3793
3794 2011-02-06  Bruno Haible  <bruno@clisp.org>
3795
3796         New module 'wcsxfrm'.
3797         * modules/wcsxfrm: New file.
3798         * lib/wchar.in.h (wcsxfrm): New declaration.
3799         * lib/wcsxfrm.c: New file.
3800         * lib/wcsxfrm-impl.h: New file.
3801         * m4/wcsxfrm.m4: New file.
3802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3805         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3806         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3807
3808 2011-02-06  Bruno Haible  <bruno@clisp.org>
3809
3810         New module 'wcscoll'.
3811         * modules/wcscoll: New file.
3812         * lib/wchar.in.h (wcscoll): New declaration.
3813         * lib/wcscoll.c: New file.
3814         * lib/wcscoll-impl.h: New file.
3815         * m4/wcscoll.m4: New file.
3816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3819         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3820         * doc/posix-functions/wcscoll.texi: Mention the new module.
3821
3822 2011-02-06  Bruno Haible  <bruno@clisp.org>
3823
3824         New module 'wcsncasecmp'.
3825         * modules/wcsncasecmp: New file.
3826         * lib/wchar.in.h (wcsncasecmp): New declaration.
3827         * lib/wcsncasecmp.c: New file.
3828         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3829         * m4/wcsncasecmp.m4: New file.
3830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3833         HAVE_WCSNCASECMP.
3834         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3835         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3836
3837 2011-02-06  Bruno Haible  <bruno@clisp.org>
3838
3839         New module 'wcscasecmp'.
3840         * modules/wcscasecmp: New file.
3841         * lib/wchar.in.h (wcscasecmp): New declaration.
3842         * lib/wcscasecmp.c: New file.
3843         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3844         * m4/wcscasecmp.m4: New file.
3845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3847         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3848         HAVE_WCSCASECMP.
3849         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3850         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3851
3852 2011-02-05  Bruno Haible  <bruno@clisp.org>
3853
3854         New module 'wcsncmp'.
3855         * modules/wcsncmp: New file.
3856         * lib/wchar.in.h (wcsncmp): New declaration.
3857         * lib/wcsncmp.c: New file.
3858         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3859         * m4/wcsncmp.m4: New file.
3860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3863         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3864         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3865
3866 2011-02-05  Bruno Haible  <bruno@clisp.org>
3867
3868         New module 'wcscmp'.
3869         * modules/wcscmp: New file.
3870         * lib/wchar.in.h (wcscmp): New declaration.
3871         * lib/wcscmp.c: New file.
3872         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3873         * m4/wcscmp.m4: New file.
3874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3876         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3877         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3878         * doc/posix-functions/wcscmp.texi: Mention the new module.
3879
3880 2011-02-05  Bruno Haible  <bruno@clisp.org>
3881
3882         New module 'wcsncat'.
3883         * modules/wcsncat: New file.
3884         * lib/wchar.in.h (wcsncat): New declaration.
3885         * lib/wcsncat.c: New file.
3886         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3887         * m4/wcsncat.m4: New file.
3888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3891         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3892         * doc/posix-functions/wcsncat.texi: Mention the new module.
3893
3894 2011-02-05  Bruno Haible  <bruno@clisp.org>
3895
3896         New module 'wcscat'.
3897         * modules/wcscat: New file.
3898         * lib/wchar.in.h (wcscat): New declaration.
3899         * lib/wcscat.c: New file.
3900         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3901         * m4/wcscat.m4: New file.
3902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3904         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3905         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3906         * doc/posix-functions/wcscat.texi: Mention the new module.
3907
3908 2011-02-05  Bruno Haible  <bruno@clisp.org>
3909
3910         New module 'wcpncpy'.
3911         * modules/wcpncpy: New file.
3912         * lib/wchar.in.h (wcpncpy): New declaration.
3913         * lib/wcpncpy.c: New file.
3914         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3915         * m4/wcpncpy.m4: New file.
3916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3918         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3919         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3920         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3921
3922 2011-02-05  Bruno Haible  <bruno@clisp.org>
3923
3924         New module 'wcsncpy'.
3925         * modules/wcsncpy: New file.
3926         * lib/wchar.in.h (wcsncpy): New declaration.
3927         * lib/wcsncpy.c: New file.
3928         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3929         * m4/wcsncpy.m4: New file.
3930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3932         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3933         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3934         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3935
3936 2011-02-05  Bruno Haible  <bruno@clisp.org>
3937
3938         New module 'wcpcpy'.
3939         * modules/wcpcpy: New file.
3940         * lib/wchar.in.h (wcpcpy): New declaration.
3941         * lib/wcpcpy.c: New file.
3942         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3943         * m4/wcpcpy.m4: New file.
3944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3946         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3947         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3948         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3949
3950 2011-02-05  Bruno Haible  <bruno@clisp.org>
3951
3952         New module 'wcscpy'.
3953         * modules/wcscpy: New file.
3954         * lib/wchar.in.h (wcscpy): New declaration.
3955         * lib/wcscpy.c: New file.
3956         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3957         * m4/wcscpy.m4: New file.
3958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3960         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3961         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3962         * doc/posix-functions/wcscpy.texi: Mention the new module.
3963
3964 2011-02-05  Bruno Haible  <bruno@clisp.org>
3965
3966         New module 'wcsnlen'.
3967         * modules/wcsnlen: New file.
3968         * lib/wchar.in.h (wcsnlen): New declaration.
3969         * lib/wcsnlen.c: New file.
3970         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3971         * m4/wcsnlen.m4: New file.
3972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3974         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3975         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3976         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3977
3978 2011-02-05  Bruno Haible  <bruno@clisp.org>
3979
3980         New module 'wcslen'.
3981         * modules/wcslen: New file.
3982         * lib/wchar.in.h (wcslen): New declaration.
3983         * lib/wcslen.c: New file.
3984         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3985         * m4/wcslen.m4: New file.
3986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3988         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3989         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3990         * doc/posix-functions/wcslen.texi: Mention the new module.
3991
3992 2011-02-05  Bruno Haible  <bruno@clisp.org>
3993
3994         New module 'wmemset'.
3995         * modules/wmemset: New file.
3996         * lib/wchar.in.h (wmemset): New declaration.
3997         * lib/wmemset.c: New file.
3998         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3999         * m4/wmemset.m4: New file.
4000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4002         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4003         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4004         * doc/posix-functions/wmemset.texi: Mention the new module.
4005
4006 2011-02-05  Bruno Haible  <bruno@clisp.org>
4007
4008         New module 'wmemmove'.
4009         * modules/wmemmove: New file.
4010         * lib/wchar.in.h (wmemmove): New declaration.
4011         * lib/wmemmove.c: New file.
4012         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4013         * m4/wmemmove.m4: New file.
4014         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4015         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4016         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4017         HAVE_WMEMMOVE.
4018         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4019         * doc/posix-functions/wmemmove.texi: Mention the new module.
4020
4021 2011-02-05  Bruno Haible  <bruno@clisp.org>
4022
4023         New module 'wmemcpy'.
4024         * modules/wmemcpy: New file.
4025         * lib/wchar.in.h (wmemcpy): New declaration.
4026         * lib/wmemcpy.c: New file.
4027         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4028         * m4/wmemcpy.m4: New file.
4029         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4030         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4031         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4032         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4033         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4034
4035 2011-02-05  Bruno Haible  <bruno@clisp.org>
4036
4037         New module 'wmemcmp'.
4038         * modules/wmemcmp: New file.
4039         * lib/wchar.in.h (wmemcmp): New declaration.
4040         * lib/wmemcmp.c: New file.
4041         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4042         * m4/wmemcmp.m4: New file.
4043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4045         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4046         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4047         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4048
4049 2011-02-07  Jim Meyering  <meyering@redhat.com>
4050
4051         di-set, ino-map: new modules, from coreutils
4052         * lib/di-set.c: New file.
4053         * lib/di-set.h: Likewise.
4054         * lib/ino-map.c: Likewise.
4055         * lib/ino-map.h: Likewise.
4056         * modules/di-set: Likewise.
4057         * modules/di-set-tests: Likewise.
4058         * modules/ino-map: Likewise.
4059         * modules/ino-map-tests: Likewise.
4060         * tests/test-di-set.c: Likewise.
4061         * tests/test-ino-map.c: Likewise.
4062
4063 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4064
4065         getloadavg: merge minor changes from Emacs
4066
4067         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4068         (getloadavg): Use memset, not bzero.
4069
4070         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4071         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4072         clash (bug#86).
4073
4074 2010-11-14  Bruno Haible  <bruno@clisp.org>
4075
4076         Allow multiple gnulib generated replacements to coexist.
4077         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4078         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4079         * lib/langinfo.in.h (nl_item): Likewise.
4080         * lib/math.in.h (_NaN, NAN): Likewise.
4081         * lib/netdb.in.h (struct addrinfo): Likewise.
4082         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4083         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4084         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4085         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4086         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4087         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4088         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4089         pthread_mutexattr_init, pthread_mutexattr_settype,
4090         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4091         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4092         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4093         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4094         * lib/sched.in.h (struct sched_param): Likewise.
4095         * lib/se-selinux.in.h (security_class_t, security_context_t,
4096         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4097         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4098         lsetfilecon, fsetfilecon, security_check_context,
4099         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4100         Likewise.
4101         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4102         Likewise.
4103         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4104         _gl_function_taking_int_returning_void_t, union sigval,
4105         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4106         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4107         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4108         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4109         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4110         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4111         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4112         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4113         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4114         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4115         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4116         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4117         socklen_t, rpl_fd_isset): Likewise.
4118         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4119         * lib/sys_time.in.h (struct timeval): Likewise.
4120         * lib/sys_times.in.h (struct tms): Likewise.
4121         * lib/sys_utsname.in.h (struct utsname):
4122         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4123         * lib/unistd.in.h (getpagesize): Likewise.
4124         * lib/wchar.in.h (mbstate_t): Likewise.
4125         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4126         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4127         towlower, towupper): Likewise.
4128         Reported by Sam Steingold <sds@gnu.org>.
4129
4130 2011-02-05  Eric Blake  <eblake@redhat.com>
4131
4132         unsetenv: work around Haiku issues
4133         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4134         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4135
4136 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4137
4138         libposix: avoid calling error() within libposix
4139         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4140         is defined.
4141
4142 2011-02-05  Eric Blake  <eblake@redhat.com>
4143
4144         strerror_r-posix: port to cygwin
4145         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4146         implementation.
4147         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4148         * tests/test-strerror_r.c (main): Fix test.
4149         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4150         issue.
4151
4152 2011-02-05  Bruno Haible  <bruno@clisp.org>
4153
4154         New module 'wmemchr'.
4155         * modules/wmemchr: New file.
4156         * lib/wchar.in.h (wmemchr): New declaration.
4157         * lib/wmemchr.c: New file.
4158         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4159         * m4/wmemchr.m4: New file.
4160         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4161         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4162         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4163         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4164         * doc/posix-functions/wmemchr.texi: Mention the new module.
4165
4166 2011-02-04  Eric Blake  <eblake@redhat.com>
4167
4168         fdopendir: detect FreeBSD bug
4169         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4170         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4171
4172 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4173
4174         stdbool: do not define HAVE_STDBOOL_H
4175         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4176         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4177         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4178         imported from the latest Autoconf git.  It was motivated by Emacs,
4179         which uses gnulib but does not need HAVE_STDBOOL_H.
4180
4181 2011-02-04  Bruno Haible  <bruno@clisp.org>
4182
4183         wcsnrtombs: Prepare for new module wwcsnrtombs.
4184         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4185         * lib/wcsnrtombs.c: Include it.
4186         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4187
4188         wcsrtombs: Prepare for new module wwcsrtombs.
4189         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4190         * lib/wcsrtombs.c: Include it.
4191         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4192
4193         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4194         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4195         * lib/mbsnrtowcs.c: Include it.
4196         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4197
4198         mbsrtowcs: Prepare for new module mbsrtowwcs.
4199         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4200         * lib/mbsrtowcs.c: Include it.
4201         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4202
4203 2011-02-04  Bruno Haible  <bruno@clisp.org>
4204
4205         vasnprintf: Reduce use of malloc for small format strings.
4206         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4207         (arguments): Add room for the first 7 arguments.
4208         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4209         (char_directives, u8_directives, u16_directives, u32_directives): Add
4210         room for the first 7 directives.
4211         * lib/printf-parse.c: Include <string.h>.
4212         (PRINTF_PARSE): Change memory handling code so that it uses the first
4213         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4214         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4215         Reported by Pádraig Brady <P@draigbrady.com>.
4216
4217 2011-01-31  Eric Blake  <eblake@redhat.com>
4218
4219         dup2: work around Haiku bug
4220         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4221         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4222         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4223         * tests/test-dup2.c (main): Enhance test.
4224
4225 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4226
4227         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4228         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4229         declared by eglibc 2.11.2.
4230         * lib/stdio.in.h: Likewise.
4231
4232 2011-01-31  Eric Blake  <eblake@redhat.com>
4233
4234         ignore-value: add missing test dependency
4235         * tests/test-ignore-value.c: Revert previous change; stdio.h
4236         provides off_t.
4237         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4238
4239 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4240
4241         mktime: clarify long_int width checking
4242         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4243         the top level, to make it clearer that the assumption about
4244         long_int width is being checked.  See
4245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4246
4247 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4248
4249         ignore-value: Fix self-test.
4250         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4251
4252 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4253
4254         TYPE_MAXIMUM: avoid theoretically undefined behavior
4255         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4256         negative number, which the C Standard says has undefined behavior.
4257         In practice this is not a problem, but might as well do it by the book.
4258         Reported by Rich Felker and Eric Blake; see
4259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4260         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4261         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4263         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4264         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4265         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4266
4267         mktime: #undef mktime before #defining it
4268         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4269
4270         mktime: systematically normalize tm_isdst comparisons
4271         * lib/mktime.c (isdst_differ): New function.
4272         (__mktime_internal): Use it systematically for all isdst comparisons.
4273         This completes the fix for libc BZ #6723, and removes the need for
4274         normalizing tm_isdst.  See
4275         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4276         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4277
4278         mktime: fix some integer overflow issues and sidestep the rest
4279
4280         This was prompted by a bug report by Benjamin Lindner for MinGW
4281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4282         His bug is due to signed integer overflow (0 - INT_MIN), and I
4283         I scanned through mktime.c looking for other integer overflow
4284         problems, fixing all the bugs I found.
4285
4286         Although the C Standard says the resulting code is still not safe
4287         in the presence of integer overflow, in practice it should be good
4288         enough for all real-world two's-complement implementations, except
4289         for debugging environments that deliberately trap on integer
4290         overflow (e.g., gcc -ftrapv).
4291
4292         * lib/mktime.c (WRAPV): New macro.
4293         (SHR): Also check that long_int and time_t shift right in the
4294         usual way, before using the fast-but-unportable method.
4295         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4296         used.  The code already assumed two's complement, so there's
4297         no need to test for alternatives.  All uses removed.
4298         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4299         the C standard.  Problem reported by Rich Felker in
4300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4301         (twos_complement_arithmetic): Also check long_int and time_t.
4302         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4303         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4304         (__mktime_internal): Avoid integer overflow with unary subtraction
4305         in two instances where -1 - X is an adequate replacement for -X,
4306         since the calculations are approximate.
4307
4308 2011-01-29  Eric Blake  <eblake@redhat.com>
4309
4310         mktime: avoid infinite loop
4311         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4312         type; behavior is still undefined but portable to all known targets.
4313         Reported by Rich Felker.
4314
4315 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4316
4317         rename, unlink, same-inode: Relicense.
4318         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4319         * modules/unlink (License): Likewise.
4320         * modules/same-inode (License): Likewise.
4321
4322 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4323
4324         mktime: avoid problems on NetBSD 5 / i386
4325         * lib/mktime.c (long_int): New type.  This works around a problem
4326         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4327         but time_t is 64 bits, and where I expect the existing code is
4328         wrong in some cases.
4329         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4330         (ydhms_diff): Bring back the compile-time check for wide-enough
4331         year and yday.
4332
4333         mktime: fix misspelling in comment
4334         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4335         This merges all recent glibc changes of importance.
4336
4337 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4338
4339         move-if-change: cope with concurrent mv of identical file.
4340         * build-aux/move-if-change (CMPPROG): Accept environment
4341         variable as an override for `cmp'.
4342         (usage): Document CMPPROG.
4343         Adjust comparison to drop stdout.  Cope with failure of mv if
4344         the target file exists and is identical to the source, for
4345         parallel builds.
4346         Report from H.J. Lu against binutils in PR binutils/12283.
4347
4348 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4349
4350         * users.txt: Mention sharutils.
4351
4352 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4353
4354         * users.txt: Mention OATH Toolkit.
4355
4356 2011-01-27  Bruno Haible  <bruno@clisp.org>
4357
4358         Prepare for supporting FreeBSD 10.
4359         * build-aux/config.libpath: Remove handling of freebsd1*.
4360
4361 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4362
4363         Prepare for supporting FreeBSD 10.
4364         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4365         match FreeBSD 10.0.
4366
4367 2011-01-27  Bruno Haible  <bruno@clisp.org>
4368
4369         vma-iter, get-rusage-as: Add OpenBSD support.
4370         * modules/vma-iter (configure.ac): Test for mquery.
4371         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4372         * lib/vma-iter.c: Include <sys/mman.h>.
4373         (vma_iterate): Add an implementation based on mquery().
4374         * lib/resource-ext.h (get_rusage_as): Update comments.
4375         * lib/get-rusage-as.c: Likewise.
4376         * lib/get-rusage-data.c: Likewise.
4377
4378 2011-01-26  Karl Berry  <karl@gnu.org>
4379
4380         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4381         variables to make it easier to override the makeinfo program used.
4382
4383 2011-01-26  Eric Blake  <eblake@redhat.com>
4384
4385         fcntl: work around Haiku F_DUPFD bugs
4386         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4387         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4388         cloexec bit on duplication.
4389         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4390
4391 2011-01-26  Bruno Haible  <bruno@clisp.org>
4392
4393         Enable memory leak tests on AIX.
4394         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4395         * tests/test-fprintf-posix3.c (main): Likewise.
4396
4397 2011-01-26  Bruno Haible  <bruno@clisp.org>
4398
4399         Tests for module 'get-rusage-data'.
4400         * modules/get-rusage-data-tests: New file.
4401         * tests/test-get-rusage-data.c: New file.
4402
4403         New module 'get-rusage-data'.
4404         * lib/resource-ext.h (get_rusage_data): New declaration.
4405         * lib/get-rusage-data.c: New file.
4406         * modules/get-rusage-data: New file.
4407
4408 2011-01-25  Bruno Haible  <bruno@clisp.org>
4409
4410         get-rusage-as: Allow for easier testing.
4411         * lib/resource-ext.h (get_rusage_as): Add comment.
4412         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4413         (main): New function for interactive testing.
4414
4415 2011-01-25  Bruno Haible  <bruno@clisp.org>
4416
4417         vma-iter: Treat Haiku like BeOS.
4418         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4419         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4420
4421 2011-01-25  Eric Blake  <eblake@redhat.com>
4422
4423         c-stack: fix regression on cygwin when libsigsegv is present
4424         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4425
4426 2011-01-24  Bruno Haible  <bruno@clisp.org>
4427
4428         vma-iter: Avoid empty intervals.
4429         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4430         on an empty interval.
4431
4432 2011-01-24  Jim Meyering  <meyering@redhat.com>
4433
4434         u64: remove unnecessary #include
4435         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4436
4437 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4438
4439         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4440         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4441
4442 2011-01-23  Bruno Haible  <bruno@clisp.org>
4443
4444         New module 'vma-iter'.
4445         * lib/vma-iter.h: New file.
4446         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4447         * modules/vma-iter: New file.
4448         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4449         for get_rusage_as_via_iterator.
4450         (vma_iterate_callback): New function.
4451         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4452         * modules/get-rusage-as (Depends-on): Add vma-iter.
4453
4454 2011-01-23  Bruno Haible  <bruno@clisp.org>
4455
4456         uninorm: Tweak includes.
4457         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4458         Reported by Jim Meyering.
4459
4460 2011-01-23  Bruno Haible  <bruno@clisp.org>
4461
4462         get-rusage-as: Improve on NetBSD.
4463         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
4464         /proc, like on FreeBSD.
4465
4466 2011-01-23  Jim Meyering  <meyering@redhat.com>
4467
4468         xreadlink.h: remove unnecessary #include
4469         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
4470
4471         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
4472         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
4473
4474 2011-01-23  Bruno Haible  <bruno@clisp.org>
4475
4476         get-rusage-as: Fix bug.
4477         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
4478         original limit when aborting the first loop.
4479
4480 2011-01-23  Bruno Haible  <bruno@clisp.org>
4481
4482         wctype: Ensure valid C syntax.
4483         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
4484         unconditionally, instead of gl_NEXT_HEADERS conditionally.
4485
4486 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4487
4488         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
4489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
4490         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
4491         as they are needed only for configure's test case.
4492         This removes two unnecessary symbols from config.h.
4493
4494         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
4495         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
4496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
4497         AC_CHECK_HEADERS_ONCE on a header that we also invoke
4498         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
4499         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
4500         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
4501         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4502         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4503         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4504         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4505         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4506         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4507         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4508         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4509         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4510         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4511         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4512
4513 2011-01-21  Eric Blake  <eblake@redhat.com>
4514
4515         maintainer-makefile: work with older git for submodule check
4516         * top/maint.mk (public-submodule-commit): Rewrite to avoid
4517         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
4518         Reported by Matthias Bolte.
4519
4520         bootstrap: minor portability fixes
4521         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
4522         (usage): Omit leading capital and trailing . on help phrases, per
4523         GNU Coding Standards.
4524         (check_versions, top level): Prefix messages with script name.
4525
4526 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
4527
4528         bootstrap: support --no-git option
4529         * build-aux/bootstrap: Add --no-git option, to be used when
4530         --gnulib-srcdir points to the exact desired checkout.
4531
4532 2011-01-21  Eric Blake  <eblake@redhat.com>
4533
4534         strerror_r-posix: work with glibc 2.13
4535         * lib/strerror_r.c (strerror_r): Fix return type.
4536
4537 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4538             Bruno Haible  <bruno@clisp.org>
4539
4540         uN_strstr: New unit tests.
4541         * modules/unistr/u8-strstr-tests: New file.
4542         * modules/unistr/u16-strstr-tests: New file.
4543         * modules/unistr/u32-strstr-tests: New file.
4544         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
4545         * tests/unistr/test-u8-strstr.c: New file.
4546         * tests/unistr/test-u16-strstr.c: New file.
4547         * tests/unistr/test-u32-strstr.c: New file.
4548
4549 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4550             Bruno Haible  <bruno@clisp.org>
4551
4552         Make uN_strstr functions O(n) worst-case.
4553         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
4554         16-bit and 32-bit unit cases, use the unibyte algorithm from
4555         lib/mbsstr.c.
4556         * lib/unistr/u8-strstr.c: Include <string.h>.
4557         (UNIT_IS_UINT8_T): New macro.
4558         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
4559         (U_STRLEN, U_STRNLEN): New macros.
4560         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
4561         (U_STRLEN, U_STRNLEN): New macros.
4562         * modules/unistr/u8-strstr (Depends-on): Add strstr.
4563         (configure.ac): Update required libunistring version.
4564         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
4565         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
4566         malloca.
4567         (configure.ac): Update required libunistring version.
4568         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
4569         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
4570         malloca.
4571         (configure.ac): Update required libunistring version.
4572
4573 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4574             Bruno Haible  <bruno@clisp.org>
4575
4576         Prepare for faster uN_strstr functions.
4577         * lib/str-kmp.h: Support definable UNITs.
4578         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
4579         needle_len argument.
4580         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
4581         * lib/mbscasestr.c (mbscasestr): Likewise.
4582
4583 2011-01-21  Pádraig Brady <P@draigBrady.com>
4584
4585         malloca-tests: make faster by unsetting MALLOC_PERTURB_
4586         * tests/test-malloca.c (main): Unset the environment variable
4587         to greatly speed up the test.
4588         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
4589         * modules/malloca-tests: Depend on unsetenv.
4590
4591 2011-01-21  Pádraig Brady <P@draigBrady.com>
4592
4593         ignore-value: remove stdint dependency
4594         * lib/ignore-value.h: Remove <stdint.h>
4595         * modules/ignore-value: Remove stdint dependency.
4596
4597 2011-01-21  Jim Meyering  <meyering@redhat.com>
4598
4599         maint.mk: adjust variable name to be consistent with other gl_ vars
4600         * top/maint.mk (gl_public_submodule_commit): Rename the variable
4601         to be lower case.
4602
4603 2011-01-20  Jim Meyering  <meyering@redhat.com>
4604
4605         maint.mk: make "check" depend on public-submodule-commit by default
4606         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
4607
4608 2011-01-20  Bruno Haible  <bruno@clisp.org>
4609
4610         mbfile, mbiter: Complete change from 2008-12-21.
4611         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
4612         * m4/mbiter.m4 (gl_MBITER): Likewise.
4613
4614 2011-01-20  Jim Meyering  <meyering@redhat.com>
4615
4616         init.sh: insert space between each function name and "()"
4617         * tests/init.sh: Make it a little easier to see that a function's
4618         name is "warn_", and not "warn" when looking at the first part of
4619         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
4620
4621 2011-01-20  Jim Meyering  <meyering@redhat.com>
4622
4623         mountlist: clean up code formatting
4624         * lib/mountlist.c (read_file_system_list): Split a long line,
4625         correct bracing style, use NULL in place of "(struct statfs *)0",
4626         don't parenthesize return value, add spaces around "=" and after
4627         ";-in-for-stmt".
4628
4629 2011-01-14  Markus Duft <mduft@gentoo.org>
4630
4631         mountlist: add support for Interix
4632         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
4633         Apply statvfs to all entries of /dev/fs.
4634         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
4635         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
4636
4637 2011-01-20  Jim Meyering  <meyering@redhat.com>
4638
4639         maint.mk: improve the public-submodule-commit rule
4640         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
4641         to suppress printing of its commands... unless V=1.
4642         Add git submodule's --quiet option to suppress printing of e.g.,
4643         "Entering gnulib" output.
4644         "cd" into $(srcdir) before running git submodule.
4645
4646 2011-01-20  Bruno Haible  <bruno@clisp.org>
4647
4648         include_next: Fix bug introduced on 2011-01-18.
4649         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
4650         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
4651         ac_cv_header_... variable if the second argument is not 'check'.
4652         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
4653         gl_NEXT_HEADERS_INTERNAL.
4654
4655 2011-01-20  Bruno Haible  <bruno@clisp.org>
4656
4657         Allow the user to avoid the GNULIB_TEST_* macros.
4658         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
4659         Suggested by Paul Eggert.
4660
4661 2011-01-14  Jim Meyering  <meyering@redhat.com>
4662
4663         bootstrap: avoid failure when there is no .gitmodules file
4664         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
4665         has been assigned to, even when its value is the empty string.
4666         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
4667         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
4668         Reported by John W. Eaton <jwe@gnu.org>.
4669
4670 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4671
4672         assume <ctype.h>, ..., <time.h> exist
4673         For years gnulib has been assuming the existence of the headers
4674         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
4675         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
4676         them, since they don't appear to be needed.
4677         * README (Portability guidelines): Document this.
4678         * lib/flock.c: Assume <fcntl.h> exists.
4679         * lib/regex_internal.h: Assume <locale.h> exists.
4680         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
4681         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
4682         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
4683         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
4684         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
4685         * m4/regex.m4 (gl_REGEX): Likewise.
4686         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
4687         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
4688         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
4689         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
4690         * tests/test-argp.c: Likewise.
4691         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
4692
4693         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
4694         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
4695         AA_APPLE_UNIVERSAL_BUILD.  See
4696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
4697         * NEWS: Document this.
4698
4699 2011-01-19  Eric Blake  <eblake@redhat.com>
4700
4701         c-stack: assume stack overflow if SA_SIGINFO unsupported
4702         * lib/c-stack.c (SIGACTION_WORKS): Rename...
4703         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
4704         sigaction will work.
4705         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
4706         behavior match Linux.
4707         * tests/test-c-stack.c (main): Prefer NULL for pointers.
4708
4709         stdbool-tests: accomodate Haiku
4710         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
4711
4712         binary-io: fix O_TEXT on Haiku
4713         * modules/binary-io (Depends-on): Add fcntl-h.
4714         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
4715         than blindly undefining O_TEXT.
4716         Reported by Scott McCreary.
4717
4718 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4719
4720         include_next: do not check for standard headers like stddef.h
4721
4722         I found this problem when modifying Emacs to use gnulib.
4723         I noticed that it added HAVE_STDDEF_H to config.h, even though
4724         gnulib always assumes <stddef.h> exists as per README and this
4725         symbol is unnecessary.
4726         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
4727         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
4728         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
4729         faster for headers like stddef.h that are known to exist.
4730         (gl_CHECK_NEXT_HEADERS): Use it.
4731         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
4732         rather than gl_CHECK_NEXT_HEADERS.
4733         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
4734         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
4735
4736 2011-01-18  Eric Blake  <eblake@redhat.com>
4737
4738         ansi-c++-opt: skip C++ dependency style if C++ is unused
4739         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
4740         tests when we know C++ compilation is not desired.
4741         Reported by Scott McCreary.
4742
4743 2011-01-18  Bruno Haible  <bruno@clisp.org>
4744
4745         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
4746         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
4747         (main): Perform test also when getrlimit and setrlimit don't exist or
4748         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
4749         limiting the address space size using setrlimit, compare the address
4750         space size before and after the the test.
4751         * tests/test-dprintf-posix2.c: Likewise.
4752         * tests/test-fprintf-posix3.sh: Update skip messages.
4753         * tests/test-dprintf-posix2.sh: Likewise.
4754         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
4755         * modules/dprintf-posix-tests (Depends-on): Likewise.
4756         Reported by Bruce Korb <bkorb@gnu.org> and
4757         Gary V. Vaughan <gary@gnu.org>.
4758
4759 2011-01-18  Bruno Haible  <bruno@clisp.org>
4760
4761         get-rusage-as: Improvement for Cygwin.
4762         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
4763         areas that are merely reserved.
4764
4765 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4766
4767         strftime: remove dependencies on multibyte modules
4768
4769         strftime depended on mbrlen, mbsinit, and wchar, but these modules
4770         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
4771         only if __osf__ is defined, and I suspect OSF doesn't need these
4772         other modules.  If my guess is wrong, we'll need to come up with a
4773         variant of strftime that doesn't need the multibyte modules.
4774
4775         I discovered this problem when attempting modify Emacs to use the
4776         strftime module.  With the previous gnulib, this caused Emacs to
4777         need 31 new files, ranging from lib/config.charset to
4778         m4/wint_t.m4.  This was overkill and I expect would be offputting
4779         to the Emacs maintainers.  After this change, only 6 new files are
4780         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
4781         stdbool.m4, and tm_gmtoff.m4.
4782
4783         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
4784         Suggested by Bruno Haible in
4785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
4786         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
4787         and do not check for wchar.h.
4788         * modules/strftime (Files): Remove m4/mbstate_t.m4.
4789         (Depends-on): Remove mbrlen, mbsinit, wchar.
4790
4791 2011-01-18  Bruno Haible  <bruno@clisp.org>
4792
4793         Tests for module 'get-rusage-as'.
4794         * modules/get-rusage-as-tests: New file.
4795         * tests/test-get-rusage-as.c: New file.
4796
4797         New module 'get-rusage-as'.
4798         * modules/get-rusage-as: New file.
4799         * lib/resource-ext.h: New file.
4800         * lib/get-rusage-as.c: New file.
4801
4802 2011-01-17  Eric Blake  <eblake@redhat.com>
4803
4804         sigaction: relax license from LGPLv3+ to LGPLv2+
4805         * modules/sigaction (License): Relax to LGPLv2+.
4806
4807 2011-01-14  Bruno Haible  <bruno@clisp.org>
4808
4809         filemode: Make function declarations usable in C++ mode.
4810         * lib/filemode.h: Enclose function declarations in extern "C" block.
4811         Reported by John W. Eaton <jwe@gnu.org>.
4812
4813 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4814
4815         save-cwd: no longer include "xgetcwd.h"
4816         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4817         This avoids a compilation failure in projects that use save-cwd
4818         without also using the xgetcwd module.
4819
4820 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4821
4822         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4823         This is so that a program like Emacs, which needs only dtoastr,
4824         does not have to bother with distributing and compiling ftoastr
4825         and ldtoastr.
4826         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4827         * modules/dtoastr, modules/ldtoastr: New files.
4828         * modules/ftoastr: Now works just for 'float'.
4829         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4830         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4831         dtoastr.c, ldtoastr.c.
4832
4833 2011-01-11  Jim Meyering  <meyering@redhat.com>
4834
4835         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4836         There is no need to work around the lack of the fchdir function,
4837         since gnulib can now provide a replacement when required.
4838         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4839         * modules/save-cwd (Depends-on): Add fchdir.
4840
4841 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4842
4843         openat, save-cwd: avoid xmalloc
4844
4845         This removes a direct (but undocumented) dependency of openat on
4846         xalloc, along with an indirect dependency via save-cwd.  It also
4847         removes a dependency of save-cwd on xgetcwd, and thereby
4848         indirectly on xalloc.  This change causes the openat substitute
4849         to fall back on save_cwd when memory is tight, and for save_cwd to
4850         fail instead of dying when memory is tight, but that's good enough.
4851         Problem and initial idea for fix reported by Bastien Roucaries in
4852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4853
4854         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4855         xalloc.h (for xmalloc).
4856         (openat_proc_name): Use malloc, not xmalloc.
4857         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4858         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4859
4860         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4861         This avoids heap allocation for file names whose lengths are in
4862         the range 512..1023, with the upper bound increasing to at most
4863         4031 depending on the platform's PATH_MAX.  (We do not want
4864         pathmax.h here as it might supply a non-constant PATH_MAX.)
4865         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4866         Perhaps they should be moved to malloca.h?
4867         (OPENAT_BUFFER_SIZE): Use them.
4868
4869 2011-01-10  Bruno Haible  <bruno@clisp.org>
4870
4871         doc: Update users.txt.
4872         * users.txt: Add recutils.
4873
4874 2011-01-09  Karl Berry  <karl@gnu.org>
4875
4876         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4877
4878         * doc/configmake.texi: New file.
4879         * doc/gnulib.texi: Include it.
4880         * modules/configmake: Move documentation from here.
4881
4882 2011-01-09  Bruno Haible  <bruno@clisp.org>
4883
4884         Update to Unicode 6.0.0.
4885         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4886         (get_lbp): Update for Unicode 6.0.0.
4887         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4888         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4889         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4890         U+11001, U+11038..U+11046. Remove U+06DE.
4891         (uc_width): Fix bounds of planes.
4892         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4893         lib/uniwidth/width.c.
4894         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4895         trailing whitespace removed.
4896         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4897         without comments, but with the original copyright notice.
4898         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4899         * lib/unicase/ignorable.h: Likewise.
4900         * lib/unicase/tocasefold.h: Likewise.
4901         * lib/unicase/tolower.h: Likewise.
4902         * lib/unicase/totitle.h: Likewise.
4903         * lib/unicase/toupper.h: Likewise.
4904         * lib/unictype/bidi_of.h: Likewise.
4905         * lib/unictype/blocks.h: Likewise.
4906         * lib/unictype/categ_C.h: Likewise.
4907         * lib/unictype/categ_Cn.h: Likewise.
4908         * lib/unictype/categ_L.h: Likewise.
4909         * lib/unictype/categ_Ll.h: Likewise.
4910         * lib/unictype/categ_Lm.h: Likewise.
4911         * lib/unictype/categ_Lo.h: Likewise.
4912         * lib/unictype/categ_Lu.h: Likewise.
4913         * lib/unictype/categ_M.h: Likewise.
4914         * lib/unictype/categ_Mc.h: Likewise.
4915         * lib/unictype/categ_Me.h: Likewise.
4916         * lib/unictype/categ_Mn.h: Likewise.
4917         * lib/unictype/categ_N.h: Likewise.
4918         * lib/unictype/categ_Nd.h: Likewise.
4919         * lib/unictype/categ_No.h: Likewise.
4920         * lib/unictype/categ_P.h: Likewise.
4921         * lib/unictype/categ_Po.h: Likewise.
4922         * lib/unictype/categ_S.h: Likewise.
4923         * lib/unictype/categ_Sc.h: Likewise.
4924         * lib/unictype/categ_Sk.h: Likewise.
4925         * lib/unictype/categ_Sm.h: Likewise.
4926         * lib/unictype/categ_So.h: Likewise.
4927         * lib/unictype/categ_of.h: Likewise.
4928         * lib/unictype/combining.h: Likewise.
4929         * lib/unictype/ctype_alnum.h: Likewise.
4930         * lib/unictype/ctype_alpha.h: Likewise.
4931         * lib/unictype/ctype_graph.h: Likewise.
4932         * lib/unictype/ctype_lower.h: Likewise.
4933         * lib/unictype/ctype_print.h: Likewise.
4934         * lib/unictype/ctype_punct.h: Likewise.
4935         * lib/unictype/ctype_upper.h: Likewise.
4936         * lib/unictype/decdigit.h: Likewise.
4937         * lib/unictype/digit.h: Likewise.
4938         * lib/unictype/numeric.h: Likewise.
4939         * lib/unictype/pr_alphabetic.h: Likewise.
4940         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4941         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4942         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4943         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4944         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4945         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4946         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4947         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4948         * lib/unictype/pr_case_ignorable.h: Likewise.
4949         * lib/unictype/pr_cased.h: Likewise.
4950         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4951         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4952         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4953         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4954         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4955         * lib/unictype/pr_combining.h: Likewise.
4956         * lib/unictype/pr_composite.h: Likewise.
4957         * lib/unictype/pr_currency_symbol.h: Likewise.
4958         * lib/unictype/pr_decimal_digit.h: Likewise.
4959         * lib/unictype/pr_deprecated.h: Likewise.
4960         * lib/unictype/pr_format_control.h: Likewise.
4961         * lib/unictype/pr_grapheme_base.h: Likewise.
4962         * lib/unictype/pr_grapheme_extend.h: Likewise.
4963         * lib/unictype/pr_grapheme_link.h: Likewise.
4964         * lib/unictype/pr_id_continue.h: Likewise.
4965         * lib/unictype/pr_id_start.h: Likewise.
4966         * lib/unictype/pr_ideographic.h: Likewise.
4967         * lib/unictype/pr_lowercase.h: Likewise.
4968         * lib/unictype/pr_math.h: Likewise.
4969         * lib/unictype/pr_numeric.h: Likewise.
4970         * lib/unictype/pr_other_alphabetic.h: Likewise.
4971         * lib/unictype/pr_other_id_continue.h: Likewise.
4972         * lib/unictype/pr_other_math.h: Likewise.
4973         * lib/unictype/pr_punctuation.h: Likewise.
4974         * lib/unictype/pr_sentence_terminal.h: Likewise.
4975         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4976         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4977         * lib/unictype/pr_unified_ideograph.h: Likewise.
4978         * lib/unictype/pr_uppercase.h: Likewise.
4979         * lib/unictype/pr_xid_continue.h: Likewise.
4980         * lib/unictype/pr_xid_start.h: Likewise.
4981         * lib/unictype/scripts.h: Likewise.
4982         * lib/unictype/scripts_byname.gperf: Likewise.
4983         * lib/unictype/sy_java_ident.h: Likewise.
4984         * lib/unigbrk/gbrkprop.h: Likewise.
4985         * lib/unilbrk/lbrkprop1.h: Likewise.
4986         * lib/unilbrk/lbrkprop2.h: Likewise.
4987         * lib/uninorm/decomposition-table2.h: Likewise.
4988         * lib/uniwbrk/wbrkprop.h: Likewise.
4989         * tests/unicase/test-cased.c: Likewise.
4990         * tests/unicase/test-ignorable.c: Likewise.
4991         * tests/unicase/test-uc_tolower.c: Likewise.
4992         * tests/unicase/test-uc_totitle.c: Likewise.
4993         * tests/unicase/test-uc_toupper.c: Likewise.
4994         * tests/unictype/test-categ_C.c: Likewise.
4995         * tests/unictype/test-categ_Cn.c: Likewise.
4996         * tests/unictype/test-categ_L.c: Likewise.
4997         * tests/unictype/test-categ_Ll.c: Likewise.
4998         * tests/unictype/test-categ_Lm.c: Likewise.
4999         * tests/unictype/test-categ_Lo.c: Likewise.
5000         * tests/unictype/test-categ_Lu.c: Likewise.
5001         * tests/unictype/test-categ_M.c: Likewise.
5002         * tests/unictype/test-categ_Mc.c: Likewise.
5003         * tests/unictype/test-categ_Me.c: Likewise.
5004         * tests/unictype/test-categ_Mn.c: Likewise.
5005         * tests/unictype/test-categ_N.c: Likewise.
5006         * tests/unictype/test-categ_Nd.c: Likewise.
5007         * tests/unictype/test-categ_No.c: Likewise.
5008         * tests/unictype/test-categ_P.c: Likewise.
5009         * tests/unictype/test-categ_Po.c: Likewise.
5010         * tests/unictype/test-categ_S.c: Likewise.
5011         * tests/unictype/test-categ_Sc.c: Likewise.
5012         * tests/unictype/test-categ_Sk.c: Likewise.
5013         * tests/unictype/test-categ_Sm.c: Likewise.
5014         * tests/unictype/test-categ_So.c: Likewise.
5015         * tests/unictype/test-ctype_alnum.c: Likewise.
5016         * tests/unictype/test-ctype_alpha.c: Likewise.
5017         * tests/unictype/test-ctype_graph.c: Likewise.
5018         * tests/unictype/test-ctype_lower.c: Likewise.
5019         * tests/unictype/test-ctype_print.c: Likewise.
5020         * tests/unictype/test-ctype_punct.c: Likewise.
5021         * tests/unictype/test-ctype_upper.c: Likewise.
5022         * tests/unictype/test-decdigit.h: Likewise.
5023         * tests/unictype/test-digit.h: Likewise.
5024         * tests/unictype/test-numeric.h: Likewise.
5025         * tests/unictype/test-pr_alphabetic.c: Likewise.
5026         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5027         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5028         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5029         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5030         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5031         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5032         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5033         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5034         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5035         * tests/unictype/test-pr_cased.c: Likewise.
5036         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5037         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5038         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5039         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5040         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5041         * tests/unictype/test-pr_combining.c: Likewise.
5042         * tests/unictype/test-pr_composite.c: Likewise.
5043         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5044         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5045         * tests/unictype/test-pr_deprecated.c: Likewise.
5046         * tests/unictype/test-pr_format_control.c: Likewise.
5047         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5048         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5049         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5050         * tests/unictype/test-pr_id_continue.c: Likewise.
5051         * tests/unictype/test-pr_id_start.c: Likewise.
5052         * tests/unictype/test-pr_ideographic.c: Likewise.
5053         * tests/unictype/test-pr_lowercase.c: Likewise.
5054         * tests/unictype/test-pr_math.c: Likewise.
5055         * tests/unictype/test-pr_numeric.c: Likewise.
5056         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5057         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5058         * tests/unictype/test-pr_other_math.c: Likewise.
5059         * tests/unictype/test-pr_punctuation.c: Likewise.
5060         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5061         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5062         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5063         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5064         * tests/unictype/test-pr_uppercase.c: Likewise.
5065         * tests/unictype/test-pr_xid_continue.c: Likewise.
5066         * tests/unictype/test-pr_xid_start.c: Likewise.
5067         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5068         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5069         changes.
5070         * lib/unictype/categ_Cc.h: Likewise.
5071         * lib/unictype/categ_Cf.h: Likewise.
5072         * lib/unictype/categ_Co.h: Likewise.
5073         * lib/unictype/categ_Cs.h: Likewise.
5074         * lib/unictype/categ_Lt.h: Likewise.
5075         * lib/unictype/categ_Nl.h: Likewise.
5076         * lib/unictype/categ_Pc.h: Likewise.
5077         * lib/unictype/categ_Pd.h: Likewise.
5078         * lib/unictype/categ_Pe.h: Likewise.
5079         * lib/unictype/categ_Pf.h: Likewise.
5080         * lib/unictype/categ_Pi.h: Likewise.
5081         * lib/unictype/categ_Ps.h: Likewise.
5082         * lib/unictype/categ_Z.h: Likewise.
5083         * lib/unictype/categ_Zl.h: Likewise.
5084         * lib/unictype/categ_Zp.h: Likewise.
5085         * lib/unictype/categ_Zs.h: Likewise.
5086         * lib/unictype/ctype_blank.h: Likewise.
5087         * lib/unictype/ctype_cntrl.h: Likewise.
5088         * lib/unictype/ctype_digit.h: Likewise.
5089         * lib/unictype/ctype_space.h: Likewise.
5090         * lib/unictype/ctype_xdigit.h: Likewise.
5091         * lib/unictype/mirror.h: Likewise.
5092         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5093         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5094         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5095         * lib/unictype/pr_bidi_control.h: Likewise.
5096         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5097         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5098         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5099         * lib/unictype/pr_bidi_pdf.h: Likewise.
5100         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5101         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5102         * lib/unictype/pr_dash.h: Likewise.
5103         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5104         * lib/unictype/pr_diacritic.h: Likewise.
5105         * lib/unictype/pr_extender.h: Likewise.
5106         * lib/unictype/pr_hex_digit.h: Likewise.
5107         * lib/unictype/pr_hyphen.h: Likewise.
5108         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5109         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5110         * lib/unictype/pr_ignorable_control.h: Likewise.
5111         * lib/unictype/pr_iso_control.h: Likewise.
5112         * lib/unictype/pr_join_control.h: Likewise.
5113         * lib/unictype/pr_left_of_pair.h: Likewise.
5114         * lib/unictype/pr_line_separator.h: Likewise.
5115         * lib/unictype/pr_logical_order_exception.h: Likewise.
5116         * lib/unictype/pr_non_break.h: Likewise.
5117         * lib/unictype/pr_not_a_character.h: Likewise.
5118         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5119         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5120         * lib/unictype/pr_other_id_start.h: Likewise.
5121         * lib/unictype/pr_other_lowercase.h: Likewise.
5122         * lib/unictype/pr_other_uppercase.h: Likewise.
5123         * lib/unictype/pr_paired_punctuation.h: Likewise.
5124         * lib/unictype/pr_paragraph_separator.h: Likewise.
5125         * lib/unictype/pr_pattern_syntax.h: Likewise.
5126         * lib/unictype/pr_pattern_white_space.h: Likewise.
5127         * lib/unictype/pr_private_use.h: Likewise.
5128         * lib/unictype/pr_quotation_mark.h: Likewise.
5129         * lib/unictype/pr_radical.h: Likewise.
5130         * lib/unictype/pr_soft_dotted.h: Likewise.
5131         * lib/unictype/pr_space.h: Likewise.
5132         * lib/unictype/pr_titlecase.h: Likewise.
5133         * lib/unictype/pr_variation_selector.h: Likewise.
5134         * lib/unictype/pr_white_space.h: Likewise.
5135         * lib/unictype/pr_zero_width.h: Likewise.
5136         * lib/unictype/sy_c_ident.h: Likewise.
5137         * lib/unictype/sy_c_whitespace.h: Likewise.
5138         * lib/unictype/sy_java_whitespace.h: Likewise.
5139         * lib/uninorm/composition-table.gperf: Likewise.
5140         * lib/uninorm/decomposition-table1.h: Likewise.
5141         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5142         LB8.
5143         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5144         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5145         * modules/unictype/*: Bump version number of expected libunistring
5146         version.
5147
5148 2011-01-09  Bruno Haible  <bruno@clisp.org>
5149
5150         Update to Unicode 5.2.0.
5151         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5152         trailing whitespace removed.
5153
5154 2011-01-09  Bruno Haible  <bruno@clisp.org>
5155
5156         New Unicode character properties, from Unicode 5.2.0.
5157         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5158         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5159         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5160         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5161         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5162         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5163         uc_is_property_cased, uc_is_property_case_ignorable,
5164         uc_is_property_changes_when_lowercased,
5165         uc_is_property_changes_when_uppercased,
5166         uc_is_property_changes_when_titlecased,
5167         uc_is_property_changes_when_casefolded,
5168         uc_is_property_changes_when_casemapped): New declarations.
5169         * lib/unictype/pr_byname.gperf: Add the new properties.
5170         * modules/unictype/property-byname (Depends-on): Depend on the new
5171         properties modules.
5172         * modules/unictype/property-all (Depends-on): Likewise.
5173         * MODULES.html.sh (Unicode string functions): Add
5174         unictype/property-case-ignorable, unictype/property-cased,
5175         unictype/property-changes-when-casefolded,
5176         unictype/property-changes-when-casemapped,
5177         unictype/property-changes-when-lowercased,
5178         unictype/property-changes-when-titlecased,
5179         unictype/property-changes-when-uppercased.
5180
5181         New module 'unictype/property-changes-when-casemapped'.
5182         * modules/unictype/property-changes-when-casemapped: New file.
5183         * lib/unictype/pr_changes_when_casemapped.c: New file.
5184         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5185         generated by gen-uni-tables.
5186         * modules/unictype/property-changes-when-casemapped-tests: New file.
5187         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5188         automatically generated by gen-uni-tables.
5189
5190         New module 'unictype/property-changes-when-casefolded'.
5191         * modules/unictype/property-changes-when-casefolded: New file.
5192         * lib/unictype/pr_changes_when_casefolded.c: New file.
5193         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5194         generated by gen-uni-tables.
5195         * modules/unictype/property-changes-when-casefolded-tests: New file.
5196         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5197         automatically generated by gen-uni-tables.
5198
5199         New module 'unictype/property-changes-when-titlecased'.
5200         * modules/unictype/property-changes-when-titlecased: New file.
5201         * lib/unictype/pr_changes_when_titlecased.c: New file.
5202         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5203         generated by gen-uni-tables.
5204         * modules/unictype/property-changes-when-titlecased-tests: New file.
5205         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5206         automatically generated by gen-uni-tables.
5207
5208         New module 'unictype/property-changes-when-uppercased'.
5209         * modules/unictype/property-changes-when-uppercased: New file.
5210         * lib/unictype/pr_changes_when_uppercased.c: New file.
5211         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5212         generated by gen-uni-tables.
5213         * modules/unictype/property-changes-when-uppercased-tests: New file.
5214         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5215         automatically generated by gen-uni-tables.
5216
5217         New module 'unictype/property-changes-when-lowercased'.
5218         * modules/unictype/property-changes-when-lowercased: New file.
5219         * lib/unictype/pr_changes_when_lowercased.c: New file.
5220         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5221         generated by gen-uni-tables.
5222         * modules/unictype/property-changes-when-lowercased-tests: New file.
5223         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5224         automatically generated by gen-uni-tables.
5225
5226         New module 'unictype/property-case-ignorable'.
5227         * modules/unictype/property-case-ignorable: New file.
5228         * lib/unictype/pr_case_ignorable.c: New file.
5229         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5230         by gen-uni-tables.
5231         * modules/unictype/property-case-ignorable-tests: New file.
5232         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5233         generated by gen-uni-tables.
5234
5235         New module 'unictype/property-cased'.
5236         * modules/unictype/property-cased: New file.
5237         * lib/unictype/pr_cased.c: New file.
5238         * lib/unictype/pr_cased.h: New file, automatically generated by
5239         gen-uni-tables.
5240         * modules/unictype/property-cased-tests: New file.
5241         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5242         gen-uni-tables.
5243
5244 2011-01-09  Bruno Haible  <bruno@clisp.org>
5245
5246         Update to Unicode 5.2.0.
5247         * lib/gen-uni-tables.c (output_predicate, output_category,
5248         output_combclass, output_bidi_category, output_decimal_digit_test,
5249         output_decimal_digit, output_digit_test, output_digit,
5250         output_numeric_test, output_numeric, output_mirror, output_scripts,
5251         output_scripts_byname, output_blocks, output_ident_category): Fix
5252         comment header.
5253         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5254         get_wbp.
5255         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5256         items.
5257         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5258         Changes_When_Lowercased, Changes_When_Uppercased,
5259         Changes_When_Titlecased, Changes_When_Casefolded,
5260         Changes_When_Casemapped.
5261         (is_property_alphabetic, is_property_default_ignorable_code_point):
5262         Update for Unicode 5.2.0.
5263         (is_property_cased, is_property_case_ignorable,
5264         is_property_changes_when_lowercased,
5265         is_property_changes_when_uppercased,
5266         is_property_changes_when_titlecased,
5267         is_property_changes_when_casefolded,
5268         is_property_changes_when_casemapped): New functions.
5269         (output_properties): Output also the properties cased, case_ignorable,
5270         changes_when_lowercased, changes_when_uppercased,
5271         changes_when_titlecased, changes_when_casefolded,
5272         changes_when_casemapped.
5273         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5274         Unicode TR#11 revision 17 -> 19.
5275         (LBP_CP): New enumeration value.
5276         (LBP_*): Adjust values accordingly.
5277         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5278         TR#14 revision 22 -> 24.
5279         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5280         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5281         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5282         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5283         is_WBP_MIDLETTER.
5284         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5285         the code1 and code2 of each composition rule.
5286         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5287         * lib/unicase/ignorable.h: Likewise.
5288         * lib/unicase/tocasefold.h: Likewise.
5289         * lib/unicase/tolower.h: Likewise.
5290         * lib/unicase/totitle.h: Likewise.
5291         * lib/unicase/toupper.h: Likewise.
5292         * lib/unictype/bidi_of.h: Likewise.
5293         * lib/unictype/blocks.h: Likewise.
5294         * lib/unictype/categ_C.h: Likewise.
5295         * lib/unictype/categ_Cf.h: Likewise.
5296         * lib/unictype/categ_Cn.h: Likewise.
5297         * lib/unictype/categ_L.h: Likewise.
5298         * lib/unictype/categ_Ll.h: Likewise.
5299         * lib/unictype/categ_Lm.h: Likewise.
5300         * lib/unictype/categ_Lo.h: Likewise.
5301         * lib/unictype/categ_Lu.h: Likewise.
5302         * lib/unictype/categ_M.h: Likewise.
5303         * lib/unictype/categ_Mc.h: Likewise.
5304         * lib/unictype/categ_Mn.h: Likewise.
5305         * lib/unictype/categ_N.h: Likewise.
5306         * lib/unictype/categ_Nd.h: Likewise.
5307         * lib/unictype/categ_Nl.h: Likewise.
5308         * lib/unictype/categ_No.h: Likewise.
5309         * lib/unictype/categ_P.h: Likewise.
5310         * lib/unictype/categ_Pd.h: Likewise.
5311         * lib/unictype/categ_Po.h: Likewise.
5312         * lib/unictype/categ_S.h: Likewise.
5313         * lib/unictype/categ_Sc.h: Likewise.
5314         * lib/unictype/categ_So.h: Likewise.
5315         * lib/unictype/categ_of.h: Likewise.
5316         * lib/unictype/combining.h: Likewise.
5317         * lib/unictype/ctype_alnum.h: Likewise.
5318         * lib/unictype/ctype_alpha.h: Likewise.
5319         * lib/unictype/ctype_graph.h: Likewise.
5320         * lib/unictype/ctype_lower.h: Likewise.
5321         * lib/unictype/ctype_print.h: Likewise.
5322         * lib/unictype/ctype_punct.h: Likewise.
5323         * lib/unictype/ctype_upper.h: Likewise.
5324         * lib/unictype/decdigit.h: Likewise.
5325         * lib/unictype/digit.h: Likewise.
5326         * lib/unictype/numeric.h: Likewise.
5327         * lib/unictype/pr_alphabetic.h: Likewise.
5328         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5329         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5330         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5331         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5332         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5333         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5334         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5335         * lib/unictype/pr_combining.h: Likewise.
5336         * lib/unictype/pr_composite.h: Likewise.
5337         * lib/unictype/pr_currency_symbol.h: Likewise.
5338         * lib/unictype/pr_dash.h: Likewise.
5339         * lib/unictype/pr_decimal_digit.h: Likewise.
5340         * lib/unictype/pr_deprecated.h: Likewise.
5341         * lib/unictype/pr_diacritic.h: Likewise.
5342         * lib/unictype/pr_extender.h: Likewise.
5343         * lib/unictype/pr_grapheme_base.h: Likewise.
5344         * lib/unictype/pr_grapheme_extend.h: Likewise.
5345         * lib/unictype/pr_grapheme_link.h: Likewise.
5346         * lib/unictype/pr_id_continue.h: Likewise.
5347         * lib/unictype/pr_id_start.h: Likewise.
5348         * lib/unictype/pr_ideographic.h: Likewise.
5349         * lib/unictype/pr_ignorable_control.h: Likewise.
5350         * lib/unictype/pr_logical_order_exception.h: Likewise.
5351         * lib/unictype/pr_lowercase.h: Likewise.
5352         * lib/unictype/pr_numeric.h: Likewise.
5353         * lib/unictype/pr_other_alphabetic.h: Likewise.
5354         * lib/unictype/pr_punctuation.h: Likewise.
5355         * lib/unictype/pr_sentence_terminal.h: Likewise.
5356         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5357         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5358         * lib/unictype/pr_unified_ideograph.h: Likewise.
5359         * lib/unictype/pr_uppercase.h: Likewise.
5360         * lib/unictype/pr_xid_continue.h: Likewise.
5361         * lib/unictype/pr_xid_start.h: Likewise.
5362         * lib/unictype/pr_zero_width.h: Likewise.
5363         * lib/unictype/scripts.h: Likewise.
5364         * lib/unictype/scripts_byname.gperf: Likewise.
5365         * lib/unictype/sy_java_ident.h: Likewise.
5366         * lib/unigbrk/gbrkprop.h: Likewise.
5367         * lib/unilbrk/lbrkprop1.h: Likewise.
5368         * lib/unilbrk/lbrkprop2.h: Likewise.
5369         * lib/unilbrk/lbrktables.h: Likewise.
5370         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5371         LBP_CP. Implement rule LB30.
5372         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5373         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5374         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5375         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5376         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5377         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5378         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5379         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5380         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5381         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5382         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5383         bits instead of 16 bits in the code1 and code2 of each composition
5384         rule.
5385         (uc_composition): Update for Unicode 5.2.0.
5386         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5387         * lib/uninorm/decomposition-table2.h: Likewise.
5388         * lib/uniwbrk/wbrkprop.h: Likewise.
5389         * tests/unicase/test-cased.c: Likewise.
5390         * tests/unicase/test-ignorable.c: Likewise.
5391         * tests/unicase/test-uc_tolower.c: Likewise.
5392         * tests/unicase/test-uc_totitle.c: Likewise.
5393         * tests/unicase/test-uc_toupper.c: Likewise.
5394         * tests/unictype/test-categ_C.c: Likewise.
5395         * tests/unictype/test-categ_Cf.c: Likewise.
5396         * tests/unictype/test-categ_Cn.c: Likewise.
5397         * tests/unictype/test-categ_L.c: Likewise.
5398         * tests/unictype/test-categ_Ll.c: Likewise.
5399         * tests/unictype/test-categ_Lm.c: Likewise.
5400         * tests/unictype/test-categ_Lo.c: Likewise.
5401         * tests/unictype/test-categ_Lu.c: Likewise.
5402         * tests/unictype/test-categ_M.c: Likewise.
5403         * tests/unictype/test-categ_Mc.c: Likewise.
5404         * tests/unictype/test-categ_Mn.c: Likewise.
5405         * tests/unictype/test-categ_N.c: Likewise.
5406         * tests/unictype/test-categ_Nd.c: Likewise.
5407         * tests/unictype/test-categ_Nl.c: Likewise.
5408         * tests/unictype/test-categ_No.c: Likewise.
5409         * tests/unictype/test-categ_P.c: Likewise.
5410         * tests/unictype/test-categ_Pd.c: Likewise.
5411         * tests/unictype/test-categ_Po.c: Likewise.
5412         * tests/unictype/test-categ_S.c: Likewise.
5413         * tests/unictype/test-categ_Sc.c: Likewise.
5414         * tests/unictype/test-categ_So.c: Likewise.
5415         * tests/unictype/test-ctype_alnum.c: Likewise.
5416         * tests/unictype/test-ctype_alpha.c: Likewise.
5417         * tests/unictype/test-ctype_graph.c: Likewise.
5418         * tests/unictype/test-ctype_lower.c: Likewise.
5419         * tests/unictype/test-ctype_print.c: Likewise.
5420         * tests/unictype/test-ctype_punct.c: Likewise.
5421         * tests/unictype/test-ctype_upper.c: Likewise.
5422         * tests/unictype/test-decdigit.h: Likewise.
5423         * tests/unictype/test-digit.h: Likewise.
5424         * tests/unictype/test-numeric.h: Likewise.
5425         * tests/unictype/test-pr_alphabetic.c: Likewise.
5426         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5427         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5428         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5429         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5430         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5431         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5432         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5433         * tests/unictype/test-pr_combining.c: Likewise.
5434         * tests/unictype/test-pr_composite.c: Likewise.
5435         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5436         * tests/unictype/test-pr_dash.c: Likewise.
5437         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5438         * tests/unictype/test-pr_deprecated.c: Likewise.
5439         * tests/unictype/test-pr_diacritic.c: Likewise.
5440         * tests/unictype/test-pr_extender.c: Likewise.
5441         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5442         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5443         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5444         * tests/unictype/test-pr_id_continue.c: Likewise.
5445         * tests/unictype/test-pr_id_start.c: Likewise.
5446         * tests/unictype/test-pr_ideographic.c: Likewise.
5447         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5448         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5449         * tests/unictype/test-pr_lowercase.c: Likewise.
5450         * tests/unictype/test-pr_numeric.c: Likewise.
5451         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5452         * tests/unictype/test-pr_punctuation.c: Likewise.
5453         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5454         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5455         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5456         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5457         * tests/unictype/test-pr_uppercase.c: Likewise.
5458         * tests/unictype/test-pr_xid_continue.c: Likewise.
5459         * tests/unictype/test-pr_xid_start.c: Likewise.
5460         * tests/unictype/test-pr_zero_width.c: Likewise.
5461         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5462         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
5463         changed behaviour: line breaking is now disallowed between a letter
5464         or '=' and '('.
5465         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5466         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5467         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5468         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
5469         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5470         lib/uniwidth/width.c.
5471         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
5472         without comments, but with the original copyright notice.
5473         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5474         changes.
5475         * lib/unictype/categ_Cc.h: Likewise.
5476         * lib/unictype/categ_Co.h: Likewise.
5477         * lib/unictype/categ_Cs.h: Likewise.
5478         * lib/unictype/categ_Lt.h: Likewise.
5479         * lib/unictype/categ_Me.h: Likewise.
5480         * lib/unictype/categ_Pc.h: Likewise.
5481         * lib/unictype/categ_Pe.h: Likewise.
5482         * lib/unictype/categ_Pf.h: Likewise.
5483         * lib/unictype/categ_Pi.h: Likewise.
5484         * lib/unictype/categ_Ps.h: Likewise.
5485         * lib/unictype/categ_Sk.h: Likewise.
5486         * lib/unictype/categ_Sm.h: Likewise.
5487         * lib/unictype/categ_Z.h: Likewise.
5488         * lib/unictype/categ_Zl.h: Likewise.
5489         * lib/unictype/categ_Zp.h: Likewise.
5490         * lib/unictype/categ_Zs.h: Likewise.
5491         * lib/unictype/ctype_blank.h: Likewise.
5492         * lib/unictype/ctype_cntrl.h: Likewise.
5493         * lib/unictype/ctype_digit.h: Likewise.
5494         * lib/unictype/ctype_space.h: Likewise.
5495         * lib/unictype/ctype_xdigit.h: Likewise.
5496         * lib/unictype/mirror.h: Likewise.
5497         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5498         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5499         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5500         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5501         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5502         * lib/unictype/pr_bidi_control.h: Likewise.
5503         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5504         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5505         * lib/unictype/pr_bidi_pdf.h: Likewise.
5506         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5507         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5508         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5509         * lib/unictype/pr_format_control.h: Likewise.
5510         * lib/unictype/pr_hex_digit.h: Likewise.
5511         * lib/unictype/pr_hyphen.h: Likewise.
5512         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5513         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5514         * lib/unictype/pr_iso_control.h: Likewise.
5515         * lib/unictype/pr_join_control.h: Likewise.
5516         * lib/unictype/pr_left_of_pair.h: Likewise.
5517         * lib/unictype/pr_line_separator.h: Likewise.
5518         * lib/unictype/pr_math.h: Likewise.
5519         * lib/unictype/pr_non_break.h: Likewise.
5520         * lib/unictype/pr_not_a_character.h: Likewise.
5521         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5522         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5523         * lib/unictype/pr_other_id_continue.h: Likewise.
5524         * lib/unictype/pr_other_id_start.h: Likewise.
5525         * lib/unictype/pr_other_lowercase.h: Likewise.
5526         * lib/unictype/pr_other_math.h: Likewise.
5527         * lib/unictype/pr_other_uppercase.h: Likewise.
5528         * lib/unictype/pr_paired_punctuation.h: Likewise.
5529         * lib/unictype/pr_paragraph_separator.h: Likewise.
5530         * lib/unictype/pr_pattern_syntax.h: Likewise.
5531         * lib/unictype/pr_pattern_white_space.h: Likewise.
5532         * lib/unictype/pr_private_use.h: Likewise.
5533         * lib/unictype/pr_quotation_mark.h: Likewise.
5534         * lib/unictype/pr_radical.h: Likewise.
5535         * lib/unictype/pr_soft_dotted.h: Likewise.
5536         * lib/unictype/pr_space.h: Likewise.
5537         * lib/unictype/pr_titlecase.h: Likewise.
5538         * lib/unictype/pr_variation_selector.h: Likewise.
5539         * lib/unictype/pr_white_space.h: Likewise.
5540         * lib/unictype/sy_c_ident.h: Likewise.
5541         * lib/unictype/sy_c_whitespace.h: Likewise.
5542         * lib/unictype/sy_java_whitespace.h: Likewise.
5543         * modules/uni*/*: Bump version number of expected libunistring version.
5544         Reported by Simon Josefsson.
5545
5546 2011-01-09  Karl Heuer  <kwzh@gnu.org>
5547
5548         useless-if-before-free: fix typo in --help and make the internal,
5549         automatic version date update process work once again.
5550         --help output contained a NUL character instead of the
5551         backslash-zero that was intended.  Also, the "must lie within
5552         the first 8 lines" line is on line 9, and hence not getting
5553         automatically updated.
5554         * build-aux/useless-if-before-free: Fix the former by adding a
5555         backslash, and the latter by condensing the three lines of what-it-does
5556         to a single line, leaving one line of slack for the future.
5557
5558 2011-01-09  Bruno Haible  <bruno@clisp.org>
5559
5560         uniwidth/width: Fix width of U+1D173..U+1D17A.
5561         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
5562         symbolic_width, output_width_property_test): New functions.
5563         (main): Invoke output_nonspacing_property, output_width_property_test.
5564         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
5565         U+1D173..U+1D17A.
5566         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
5567         1.
5568         * modules/uniwidth/*: Bump version number of expected libunistring
5569         version.
5570         * modules/unilbrk/*: Likewise.
5571
5572 2011-01-08  Bruno Haible  <bruno@clisp.org>
5573
5574         uninorm tests: Preserve copyright of Unicode data file.
5575         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
5576         Mention modifications.
5577
5578 2011-01-08  Bruno Haible  <bruno@clisp.org>
5579
5580         gen-uni-tables: Prepare for Unicode 5.2.0.
5581         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
5582         (debug_output_lbp, output_lbp): Update.
5583
5584 2011-01-08  Bruno Haible  <bruno@clisp.org>
5585
5586         unilbrk: Clarify gen-uni-tables.c code.
5587         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
5588         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
5589         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
5590
5591 2011-01-07  Bruno Haible  <bruno@clisp.org>
5592
5593         strtod: Restore errno when successfully parsing Infinity or NaN.
5594         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
5595         restore the original errno.
5596
5597 2011-01-07  Bruno Haible  <bruno@clisp.org>
5598
5599         remove test: Avoid failure on HP-UX 11.
5600         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
5601
5602 2011-01-07  Bruno Haible  <bruno@clisp.org>
5603
5604         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
5605         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
5606         error code.
5607
5608 2011-01-07  Pádraig Brady <P@draigBrady.com>
5609
5610         ignore-value: fixup comments, and add Eric Blake
5611         as an author since he rewrote the macros.
5612         * lib/ignore-value.h (ignore_value):  State that
5613         we now support aggregates.  Also specify exactly
5614         when the GCC warn_unused_result feature was added.
5615
5616 2011-01-06  Eric Blake  <eblake@redhat.com>
5617
5618         ignore-value: support aggregate types
5619         * lib/ignore-value.h (ignore_value): Provide separate gcc
5620         definition.
5621         * modules/ignore-value-tests: New test module.
5622         * tests/test-ignore-value.c: New test.
5623
5624         maint.mk: improve sc_prohibit_strcmp regex
5625         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
5626         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
5627         definition of STRNEQ.
5628
5629         signal: work around Haiku issue with SIGBUS
5630         * lib/siglist.h: Add comment.
5631         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
5632         strsignal's favoring of SIGSEGV.
5633         * tests/test-signal.c (main): Avoid test failure.
5634         * doc/posix-headers/signal.texi (signal.h): Document the issue.
5635         Reported by Scott McCreary.
5636
5637         maint.mk: add pre-release check to ensure submodule commits are public
5638         * top/maint.mk (public-submodule-commit): New rule.
5639         (submodule-checks): New variable.
5640         (alpha beta stable): Depend on the variable.
5641
5642 2011-01-05  Pádraig Brady <P@draigBrady.com>
5643         and Jim Meyering  <meyering@redhat.com>
5644
5645         ignore-value: make ignore_value more generic; deprecate ignore_ptr
5646         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
5647         (ATTRIBUTE_DEPRECATED): Define.
5648         (_ignore_case): New function.
5649         (ignore_value): New macro, to replace the old function.
5650         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
5651         * modules/ignore-value (Depends-on): Add stdint.
5652
5653 2011-01-04  Eric Blake  <eblake@redhat.com>
5654
5655         doc: regenerate INSTALL
5656         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
5657         @firstparagraphindent support, now that autoconf dropped it.
5658         (INSTALL_PRELUDE): Reinstate old macro.
5659         * doc/install.texi: Resync from autoconf.
5660         * doc/INSTALL: Reflect recent autoconf update.
5661         * doc/INSTALL.ISO: Likewise.
5662         * doc/INSTALL.UTF-8: Likewise.
5663         Reported by Karl Berry.
5664
5665 2011-01-04  Bruce Korb  <address@hidden>
5666
5667         git-version-gen: avoid a sub-shell
5668         * build-aux/git-version-gen: Redirect stderr in `...` via
5669         "exec 2>...", rather than via an added sub-shell.
5670
5671 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
5672
5673         git-version-gen: use (...) rather than sh -c '...'
5674         * build-aux/git-version-gen: Rather than hard-coding a shell's name
5675         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
5676
5677 2011-01-03  Jim Meyering  <meyering@redhat.com>
5678
5679         git-version-gen: convert leading TABs to spaces
5680         * build-aux/git-version-gen: Expand leading TABs.
5681
5682         git-version-gen: handle failed "git rev-list"
5683         * build-aux/git-version-gen: Rather than leaking a "fatal" error
5684         from git and proceeding as if it had succeeded but printed no SHA1
5685         checksums, suppress the diagnostic and handle the failure.
5686         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
5687
5688         git-version-gen: include command name in one more diagnostic
5689         * build-aux/git-version-gen: When the required .tarball-version file
5690         was missing or unreadable, you might see the diagnostic from "cat",
5691         but no trace of the name of the invoking script.  Now, you still see
5692         the diagnostic from cat, but also get one from "git-version-gen: ".
5693         Inspired by a patch from Bruce Korb.
5694
5695         update-copyright: adjust test to match changed code
5696         * tests/test-update-copyright.sh: Change test's expected output
5697         to match new actual output.
5698
5699 2011-01-02  Bruno Haible  <bruno@clisp.org>
5700
5701         getlogin_r: Avoid test failure on HP-UX 11.
5702         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
5703         ERANGE when the second argument is zero.
5704         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
5705         portability problem.
5706
5707 2011-01-02  Bruce Korb  <bkorb@gnu.org>
5708
5709         * build-aux/update-copyright: doc Simon's changes
5710
5711 2011-01-02  Simon Josefsson  <simon@josefsson.org>
5712
5713         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
5714         environment variable.
5715
5716 2011-01-02  Bruno Haible  <bruno@clisp.org>
5717
5718         unigbrk: Avoid gcc warnings.
5719         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
5720         unused variable.
5721         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
5722         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
5723         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
5724         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
5725         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
5726         Change type of first argument to 'const char *'.
5727         (main): Remove unused variable.
5728         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
5729         type of first argument to 'const char *'.
5730         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
5731         Likewise.
5732         (main): Change type of variable 's'.
5733         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
5734         to 'int'.
5735
5736 2011-01-02  Bruno Haible  <bruno@clisp.org>
5737
5738         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
5739         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
5740         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
5741         bug.
5742         * lib/pwrite.c: Undo 2010-12-31 patch.
5743         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
5744
5745 2011-01-02  Bruno Haible  <bruno@clisp.org>
5746
5747         pread: Fix test whether it works.
5748         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
5749
5750 2011-01-02  Bruno Haible  <bruno@clisp.org>
5751
5752         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
5753         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
5754         ends in "6". Don't require a specific month name. Try also the locale
5755         names found on HP-UX 11 and Solaris 7.
5756
5757 2011-01-02  Bruno Haible  <bruno@clisp.org>
5758
5759         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
5760         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5761         C linkage.
5762         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
5763
5764 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5765
5766         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
5767         for consistency, since the "cluster" term is not used elsewhere.
5768         * lib/unigbrk.in.h: Update name.
5769         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
5770         * lib/unigbrk/u16-grapheme-next.c: Update name.
5771         * lib/unigbrk/u16-grapheme-prev.c: Update name.
5772         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
5773         * lib/unigbrk/u32-grapheme-next.c: Update name.
5774         * lib/unigbrk/u32-grapheme-prev.c: Update name.
5775         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
5776         * lib/unigbrk/u8-grapheme-next.c: Update name.
5777         * lib/unigbrk/u8-grapheme-prev.c: Update name.
5778         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
5779         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
5780         Suggested by Bruno Haible.
5781
5782 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5783
5784         Remove module 'u8-grapheme-len' as too redundant with
5785         'u8-grapheme-next'.
5786         * modules/unigbrk/u8-grapheme-len: Delete file.
5787         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
5788         * lib/unigbrk.in.h: Remove prototype for deleted function.
5789         * lib/unigbrk/u8-grapheme-len.c: Delete file.
5790         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
5791
5792         Remove module 'u16-grapheme-len' as too redundant with
5793         'u16-grapheme-next'.
5794         * modules/unigbrk/u16-grapheme-len: Delete file.
5795         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
5796         * lib/unigbrk.in.h: Remove prototype for deleted function.
5797         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5798         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5799
5800         Remove module 'u32-grapheme-len' as too redundant with
5801         'u32-grapheme-next'.
5802         * modules/unigbrk/u32-grapheme-len: Delete file.
5803         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5804         * lib/unigbrk.in.h: Remove prototype for deleted function.
5805         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5806         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5807
5808         Suggested by Bruno Haible.
5809
5810 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5811
5812         * unigbrk.in.h: Fix typo: "ben" => "been".
5813         Reported by Bruno Haible.
5814
5815 2011-01-01  Jim Meyering  <meyering@redhat.com>
5816
5817         maint: update almost all copyright ranges to include 2011
5818         Run the new "make update-copyright" rule.
5819
5820 2011-01-01  Jim Meyering  <meyering@redhat.com>
5821
5822         maint: update-copyright: exempt doc/INSTALL*
5823         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5824         since they are generated.  Suggested by Bruno Haible.
5825
5826 2011-01-01  Jim Meyering  <meyering@redhat.com>
5827
5828         maint: refine the update-copyright rule
5829         * Makefile (update-copyright): Also exclude any file that includes
5830         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5831         code that merely generates the comment.
5832
5833 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5834
5835         New module 'u8-grapheme-len'.
5836         * modules/unigbrk/u8-grapheme-len: New file.
5837         * modules/unigbrk/u8-grapheme-len-tests: New file.
5838         * lib/unigbrk.in.h: Add prototype for new function.
5839         * lib/unigbrk/u8-grapheme-len.c: New file.
5840         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5841
5842         New module 'u16-grapheme-len'.
5843         * modules/unigbrk/u16-grapheme-len: New file.
5844         * modules/unigbrk/u16-grapheme-len-tests: New file.
5845         * lib/unigbrk.in.h: Add prototype for new function.
5846         * lib/unigbrk/u16-grapheme-len.c: New file.
5847         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5848
5849         New module 'u32-grapheme-len'.
5850         * modules/unigbrk/u32-grapheme-len: New file.
5851         * modules/unigbrk/u32-grapheme-len-tests: New file.
5852         * lib/unigbrk.in.h: Add prototype for new function.
5853         * lib/unigbrk/u32-grapheme-len.c: New file.
5854         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5855
5856         New module 'u8-grapheme-next'.
5857         * modules/unigbrk/u8-grapheme-next: New file.
5858         * modules/unigbrk/u8-grapheme-next-tests: New file.
5859         * lib/unigbrk.in.h: Add prototype for new function.
5860         * lib/unigbrk/u8-grapheme-next.c: New file.
5861         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5862
5863         New module 'u16-grapheme-next'.
5864         * modules/unigbrk/u16-grapheme-next: New file.
5865         * modules/unigbrk/u16-grapheme-next-tests: New file.
5866         * lib/unigbrk.in.h: Add prototype for new function.
5867         * lib/unigbrk/u16-grapheme-next.c: New file.
5868         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5869
5870         New module 'u32-grapheme-next'.
5871         * modules/unigbrk/u32-grapheme-next: New file.
5872         * modules/unigbrk/u32-grapheme-next-tests: New file.
5873         * lib/unigbrk.in.h: Add prototype for new function.
5874         * lib/unigbrk/u32-grapheme-next.c: New file.
5875         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5876
5877         New module 'u8-grapheme-prev'.
5878         * modules/unigbrk/u8-grapheme-prev: New file.
5879         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5880         * lib/unigbrk.in.h: Add prototype for new function.
5881         * lib/unigbrk/u8-grapheme-prev.c: New file.
5882         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5883
5884         New module 'u16-grapheme-prev'.
5885         * modules/unigbrk/u16-grapheme-prev: New file.
5886         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5887         * lib/unigbrk.in.h: Add prototype for new function.
5888         * lib/unigbrk/u16-grapheme-prev.c: New file.
5889         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5890
5891         New module 'u32-grapheme-prev'.
5892         * modules/unigbrk/u32-grapheme-prev: New file.
5893         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5894         * lib/unigbrk.in.h: Add prototype for new function.
5895         * lib/unigbrk/u32-grapheme-prev.c: New file.
5896         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5897
5898         New module 'u8-grapheme-breaks'.
5899         * modules/unigbrk/u8-grapheme-breaks: New file.
5900         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5901         * lib/unigbrk.in.h: Add prototype for new function.
5902         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5903         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5904
5905         New module 'u16-grapheme-breaks'.
5906         * modules/unigbrk/u16-grapheme-breaks: New file.
5907         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5908         * lib/unigbrk.in.h: Add prototype for new function.
5909         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5910         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5911
5912         New module 'u32-grapheme-breaks'.
5913         * modules/unigbrk/u32-grapheme-breaks: New file.
5914         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5915         * lib/unigbrk.in.h: Add prototype for new function.
5916         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5917         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5918
5919         New module 'ulc-grapheme-breaks'.
5920         * modules/unigbrk/ulc-grapheme-breaks: New file.
5921         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5922         * m4/locale-ar.m4: New file.
5923         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5924         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5925         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5926
5927 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5928
5929         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5930         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5931         modified how this file was generated before I initially submitted
5932         the module, but failed to regenerate it.  This meant that several
5933         of the level2 entries were wrong.
5934         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5935         Remove the division-by-2 that is folded into the table now that
5936         gbrkprop.h has been regenerated properly.  Now -1 entries are
5937         handled correctly.
5938
5939         New module 'unigbrk/uc-gbrk-prop-tests'.
5940         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5941         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5942         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5943         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5944
5945 2011-01-01  Bruno Haible  <bruno@clisp.org>
5946
5947         Avoid use of hexadecimal escapes.
5948         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5949         instead of hexadecimal escapes.
5950
5951 2011-01-01  Jim Meyering  <meyering@redhat.com>
5952
5953         maint: new rule to update copyright year ranges
5954         * Makefile (update-copyright): New rule.
5955
5956         maint: indent with TABs in Makefile
5957         * Makefile: Expand leading sequences of spaces to TABs
5958
5959         version-etc: update the copyright year it reports
5960         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5961
5962 2010-12-31  Bruno Haible  <bruno@clisp.org>
5963
5964         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5965         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5966         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5967         zero.
5968
5969 2010-12-31  Bruno Haible  <bruno@clisp.org>
5970
5971         pwrite: Work around HP-UX 11.11 bug.
5972         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5973         works and set REPLACE_PWRITE if not.
5974         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5975         function.
5976         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5977
5978 2010-12-31  Bruno Haible  <bruno@clisp.org>
5979
5980         pread: Work around HP-UX 11 bugs.
5981         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5982         and set REPLACE_PREAD if not.
5983         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5984
5985 2010-12-31  Eric Blake  <eblake@redhat.com>
5986
5987         nl_langinfo: fix YESEXPR on Irix 6.5
5988         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5989         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5990         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5991         it.
5992
5993 2010-12-31  Bruno Haible  <bruno@clisp.org>
5994
5995         iconv: Document HP-UX 11 bug.
5996         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5997
5998 2010-12-31  Bruno Haible  <bruno@clisp.org>
5999
6000         ldexpl: Fix link error on HP-UX 11.
6001         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6002         LDEXPL_LIBM, using $ISNANL_LIBM.
6003
6004 2010-12-31  Eric Blake  <eblake@redhat.com>
6005
6006         ftello: avoid compilation failure with SunStudio c89
6007         * lib/ftello.c (ftello): Use lseek, not llseek.
6008
6009         tests: avoid failing coreutils tests on cygwin
6010         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6011         (create_exe_shims_): Return 0 when skipping.
6012
6013 2010-12-31  Bruno Haible  <bruno@clisp.org>
6014
6015         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6016         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6017
6018 2010-12-31  Bruno Haible  <bruno@clisp.org>
6019
6020         waitpid: Fix link error in C++ mode.
6021         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6022
6023 2010-12-31  Bruno Haible  <bruno@clisp.org>
6024
6025         isnan: Use GCC built-ins when possible.
6026         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6027         __builtin_isnan.
6028         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6029         (isnan): Define using GCC built-ins for GCC >= 4.0.
6030
6031 2010-12-31  Bruno Haible  <bruno@clisp.org>
6032
6033         isnand: Fix mistake.
6034         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6035         __builtin_isnand.
6036
6037 2010-12-31  Bruno Haible  <bruno@clisp.org>
6038
6039         open: Avoid C++ error on HP-UX 11.
6040         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6041
6042 2010-12-31  Bruno Haible  <bruno@clisp.org>
6043
6044         time_r: Add missing declarations on HP-UX 11.
6045         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6046         instead of HAVE_LOCALTIME_R.
6047         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6048         HAVE_LOCALTIME_R always.
6049         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6050         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6051         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6052         HAVE_LOCALTIME_R.
6053         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6054         * doc/posix-functions/localtime_r.texi: Likewise.
6055
6056 2010-12-29  Eric Blake  <eblake@redhat.com>
6057
6058         mountlist: tweak previous commit
6059         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6060         Reported by Paul Eggert.
6061
6062         mountlist: fix local drive detection on cygwin
6063         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6064         that works for cygwin.
6065
6066 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6067
6068         ftoastr, snprintf: ftoastr + snprintf module
6069         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6070         since the snprintf module now should be good enough here.
6071         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6072         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6073         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6074         GNULIB_SNPRINTF only for the test directory, and the latter
6075         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6076         seems to suffice by itself.
6077
6078 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6079
6080         alloca: one step towards thread-safety
6081         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6082         need for a static variable.  All callers changed.  This does not
6083         make the alloca replacement thread-safe, but it's one step.
6084
6085         tests: minor indenting change
6086         * tests/init.sh: Sync from coreutils housekeeping patch
6087         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6088         to keep lines within 80 columns.
6089
6090 2010-12-28  Jim Meyering  <meyering@redhat.com>
6091
6092         regex: don't infloop on persistent failing calloc
6093         * lib/regexec.c (build_trtable): Return failure indication upon
6094         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6095         In glibc, this was fixed for version 2.13:
6096         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6097
6098 2010-12-28  Bruno Haible  <bruno@clisp.org>
6099             Paul Eggert <eggert@cs.ucla.edu>
6100
6101         linkat: Make implementation robust against system behaviour variations.
6102         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6103         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6104         way, and to -2 if it needs a generic runtime test.
6105         * lib/linkat.c (solaris_optimized_link_immediate,
6106         solaris_optimized_link_follow): New functions.
6107         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6108         (check_same_link): Use it.
6109
6110 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6111
6112         New module 'unigbrk/base'.
6113         * modules/unigbrk/base: New file.
6114         * lib/unigbrk.in.h: New file.
6115
6116         New module 'unigbrk/uc-gbrk-prop'.
6117         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6118         * modules/unigbrk/uc-gbrk-prop: New file.
6119         * lib/unigbrk/gbrkprop.h: New file.
6120         * lib/unigbrk/uc-gbrk-prop.c: New file.
6121
6122         New module 'unigbrk/uc-is-grapheme-break'.
6123         * modules/unigbrk/uc-is-grapheme-break: New file.
6124         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6125         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6126         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6127         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6128         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6129
6130         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6131
6132 2010-12-27  Bruno Haible  <bruno@clisp.org>
6133
6134         linkat test: Avoid failure on Solaris 11 2010-11.
6135         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6136
6137 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6138
6139         utimens: work around glibc rounding bug on more platforms
6140         * lib/utimens.c (fdutimens): Work around rounding bug even if
6141         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6142         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6143
6144 2010-12-27  Bruno Haible  <bruno@clisp.org>
6145
6146         select tests: Improve comments.
6147         * tests/test-select.c (do_select): Add comments.
6148
6149 2010-12-27  Bruno Haible  <bruno@clisp.org>
6150
6151         select tests: Safer way of handling timeout.
6152         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6153         at every invocation.
6154
6155 2010-12-27  Bruno Haible  <bruno@clisp.org>
6156
6157         select tests: Use 'bool' where appropriate.
6158         * tests/test-select.c (connect_to_socket): Change argument type to
6159         'bool'.
6160
6161 2010-12-27  Bruno Haible  <bruno@clisp.org>
6162
6163         select tests: Use existing modules.
6164         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6165         (configure.ac): Don't test for unistd.h.
6166         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6167         declared in <unistd.h>.
6168
6169 2010-12-27  Bruno Haible  <bruno@clisp.org>
6170
6171         mbrtowc: Work around a Solaris 7 bug.
6172         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6173         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6174         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6175         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6176         MBRTOWC_NULL_ARG1_BUG.
6177         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6178         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6179         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6180         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6181
6182 2010-12-27  Jim Meyering  <meyering@redhat.com>
6183
6184         read-file.c: tweak syntax
6185         * lib/read-file.c (fread_file): Remove space after "*" in function
6186         definitions.
6187
6188 2010-12-27  Bruno Haible  <bruno@clisp.org>
6189
6190         times test: Avoid gcc warnings on OSF/1.
6191         * tests/test-times.c (main): Cast printf arguments from clock_t to
6192         'long int'.
6193
6194 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6195
6196         utimens: work around glibc rounding bug on older Linux kernels
6197         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6198         on Linux with a glibc whose utimes might not work, then work
6199         around a longstanding glibc bug involving rounding rather than
6200         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6201         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6202
6203 2010-12-26  Bruno Haible  <bruno@clisp.org>
6204
6205         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6206         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6207         _GL_CXXALIAS_SYS.
6208         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6209
6210 2010-12-26  Bruno Haible  <bruno@clisp.org>
6211
6212         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6213         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6214         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6215         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6216         looking for the declaration.
6217         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6218         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6219         problem.
6220         * doc/posix-functions/inet_pton.texi: Likewise.
6221
6222 2010-12-26  Bruno Haible  <bruno@clisp.org>
6223
6224         arpa_inet: Use the common idioms with C++ support.
6225         * lib/arpa_inet.in.h: Include c++defs.h.
6226         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6227         support.
6228         * modules/arpa_inet (Depends-on): Add c++defs.
6229         (Makefile.am): Substitute the contents of c++defs.h.
6230         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6231         * modules/arpa_inet-c++-tests: New file.
6232         * tests/test-arpa_inet-c++.cc: New file.
6233
6234 2010-12-25  Bruno Haible  <bruno@clisp.org>
6235
6236         Fix more C++ link errors on Solaris 8.
6237         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6238         $(LIB_EACCESS).
6239         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6240         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6241         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6242         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6243         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6244
6245 2010-12-25  Bruno Haible  <bruno@clisp.org>
6246
6247         printf-posix: Fix link error when a non-GCC compiler is used.
6248         * lib/stdio.in.h (printf): When not using GCC, override printf
6249         correctly.
6250         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6251
6252 2010-12-25  Bruno Haible  <bruno@clisp.org>
6253
6254         strerror_r-posix: Update doc.
6255         * doc/posix-functions/strerror_r.texi: Update doc about the return
6256         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6257
6258 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6259
6260         utimens: simplify the logic of the previous change
6261         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6262         This should not affect whether the test succeeds or fails.
6263
6264         utimens: configure better on hosts with NFS clock skew
6265         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6266         uses the clock of the local host.  It might use the clock of the
6267         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6269
6270 2010-12-25  Bruno Haible  <bruno@clisp.org>
6271
6272         ptsname test: Avoid failure on Solaris.
6273         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6274         open a pseudo-terminal; don't use BSD-style ptys.
6275         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6276
6277 2010-12-25  Bruno Haible  <bruno@clisp.org>
6278
6279         ptsname: Avoid ERANGE failure on some systems.
6280         * lib/ptsname.c (buffer): Increase size.
6281
6282 2010-12-25  Bruno Haible  <bruno@clisp.org>
6283
6284         rename, renameat: Avoid test failures at NFS mounted locations.
6285         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6286         so that subsequent mkdir calls succeed.
6287
6288 2010-12-25  Bruno Haible  <bruno@clisp.org>
6289
6290         iswblank: Fix C++ link error on Solaris 8.
6291         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6292         _GL_FUNCDECL_SYS.
6293
6294 2010-12-25  Bruno Haible  <bruno@clisp.org>
6295
6296         unistd: Fix C++ link error on Solaris 8.
6297         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6298
6299 2010-12-25  Bruno Haible  <bruno@clisp.org>
6300
6301         readlink doc: Mention an old glibc bug.
6302         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6303
6304 2010-12-25  Bruno Haible  <bruno@clisp.org>
6305
6306         fcntl-h: Fix for use of C++ on glibc systems.
6307         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6308         also on glibc systems in C++ mode.
6309         Reported by Gary V. Vaughan <gary@gnu.org>.
6310
6311 2010-12-25  Bruno Haible  <bruno@clisp.org>
6312
6313         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6314         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6315
6316 2010-12-25  Bruno Haible  <bruno@clisp.org>
6317
6318         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6319         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6320         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6321         test whether truncl works according to ISO C 99 with IEC 60559.
6322         * m4/truncl-ieee.m4: New file.
6323         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6324         m4/signbit.m4.
6325         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6326
6327 2010-12-25  Bruno Haible  <bruno@clisp.org>
6328
6329         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6330         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6331         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6332         test whether ceill works according to ISO C 99 with IEC 60559.
6333         * m4/ceill-ieee.m4: New file.
6334         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6335         m4/signbit.m4.
6336         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6337
6338 2010-12-25  Bruno Haible  <bruno@clisp.org>
6339
6340         Ensure all prerequisites of <wchar.h> are included.
6341         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6342         before <wchar.h>.
6343         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6344         gl_MBRLEN_NUL_RETVAL): Likewise.
6345         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6346         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6347         AC_FUNC_MBRTOWC): Likewise.
6348         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6349         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6350         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6351         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6352         Likewise.
6353         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6354         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6355         (gl_WCHAR_H): Improve comments.
6356         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6357
6358 2010-12-25  Bruno Haible  <bruno@clisp.org>
6359
6360         strtok_r: Fix C syntax error in autoconf macro.
6361         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6362         characters in test program.
6363
6364 2010-12-24  Bruno Haible  <bruno@clisp.org>
6365
6366         ceil, trunc, round: Fix gcc warnings.
6367         * lib/ceil.c (MIN): Undefine before redefining.
6368         * lib/trunc.c (MIN): Likewise.
6369         * lib/round.c (MIN): Likewise.
6370         Include <math.h> first.
6371
6372 2010-12-24  Bruno Haible  <bruno@clisp.org>
6373
6374         select tests: Avoid failures on OSF/1 5.1.
6375         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6376         failure of closing the last socket; it may fail with ECONNRESET.
6377
6378 2010-12-24  Eric Blake  <eblake@redhat.com>
6379
6380         stdint: avoid HP-UX 10.20 preprocessor bug
6381         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6382         than #if.
6383         * tests/test-floor2.c (main): Likewise.
6384         Reported by Peter O'Gorman.
6385
6386         pipe: make obsoletion transition easier
6387         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6388         * modules/pipe (Files): Include revived file.
6389         (Include): Drop reference, to mirror getdate's behavior.
6390
6391 2010-12-24  Bruno Haible  <bruno@clisp.org>
6392
6393         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6394         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6395         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6396         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6397
6398 2010-12-24  Bruno Haible  <bruno@clisp.org>
6399
6400         gethostname: Ensure declaration on NonStop Kernel.
6401         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6402         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6403
6404 2010-12-24  Bruno Haible  <bruno@clisp.org>
6405
6406         sys_select: Ensure all necessary types on NonStop Kernel.
6407         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6408         include <sys/time.h>.
6409         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6410         NonStop Kernel.
6411         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6412
6413 2010-12-24  Bruno Haible  <bruno@clisp.org>
6414
6415         sys_select: Remove unneeded include.
6416         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6417         have <sys/select.h>.
6418
6419 2010-12-24  Bruno Haible  <bruno@clisp.org>
6420
6421         gethostname: Provide a fallback for HOST_NAME_MAX.
6422         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6423         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6424         instead.
6425         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6426
6427 2010-12-24  Bruno Haible  <bruno@clisp.org>
6428
6429         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6430         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6431         (SA_RESTART): Likewise.
6432         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6433
6434 2010-12-24  Bruno Haible  <bruno@clisp.org>
6435
6436         signal: Define NSIG.
6437         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6438         * tests/test-signal.c (nsig): New variable.
6439         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6440
6441 2010-12-24  Bruno Haible  <bruno@clisp.org>
6442
6443         rename, renameat: Avoid test failures on OSF/1 5.1.
6444         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6445         alternative error codes.
6446         * tests/test-renameat.c (main): Likewise.
6447
6448 2010-12-24  Bruno Haible  <bruno@clisp.org>
6449
6450         *printf: Detect large precisions bug on Solaris 10/SPARC.
6451         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6452         by Paul Eggert.
6453         * tests/test-snprintf-posix.h (test_function): Add this test code here
6454         too.
6455         * tests/test-sprintf-posix.h (test_function): Likewise.
6456         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6457         * tests/test-vasprintf-posix.c (test_function): Likewise.
6458         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6459         around by gnulib.
6460         * doc/posix-functions/printf.texi: Likewise.
6461         * doc/posix-functions/snprintf.texi: Likewise.
6462         * doc/posix-functions/sprintf.texi: Likewise.
6463         * doc/posix-functions/vfprintf.texi: Likewise.
6464         * doc/posix-functions/vprintf.texi: Likewise.
6465         * doc/posix-functions/vsnprintf.texi: Likewise.
6466         * doc/posix-functions/vsprintf.texi: Likewise.
6467         * doc/posix-functions/dprintf.texi: Undo last commit.
6468         * doc/posix-functions/vdprintf.texi: Likewise.
6469
6470 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6471
6472         tests: port test-fdutimensat.c to Solaris 8
6473         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
6474         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
6475         On Solaris 8, it fails with errno == ENOSYS, because there is no
6476         futimens (so it can't use the fd), and there is no lutimens (so it
6477         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
6478
6479         vsnprintf: make more consistent with snprintf; doc fixes
6480
6481         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6482         the byte count return problem was promoted from the snprintf-posix
6483         to the snprintf module.
6484         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6485         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
6486         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
6487         * tests/test-snprintf.c (main): Check the byte count returned.
6488         * tests/test-vsnprintf.c (main): Likewise.
6489
6490 2010-12-23  Eric Blake  <eblake@redhat.com>
6491
6492         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
6493         * modules/sigpipe (License): Relax license.
6494
6495 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6496
6497         doc: document Solaris printf bug with large float precisions
6498         * doc/posix-functions/dprintf.texi (dprintf):
6499         * doc/posix-functions/fprintf.texi (fprintf):
6500         * doc/posix-functions/printf.texi (printf):
6501         * doc/posix-functions/snprintf.texi (snprintf):
6502         * doc/posix-functions/sprintf.texi (sprintf):
6503         * doc/posix-functions/vdprintf.texi (vdprintf):
6504         * doc/posix-functions/vfprintf.texi (vfprintf):
6505         * doc/posix-functions/vprintf.texi (vprintf):
6506         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6507         * doc/posix-functions/vsprintf.texi (vsprintf):
6508         Mention that these functions mishandle large floating point
6509         precisions on Solaris 10.  The same bug is also present in Solaris
6510         8, and I assume earlier.  This causes "cd gnulib-tests; make
6511         check" to fail on Solaris 8 (and I assume, later) when building
6512         the latest coreutils, in test-vasprintf-posix's call to
6513         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
6514         the wide flavors (e.g., wprintf) so this patch just updates the
6515         documentation for the narrow ones.
6516
6517         test-posixtm.c: add two tests
6518         * tests/test-posixtm.c: Add two tests, to highlight the
6519         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
6520         around this bug; this is merely to document it.
6521
6522 2010-12-22  Bruno Haible  <bruno@clisp.org>
6523
6524         getlogin_r: Work around portability problem on OSF/1.
6525         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
6526         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
6527         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
6528         test for a truncated result.
6529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
6530         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
6531         * modules/getlogin_r (Depends-on): Add memchr.
6532         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
6533
6534 2010-12-22  Bruno Haible  <bruno@clisp.org>
6535
6536         ptsname: Avoid test failure on OSF/1 5.1.
6537         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
6538         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
6539         (same_slave): New function.
6540         (main): Use it to compare ptsname's result with the expected file name.
6541
6542 2010-12-22  Bruno Haible  <bruno@clisp.org>
6543
6544         Port extended stdio modules to HP NonStop Kernel.
6545         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
6546         macros.
6547         * lib/fbufmode.c: Update comments.
6548         * lib/fflush.c: Likewise.
6549         * lib/fpurge.c: Likewise.
6550         * lib/freadable.c: Likewise.
6551         * lib/freadahead.c: Likewise.
6552         * lib/freading.c: Likewise.
6553         * lib/freadptr.c: Likewise.
6554         * lib/freadseek.c: Likewise.
6555         * lib/fseeko.c: Likewise.
6556         * lib/fseterr.c: Likewise.
6557         * lib/fwritable.c: Likewise.
6558         * lib/fwriting.c: Likewise.
6559         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6560
6561 2010-12-22  Bruno Haible  <bruno@clisp.org>
6562
6563         ttyname_r: Work around bug on OSF/1 5.1.
6564         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
6565         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
6566         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
6567         present.
6568         * lib/ttyname_r.c (ttyname_r): Update comments.
6569
6570 2010-12-22  Bruno Haible  <bruno@clisp.org>
6571
6572         round: Implement result sign according to IEEE 754.
6573         * lib/round.c (MIN, MINUS_ZERO): New macros.
6574         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
6575         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
6576         * tests/test-round-ieee.c (main): Likewise.
6577         * tests/test-roundl-ieee.c (main): Likewise.
6578
6579         trunc: Implement result sign according to IEEE 754.
6580         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
6581         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
6582         * tests/test-trunc2.c: Include minus-zero.h.
6583         (MINUS_ZERO): New macro.
6584         (trunc_reference): Keep in sync with lib/trunc.c.
6585         * tests/test-truncf2.c: Include minus-zero.h.
6586         (MINUS_ZERO): New macro.
6587         (truncf_reference): Keep in sync with lib/trunc.c.
6588         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
6589         * tests/test-trunc-ieee.c (main): Likewise.
6590         * tests/test-truncl-ieee.c (main): Likewise.
6591
6592         ceil: Implement result sign according to IEEE 754.
6593         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
6594         (FUNC): Return -0.0 for -1 < x < 0.
6595         * tests/test-ceil2.c: Include minus-zero.h.
6596         (MINUS_ZERO): New macro.
6597         (ceil_reference): Keep in sync with lib/ceil.c.
6598         * tests/test-ceilf2.c: Include minus-zero.h.
6599         (MINUS_ZERO): New macro.
6600         (ceilf_reference): Keep in sync with lib/ceil.c.
6601         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
6602         * tests/test-ceil-ieee.c (main): Likewise.
6603         * tests/test-ceill-ieee.c (main): Likewise.
6604
6605         floor: Implement result sign according to IEEE 754.
6606         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
6607         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
6608         * tests/test-floorf2.c (floorf_reference): Likewise.
6609         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
6610         * tests/test-floor-ieee.c (main): Likewise.
6611         * tests/test-floorl-ieee.c (main): Likewise.
6612
6613 2010-12-22  Bruno Haible  <bruno@clisp.org>
6614
6615         getaddrinfo: Update doc.
6616         * doc/posix-functions/gai_strerror.texi: Return type is also different
6617         on AIX and HP-UX.
6618
6619 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6620
6621         getaddrinfo, inet_ntop: Update doc for Solaris.
6622         * doc/posix-functions/gai_strerror.texi: Return type is also an
6623         issue on Solaris 9 and earlier.
6624         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
6625         on Solaris 10 and earlier.
6626
6627 2010-12-21  Bruno Haible  <bruno@clisp.org>
6628
6629         New module 'roundl-ieee'.
6630         * modules/roundl-ieee: New file.
6631         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
6632         test whether roundl works according to ISO C 99 with IEC 60559.
6633         * m4/roundl-ieee.m4: New file.
6634         * modules/roundl-ieee-tests: New file.
6635         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
6636         * tests/test-roundl.c (main): Remove signbit tests.
6637         * modules/roundl-tests (Depends-on): Remove signbit.
6638         * doc/posix-functions/roundl.texi: Mention the new module.
6639
6640 2010-12-21  Bruno Haible  <bruno@clisp.org>
6641
6642         New module 'truncl-ieee'.
6643         * modules/truncl-ieee: New file.
6644         * modules/truncl-ieee-tests: New file.
6645         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
6646         * tests/test-truncl.c (main): Remove signbit tests.
6647         * modules/truncl-tests (Depends-on): Remove signbit.
6648         * doc/posix-functions/truncl.texi: Mention the new module.
6649
6650 2010-12-21  Bruno Haible  <bruno@clisp.org>
6651
6652         New module 'ceill-ieee'.
6653         * modules/ceill-ieee: New file.
6654         * modules/ceill-ieee-tests: New file.
6655         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
6656         * tests/test-ceill.c (main): Remove signbit tests.
6657         * modules/ceill-tests (Depends-on): Remove signbit.
6658         * doc/posix-functions/ceill.texi: Mention the new module.
6659
6660 2010-12-21  Bruno Haible  <bruno@clisp.org>
6661
6662         New module 'floorl-ieee'.
6663         * modules/floorl-ieee: New file.
6664         * modules/floorl-ieee-tests: New file.
6665         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
6666         * tests/test-floorl.c (main): Remove signbit tests.
6667         * modules/floorl-tests (Depends-on): Remove signbit.
6668         * doc/posix-functions/floorl.texi: Mention the new module.
6669
6670 2010-12-21  Bruno Haible  <bruno@clisp.org>
6671
6672         New module 'round-ieee'.
6673         * modules/round-ieee: New file.
6674         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
6675         whether round works according to ISO C 99 with IEC 60559.
6676         * m4/round-ieee.m4: New file.
6677         * modules/round-ieee-tests: New file.
6678         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
6679         * tests/test-round1.c (main): Remove signbit tests.
6680         * modules/round-tests (Depends-on): Remove 'signbit'.
6681         * doc/posix-functions/round.texi: Mention the new module.
6682
6683 2010-12-21  Bruno Haible  <bruno@clisp.org>
6684
6685         New module 'trunc-ieee'.
6686         * modules/trunc-ieee: New file.
6687         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
6688         whether trunc works according to ISO C 99 with IEC 60559.
6689         * m4/trunc-ieee.m4: New file.
6690         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
6691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
6692         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
6693         * modules/trunc-ieee-tests: New file.
6694         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
6695         * tests/test-trunc1.c (main): Remove signbit tests.
6696         * modules/trunc-tests (Depends-on): Remove 'signbit'.
6697         * doc/posix-functions/trunc.texi: Mention the new module.
6698
6699 2010-12-21  Bruno Haible  <bruno@clisp.org>
6700
6701         New module 'ceil-ieee'.
6702         * modules/ceil-ieee: New file.
6703         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
6704         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
6705         ISO C 99 with IEC 60559.
6706         * m4/ceil-ieee.m4: New file.
6707         * modules/ceil (Files): Add lib/ceil.c.
6708         (Depends-on): Add 'float'.
6709         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6710         * lib/math.in.h (ceil): New declaration.
6711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
6712         REPLACE_CEIL.
6713         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
6714         * modules/ceil-ieee-tests: New file.
6715         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
6716         * tests/test-math-c++.cc: Check the signature of 'ceil'.
6717         * doc/posix-functions/ceil.texi: Mention the new module.
6718
6719 2010-12-21  Bruno Haible  <bruno@clisp.org>
6720
6721         New module 'floor-ieee'.
6722         * modules/floor-ieee: New file.
6723         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
6724         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
6725         ISO C 99 with IEC 60559.
6726         * m4/floor-ieee.m4: New file.
6727         * modules/floor (Files): Add lib/floor.c.
6728         (Depends-on): Add 'float'.
6729         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6730         * lib/math.in.h (floor): New declaration.
6731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
6732         REPLACE_FLOOR.
6733         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
6734         * modules/floor-ieee-tests: New file.
6735         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
6736         * tests/test-math-c++.cc: Check the signature of 'floor'.
6737         * doc/posix-functions/floor.texi: Mention the new module.
6738
6739 2010-12-21  Bruno Haible  <bruno@clisp.org>
6740
6741         New module 'roundf-ieee'.
6742         * modules/roundf-ieee: New file.
6743         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
6744         test whether roundf works according to ISO C 99 with IEC 60559.
6745         * m4/roundf-ieee.m4: New file.
6746         * modules/roundf-ieee-tests: New file.
6747         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
6748         * tests/test-roundf1.c (main): Remove signbit tests.
6749         * modules/roundf-tests (Depends-on): Remove 'signbit'.
6750         * doc/posix-functions/roundf.texi: Mention the new module.
6751
6752 2010-12-21  Bruno Haible  <bruno@clisp.org>
6753
6754         New module 'truncf-ieee'.
6755         * modules/truncf-ieee: New file.
6756         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
6757         test whether truncf works according to ISO C 99 with IEC 60559.
6758         * m4/truncf-ieee.m4: New file.
6759         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
6760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
6761         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
6762         * modules/truncf-ieee-tests: New file.
6763         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
6764         * tests/test-truncf1.c (main): Remove signbit tests.
6765         * modules/truncf-tests (Depends-on): Remove 'signbit'.
6766         * doc/posix-functions/truncf.texi: Mention the new module.
6767
6768 2010-12-21  Bruno Haible  <bruno@clisp.org>
6769
6770         New module 'ceilf-ieee'.
6771         * modules/ceilf-ieee: New file.
6772         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
6773         test whether ceilf works according to ISO C 99 with IEC 60559.
6774         * m4/ceilf-ieee.m4: New file.
6775         * modules/ceilf-ieee-tests: New file.
6776         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
6777         * tests/test-ceilf1.c (main): Remove signbit tests.
6778         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
6779         * doc/posix-functions/ceilf.texi: Mention the new module.
6780
6781 2010-12-21  Bruno Haible  <bruno@clisp.org>
6782
6783         New module 'floorf-ieee'.
6784         * modules/floorf-ieee: New file.
6785         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
6786         test whether floorf works according to ISO C 99 with IEC 60559.
6787         * m4/floorf-ieee.m4: New file.
6788         * modules/floorf-ieee-tests: New file.
6789         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
6790         * tests/test-floorf1.c (main): Remove signbit tests.
6791         * modules/floorf-tests (Depends-on): Remove 'signbit'.
6792         * doc/posix-functions/floorf.texi: Mention the new module.
6793
6794 2010-12-21  Bruno Haible  <bruno@clisp.org>
6795
6796         Support for minus zero in autoconf macros.
6797         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6798         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6799         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6800         * tests/minus-zero.h: Update comments.
6801
6802 2010-12-21  Bruno Haible  <bruno@clisp.org>
6803
6804         Tests for module 'ceil'.
6805         * modules/ceil-tests: New file.
6806         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6807         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6808
6809 2010-12-21  Bruno Haible  <bruno@clisp.org>
6810
6811         Tests for module 'floor'.
6812         * modules/floor-tests: New file.
6813         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6814         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6815
6816 2010-12-21  Bruno Haible  <bruno@clisp.org>
6817
6818         math: Fix indentation.
6819         * lib/math.in.h (floorf): Fix indentation.
6820
6821 2010-12-21  Bruno Haible  <bruno@clisp.org>
6822
6823         Fix cross-compilation guesses on Solaris.
6824         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6825         not match "solaris2.10".
6826         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6827         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6828         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6829
6830 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6831
6832         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6833         This fixes a problem observed with the latest coreutils snapshot
6834         that caused a test to fail on Solaris 8.  src/csplit.c's call
6835         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6836         earlier, instead of returning the number of bytes that would have
6837         been generated; this causes csplit to incorrectly report memory
6838         exhaustion.
6839         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6840         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6841         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6842         comments to match.
6843         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6844         Fix typo in matching older versions of Solaris: "solaris2.10"
6845         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6846         only for guessing while cross-compiling.
6847         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6848
6849 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6850
6851         ftoastr: fix comment again
6852         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6853         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6854         Also, simplify example a bit by using flags = 0.
6855
6856 2010-12-20  Bruno Haible  <bruno@clisp.org>
6857
6858         round*, trunc*: Update documentation regarding glibc.
6859         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6860         * doc/posix-functions/round.texi: Likewise.
6861         * doc/posix-functions/roundl.texi: Likewise.
6862         * doc/posix-functions/truncf.texi: Likewise.
6863         * doc/posix-functions/trunc.texi: Likewise.
6864         * doc/posix-functions/truncl.texi: Likewise.
6865
6866 2010-12-20  Bruno Haible  <bruno@clisp.org>
6867
6868         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6869         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6870         * doc/posix-functions/round.texi: Likewise.
6871         * doc/posix-functions/roundl.texi: Likewise.
6872
6873 2010-12-20  Bruno Haible  <bruno@clisp.org>
6874
6875         ttyname_r: Add missing declaration on HP-UX 11.
6876         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6877         HAVE_TTYNAME_R.
6878         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6879         declared. Set HAVE_TTYNAME_R always.
6880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6881         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6882         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6883         HAVE_TTYNAME_R.
6884         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6885
6886 2010-12-20  Bruno Haible  <bruno@clisp.org>
6887
6888         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6889         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6890         * doc/posix-functions/getlogin_r.texi: Likewise.
6891         * tests/test-getlogin.c: Include <errno.h>.
6892         (main): Avoid test failure on HP-UX 11.11.
6893         * tests/test-getlogin_r.c (main): Likewise.
6894
6895 2010-12-20  Bruno Haible  <bruno@clisp.org>
6896
6897         getlogin_r: Add missing declaration on HP-UX 11.
6898         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6899         declared also when it exists as a function.
6900         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6901
6902 2010-12-20  Bruno Haible  <bruno@clisp.org>
6903
6904         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6905         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6906         through wcrtomb.
6907
6908 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6909
6910         ftoastr: fix comment
6911         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6912         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6913
6914 2010-12-19  Bruno Haible  <bruno@clisp.org>
6915
6916         isnan: Ensure it is a macro.
6917         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6918         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6919         Solaris.
6920
6921 2010-12-19  Bruno Haible  <bruno@clisp.org>
6922
6923         ldexpl test: Fix link error on OSF/1 5.1.
6924         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6925
6926 2010-12-19  Bruno Haible  <bruno@clisp.org>
6927
6928         wctype: Make it work in C++ mode on OSF/1 5.1.
6929         * lib/wctype.in.h (iswblank): Declare but not define here.
6930         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6931         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6932         * modules/wctype (Files): Add lib/iswblank.c.
6933
6934 2010-12-19  Bruno Haible  <bruno@clisp.org>
6935
6936         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6937         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6938         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6939
6940 2010-12-19  Bruno Haible  <bruno@clisp.org>
6941
6942         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6943         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6944         _POSIX_PII_SOCKET.
6945         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6946         * doc/posix-functions/recvfrom.texi: Likewise.
6947         * doc/posix-functions/send.texi: Likewise.
6948         * doc/posix-functions/sendto.texi: Likewise.
6949
6950 2010-12-19  Bruno Haible  <bruno@clisp.org>
6951
6952         tcgetsid: Add missing declaration on OSF/1 5.1.
6953         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6954         HAVE_TCGETSID.
6955         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6956         Don't set HAVE_TCGETSID.
6957         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6958         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6959         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6960         HAVE_TCGETSID.
6961         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6962
6963 2010-12-19  Bruno Haible  <bruno@clisp.org>
6964
6965         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6966         * lib/stdio.in.h: During the include_next statement, let recursive
6967         includes of this file include only the system header file.
6968
6969 2010-12-19  Bruno Haible  <bruno@clisp.org>
6970
6971         iconv_open: Fix regression from 2010-12-04.
6972         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6973         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6974
6975 2010-12-19  Bruno Haible  <bruno@clisp.org>
6976
6977         stdbool test: Avoid a gcc warning.
6978         * tests/test-stdbool.c (main): Fail if e1 is false.
6979         Reported by Jim Meyering.
6980
6981 2010-12-19  Jim Meyering  <meyering@redhat.com>
6982
6983         setenv: restore to working order
6984         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6985         mistakenly removed.
6986         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6987         HAVE_SETENV.
6988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6989         HAVE_SETENV.
6990
6991 2010-12-19  Bruno Haible  <bruno@clisp.org>
6992
6993         Document some different function declarations on OSF/1 5.1.
6994         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6995         * doc/posix-functions/inet_ntop.texi: Likewise.
6996         * doc/posix-functions/gethostname.texi: Likewise.
6997         * lib/unistd.in.h (gethostname): Update comment.
6998
6999 2010-12-19  Bruno Haible  <bruno@clisp.org>
7000
7001         doc: Mention vasprintf-posix module.
7002         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7003         the 'vasprintf-posix' module.
7004         * doc/glibc-functions/vasprintf.texi: Likewise.
7005
7006 2010-12-19  Bruno Haible  <bruno@clisp.org>
7007
7008         unsetenv: Add missing declaration on OSF/1 5.1.
7009         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7010         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7011         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7013         not HAVE_UNSETENV.
7014         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7015         HAVE_UNSETENV.
7016         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7017
7018 2010-12-19  Bruno Haible  <bruno@clisp.org>
7019
7020         setenv: Add missing declaration on OSF/1 5.1.
7021         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7022         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7023         declared. Don't set HAVE_SETENV.
7024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7025         not HAVE_SETENV.
7026         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7027         HAVE_SETENV.
7028         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7029
7030 2010-12-19  Bruno Haible  <bruno@clisp.org>
7031
7032         nl_langinfo tests: Avoid gcc warning.
7033         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7034
7035 2010-12-19  Bruno Haible  <bruno@clisp.org>
7036
7037         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7038         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7039         _GL_CXXALIAS_SYS.
7040
7041 2010-12-19  Bruno Haible  <bruno@clisp.org>
7042
7043         stdbool: Relax test.
7044         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7045         address to 'bool' work in static initializer, for compilers other than
7046         GCC.
7047
7048 2010-12-19  Bruno Haible  <bruno@clisp.org>
7049
7050         ftello: Add missing declaration on OSF/1 5.1.
7051         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7052         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7054         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7055         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7056
7057 2010-12-19  Bruno Haible  <bruno@clisp.org>
7058
7059         fseeko: Add missing declaration on OSF/1 5.1.
7060         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7061         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7063         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7064         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7065
7066 2010-12-19  Bruno Haible  <bruno@clisp.org>
7067
7068         fchdir: Add missing declaration on OSF/1 5.1.
7069         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7072         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7073         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7074
7075 2010-12-19  Bruno Haible  <bruno@clisp.org>
7076
7077         relocatable-prog-wrapper: Separate from relocatable-prog.
7078         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7079         uninstall-relocwrapper rule here.
7080         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7081         Reported by Ian Beckwith <ianb@erislabs.net>.
7082
7083 2010-12-19  Bruno Haible  <bruno@clisp.org>
7084
7085         unistr/u8-mbsnlen: Add missing dependency.
7086         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7087         Reported by Ian Beckwith <ianb@erislabs.net>.
7088
7089 2010-12-19  Bruno Haible  <bruno@clisp.org>
7090
7091         iconv: Make it possible again to use this module without 'iconv-h'.
7092         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7093         if it is not defined.
7094         Reported by Ian Beckwith <ianb@erislabs.net>.
7095
7096 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7097
7098         acl: port to Solaris 8 when copying from tmpfs to ufs
7099         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7100         error number.  Problem observed on Solaris 8 with latest
7101         coreutils, with "mv A B", where A is on a tmpfs file system and B
7102         is on a ufs file system.  This caused coreutils' mv/part-symlink
7103         test to fail.
7104
7105         tests: set fail=0 at start
7106         * tests/init.sh (setup_): Move fail=0 initialization here ...
7107         (mktempd_): ... from here, so that tests can rely on fail being
7108         set to 0 initially.  This fixes a problem in coreutils; see:
7109         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7110
7111 2010-12-18  Bruno Haible  <bruno@clisp.org>
7112
7113         memmem-simple: Stylistic changes.
7114         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7115         Fix preprocessor directive indentation.
7116
7117 2010-12-15  Pádraig Brady <P@draigBrady.com>
7118
7119         memmem, memmem-simple: reorganize and expand empty needle check
7120         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7121         functional checks to memmem-simple so that one has a fully functional
7122         memmem by using just this module.
7123         Restrict the performance only check to the memmem module.
7124         Also expand the empty needle check to ensure the correct
7125         pointer is returned, not just a non NULL pointer.
7126         * doc/glibc-functions/memmem.texi: Rearrange the portability
7127         documentation to correlate with the rearranged checks.
7128         Clarify exactly how the memmem and memmem-simple modules
7129         relate to each other.
7130
7131 2010-12-15  Pádraig Brady <P@draigBrady.com>
7132             Bruno Haible  <bruno@clisp.org>
7133
7134         Improve cross-compilation guesses for uClibc.
7135         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7136         that uClibc does not have the glibc bug.
7137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7138         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7139
7140 2010-12-14  Eric Blake  <eblake@redhat.com>
7141
7142         configmake: provide fallbacks for oldest supported autotools
7143         * m4/configmake.m4: New file.
7144         * modules/configmake (Files): Ship it.
7145         (configure.ac): Use it to guarantee fallbacks.
7146
7147 2010-12-13  Pádraig Brady <P@draigBrady.com>
7148
7149         read-file: Improve handling of large files
7150         * lib/read-file.c (fread_file): Minimize realloc()s
7151         for regular files, and better manage sizes around SIZE_MAX.
7152
7153 2010-12-13  Eric Blake  <eblake@redhat.com>
7154
7155         cloexec, fcntl: relax license
7156         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7157         consent from all contributors.
7158         * modules/fcntl (License): Likewise.
7159
7160 2010-12-10  Bruno Haible  <bruno@clisp.org>
7161
7162         Tests for module 'pipe-posix'.
7163         * modules/pipe-posix-tests: New file.
7164         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7165
7166 2010-12-10  Bruno Haible  <bruno@clisp.org>
7167
7168         pipe-posix: Make it work in C++ mode.
7169         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7170         (pipe): Use common idiom, not a macro definition.
7171         * lib/pipe.c: New file.
7172         * m4/pipe.m4: New file.
7173         * modules/pipe-posix (Description): Enhance.
7174         (Files): Add lib/pipe.c, m4/pipe.m4.
7175         (configure.ac): Invoke gl_FUNC_PIPE.
7176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7177         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7178         * tests/test-unistd-c++.cc: Check the signature of pipe.
7179
7180 2010-12-10  Bruno Haible  <bruno@clisp.org>
7181
7182         Rename module 'pipe' to 'spawn-pipe'.
7183         * modules/spawn-pipe: New file, renamed from modules/pipe.
7184         (Files, configure.ac, Makefile.am): Update.
7185         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7186         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7187         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7188         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7189         "spawn-pipe.h" instead of "pipe.h".
7190         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7191         to gl_SPAWN_PIPE.
7192         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7193         (Files, Makefile.am): Update.
7194         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7195         Update.
7196         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7197         Include "spawn-pipe.h" instead of "pipe.h".
7198         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7199         * lib/javacomp.c: Likewise.
7200         * lib/javaversion.c: Likewise.
7201         * lib/pipe-filter-gi.c: Likewise.
7202         * lib/pipe-filter-ii.c: Likewise.
7203         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7204         * modules/javacomp (Depends-on): Likewise.
7205         * modules/javaversion (Depends-on): Likewise.
7206         * modules/pipe-filter-gi (Depends-on): Likewise.
7207         * modules/pipe-filter-ii (Depends-on): Likewise.
7208         * MODULES.html.sh (Executing programs): Update.
7209         * NEWS: Mention the change.
7210
7211 2010-12-10  Eric Blake  <eblake@redhat.com>
7212
7213         pipe-posix: new module
7214         * modules/pipe-posix: New file.
7215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7216         (gl_UNISTD_H): Check for declaration.
7217         * modules/unistd (Makefile.am): Substitute it.
7218         * lib/unistd.in.h (pipe): Provide it for mingw.
7219         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7220         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7221
7222 2010-12-07  Bruno Haible  <bruno@clisp.org>
7223
7224         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7225         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7226         u8_strcmp_gnu.
7227         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7228
7229 2010-12-06  Bruno Haible  <bruno@clisp.org>
7230
7231         Update internal documentation.
7232         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7233
7234 2010-12-04  Bruno Haible  <bruno@clisp.org>
7235
7236         Put more information about failed tests into the test return codes.
7237         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7238         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7239         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7240         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7241         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7242         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7243         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7244         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7245         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7247         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7248         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7249         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7250         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7251         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7252         returns a bit mask.
7253         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7254         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7255         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7256         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7257         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7258         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7259         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7261         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7262         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7263         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7264         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7265         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7266         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7267         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7268         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7269         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7270         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7271         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7272         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7273         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7274         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7275         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7276         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7277         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7278         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7279         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7280         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7281         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7282         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7283         gl_PRINTF_PRECISION): Likewise.
7284         * m4/regex.m4 (gl_REGEX): Likewise.
7285         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7286         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7287         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7288         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7289         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7290         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7291         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7292         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7293         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7294         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7295         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7296         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7297         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7298         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7299         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7300         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7301         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7302         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7304         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7305         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7306         enumerated value.
7307         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7308
7309 2010-12-04  Bruno Haible  <bruno@clisp.org>
7310
7311         Update for Solaris 11 2010-11.
7312         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7313         Express, released in November 2010.
7314
7315 2010-12-04  Bruno Haible  <bruno@clisp.org>
7316
7317         nproc: Relax license.
7318         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7319         and Paul Eggert.
7320         Requested by Ludovic Courtès <ludo@gnu.org>.
7321
7322 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7323
7324         utimecmp: fine-grained src to nearby coarse-grained dest
7325
7326         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7327         and the source is on a file system with higher-resolution time
7328         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7329         not work, and the time stamps are close together, the algorithm to
7330         determine the exact resolution from the read-back mtime was buggy:
7331         it had a "!=" where it should have had an "==".  This bug has been
7332         in the code ever since it was introduced to gnulib.
7333         Problem reported by Dan Jacobson in
7334         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7335
7336 2010-11-30  Bruno Haible  <bruno@clisp.org>
7337
7338         strerror_r-posix: Fix autoconf test.
7339         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7340
7341 2010-11-28  Bruno Haible  <bruno@clisp.org>
7342             Paul Eggert  <eggert@cs.ucla.edu>
7343
7344         Tests for module 'getdomainname'.
7345         * modules/getdomainname-tests: New file.
7346         * tests/test-getdomainname.c: New file, based on
7347         tests/test-gethostname.c.
7348
7349 2010-11-28  Bruno Haible  <bruno@clisp.org>
7350             Paul Eggert  <eggert@cs.ucla.edu>
7351
7352         getdomainname: Use the system function when possible.
7353         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7354         (getdomainname): Replace if needed. Provide the declaration if it is
7355         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7356         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7357         (getdomainname): When the system has getdomainname, call the system
7358         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7359         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7360         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7361         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7362         the function if its second argument is of type 'int' or if it is found
7363         in libnsl.
7364         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7365         <sys/systeminfo.h> and sysinfo().
7366         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7368         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7369         HAVE_GETDOMAINNAME.
7370         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7371         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7372         * doc/glibc-functions/getdomainname.texi: Document the problems with
7373         the getdomainname declaration.
7374
7375 2010-11-28  Bruno Haible  <bruno@clisp.org>
7376
7377         sys_socket: Ensure ss_family field on AIX.
7378         * lib/sys_socket.in.h (ss_family): New macro definition.
7379         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7380         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7381         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7382         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7383         * modules/sys_socket (Makefile.am): Substitute
7384         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7385         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7386
7387 2010-11-27  Bruno Haible  <bruno@clisp.org>
7388
7389         readline: Improve configure output.
7390         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7391         "checking for readline..." result understandable.
7392
7393 2010-11-27  Bruno Haible  <bruno@clisp.org>
7394
7395         *printf-posix: Detect a bug on Solaris 10/x86.
7396         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7397         for floating-point output.
7398         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7399         directive.
7400         * tests/test-snprintf-posix.h (test_function): Likewise.
7401         * tests/test-sprintf-posix.h (test_function): Likewise.
7402         * tests/test-vasprintf-posix.c (test_function): Likewise.
7403         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7404         * doc/posix-functions/printf.texi: Likewise.
7405         * doc/posix-functions/snprintf.texi: Likewise.
7406         * doc/posix-functions/sprintf.texi: Likewise.
7407         * doc/posix-functions/vfprintf.texi: Likewise.
7408         * doc/posix-functions/vprintf.texi: Likewise.
7409         * doc/posix-functions/vsnprintf.texi: Likewise.
7410         * doc/posix-functions/vsprintf.texi: Likewise.
7411         * doc/glibc-functions/obstack_printf.texi: Likewise.
7412         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7413
7414 2010-11-27  Bruno Haible  <bruno@clisp.org>
7415
7416         Fix link error when module libunistring-optional is in use.
7417         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7418         * modules/striconveha-tests (Makefile.am): Likewise.
7419
7420 2010-11-27  Bruno Haible  <bruno@clisp.org>
7421
7422         regex: Mention link dependencies.
7423         * modules/regex (Link): New section.
7424         * modules/rpmatch (Link): Likewise.
7425         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7426
7427 2010-11-27  Bruno Haible  <bruno@clisp.org>
7428
7429         ftoastr: Fix compilation error on Solaris.
7430         * lib/ftoastr.c: Include <config.h>.
7431
7432 2010-11-27  Bruno Haible  <bruno@clisp.org>
7433
7434         getloadavg: Update documentation.
7435         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7436
7437 2010-11-27  Bruno Haible  <bruno@clisp.org>
7438
7439         sys_socket: Fix test whether the functions are declared.
7440         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7441         not <sys/select.h>.
7442
7443 2010-11-27  Bruno Haible  <bruno@clisp.org>
7444
7445         getpass: Make sure to get system declaration on some platforms.
7446         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7447         gl_USE_SYSTEM_EXTENSIONS.
7448         * modules/getpass (Depends-on): Add extensions.
7449
7450 2010-11-26  Bruno Haible  <bruno@clisp.org>
7451
7452         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7453         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7454         'iconv' module is present.
7455         (ICONV_CONST): New macro.
7456         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7457         ICONV_CONST.
7458         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7459         set ICONV_CONST.
7460         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
7461         here.
7462         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
7463         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
7464         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
7465         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
7466         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
7467         present.
7468
7469 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7470
7471         ftoastr: comment fix
7472         * lib/ftoastr.c: "little" -> "little or no" in comment
7473
7474 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
7475
7476         stdint: port to GCC 4.3 + OSX + Octave
7477         On this platform, stdint.h is buggy and defines int64_t to long
7478         long int.  The replacement defined it to long int, causing
7479         problems with C++ style name mangling.  Instead, trust the system
7480         definition if INT64_MAX is defined, and likewise for the unsigned
7481         variant.   Problem reported by Jarno Rajahalme in
7482         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
7483         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
7484         and don't mess with int64_t and INT64_MAX in this case.
7485         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
7486
7487 2010-11-24  Bruno Haible  <bruno@clisp.org>
7488
7489         doc: Corrections regarding MacOS X 10.4 and 10.5.
7490         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
7491         MacOS X.
7492         Reported by Simon Josefsson.
7493
7494 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
7495
7496         Uninstall ".bin" files installed by relocwrapper.
7497         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
7498         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
7499         unless it is already there.
7500
7501 2010-11-21  Bruno Haible  <bruno@clisp.org>
7502
7503         Update for NetBSD 5.0.
7504         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7505         NetBSD; the test fails on NetBSD 5.0.
7506         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7507         about NetBSD.
7508
7509 2010-11-21  Bruno Haible  <bruno@clisp.org>
7510
7511         Update for HP-UX 11.23 and HP-UX 11.31.
7512         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
7513         HP-UX.
7514
7515 2010-11-21  Bruno Haible  <bruno@clisp.org>
7516
7517         Update for MacOS X 10.5.
7518         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7519         MacOS X; the test fails on MacOS X 10.5.8.
7520         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7521         about MacOS X.
7522
7523 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
7524
7525         bootstrap: add bootstrap_sync option.
7526         See discussion at
7527         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
7528         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
7529         * build-aux/bootstrap: Accept --bootstrap-sync to update
7530         bootstrap if it is not identical to the local gnulib's
7531         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
7532         enable this by default.  Accept --no-bootstrap-sync to disable
7533         it.
7534
7535 2010-11-20  Bruno Haible  <bruno@clisp.org>
7536
7537         Ensure that <features.h> is included before __GLIBC__ is tested.
7538         * lib/printf-parse.h: Include <features.h>.
7539         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
7540         Reported by Mike Frysinger <vapier@gentoo.org>.
7541
7542         Ensure that <features.h> is included before __GLIBC__ is tested.
7543         * lib/wchar.in.h: Include <features.h>.
7544         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
7545         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
7546         Reported by Mike Frysinger <vapier@gentoo.org>.
7547
7548         Ensure that <features.h> is included before __GLIBC__ is tested.
7549         * lib/arpa_inet.in.h: Include <features.h>.
7550         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
7551         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
7552         Reported by Mike Frysinger <vapier@gentoo.org>.
7553
7554         Ensure that <features.h> is included before __GLIBC__ is tested.
7555         * build-aux/link-warning.h: Include <features.h>.
7556         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
7557         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
7558         Reported by Mike Frysinger <vapier@gentoo.org>.
7559
7560         Ensure that <features.h> is included before __GLIBC__ is tested.
7561         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
7562         Reported by Mike Frysinger <vapier@gentoo.org>.
7563
7564 2010-11-20  Bruno Haible  <bruno@clisp.org>
7565
7566         memmem: Fix autoconf test.
7567         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
7568
7569 2010-11-20  Bruno Haible  <bruno@clisp.org>
7570
7571         Port to uClibc.
7572         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
7573         * lib/fcntl.in.h: Likewise.
7574         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
7575         * lib/mbrtowc.c (mbrtowc): Likewise.
7576         * lib/relocatable.c (find_shared_library_fullname): Likewise.
7577         * lib/strerror_r.c: Likewise.
7578         * lib/unistr/u8-strnlen.c: Likewise.
7579         * lib/vasnprintf.c (decimal_point_char): Likewise.
7580         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7581         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7582         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7583         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7584         * tests/test-sigaction.c (handler, main): Likewise.
7585         * lib/freading.h: Treat uClibc like a non-glibc platform.
7586         * lib/freading.c: Likewise.
7587         * lib/gettext.h: Likewise.
7588         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
7589         Likewise.
7590         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
7591         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7592         * lib/propername.c (proper_name_utf8): Likewise.
7593         * lib/spawn.in.h: Likewise.
7594         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
7595         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
7596         mem_cd_iconveh_internal): Likewise.
7597         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
7598         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7599         strstr, strcasestr): Likewise.
7600         * lib/unicodeio.c (unicode_to_mb): Likewise.
7601         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
7602         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
7603         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
7604         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
7605         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
7606         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
7607         * lib/unistr/u8-stpncpy.c: Likewise.
7608         * lib/vasnprintf.c (VASNPRINTF): Likewise.
7609         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
7610         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7611         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7612         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7613         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
7614         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
7615         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
7616         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7617         Likewise.
7618         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7619         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7620         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7621         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7622         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7623         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7624         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7625         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7626         * tests/test-getopt.h (OPTIND_MIN): Likewise.
7627         * tests/test-striconveha.c (main): Likewise.
7628         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7629         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
7630         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
7631         * doc/posix-functions/getline.texi: Likewise.
7632         Reported by Mike Frysinger <vapier@gentoo.org>.
7633
7634 2010-11-20  Bruno Haible  <bruno@clisp.org>
7635
7636         nproc: Fix condition.
7637         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
7638         HAVE_PTHREAD_AFFINITY_NP.
7639
7640 2010-11-20  Bruno Haible  <bruno@clisp.org>
7641
7642         Fix a comment.
7643         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
7644
7645 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7646
7647         ftoastr: don't assume snprintf
7648         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
7649         Implement a subset of snprintf here, by using sprintf safely.
7650         * modules/ftoastr (Depends-on): Remove snprintf.
7651
7652 2010-11-19  Jim Meyering  <meyering@redhat.com>
7653
7654         test-rename.h: fix compilation failure
7655         * tests/test-rename.h (test_rename): Add omitted "}".
7656
7657 2010-11-17  Jim Meyering  <meyering@redhat.com>
7658
7659         maint.mk: add a URL discussing the no-@acronym policy
7660         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
7661
7662 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7663
7664         ftoastr: depend on snprintf, improve comments
7665         * lib/ftoastr.c: Also mention Loitsch's draft.
7666         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
7667         needed in the current implementation, but it might simplify
7668         speeding up the code later.
7669         * modules/ftoastr: Depend on snprintf; this improves portability.
7670         Suggested by Bruno Haible in the same email.
7671
7672         ftoastr: port to hosts lacking strtof and strtold
7673         Problem reported by Bruno Haible in
7674         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
7675         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
7676         environment and strtold (and presumably strtof) are not available.
7677         * modules/ftoastr (Files): Add m4/c-strtod.m4.
7678         (configure.ac): Require gl_C99_STRTOLD.
7679
7680 2010-11-18  Bruno Haible  <bruno@clisp.org>
7681
7682         c-strtold: Avoid link error on AIX 7.
7683         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
7684         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
7685         (gl_C_STRTOLD): Test whether strtold_l exists.
7686         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7687
7688 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7689
7690         intprops: new macro INT_BITS_STRLEN_BOUND
7691         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
7692         ftoastr.h.  This exposes an internal of intprops.h that was formerly
7693         not exposed.  Also, it uses a slightly tighter bound than before;
7694         though this makes no practical difference, we might as well be as
7695         tight as we easily can.
7696
7697         ftoastr: new module, for lossless conversion of floats to short strings
7698         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
7699         * modules/ftoastr: New files.
7700
7701 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7702
7703         bootstrap: port to Solaris sed
7704         * build-aux/bootstrap (get_version): Port to Solaris sed.
7705         See Ralf Wildenhues's note in
7706         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
7707
7708 2010-11-14  Jim Meyering  <meyering@redhat.com>
7709
7710         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
7711         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
7712         and move definition closer to sole use.
7713
7714 2010-11-13  Jim Meyering  <meyering@redhat.com>
7715
7716         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
7717         Now we require at least autoconf-2.59, which means the work-around
7718         is no longer needed.
7719         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
7720         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7721         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7722         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
7723         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7724
7725 2010-11-13  Bruno Haible  <bruno@clisp.org>
7726
7727         rename, renameat: Avoid test failures at NFS mounted locations.
7728         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
7729         functions.
7730         (test_rename): Use assert_nonexistent.
7731         * tests/test-rename.c: Include <dirent.h>.
7732         * tests/test-renameat.c: Likewise.
7733         Reported by Gary V. Vaughan <gary@gnu.org>.
7734
7735         rename, renameat: Document Linux bug with NFS
7736         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
7737         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
7738         * doc/posix-functions/renameat.texi: Likewise.
7739         Suggested by Eric Blake.
7740
7741 2010-11-13  Bruno Haible  <bruno@clisp.org>
7742
7743         rename test: Add comments.
7744         * tests/test-rename.h (test_rename): Add structure and comments.
7745
7746 2010-11-13  Eric Blake  <eblake@redhat.com>
7747
7748         maintainer-makefile: cover a few more files
7749         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
7750         scripts generated within C files, for libvirt.
7751
7752 2010-11-13  Bruno Haible  <bruno@clisp.org>
7753
7754         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
7755         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
7756         character, return the number of bytes that belong together, not always
7757         1.
7758         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7759         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7760         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7761         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
7762         number of bytes of an invalid character.
7763         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
7764         (main): Invoke it.
7765         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
7766         results.
7767         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
7768         malformed byte sequences.
7769         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
7770         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
7771         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
7772         Reported by Ben Pfaff and Paolo Bonzini.
7773
7774 2010-11-13  Bruno Haible  <bruno@clisp.org>
7775
7776         openat: Work around glibc bug with fchownat() and empty file names.
7777         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
7778         (gl_FUNC_FCHOWNAT): Invoke it.
7779         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
7780         * doc/posix-functions/fchownat.texi: Document the glibc bug.
7781         Reported by Gary V. Vaughan <gary@gnu.org>.
7782
7783 2010-11-13  Bruno Haible  <bruno@clisp.org>
7784
7785         openat: Ensure autoconf macro ordering.
7786         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
7787         gl_USE_SYSTEM_EXTENSIONS.
7788         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
7789
7790 2010-11-13  Bruno Haible  <bruno@clisp.org>
7791
7792         Update comments.
7793         * lib/unistr/u8-check.c: Update file name in comments.
7794         * lib/unistr/u8-mblen.c: Likewise.
7795         * lib/unistr/u8-prev.c: Likewise.
7796         * lib/unistr/u8-strmblen.c: Likewise.
7797         * lib/unistr/u8-strmbtouc.c: Likewise.
7798
7799 2010-11-13  Jim Meyering  <meyering@redhat.com>
7800
7801         tests: avoid test failure on Solaris 10 due to lack of PATH export
7802         * tests/test-update-copyright.sh: Don't forget to export PATH.
7803
7804         init.sh: ensure that IFS is defined, just in case...
7805         * tests/init.sh (setup_): Ensure that IFS is defined,
7806         so that saving and restoring it works as expected.  This
7807         appears to be useful at least for an old version of dash
7808         from a long time ago (RH 6).  See here for details:
7809         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7810
7811         maint.mk: tighten "test a == b" check
7812         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7813         test to files that contain something like #!/bin/sh.
7814         Without this, coreutils would get two false positives in
7815         the comments of C source files.
7816
7817 2010-11-12  Eric Blake  <eblake@redhat.com>
7818
7819         bootstrap: fix typo in previous attempt
7820         * build-aux/bootstrap (buildreq): Correct the grouping.
7821         Reported by Paul Eggert.
7822
7823         maintainer-makefile: prohibit test x == x
7824         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7825         Based on a report by Matthias Bolte.
7826
7827         bootstrap: allow FreeBSD gzip
7828         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7829         which has no '.' and goes to stderr.
7830         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7831         Reported by Matthias Bolte.
7832
7833         maintainer-makefile: check for i18n setup
7834         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7835         will likely work.
7836
7837 2010-11-12  Bruno Haible  <bruno@clisp.org>
7838
7839         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7840         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7841         * lib/nanosleep.c (nanosleep): Likewise.
7842
7843 2010-11-11  Bruno Haible  <bruno@clisp.org>
7844
7845         fcntl-h: Fix for use of C++ on glibc systems.
7846         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7847         also on glibc systems in C++ mode.
7848         Reported by Gary V. Vaughan <gary@gnu.org>.
7849
7850 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7851
7852         mknod: avoid false failure with dash
7853         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7854
7855 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7856
7857         unlink: Fix "is it should" typo in diagnostic.
7858         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7859         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7860
7861 2010-11-11  Bruno Haible  <bruno@clisp.org>
7862
7863         Tests for module 'strerror_r-posix'.
7864         * modules/strerror_r-posix-tests: New file.
7865         * tests/test-strerror_r.c: New file.
7866         * tests/test-string-c++.cc: Check the signature of strerror_r.
7867
7868         New module 'strerror_r-posix'.
7869         * lib/string.in.h (strerror_r): New declaration.
7870         * lib/strerror_r.c: New file.
7871         * m4/strerror_r.m4: New file.
7872         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7873         of strerror_r.
7874         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7875         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7876         * modules/strerror_r-posix: New file.
7877         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7878         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7879         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7880         portability problems.
7881
7882 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7883
7884         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7885         line is also considered for output. Quoted function name in shell
7886         command, so temporary files for functions like MyClass::operator()
7887         are removed correctly without errors.
7888
7889 2010-11-09  Bruno Haible  <bruno@clisp.org>
7890
7891         * doc/posix-functions/strerror.texi: List more failing platforms.
7892
7893         * doc/posix-functions/strerror.texi: Add a comment.
7894
7895 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7896
7897         fdopendir: fix bug on MacOS X when low on file descriptors
7898
7899         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7900         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7901         All callers changed.
7902         (fdopendir): Invoke save_cwd at the top level, not after using
7903         multiple dup() calls to use up file descriptors.  Then retry
7904         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7905         less than the maximum number of open file descriptors, because
7906         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7907         on Mac OS X 10.6.4 for tar 1.24
7908         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7909         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7910         and for tar 1.25
7911         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7912
7913 2010-11-07  Bruno Haible  <bruno@clisp.org>
7914
7915         vasnprintf: Support I flag on glibc systems.
7916         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7917         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7918         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7919         snprintf function.
7920         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7921         glibc systems.
7922         * tests/test-vasnprintf-posix3.c: New file.
7923         * modules/vasnprintf-posix-tests (Files): Add it.
7924         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7925
7926 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7927
7928         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7929         * MODULES.html.sh: For compiler warnings, use name
7930         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7931
7932 2010-11-05  Eric Blake  <eblake@redhat.com>
7933
7934         ceil, floor: avoid spurious failure with icc
7935         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7936         [denormals-as-zero] when optimizing without -mieee-fp option.
7937         * tests/test-floorf2.c (floorf_reference): Likewise.
7938         * tests/test-ceilf1.c (dummy): New function.
7939         (main): Use it to outsmart icc's optimization.
7940         * tests/test-floorf1.c (dummy, main): Likewise.
7941
7942         tests: require working signbit
7943         * modules/ceilf-tests (Depends-on): Add signbit.
7944         * modules/ceill-tests (Depends-on): Likewise.
7945         * modules/floorf-tests (Depends-on): Likewise.
7946         * modules/floorl-tests (Depends-on): Likewise.
7947         * modules/round-tests (Depends-on): Likewise.
7948         * modules/roundf-tests (Depends-on): Likewise.
7949         * modules/roundl-tests (Depends-on): Likewise.
7950         * modules/trunc-tests (Depends-on): Likewise.
7951         * modules/truncf-tests (Depends-on): Likewise.
7952         * modules/truncl-tests (Depends-on): Likewise.
7953
7954         strtod: work around icc bug
7955         * lib/strtod.c (minus_zero): Define to working value.
7956         (strtod): Use it to avoid icc bug.
7957
7958         copysign: enhance tests
7959         * modules/copysign-tests (Files): Add minus-zero.h.
7960         * tests/test-copysign.c (main): Also test zeros.
7961
7962 2010-11-04  Eric Blake  <eblake@redhat.com>
7963
7964         ceil, floor, round, trunc: enhance tests of -0
7965         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7966         * tests/test-ceill.c (main): Likewise.
7967         * tests/test-floorf1.c (main): Likewise.
7968         * tests/test-floorl.c (main): Likewise.
7969         * tests/test-round1.c (main): Likewise.
7970         * tests/test-roundf1.c (main): Likewise.
7971         * tests/test-roundl.c (main): Likewise.
7972         * tests/test-trunc1.c (main): Likewise.
7973         * tests/test-truncf1.c (main): Likewise.
7974         * tests/test-truncl.c (main): Likewise.
7975
7976 2010-11-04  Eric Blake  <eblake@redhat.com>
7977
7978         frexp, tests: work around ICC bug with -zero
7979         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7980         works with more compilers.
7981         * tests/minus-zero.h: New file.
7982         * modules/ceilf-tests (Files): Include it.
7983         * modules/ceill-tests (Files): Likewise.
7984         * modules/floorf-tests (Files): Likewise.
7985         * modules/floorl-tests (Files): Likewise.
7986         * modules/frexp-nolibm-tests (Files): Likewise.
7987         * modules/frexp-tests (Files): Likewise.
7988         * modules/frexpl-nolibm-tests (Files): Likewise.
7989         * modules/frexpl-tests (Files): Likewise.
7990         * modules/isnan-tests (Files): Likewise.
7991         * modules/isnand-nolibm-tests (Files): Likewise.
7992         * modules/isnand-tests (Files): Likewise.
7993         * modules/isnanf-nolibm-tests (Files): Likewise.
7994         * modules/isnanf-tests (Files): Likewise.
7995         * modules/isnanl-nolibm-tests (Files): Likewise.
7996         * modules/isnanl-tests (Files): Likewise.
7997         * modules/round-tests (Files): Likewise.
7998         * modules/roundf-tests (Files): Likewise.
7999         * modules/roundl-tests (Files): Likewise.
8000         * modules/ldexpl-tests (Files): Likewise.
8001         * modules/signbit-tests (Files): Likewise.
8002         * modules/snprintf-posix-tests (Files): Likewise.
8003         * modules/sprintf-posix-tests (Files): Likewise.
8004         * modules/strtod-tests (Files): Likewise.
8005         * modules/trunc-tests (Files): Likewise.
8006         * modules/truncf-tests (Files): Likewise.
8007         * modules/truncl-tests (Files): Likewise.
8008         * modules/vsnprintf-posix-tests (Files): Likewise.
8009         * modules/vsprintf-posix-tests (Files): Likewise.
8010         * modules/vasnprintf-posix-tests (Files): Likewise.
8011         * modules/vasprintf-posix-tests (Files): Likewise.
8012         * tests/test-ceilf1.c (main): Use it.
8013         * tests/test-ceill.c (main): Likewise.
8014         * tests/test-floorf1.c (main): Likewise.
8015         * tests/test-floorl.c (main): Likewise.
8016         * tests/test-frexp.c (main): Likewise.
8017         * tests/test-frexpl.c (main): Likewise.
8018         * tests/test-isnan.c (main): Likewise.
8019         * tests/test-isnand.h (main): Likewise.
8020         * tests/test-isnanf.h (main): Likewise.
8021         * tests/test-isnanl.h (main): Likewise.
8022         * tests/test-ldexpl.c (main): Likewise.
8023         * tests/test-round.c (main): Likewise.
8024         * tests/test-roundf.c (main): Likewise.
8025         * tests/test-roundl.c (main): Likewise.
8026         * tests/test-signbit.c (test_signbitf, test_signbitd)
8027         (test_signbitl): Likewise.
8028         * tests/test-snprintf-posix.h (test_function): Likewise.
8029         * tests/test-sprintf-posix.h (test_function): Likewise.
8030         * tests/test-strtod.c (main): Likewise.
8031         * tests/test-trunc1.c (main): Likewise.
8032         * tests/test-truncf1.c (main): Likewise.
8033         * tests/test-truncl.c (main): Likewise.
8034
8035         isnanl: work around icc bug
8036         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8037
8038 2010-11-03  Eric Blake  <eblake@redhat.com>
8039
8040         tests: fix compiler warnings
8041         * tests/test-getopt.h (test_getopt): Fix condition.
8042         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8043         * tests/test-pipe2.c (main): Likewise.
8044         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8045
8046         utimens: fix broken m4 test
8047         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8048
8049 2010-10-28  Bruno Haible  <bruno@clisp.org>
8050
8051         posix_spawn*, getdtablesize: Relax license.
8052         * modules/posix_spawn (License): Change to LGPLv2+.
8053         * modules/posix_spawnp (License): Likewise.
8054         * modules/posix_spawn-internal (License): Likewise.
8055         * modules/posix_spawnattr_init (License): Likewise.
8056         * modules/posix_spawnattr_getflags (License): Likewise.
8057         * modules/posix_spawnattr_setflags (License): Likewise.
8058         * modules/posix_spawnattr_getpgroup (License): Likewise.
8059         * modules/posix_spawnattr_setpgroup (License): Likewise.
8060         * modules/posix_spawnattr_getschedparam (License): Likewise.
8061         * modules/posix_spawnattr_setschedparam (License): Likewise.
8062         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8063         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8064         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8065         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8066         * modules/posix_spawnattr_getsigmask (License): Likewise.
8067         * modules/posix_spawnattr_setsigmask (License): Likewise.
8068         * modules/posix_spawnattr_destroy (License): Likewise.
8069         * modules/posix_spawn_file_actions_init (License): Likewise.
8070         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8071         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8072         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8073         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8074         * modules/getdtablesize (License): Likewise.
8075         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8076
8077 2010-10-26  Bruno Haible  <bruno@clisp.org>
8078
8079         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8080         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8081         Cygwin and mingw.
8082         Suggested by Eric Blake.
8083
8084 2010-10-26  Bruno Haible  <bruno@clisp.org>
8085
8086         stdio: Work around compilation error due to renameat() on Solaris 10.
8087         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8088         * lib/renameat.c: Don't include <unistd.h> here.
8089         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8090         Reported by Paul Eggert and Eric Blake.
8091
8092 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8093
8094         renameat: port to Solaris 10, which declares renameat in unistd.h
8095
8096         * lib/renameat.c: Include unistd.h before stdio.h, because
8097         Solaris 10 declares renameat in unistd.h.  Problem encountered
8098         when building GNU tar 1.24 on Solaris 10.
8099
8100 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8101
8102         fdopendir: fix C89 compilation
8103         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8104         compilers.
8105
8106 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8107
8108         inttostr: simplify by removing unnecessary redundancy
8109         * lib/anytostr.c: Don't include verify.h.
8110         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8111         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8112         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8113         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8114         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8115         Likewise.
8116         * modules/inttostr (Depends-on): Remove 'verify'.
8117
8118 2010-10-23  Bruno Haible  <bruno@clisp.org>
8119
8120         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8121         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8122         Reported by Eric Blake.
8123
8124 2010-10-23  Bruno Haible  <bruno@clisp.org>
8125
8126         Tests: Fix LOCALE_JA on MirBSD 10.
8127         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8128         to an UTF-8 locale.
8129         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8130         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8131         Reported by Eric Blake.
8132
8133 2010-10-21  Bruno Haible  <bruno@clisp.org>
8134
8135         nl_langinfo test: Avoid test failure on NetBSD 5.
8136         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8137         Reported by Eric Blake.
8138
8139 2010-10-21  Eric Blake  <eblake@redhat.com>
8140
8141         c-stack: work around libsigsegv 2.8 bug
8142         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8143         overflow on at least PowerPC64.
8144
8145 2010-10-17  Bruno Haible  <bruno@clisp.org>
8146
8147         userspec: Drop redundant file.
8148         * modules/userspec (Files): Remove lib/inttostr.h.
8149
8150 2010-10-17  Bruno Haible  <bruno@clisp.org>
8151
8152         nl_langinfo tests: Silence some warnings.
8153         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8154         Reported by Jim Meyering.
8155
8156 2010-10-17  Bruno Haible  <bruno@clisp.org>
8157
8158         Make use of GCC's attribute __alloc_size__.
8159         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8160         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8161         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8162         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8163         __alloc_size__.
8164         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8165         Suggested by Jim Meyering.
8166
8167 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8168
8169         bootstrap: anchor .gitignore entries.
8170         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8171         with...
8172         (insert_vc_ignore): ... this new function, which prepends `/' to
8173         all .gitignore entries before passing them to
8174         insert_sorted_if_absent.
8175
8176 2010-10-16  Bruno Haible  <bruno@clisp.org>
8177
8178         nextafter: Fix configure check.
8179         * modules/nextafter (configure.ac): Correct expected prototype.
8180
8181 2010-10-16  Bruno Haible  <bruno@clisp.org>
8182
8183         termios: Update documentation.
8184         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8185
8186 2010-10-16  Bruno Haible  <bruno@clisp.org>
8187
8188         tests: Make them compile with TinyCC.
8189         * tests/test-strstr.c (main): Remove parentheses around array
8190         initializer.
8191
8192 2010-10-15  Eric Blake  <eblake@redhat.com>
8193
8194         ignore-value: make header idempotent
8195         * lib/ignore-value.h: Add double-inclusion guards.
8196         Reported by Stefan Berger.
8197
8198 2010-10-15  Jim Meyering  <meyering@redhat.com>
8199
8200         GNUmakefile: handle "stable" target, not "major"
8201         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8202         lists in maint.mk and announce-gen.  Without this, "make stable"
8203         would fail to ensure that $(VERSION) is up to date.
8204
8205 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8206
8207         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8208         & co.
8209
8210 2010-10-14  Bruno Haible  <bruno@clisp.org>
8211
8212         vasnprintf: Don't set errno to 0.
8213         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8214         block that sets it to 0.
8215         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8216
8217 2010-10-14  Bruno Haible  <bruno@clisp.org>
8218
8219         socketlib: Fix.
8220         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8221         gl_PREREQ_SYS_H_WINSOCK2.
8222         Reported by Ian Beckwith <ianb@erislabs.net>.
8223
8224 2010-10-13  Jim Meyering  <meyering@redhat.com>
8225
8226         test-select-stdin.c: avoid warn_unused_result warnings
8227         * tests/test-select-stdin.c: Include "macros.h".
8228         ASSERT that read and fflush succeed.
8229
8230 2010-10-13  Jim Meyering  <meyering@redhat.com>
8231
8232         git-version-gen: do require git-VC'd files in cwd
8233         * build-aux/git-version-gen: Reject a git version string
8234         if there are no commits associated with the current directory.
8235         This avoids an unlikely false-positive (unrelated dir whose parent
8236         repository also contains a tag matching v*), as pointed out
8237         by Giuseppe Scrivano in
8238         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8239
8240 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8241
8242         argv-iter: omit nonconforming declaration
8243         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8244         enum arg_iter_err declaration, which doesn't conform to C99.
8245         Solaris 10 cc warns about this.
8246
8247 2010-10-13  Eric Blake  <eblake@redhat.com>
8248
8249         termios: fix compilation on mingw
8250         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8251         (gl_TERMIOS_H): Adjust it on mingw.
8252         * modules/termios (Makefile.am): Substitute new key.
8253         * lib/termios.in.h (includes): Make include_next conditional.
8254         * doc/posix-headers/termios.texi (termios.h): Update
8255         documentation.
8256         Reported by Daniel P. Berrange.
8257
8258 2010-10-13  Jim Meyering  <meyering@redhat.com>
8259
8260         git-version-gen: don't require that .git/ be in the current dir
8261         * build-aux/git-version-gen: Adjust this script so that it works
8262         when run from any working directory beneath the top-level .git/-
8263         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8264         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8265
8266         test-select: avoid warn_unused_result warnings
8267         * tests/test-select.c: Include "macros.h".
8268         ASSERT that each call to read, write, and pipe succeeds.
8269         While not technically required, also check each "close".
8270         * modules/select-tests (Files): Add tests/macros.h.
8271
8272         test-symlinkat: remove declaration of unused local
8273         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8274
8275         test-inttostr: avoid shadowing warnings
8276         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8277         and use malloc rather than the stack for the same reason as
8278         mentioned in the comment justifying the other allocation.
8279
8280 2010-10-11  Bruno Haible  <bruno@clisp.org>
8281
8282         stdlib: Allow multiple gnulib generated replacements to coexist.
8283         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8284         Reported by Sam Steingold <sds@gnu.org>.
8285
8286 2010-10-11  Jim Meyering  <meyering@redhat.com>
8287
8288         fix a documentation typo
8289         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8290
8291 2010-10-11  Eric Blake  <eblake@redhat.com>
8292
8293         futimens: work around Solaris 11 bug
8294         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8295         * tests/test-futimens.h (test_futimens): Enhance, rather than
8296         weaken test.
8297         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8298
8299 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8300
8301         Indentation.
8302         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8303         higher-level operators more to the left.
8304
8305 2010-10-11  Jim Meyering  <meyering@redhat.com>
8306
8307         test-futimens: avoid unwarranted test failure on Solaris 5.11
8308         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8309         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8310         because it tries to dereference the NULL name argument.
8311
8312 2010-10-11  Bruno Haible  <bruno@clisp.org>
8313
8314         Indentation.
8315         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8316         indentation.
8317
8318 2010-10-11  Jim Meyering  <meyering@redhat.com>
8319
8320         spawn.in.h: make indentation consistent with parentheses
8321         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8322         Make indentation consistent with parentheses.
8323
8324 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8325
8326         Fix mismatched parens in previous commit
8327         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8328         parens.
8329
8330 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8331
8332         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8333
8334         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8335         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8336         * lib/malloca.c: Include "verify.h".
8337         (verify1): Remove, replacing with a verify call.
8338         * lib/relocwrapper.c (verify1): Likewise.
8339         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8340         Likewise.
8341         * modules/malloca (Depends-on): Add 'verify'.
8342         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8343         * modules/vasnprintf (Depends-on): Add 'verify'.
8344         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8345         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8346         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8347         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8348         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8349         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8350         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8351
8352         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8353
8354         Formerly the style was sometimes 2*X - 1, because the C standard
8355         was wrongly thought to disallow ?: in integral constant expressions.
8356         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8357         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8358         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8359         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8360         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8361         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8362         verify that time_t cannot be floating.
8363
8364 2010-10-08  Eric Blake  <eblake@redhat.com>
8365
8366         time: enforce recent POSIX ruling that time_t is integral
8367         * lib/time.in.h (__time_t_must_be_integral): Detect any
8368         problematic systems, allowing the rest of gnulib to assume POSIX.
8369
8370 2010-10-08  Jim Meyering  <meyering@redhat.com>
8371
8372         fdopendir: fix a bug on systems lacking openat and /proc support
8373         OpenBSD 4.7 is one such system.  The most noticeable effect was
8374         failure of any application making nontrivial use of fts: rm, du,
8375         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8376           ./rm: traversal failed: `a': Bad file descriptor
8377         Debugging that, you see that even though FD 6 was closed just
8378         prior to the opendir call in fd_clone_opendir, its resulting
8379         dir->dd_fd was 8, rather than the expected value of 6:
8380
8381         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8382         93                close (fd);
8383         (gdb) n
8384         94                dir = fd_clone_opendir (dupfd);
8385         (gdb) n
8386         95                saved_errno = errno;
8387         (gdb) p dir->dd_fd
8388         $11 = 8
8389
8390         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8391         The problem is that on OpenBSD, fd_clone_opendir has to resort
8392         to using the old-style save/restore CWD mechanism, due to its
8393         lack of openat/proc support, and *that* would steal the FD (6)
8394         that opendir was supposed to use.
8395
8396         The fix is to squirrel away the desired FD so that save_cwd uses a
8397         different one, and then free the dest FD right before calling opendir.
8398         That guarantees opendir will use the required file descriptor.
8399
8400         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8401
8402 2010-10-08  Bruno Haible  <bruno@clisp.org>
8403
8404         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8405         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8406
8407 2010-10-08  Bruno Haible  <bruno@clisp.org>
8408
8409         nanosleep: Make replacement POSIX compliant.
8410         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8411         is out of range.
8412         Reported by Jim Meyering.
8413
8414 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8415
8416         bootstrap: add hook for altering gnulib.mk, for Bison
8417         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8418         the Bison bootstrapping process can rewrite file names and variables
8419         in this file before later parts of 'bootstrap' use the file.
8420         Bison wants to include lib/gnulib.mk from the top-level makefile,
8421         so it needs the file names in this file to be relative to the top
8422         level, not relative to lib; plus it needs variable names to be
8423         rewritten.
8424         (slurp): Use the new function.
8425
8426         bootstrap: reformat for readability
8427         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8428
8429 2010-10-08  Eric Blake  <eblake@redhat.com>
8430
8431         docs: update cygwin progress
8432         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8433         1.7.7.
8434         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8435         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8436         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8437         * doc/posix-functions/carg.texi (carg): Likewise.
8438         * doc/posix-functions/cargf.texi (cargf): Likewise.
8439         * doc/posix-functions/casin.texi (casin): Likewise.
8440         * doc/posix-functions/casinf.texi (casinf): Likewise.
8441         * doc/posix-functions/casinh.texi (casinh): Likewise.
8442         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8443         * doc/posix-functions/catan.texi (catan): Likewise.
8444         * doc/posix-functions/catanf.texi (catanf): Likewise.
8445         * doc/posix-functions/catanh.texi (catanh): Likewise.
8446         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8447         * doc/posix-functions/ccos.texi (ccos): Likewise.
8448         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8449         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8450         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8451         * doc/posix-functions/cexp.texi (cexp): Likewise.
8452         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8453         * doc/posix-functions/cimag.texi (cimag): Likewise.
8454         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8455         * doc/posix-functions/clog.texi (clog): Likewise.
8456         * doc/posix-functions/clogf.texi (clogf): Likewise.
8457         * doc/posix-functions/conj.texi (conj): Likewise.
8458         * doc/posix-functions/conjf.texi (conjf): Likewise.
8459         * doc/posix-functions/cpow.texi (cpow): Likewise.
8460         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
8461         * doc/posix-functions/cproj.texi (cproj): Likewise.
8462         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
8463         * doc/posix-functions/creal.texi (creal): Likewise.
8464         * doc/posix-functions/crealf.texi (crealf): Likewise.
8465         * doc/posix-functions/csin.texi (csin): Likewise.
8466         * doc/posix-functions/csinf.texi (csinf): Likewise.
8467         * doc/posix-functions/csinh.texi (csinh): Likewise.
8468         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
8469         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
8470         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
8471         * doc/posix-functions/ctan.texi (ctan): Likewise.
8472         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
8473         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
8474         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
8475         * doc/posix-headers/complex.texi (complex.h): Likewise.
8476
8477 2010-10-07  Jim Meyering  <meyering@redhat.com>
8478
8479         parse-datetime: avoid compilation failure on OpenBSD 4.7
8480         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
8481         This works around a compilation failure on OpenBSD 4.7:
8482         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
8483
8484 2010-10-07  Eric Blake  <eblake@redhat.com>
8485
8486         docs: update cygwin progress
8487         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
8488         1.7.6.
8489         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8490         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
8491         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
8492         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
8493         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
8494         Likewise.
8495         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
8496         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
8497         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
8498         Likewise.
8499         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
8500         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
8501         Likewise.
8502         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
8503         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
8504         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
8505         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
8506         Likewise.
8507         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
8508         Likewise.
8509         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
8510
8511         docs: update parse-datetime history
8512         * doc/parse-datetime.texi (Authors of parse_datetime): Better
8513         documentation of this function's history and alternatives.
8514
8515         cygwin: use more robust version check
8516         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
8517         exclude an eventual cygwin 1.9.1.
8518         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8520         (gl_FUNC_STRCASESTR): Likewise.
8521         Reported by Bruno Haible.
8522
8523 2010-10-06  Bruno Haible  <bruno@clisp.org>
8524
8525         string, sys_select: Avoid #including large headers unless necessary.
8526         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
8527         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
8528         OSF/1, BeOS, Haiku.
8529         Reported by Jim Meyering.
8530
8531 2010-10-05  Eric Blake  <eblake@redhat.com>
8532
8533         memmem, strstr, strcasestr: fix bug with long periodic needle
8534         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
8535         periodic needle having false positive.
8536         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
8537         and cygwin 1.7.7.
8538         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
8539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8540         (gl_FUNC_STRCASESTR): Likewise.
8541         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8542         * tests/test-memmem.c (main): Expose the bug.
8543         * tests/test-strcasestr.c (main): Likewise.
8544         * tests/test-strstr.c (main): Likewise.
8545         * tests/test-c-strcasestr.c (main): Likewise.
8546         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
8547         * doc/posix-functions/strstr.texi (strstr): Likewise.
8548         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8549         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
8550
8551 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8552
8553         parse-datetime: do some more renaming
8554         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
8555         parse_datetime, not get_date.  Mention the renaming.
8556         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
8557         in comments.
8558         * m4/bison.m4: Likewise.
8559
8560 2010-10-05  Eric Blake  <eblake@redhat.com>
8561
8562         parse-datetime: better name than get_date
8563         * NEWS: Reword the deprecation notice.
8564         * modules/get_date: Rename to modules/parse-datetime.
8565         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
8566         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
8567         * lib/get_date.y: Rename to lib/parse-datetime.y.
8568         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
8569         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
8570         * doc/getdate.texi: Provide fallback wrapper.
8571         * lib/getdate.h: Move guts, and wrap...
8572         * lib/parse-datetime.h: ...new file.
8573         * lib/parse-datetime.y (get_date): Rename...
8574         (parse_datetime): ...to this.
8575         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
8576         (gl_PARSE_DATETIME): ...to this.
8577         * doc/posix-functions/getdate.texi (get_date): Provide fallback
8578         documentation.
8579         * modules/getdate (Files): Provide fallback docs and header.
8580         (Notice, Depends-on): Update references.
8581         * tests/test-parse-datetime.c: Likewise.
8582         * DEPENDENCIES: Likewise.
8583         * MODULES.html.sh (Date and time <time.h>): Likewise.
8584         * doc/parse-datetime.texi (Date input formats)
8585         (Authors of parse_datetime): Likewise.
8586         * modules/parse-datetime (Files, configure.ac, Makefile.am)
8587         (Include): Likewise.
8588         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
8589         * gnulib-tool: Likewise.
8590         * m4/bison.m4 (gl_BISON): Likewise.
8591         Suggested by Bruno Haible.
8592
8593 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8594
8595         more ports to Solaris tr, which needs [] around ranges
8596         * gnulib-tool: Solaris tr needs [] around ranges.
8597         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8598         * tests/test-pipe-filter-gi1.c (main): Likewise.
8599         * tests/test-pipe-filter-ii1.c (main): Likewise.
8600
8601 2010-10-05  Eric Blake  <eblake@redhat.com>
8602
8603         bootstrap: fix Solaris regression
8604         * build-aux/bootstrap (check_versions): Solaris tr still needs []
8605         around ranges.
8606         Reported by Pádraig Brady.
8607
8608         bootstrap: work with pkg-config
8609         * build-aux/bootstrap (check_versions): Also transliterate - in
8610         prerequisite name.
8611         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
8612         prerequisites that were already found, to avoid confusion.
8613         Reported by Justin Clift.
8614
8615         faccessat: remove unused wrappers
8616         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
8617         presence of these wrappers dragged in -lgen on Solaris.
8618         Reported by Clemens Brogi; fix suggested by Paul Eggert.
8619
8620 2010-10-05  Jim Meyering  <meyering@redhat.com>
8621
8622         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
8623         * Makefile (sc_pragma_columns): New syntax-check rule.
8624
8625 2010-10-04  Bruno Haible  <bruno@clisp.org>
8626
8627         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
8628         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
8629         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
8630         Reported by Bruce Korb and Eric Blake.
8631
8632 2010-10-04  Bruno Haible  <bruno@clisp.org>
8633
8634         threadlib: Make option --with-libpth-prefix work.
8635         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
8636         use $LIBPTH, not just -lpth.
8637
8638 2010-10-04  Bruno Haible  <bruno@clisp.org>
8639
8640         Avoid line length limitation from HP NonStop system header files.
8641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
8642         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
8643         * lib/ctype.in.h: Likewise.
8644         * lib/dirent.in.h: Likewise.
8645         * lib/errno.in.h: Likewise.
8646         * lib/fcntl.in.h: Likewise.
8647         * lib/float.in.h: Likewise.
8648         * lib/getopt.in.h: Likewise.
8649         * lib/iconv.in.h: Likewise.
8650         * lib/inttypes.in.h: Likewise.
8651         * lib/langinfo.in.h: Likewise.
8652         * lib/locale.in.h: Likewise.
8653         * lib/math.in.h: Likewise.
8654         * lib/netdb.in.h: Likewise.
8655         * lib/netinet_in.in.h: Likewise.
8656         * lib/poll.in.h: Likewise.
8657         * lib/pthread.in.h: Likewise.
8658         * lib/pty.in.h: Likewise.
8659         * lib/sched.in.h: Likewise.
8660         * lib/se-selinux.in.h: Likewise.
8661         * lib/search.in.h: Likewise.
8662         * lib/signal.in.h: Likewise.
8663         * lib/spawn.in.h: Likewise.
8664         * lib/stdarg.in.h: Likewise.
8665         * lib/stddef.in.h: Likewise.
8666         * lib/stdint.in.h: Likewise.
8667         * lib/stdio.in.h: Likewise.
8668         * lib/stdlib.in.h: Likewise.
8669         * lib/string.in.h: Likewise.
8670         * lib/strings.in.h: Likewise.
8671         * lib/sys_file.in.h: Likewise.
8672         * lib/sys_ioctl.in.h: Likewise.
8673         * lib/sys_select.in.h: Likewise.
8674         * lib/sys_socket.in.h: Likewise.
8675         * lib/sys_stat.in.h: Likewise.
8676         * lib/sys_time.in.h: Likewise.
8677         * lib/sys_times.in.h: Likewise.
8678         * lib/sys_utsname.in.h: Likewise.
8679         * lib/sys_wait.in.h: Likewise.
8680         * lib/sysexits.in.h: Likewise.
8681         * lib/termios.in.h: Likewise.
8682         * lib/time.in.h: Likewise.
8683         * lib/unistd.in.h: Likewise.
8684         * lib/wchar.in.h: Likewise.
8685         * lib/wctype.in.h: Likewise.
8686         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
8687         * modules/ctype (Makefile.am): Likewise.
8688         * modules/dirent (Makefile.am): Likewise.
8689         * modules/errno (Makefile.am): Likewise.
8690         * modules/fcntl-h (Makefile.am): Likewise.
8691         * modules/float (Makefile.am): Likewise.
8692         * modules/getopt-posix (Makefile.am): Likewise.
8693         * modules/iconv-h (Makefile.am): Likewise.
8694         * modules/inttypes (Makefile.am): Likewise.
8695         * modules/langinfo (Makefile.am): Likewise.
8696         * modules/locale (Makefile.am): Likewise.
8697         * modules/math (Makefile.am): Likewise.
8698         * modules/netdb (Makefile.am): Likewise.
8699         * modules/netinet_in (Makefile.am): Likewise.
8700         * modules/poll-h (Makefile.am): Likewise.
8701         * modules/pthread (Makefile.am): Likewise.
8702         * modules/pty (Makefile.am): Likewise.
8703         * modules/sched (Makefile.am): Likewise.
8704         * modules/search (Makefile.am): Likewise.
8705         * modules/selinux-h (Makefile.am): Likewise.
8706         * modules/signal (Makefile.am): Likewise.
8707         * modules/spawn (Makefile.am): Likewise.
8708         * modules/stdarg (Makefile.am): Likewise.
8709         * modules/stddef (Makefile.am): Likewise.
8710         * modules/stdint (Makefile.am): Likewise.
8711         * modules/stdio (Makefile.am): Likewise.
8712         * modules/stdlib (Makefile.am): Likewise.
8713         * modules/string (Makefile.am): Likewise.
8714         * modules/strings (Makefile.am): Likewise.
8715         * modules/sys_file (Makefile.am): Likewise.
8716         * modules/sys_ioctl (Makefile.am): Likewise.
8717         * modules/sys_select (Makefile.am): Likewise.
8718         * modules/sys_socket (Makefile.am): Likewise.
8719         * modules/sys_stat (Makefile.am): Likewise.
8720         * modules/sys_time (Makefile.am): Likewise.
8721         * modules/sys_times (Makefile.am): Likewise.
8722         * modules/sys_utsname (Makefile.am): Likewise.
8723         * modules/sys_wait (Makefile.am): Likewise.
8724         * modules/sysexits (Makefile.am): Likewise.
8725         * modules/termios (Makefile.am): Likewise.
8726         * modules/time (Makefile.am): Likewise.
8727         * modules/unistd (Makefile.am): Likewise.
8728         * modules/wchar (Makefile.am): Likewise.
8729         * modules/wctype (Makefile.am): Likewise.
8730
8731 2010-10-04  Bruno Haible  <bruno@clisp.org>
8732
8733         read-file tests: Avoid a test failure on NonStop Kernel.
8734         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
8735         a regular file.
8736         Reported by Joachim Schmitz <schmitz@hp.com>.
8737
8738 2010-10-03  Bruno Haible  <bruno@clisp.org>
8739
8740         gnulib-tool: Fixes for --create-testdir with --libtool.
8741         * gnulib-tool (func_get_automake_snippet): Don't augment
8742         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
8743         an executable.
8744         (func_create_testdir): Handle module 'alloca' like func_import.
8745         Reported by Bruce Korb <bruce.korb@gmail.com>.
8746
8747 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8748
8749         Avoid some lines longer than 80 characters.
8750         * lib/stdint.in.h: Break long comment lines.
8751         * lib/math.in.h: Likewise.
8752         (_GL_NUM_UINT_WORDS): New macro, for readability.
8753         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
8754         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
8755         * lib/stdlib.in.h: Likewise.
8756         * lib/spawn.in.h: Likewise.
8757         * lib/sys_socket.in.h: Update an URL.
8758         * lib/sys_stat.in.h: Break long line.
8759
8760 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
8761
8762         Improve pmccabe2html.
8763         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
8764         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
8765         when the sources change. Remove the line in the HTML about "Used
8766         ranges" (which implied that there might be other unused ranges),
8767         rename "Resume" to "Summary" (easier to understand for more users).
8768         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
8769         styles, and some unnecessary blank lines.
8770
8771 2010-10-03  Bruno Haible  <bruno@clisp.org>
8772             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8773
8774         acl: Add support for ACLs on NonStop Kernel.
8775         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
8776         Check whether the function aclsort() exists.
8777         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8778         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
8779         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8780         (acl_nontrivial [HAVE_ACLSORT]: New function.
8781         (file_has_acl): Implement for NonStop Kernel.
8782         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8783         (qset_acl): Implement for NonStop Kernel.
8784         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
8785         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8786         (main): Implement for NonStop Kernel.
8787         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
8788         Kernel. Handle this flavor.
8789         * tests/test-set-mode-acl.sh: Likewise.
8790         * tests/test-copy-acl.sh: Likewise.
8791         * tests/test-copy-file.sh: Likewise.
8792
8793 2010-10-03  Bruno Haible  <bruno@clisp.org>
8794
8795         Info about ACLs on NonStop Kernel.
8796         * doc/acl-resources.txt: Add info about NonStop Kernel.
8797         References by Joachim Schmitz <schmitz@hp.com>.
8798
8799 2010-10-02  Bruno Haible  <bruno@clisp.org>
8800
8801         Define missing EDQUOT on NonStop Kernel.
8802         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8803         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8804         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8805         missing.
8806         * doc/posix-headers/errno.texi: Mention the NSK bug.
8807         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8808         Reported by Joachim Schmitz <schmitz@hp.com>.
8809
8810 2010-10-02  Bruno Haible  <bruno@clisp.org>
8811
8812         Update doc for POSIX:2008.
8813         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8814         Update URL of POSIX specification.
8815
8816 2010-10-02  Bruno Haible  <bruno@clisp.org>
8817
8818         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8819         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8820         from gnulib, not from Automake.
8821
8822 2010-10-02  Bruno Haible  <bruno@clisp.org>
8823
8824         New module 'system-posix'.
8825         * modules/system-posix: New file.
8826         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8827         module is present.
8828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8829         GNULIB_SYSTEM_POSIX.
8830         * modules/stdlib (Depends-on): Remove sys_wait.
8831         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8832         * doc/posix-functions/system.texi: Mention the new module.
8833         * doc/posix-headers/stdlib.texi: Likewise.
8834         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8835         define test_sys_wait_macros to a no-op.
8836         Reported by Sam Steingold <sds@gnu.org>.
8837
8838 2010-09-30  Bruno Haible  <bruno@clisp.org>
8839
8840         More renaming from 'getdate' to 'get_date'.
8841         * doc/get_date.texi: Renamed from doc/getdate.texi.
8842         * modules/get_date (Files): Update.
8843         * MODULES.html.sh (Date and time <time.h>): Update.
8844         * DEPENDENCIES: Update.
8845         * gnulib-tool: Update comment.
8846         * m4/bison.m4 (gl_BISON): Likewise.
8847         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8848
8849 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8850
8851         bootstrap: support ACLOCAL_FLAGS during aclocal
8852         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8853         can add additional -I dir for third-party .m4 files.
8854
8855 2010-09-30  Eric Blake  <eblake@redhat.com>
8856
8857         bootstrap: use glibtoolize on MacOS
8858         * build-aux/bootstrap (check_versions): Convert libtool into
8859         libtoolize.
8860         (tool search): Move libtool check earlier, and look for
8861         glibtoolize for MacOS.
8862         (gnulib_tool_options): Auto-add --libtool when appropriate.
8863         Reported by Justin Clift.
8864
8865         poll: fix typo that broke test on MacOS
8866         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8867         Reported by Justin Clift.
8868
8869         getdate: rename to get_date
8870         Note: getdate.h is not renamed, to minimize client impact.
8871         * modules/getdate: Mark obsolete.  Move old contents...
8872         * modules/get_date: ...to new module name.
8873         * modules/getdate-tests: Move...
8874         * modules/get_date-tests: ...here.
8875         * m4/getdate.m4: Move...
8876         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8877         * lib/getdate.y: Move...
8878         * lib/get_date.y: ...here.
8879         * tests/test-getdate.c: Move...
8880         * tests/test-get_date.c: ...here.
8881         * doc/posix-functions/getdate.texi (getdate): Update name.
8882         * NEWS: Mention the change.
8883
8884 2010-09-29  Bruno Haible  <bruno@clisp.org>
8885
8886         Separate the module 'waitpid' from the module 'sys_wait'.
8887         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8888         present.
8889         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8890         gl_MODULE_INDICATOR_FOR_TESTS.
8891         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8892         * modules/sys_wait (Depends-on): Remove waitpid.
8893         (Makefile.am): Substitute GNULIB_WAITPID.
8894         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8895         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8896         signature only if the 'waitpid' module is present.
8897         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8898         * NEWS: Mention the change.
8899         * modules/grantpt (Depends-on): Add waitpid.
8900         * modules/wait-process (Depends-on): Likewise.
8901
8902 2010-09-29  Bruno Haible  <bruno@clisp.org>
8903
8904         More tests for module 'sys_wait'.
8905         * modules/sys_wait-c++-tests: New file.
8906         * tests/test-sys_wait-c++.cc: New file.
8907         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8908         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8909
8910 2010-09-29  Bruno Haible  <bruno@clisp.org>
8911
8912         New module 'waitpid'.
8913         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8914         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8915         Don't include <process.h>.
8916         (waitpid): Declare only, using modern idiom.
8917         * m4/waitpid.m4: New file.
8918         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8919         * modules/waitpid: New file.
8920         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8921         (Makefile.am): Update.
8922         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8923
8924 2010-09-28  Bruno Haible  <bruno@clisp.org>
8925
8926         poll: Assume ANSI C.
8927         * lib/poll.c (poll): Use an ANSI C declaration.
8928
8929 2010-09-28  Bruno Haible  <bruno@clisp.org>
8930
8931         poll-h: Create poll.h on all platforms.
8932         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8933         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8934         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8935         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8936         (gl_REPLACE_POLL_H): Don't set POLL_H.
8937         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8938         * modules/poll-h (Depends-on): Add include_next.
8939         (Makefile.am): Create poll.h unconditionally. Substitute also
8940         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8941
8942 2010-09-28  Bruno Haible  <bruno@clisp.org>
8943
8944         Tests for module 'poll-h'.
8945         * modules/poll-h-c++-tests: New file.
8946         * tests/test-poll-h-c++.cc: New file.
8947
8948         Tests for module 'poll-h'.
8949         * modules/poll-h-tests: New file.
8950         * tests/test-poll-h.c: New file.
8951
8952 2010-09-28  Bruno Haible  <bruno@clisp.org>
8953
8954         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8955         * modules/poll-h (Depends-on): Add 'extensions'.
8956
8957 2010-09-28  Bruno Haible  <bruno@clisp.org>
8958
8959         New module 'poll-h'.
8960         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8961         (poll): Use modern idiom.
8962         * modules/poll-h: New file.
8963         * modules/poll (Files): Remove lib/poll.in.h.
8964         (Depends-on): Add poll-h.
8965         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8966         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8967         * m4/poll_h.m4: New file.
8968         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8969         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8970         and invoke gl_REPLACE_POLL_H.
8971         * lib/poll.c: Use common idiom.
8972         * tests/test-poll.c: Likewise.
8973         * doc/posix-headers/poll.texi: Mention the poll-h module.
8974         Suggested by Eric Blake.
8975
8976 2010-09-26  Bruno Haible  <bruno@clisp.org>
8977
8978         sys_wait: Implement WSTOPSIG.
8979         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8980         Reported by Simon Josefsson.
8981
8982 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8983
8984         stdlib, sys_wait: Avoid compilation error on mingw.
8985         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8986
8987 2010-09-26  Bruno Haible  <bruno@clisp.org>
8988
8989         stdlib tests: Avoid code duplication.
8990         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8991         * modules/sys_wait-tests (Files): Likewise.
8992         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8993         * tests/test-stdlib.c: Include test-sys_wait.h.
8994         (main): Invoke test_sys_wait_macros.
8995         * tests/test-sys_wait.c: Include test-sys_wait.h.
8996         (main): Invoke test_sys_wait_macros.
8997
8998 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8999
9000         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9001         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9002         sure Windows sockets are working before calling getaddrinfo.
9003         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9004         * doc/gnulib.texi (Windows sockets): Fix typo.
9005
9006 2010-09-25  Bruno Haible  <bruno@clisp.org>
9007
9008         Tests for module 'regex-quote'.
9009         * modules/regex-quote-tests: New file.
9010         * tests/test-regex-quote.c: New file.
9011
9012         New module 'regex-quote'.
9013         * lib/regex-quote.h: New file.
9014         * lib/regex-quote.c: New file.
9015         * modules/regex-quote: New file.
9016         Suggested by Reuben Thomas <rrt@sc3d.org>.
9017
9018 2010-09-24  Bruno Haible  <bruno@clisp.org>
9019
9020         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9021         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9022
9023 2010-09-23  Bruno Haible  <bruno@clisp.org>
9024
9025         setenv: Relax license.
9026         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9027         Blake.
9028         Requested by Eric Blake.
9029
9030 2010-09-22  Bruno Haible  <bruno@clisp.org>
9031
9032         termios: Relax license.
9033         * modules/termios (License): Change to LGPLv2+.
9034         Requested by Eric Blake.
9035
9036 2010-09-22  Bruno Haible  <bruno@clisp.org>
9037
9038         threadlib: Allow the package to change the default to 'no'.
9039         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9040         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9041         Reported by Paul Eggert.
9042
9043 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9044             Bruno Haible  <bruno@clisp.org>
9045
9046         Fix endless loop in mbmemcasecoll.
9047         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9048         byte.
9049         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9050
9051 2010-09-22  Bruno Haible  <bruno@clisp.org>
9052
9053         Tests for module 'memcoll'.
9054         * modules/memcoll-tests: New file.
9055         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9056
9057         memcoll, xmemcoll: Clarify size vs. length.
9058         * modules/memcoll.c (memcoll0): Clarify specification.
9059         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9060         passed to collate_error.
9061
9062 2010-09-22  Bruno Haible  <bruno@clisp.org>
9063
9064         Tests for module 'memcasecmp'.
9065         * modules/memcasecmp-tests: New file.
9066         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9067
9068 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9069
9070         * lib/pthread.in.h: Add split double-inclusion guard, and include
9071         system <pthread.h> if there is one.  Use @@-style as in other
9072         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9073         pthread.h doesn't.
9074         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9075         (pthread_mutexattr_settype, pthread_mutex_trylock):
9076         New static inline functions, if there's no system <pthread.h>.
9077         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9078         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9079         Approximate with mutexes if the system lacks spinlocks, as in
9080         MacOS.
9081         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9082         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9083         @@-style.  Check for spinlocks separately.
9084         (gl_PTHREAD_DEFAULTS): New macro.
9085         * modules/pthread: Redo to use a more typical style for in.h files.
9086
9087 2010-09-21  Eric Blake  <eblake@redhat.com>
9088
9089         net_if: enhance tests
9090         * tests/test-net_if.c (main): Move signature checks earlier.
9091         Print failures to stderr.
9092         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9093         Document the bug that we do not yet fix.
9094
9095 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9096
9097         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9098         about gnulib, not GSS.
9099
9100 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9101
9102         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9103         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9104         for Emacs.
9105         * build-aux/pmccabe2html: Make Makefile.am example code more
9106         cut-and-paste friendly.
9107
9108 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9109
9110         * tests/test-net_if.c: New file.
9111         * modules/net_if-tests: New file.
9112
9113 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9114
9115         pthread: add pthread_spin_destroy
9116         * lib/pthread.in.h (pthread_spin_destroy): New function.
9117
9118 2010-09-19  Bruno Haible  <bruno@clisp.org>
9119
9120         gnulib-tool: Fix --help output.
9121         * gnulib-tool (func_usage): Fix help message.
9122         Reported by Reuben Thomas <rrt@sc3d.org>.
9123
9124 2010-09-18  Jim Meyering  <meyering@redhat.com>
9125
9126         maint.mk: avoid unexpanded \n in two diagnostics
9127         * top/maint.mk (sc_prohibit_always_true_header_tests):
9128         Don't use a literal \n in a halt=... assignment.  It would not be
9129         expanded, and the two \n bytes would appear in the diagnostic output
9130         rather than the desired newline.  Use halt=$$(printf ... instead.
9131         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9132
9133 2010-09-18  Bruno Haible  <bruno@clisp.org>
9134
9135         netinet_in: Doc tweak.
9136         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9137         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9138
9139 2010-09-18  Jim Meyering  <meyering@redhat.com>
9140
9141         init.sh: correct an outdated comment
9142         * tests/init.sh (create_exe_shims_):  s/function/alias/
9143
9144         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9145         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9146         a file named "*.exe" is removed between the glob expansion and the
9147         processing of that oddly named file.
9148
9149 2010-09-17  Eric Blake  <eblake@redhat.com>
9150
9151         mirbsd: add some more support
9152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9153         in BSD family.
9154         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9155         devices as OpenBSD.
9156         * m4/host-os.m4 (mirbsd): Add MirBSD.
9157
9158         tests: fix unportable assumption on sys/wait.h
9159         * tests/test-sys_wait.c (main): Relax test.
9160         * tests/test-stdlib.c (main): Likewise.
9161
9162         init.sh: accomodate directory with no .exes
9163         * tests/init.sh: Accomodate directory containing only scripts.
9164
9165         tests: avoid compiler warning
9166         * tests/test-stdlib.c (main): Use the variable.
9167
9168         fdutimens, fdutimensat: update signature, again
9169         * lib/utimens.h (gl_futimens): Delete, and move signature...
9170         (fdutimens): ...here.
9171         (fdutimensat): Rearrange signature.
9172         (lutimensat): Rename variable for clarity.
9173         * lib/fdutimensat.c (fdutimensat): Update signature.
9174         * lib/utimens.c (fdutimens): Likewise.
9175         (gl_futimens): Delete.
9176         (utimens, lutimens): Update callers.
9177         * lib/futimens.c (futimens): Likewise.
9178         * tests/test-fdutimensat.c: Likewise.
9179         * tests/test-utimens.c: Likewise.
9180         * tests/test-futimens.h: Update comment.
9181         * NEWS: Mention this.
9182         Suggested by Paul Eggert.
9183
9184 2010-09-17  Bruno Haible  <bruno@clisp.org>
9185
9186         Take over the maintenance of some older macros from Autoconf.
9187         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9188         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9189         GNU Autoconf.
9190         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9191         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9192
9193 2010-09-17  Eric Blake  <eblake@redhat.com>
9194
9195         fdutimensat: drop atflag validation
9196         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9197         with valid fd, to close a race scenario where futimens is
9198         unsupported and FILE was replaced by a symlink.
9199         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9200         accordingly.
9201         Suggested by Paul Eggert.
9202
9203 2010-09-16  Bruno Haible  <bruno@clisp.org>
9204
9205         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9206         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9207
9208 2010-09-16  Bruno Haible  <bruno@clisp.org>
9209
9210         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9211         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9212         login_tty exists.
9213         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9214
9215 2010-09-16  Bruno Haible  <bruno@clisp.org>
9216
9217         login_tty: Make the replacement code work on BSD systems.
9218         * lib/login_tty.c: Include <sys/ioctl.h>.
9219         (login_tty): Use ioctl TIOCSCTTY when available.
9220         * modules/login_tty (Depends-on): Add sys_ioctl.
9221         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9222
9223 2010-09-16  Bruno Haible  <bruno@clisp.org>
9224
9225         login_tty: Stricter unit test.
9226         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9227         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9228         and tcgetsid() after login_tty.
9229         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9230
9231 2010-09-16  Bruno Haible  <bruno@clisp.org>
9232
9233         New module 'tcgetsid'.
9234         * lib/tcgetsid.c: New file.
9235         * m4/tcgetsid.m4: New file.
9236         * modules/tcgetsid: New file.
9237         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9238         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9239         GNULIB_TCGETSID, HAVE_TCGETSID.
9240         * lib/termios.in.h: Include <sys/types.h>.
9241         (tcgetsid): New declaration.
9242         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9243         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9244         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9245         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9246
9247 2010-09-16  Bruno Haible  <bruno@clisp.org>
9248
9249         Tests for module 'termios'.
9250         * modules/termios-c++-tests: New file.
9251         * modules/termios-tests: New file.
9252         * tests/test-termios-c++.cc: New file.
9253         * tests/test-termios.c: New file.
9254
9255         New module 'termios'.
9256         * modules/termios: New file.
9257         * lib/termios.in.h: New file.
9258         * m4/termios_h.m4: New file.
9259         * doc/posix-headers/termios.texi: Mention the new module.
9260
9261 2010-09-16  Eric Blake  <eblake@redhat.com>
9262
9263         fdutimensat: add an atflag parameter
9264         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9265         * lib/utimens.h (fdutimensat): Update prototype.
9266         * tests/test-fdutimensat.c: Adjust test to match.
9267         * NEWS: Document the change.
9268         Suggested by Paul Eggert.
9269
9270 2010-09-16  Bruno Haible  <bruno@clisp.org>
9271
9272         Fix typos in comments.
9273         * lib/striconveh.h: Fix typo in comment.
9274         * lib/login_tty.c (login_tty): Likewise.
9275
9276 2010-09-15  Bruno Haible  <bruno@clisp.org>
9277
9278         stdlib: clarify MirBSD WEXITSTATUS bug
9279         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9280         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9281
9282 2010-09-15  Eric Blake  <eblake@redhat.com>
9283
9284         stdlib: work around MirBSD WEXITSTATUS bug
9285         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9286         * modules/stdlib (Depends-on): Add sys_wait.
9287         * tests/test-sys_wait.c (main): Enhance test.
9288         * tests/test-stdlib.c (main): Likewise.
9289         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9290
9291         docs: mention MacOS issue with WEXITSTATUS(constant)
9292         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9293         issue.
9294         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9295
9296         strnlen: add tests
9297         * modules/strnlen-tests: New file.
9298         * tests/test-strnlen.c: Likewise.
9299
9300 2010-09-14  Bruno Haible  <bruno@clisp.org>
9301
9302         unistr/base: Avoid link errors when module 'libunistring' is also used.
9303         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9304         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9305         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9306         Declare also when HAVE_LIBUNISTRING is set.
9307         Reported by Pádraig Brady <P@draigbrady.com>.
9308
9309 2010-09-14  Eric Blake  <eblake@redhat.com>
9310
9311         test-rawmemchr: make more robust
9312         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9313         (Depends-on, configure.ac): Add needed prerequisites to use it.
9314         * modules/memchr-tests (Files, Depends-on, configure.ac):
9315         Likewise, to avoid implicit reliance on memchr module prereqs.
9316         * tests/test-memchr.c (main): Ensure proper masking.
9317         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9318         reads.
9319
9320         memchr: detect glibc Alpha bug
9321         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9322         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9323         Alpha.
9324         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9325         * tests/test-memchr.c (main): Enhance test.
9326         Reported by Nelson H. F. Beebe.
9327
9328 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9329
9330         fts, getcwd, glob: audit for dirfd returning -1
9331         * lib/fts.c (opendir): Remove #define; no longer used.
9332         (opendirat): New arg PDIR_FD.  All callers changed.
9333         (fts_build, _opendir2): Use new opendirat to avoid the need for
9334         dirfd, or for checking whether dirfd returns a negative value.
9335         Don't use opendir; always use openat followed by fdopendir.
9336         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9337         it.
9338         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9339         returns -1 here.
9340         * modules/fts (Depends-on): Remove dirfd.
9341         * modules/getcwd (Depends-on): Likewise.
9342
9343 2010-09-13  Eric Blake  <eblake@redhat.com>
9344
9345         float: fix broken MirBSD header
9346         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9347         * doc/posix-headers/float.texi (float.h): Document it.
9348
9349 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9350
9351         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9352         * lib/fts.c (opendirat): New arg extra_flags.
9353         (__opendir2): Use it to avoid following symlinks when opening
9354         a directory, if symlinks are not supposed to be followed.  See
9355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9356
9357         fdopendir: preserve argument fd before returning
9358         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9359         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9360         (fdopendir): Use them, arranging for FD to be open to the same
9361         directory that it was when it started.  (It might be temporarily
9362         closed while fdopendir is running, so this not thread- or
9363         signal-safe.)  Be careful to do the right thing even when file
9364         descriptors are scarce and dup fails with errno == EMFILE.  See
9365         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9366
9367 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9368
9369         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9370         * NEWS: Document change.
9371         * m4/regex.m4: Disable test for regoff_t size.
9372
9373 2010-09-13  Jim Meyering  <meyering@redhat.com>
9374
9375         fts: don't operate on an invalid file descriptor after failed dup
9376         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9377         negative file descriptor.
9378
9379 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9380
9381         savedir: add streamsavedir, deprecate fdsavedir
9382         * NEWS: Mention deprecation of fdsavedir.
9383         * lib/savedir.c (streamsavedir): New extern function, whose name
9384         ends in "savedir" to be consistent with the others.  This differs
9385         from savedirstream in that it doesn't close its argument.  The
9386         next version of GNU tar will use this instead of fdsavedir, to
9387         avoid some race conditions and conserve file descriptors.
9388         (savedirstream): Reimplement as a wrapper around streamsavedir.
9389         (fdsavedir): Add a comment deprecating this function.  As far as
9390         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9391         * lib/savedir.h (streamsavedir): New decl.
9392         (fdsavedir): Add a comment deprecating this.
9393
9394 2010-09-10  Bruno Haible  <bruno@clisp.org>
9395
9396         langinfo: Fix last commit.
9397         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9398         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9400
9401 2010-09-10  Bruno Haible  <bruno@clisp.org>
9402
9403         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9404         * lib/progreloc.c (O_EXEC): Define fallback.
9405
9406 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9407
9408         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9409         * NEWS: Document recent changes to fcntl-h.
9410         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9411         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9412         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9413         Similarly for O_SEARCH; this last was already true, but not documented.
9414         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9415         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9416         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9417         Likewise.
9418         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9419         is zero, not whether it is defined.
9420         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9421         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9422         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9423
9424 2010-09-10  Bruno Haible  <bruno@clisp.org>
9425
9426         langinfo, nl_langinfo: Fix for IRIX 5.3.
9427         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9428         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9429         HAVE_LANGINFO_YESEXPR.
9430         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9431         HAVE_LANGINFO_YESEXPR.
9432         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9433         HAVE_LANGINFO_T_FMT_AMPM is 0.
9434         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9435         HAVE_LANGINFO_YESEXPR is 0.
9436         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9437         NOEXPR.
9438         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9439         * doc/posix-functions/nl_langinfo.texi: Likewise.
9440         Reported by Eric Blake.
9441
9442 2010-09-10  Bruno Haible  <bruno@clisp.org>
9443
9444         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9445         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9446         on FreeBSD 8.0 and OpenBSD 4.6.
9447         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9448         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9449         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9450         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9451         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9452         ac_includes_default.
9453         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9454
9455 2010-09-09  Eric Blake  <eblake@redhat.com>
9456
9457         strsignal: work around NetBSD bug
9458         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9459         * lib/string.in.h (includes): Likewise.
9460         * doc/posix-functions/strsignal.texi (strsignal): Document the
9461         bug.
9462         Reported by Nelson H. F. Beebe.
9463
9464         gnulib-tool: work with NetBSD /bin/sh
9465         * gnulib-tool (func_cache_var, func_cache_lookup_module)
9466         (func_get_description, func_get_comment, func_get_status)
9467         (func_get_notice, func_get_applicability, func_get_filelist)
9468         (func_get_dependencies, func_get_autoconf_early_snippet)
9469         (func_get_autoconf_snippet, func_get_automake_snippet)
9470         (func_get_include_directive, func_get_link_directive)
9471         (func_get_license, func_get_maintainer, func_import): Avoid
9472         shell syntax errors from parsing syntax extensions.
9473
9474 2010-09-09  Bruno Haible  <bruno@clisp.org>
9475
9476         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9477         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
9478         a reliable way to determine whether the 'alias' command works.
9479
9480 2010-09-08  Jim Meyering  <meyering@redhat.com>
9481
9482         init.sh: penalize a set-x-impaired shell; don't disqualify it
9483         * tests/init.sh: Too many shells corrupt application stderr when
9484         you set -x, so we can't afford to disqualify them, since at least
9485         on Irix-6.5, that would disqualify all bourne shells.
9486         Instead, use a two-pass approach.
9487         On the first pass, try to find a shell that meets the stricter
9488         condition that set -x does not corrupt stderr.
9489         If no shell meets the stricter condition, retest each candidate
9490         shell, but without that extra condition.  Finally, when
9491         VERBOSE=yes is requested and set -x might cause trouble, simply
9492         issue a warning and refrain from enabling debug output.
9493
9494 2010-09-08  Eric Blake  <eblake@redhat.com>
9495
9496         unsetenv: fix OpenBSD bug
9497         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
9498         * doc/posix-functions/unsetenv.texi (unsetenv): Update
9499         documentation.
9500         Reported by Jim Meyering.
9501
9502         strtod: work around IRIX 6.5 bug
9503         * lib/strtod.c (strtod): Reparse number on shorter string if
9504         exponent parse was invalid.
9505         * tests/test-strtod.c (main): Add check for "0x1p 2".
9506         Reported by Tom G. Christensen.
9507
9508         getopt: optimize previous patch
9509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
9510         empty variable.  Speed up awk script.
9511         Reported by Paolo Bonzini.
9512
9513 2010-09-08  Jim Meyering  <meyering@redhat.com>
9514
9515         test.sh: disqualify shells for which set -x corrupts stderr
9516         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
9517         and OpenBSD 4.7.  They make it so with "set -x", environment settings
9518         appear in stderr output.  For example, this command:
9519             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
9520         prints "P=1" on those two systems:
9521
9522 2010-09-08  Bruno Haible  <bruno@clisp.org>
9523
9524         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9525         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
9526         commands, because some shells ignore redirections when there is an
9527         error in the command lookup.
9528         Reported by Eric Blake.
9529
9530 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
9531
9532         * lib/regex.h: Fix a mention of `regex_compile' (should be
9533         `re_compile_pattern').
9534         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
9535         (re_set_registers): Correct name of parameter in comment.
9536
9537         * doc/regex.texi: Add documentation for missing syntax flags.
9538         Remove commented-out documentation of defunct syntax option
9539         RE_NO_EMPTY_ALTS.
9540         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
9541         Add documentation of re_set_registers.
9542         Document trick to re-use a pattern buffer by setting fastmap manually.
9543         Update documentation of struct re_pattern_buffer per public members.
9544         Uncomment documentation of equivalence class operators and
9545         collating symbol operators, since they are now implemented,
9546         Explain leftmost-longest matching in relation to alternatives.
9547         Tidy documentation of substring matching.
9548         Remove POSIX documentation, which is done better in
9549         glibc, and refer the reader there. Keep BSD API documentation, as
9550         that is not readily available elsewhere.
9551
9552 2010-09-07  Eric Blake  <eblake@redhat.com>
9553
9554         getopt: handle POSIXLY_CORRECT set but not exported
9555         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
9556         export state of POSIXLY_CORRECT, due to bash set -o posix.
9557         Reported by Dustin J. Mitchell.
9558
9559 2010-09-05  Bruno Haible  <bruno@clisp.org>
9560
9561         gnulib-tool: Highlight the changed options.
9562         * gnulib-tool (func_usage): Display the --import, --add-import,
9563         --remove-import explanations in bold font.
9564
9565 2010-09-06  Karl Berry  <karl@gnu.org>
9566
9567         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
9568
9569 2010-09-05  Bruno Haible  <bruno@clisp.org>
9570
9571         uniwidth/width: Update comment.
9572         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
9573         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
9574
9575 2010-09-05  Bruno Haible  <bruno@clisp.org>
9576
9577         isinf, isnan: Relax license.
9578         * modules/isinf (License): Change from GPL to LGPL, with consent from
9579         Ben Pfaff.
9580         * modules/isnan (License): Likewise.
9581         Requested by Ludovic Courtès.
9582
9583 2010-09-04  Bruno Haible  <bruno@clisp.org>
9584
9585         gnulib-tool: Help migration from --import to --add-import or --update.
9586         * gnulib-tool: Emit a verbose error message when --import is used
9587         without any module name.
9588
9589 2010-09-04  Bruno Haible  <bruno@clisp.org>
9590
9591         Update doc about gnulib-tool.
9592         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
9593         'gnulib-tool --update' in more detail.
9594         Reported by Eric Blake.
9595
9596 2010-09-04  Bruno Haible  <bruno@clisp.org>
9597
9598         gnulib-tool: Change --import. New options --add/remove-import.
9599         * gnulib-tool: New options --add-import, --remove-import.
9600         (func_usage): Document them.
9601         (have_associative): Define always.
9602         (func_import): In import mode, don't merge the specified settings with
9603         the cached settings. Implement remove-import mode.
9604         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
9605         Explain when to use them versus --import.
9606         (Simple update): Use --add-import instead of --import.
9607         * NEWS: Mention the change.
9608
9609 2010-09-04  Bruno Haible  <bruno@clisp.org>
9610
9611         * doc/gnulib-tool.texi (Initial import): Update paragraph about
9612         separate gnulib.mk.
9613
9614 2010-09-04  Bruno Haible  <bruno@clisp.org>
9615
9616         gnulib-tool: Don't talk about CVS any more.
9617         * gnulib-tool (func_usage, func_import): Write "version control"
9618         instead of CVS.
9619
9620 2010-09-04  Jim Meyering  <meyering@redhat.com>
9621
9622         maint.mk: avoid obscure sc_copyright_check failure in coreutils
9623         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
9624         false positives (whose names may be ill-chosen) when searching
9625         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
9626         would cause a false-positive.
9627
9628         avoid coreutils "make distcheck" failure
9629         Coreutils tests with an absolute build directory name that contains
9630         a space.  Not quoting this directory name caused a failure.
9631         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
9632         * tests/test-vc-list-files-cvs.sh: Likewise.
9633
9634 2010-09-04  Bruno Haible  <bruno@clisp.org>
9635
9636         gnulib-tool: Avoid error when run in a package without Makefile.am.
9637         * gnulib-tool: When collecting the m4dirs in a package that does not
9638         have a Makefile.am, eliminate those directories that contain no
9639         gnulib-cache.m4. Fix expression that counts these directories.
9640
9641 2010-09-04  Bruno Haible  <bruno@clisp.org>
9642
9643         update-copyright test: Improve output when perl is missing or too old.
9644         * tests/test-update-copyright.sh: Move test of Perl version down after
9645         the test whether Perl exists. Provide an explanation relating Perl's
9646         error message to Automake's SKIP: message.
9647
9648 2010-09-04  Bruno Haible  <bruno@clisp.org>
9649
9650         Don't augment PATH in TESTS_ENVIRONMENT.
9651         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
9652         set abs_aux_dir instead of augmenting PATH.
9653         * modules/vc-list-files-tests (Makefile.am): Likewise.
9654         * tests/test-update-copyright.sh: Augment PATH here.
9655         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
9656         path_prepend_.
9657         * tests/test-vc-list-files-git.sh: Likewise.
9658
9659 2010-09-04  Jim Meyering  <meyering@redhat.com>
9660
9661         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
9662         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
9663
9664 2010-09-04  Bruno Haible  <bruno@clisp.org>
9665
9666         strdup: Fix compilation error in C++ mode.
9667         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
9668         the macro.
9669
9670 2010-09-04  Bruno Haible  <bruno@clisp.org>
9671
9672         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
9673         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
9674         macro into a function.
9675         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9676
9677 2010-09-04  Bruno Haible  <bruno@clisp.org>
9678
9679         Set PATH_SEPARATOR the same way autoconf does.
9680         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
9681         the value of PATH_SEPARATOR the same way autoconf-generated configure
9682         scripts do.
9683         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
9684         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9685
9686 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9687
9688         Set PATH_SEPARATOR the same way autoconf does.
9689         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
9690         the same way autoconf-generated configure scripts do.
9691         * posix-modules: Likewise.
9692
9693 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9694
9695         hash: fix safe_hasher const typo
9696         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
9697         const; otherwise, there is a type error later.
9698
9699 2010-09-02  Jim Meyering  <meyering@redhat.com>
9700
9701         test-update-copyright.sh: require perl 5.8.0
9702         * tests/test-update-copyright.sh: Require 5.8.0,
9703         which Tom G. Christensen has confirmed is adequate,
9704         while 5.6.1 is not.
9705
9706 2010-09-02  Eric Blake  <eblake@redhat.com>
9707
9708         tests: init.sh improvements for re-exec'ing with zsh
9709         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
9710         -vx through shell re-exec.
9711         Reported by Tom G. Christensen.
9712
9713         wctype: fix typo in previous commit
9714         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
9715         Reported by Ludovic Courtès.
9716
9717 2010-09-02  Jim Meyering  <meyering@redhat.com>
9718
9719         test-update-copyright.sh: skip test if Perl is too old
9720         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
9721         Reported by Tom G. Christensen.
9722
9723 2010-09-02  Bruno Haible  <bruno@clisp.org>
9724
9725         wctype: Avoid compilation error on IRIX 6.5.30.
9726         * lib/wctype.in.h (iswblank): Declare with a replacement if
9727         REPLACE_ISWBLANK is set.
9728         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
9729         declared. Set REPLACE_ISWBLANK.
9730         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
9731         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
9732         * doc/posix-headers/wctype.texi: Likewise.
9733         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9734
9735 2010-09-01  Bruno Haible  <bruno@clisp.org>
9736
9737         New module 'socketlib'.
9738         * modules/socketlib: New file.
9739         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
9740         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
9741         * modules/sockets (Depends-on): Add socketlib.
9742         Suggested by Sam Steingold <sds@gnu.org>.
9743
9744 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9745
9746         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
9747
9748         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
9749         when one needs search access to a directory but not read access.
9750         On systems where it is available, it works in some cases where
9751         O_RDONLY does not, namely on directories that are searchable but
9752         not readable, and which need only to be searchable.  If O_SEARCH
9753         is not available, fall back to the traditional method of using
9754         O_RDONLY.
9755
9756         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
9757         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
9758         when opening a directory that needs only to be searchable.
9759         * lib/chdir-safer.c (chdir_no_follow): Likewise.
9760         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
9761         * lib/openat-proc.c (openat_proc_name): Likewise.
9762         * lib/openat.c (openat_needs_fchdir): Likewise.
9763         * lib/save-cwd.c (save_cwd): Likewise.
9764         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
9765
9766 2010-08-28  Bruno Haible  <bruno@clisp.org>
9767
9768         New module 'host-cpu-c-abi'.
9769         * modules/host-cpu-c-abi: New file.
9770         * m4/host-cpu-c-abi.m4: New file, based on part of
9771         clisp/src/m4/general.m4.
9772         Requested by Sam Steingold <sds@gnu.org>.
9773
9774 2010-08-31  Eric Blake  <eblake@redhat.com>
9775         and Jim Meyering  <meyering@redhat.com>
9776
9777         hash: factor, and guard against misbehaving hasher function
9778         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
9779         of table->hasher's return value.  Also protect against a hash value
9780         so large that adding it to table->bucket results in a NULL pointer.
9781         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
9782         Use it in place of open-coded check-and-abort.
9783
9784 2010-08-30  Bruno Haible  <bruno@clisp.org>
9785
9786         hash: silence spurious clang warning
9787         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
9788         Reported by Eric Blake.
9789
9790 2010-08-30  Eric Blake  <eblake@redhat.com>
9791
9792         strstr, memmem, strcasestr: avoid leaked shell message
9793         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
9794         FreeBSD.
9795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9796         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9797
9798         tests: silence clang warning
9799         * tests/test-malloca.c (do_allocation): Avoid dead store.
9800
9801 2010-08-29  Bruno Haible  <bruno@clisp.org>
9802
9803         gettext: Fix recent mistake.
9804         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9805
9806 2010-08-29  Bruno Haible  <bruno@clisp.org>
9807
9808         selinux-h: Offer a --without-selinux option.
9809         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9810         --without-selinux was specified, skip all tests and define
9811         HAVE_SELINUX_SELINUX_H to 0.
9812         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9813         set LIB_SELINUX to empty.
9814         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9815         gl_LIBSELINUX. If --without-selinux was specified, replace
9816         selinux/context.h.
9817         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9818
9819 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9820             Bruno Haible  <bruno@clisp.org>
9821
9822         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9823         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9824         of HAVE_REALLOC.
9825         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9826         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9827         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9828         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9829
9830 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9831             Bruno Haible  <bruno@clisp.org>
9832
9833         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9834         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9835         HAVE_CALLOC.
9836         * lib/xmalloc.c: Update accordingly.
9837         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9838         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9839         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9840
9841 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9842             Bruno Haible  <bruno@clisp.org>
9843
9844         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9845         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9846         HAVE_MALLOC.
9847         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9848         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9849         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9850
9851 2010-08-29  Bruno Haible  <bruno@clisp.org>
9852
9853         Update modules list.
9854         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9855         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9856         (String handling <string.h>): Add astrxfrm.
9857         (File system functions): Add readlinkat.
9858
9859 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9860
9861         Tests for module 'realloc-gnu'.
9862         * modules/realloc-gnu-tests: New file.
9863         * tests/test-realloc-gnu.c: New file.
9864
9865         Tests for module 'calloc-gnu'.
9866         * modules/calloc-gnu-tests: New file.
9867         * tests/test-calloc-gnu.c: New file.
9868
9869         Tests for module 'malloc-gnu'.
9870         * modules/malloc-gnu-tests: New file.
9871         * tests/test-malloc-gnu.c: New file.
9872
9873 2010-08-28  Bruno Haible  <bruno@clisp.org>
9874
9875         Rename module 'realloc' -> 'realloc-gnu'.
9876         * modules/realloc-gnu: New file, copied from modules/realloc.
9877         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9878         obsolete.
9879         * modules/mgetgroups (Depends-on): Update.
9880         * doc/posix-functions/realloc.texi: Update.
9881         * NEWS: Mention the change.
9882
9883         Rename module 'calloc' -> 'calloc-gnu'.
9884         * modules/calloc-gnu: New file, copied from modules/calloc.
9885         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9886         obsolete.
9887         * doc/posix-functions/calloc.texi: Update.
9888         * NEWS: Mention the change.
9889
9890         Rename module 'malloc' -> 'malloc-gnu'.
9891         * modules/malloc-gnu: New file, copied from modules/malloc.
9892         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9893         obsolete.
9894         * modules/argp (Depends-on): Update.
9895         * modules/regex (Depends-on): Update.
9896         * doc/posix-functions/malloc.texi: Update.
9897         * NEWS: Mention the change.
9898
9899 2010-08-28  Eric Blake  <eblake@redhat.com>
9900
9901         pread, pwrite: add missing dependency
9902         * modules/pread (Depends-on): Add extensions.
9903         * modules/pwrite (Depends-on): Likewise.
9904
9905 2010-08-28  Bruno Haible  <bruno@clisp.org>
9906
9907         unistr/u*-strchr: Fix tests dependencies.
9908         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9909         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9910         Reported by Ian Beckwith <ianb@erislabs.net>.
9911
9912 2010-08-28  Bruno Haible  <bruno@clisp.org>
9913
9914         read-file: Don't occupy too much unused memory.
9915         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9916
9917 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9918             Eric Blake  <eblake@redhat.com>
9919             Bruno Haible  <bruno@clisp.org>
9920
9921         read-file: Avoid memory reallocations with regular files.
9922         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9923         (fread_file): With regular files, use the remaining length as the
9924         initial buffer size.  Check against overflow.
9925         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9926         sys_stat.
9927
9928 2010-08-28  Bruno Haible  <bruno@clisp.org>
9929
9930         ftello: Relax license.
9931         * modules/ftello (License): Relax to LGPLv2+.
9932         Reported by Eric Blake.
9933
9934 2010-08-28  Bruno Haible  <bruno@clisp.org>
9935
9936         Avoid relocwrapper link errors due to gnulib replacement functions.
9937         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9938         function.
9939         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9940
9941 2010-08-28  Bruno Haible  <bruno@clisp.org>
9942
9943         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9944         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9945         defined.
9946         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9947         Suggested by Eric Blake.
9948
9949 2010-08-28  Bruno Haible  <bruno@clisp.org>
9950
9951         sys_socket, netdb: Ensure socklen_t gets defined.
9952         * modules/sys_socket (Depends-on): Add socklen.
9953         * modules/netdb (Depends-on): Likewise.
9954         * modules/getaddrinfo (Depends-on): Remove socklen.
9955         * modules/getsockopt (Depends-on): Likewise.
9956         * modules/setsockopt (Depends-on): Likewise.
9957         * tests/test-sys_socket.c: Check that socklen_t is defined.
9958         * tests/test-netdb.c: Likewise.
9959         * m4/socklen.m4: Update comments.
9960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9961
9962 2010-08-27  Eric Blake  <eblake@redhat.com>
9963
9964         login_tty: add missing dependency
9965         * modules/login_tty (Depends-on): Add pty.
9966
9967 2010-08-26  Eric Blake  <eblake@redhat.com>
9968
9969         lib-symbol-versions: fix m4 quoting
9970         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9971         format for AC_LINK_IFELSE.
9972
9973         glob: fix compile test
9974         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9975
9976         btowc: fix missing file
9977         * modules/btowc (Files): Also ship locale-fr.m4.
9978
9979         lseek: fix link test
9980         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9981         AC_LINK_IFELSE.
9982
9983         include_next: silence autoconf 2.68 warning
9984         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9985         AC_COMPILE_IFELSE as special.
9986         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9987         autoconf < 2.68.
9988
9989         acl: fix compilation test
9990         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9991         AC_COMPILE_IFELSE.
9992
9993 2010-08-26  Bruno Haible  <bruno@clisp.org>
9994
9995         Modernize AC_TRY_RUN invocations.
9996         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9997         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9998         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9999         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10000         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10001         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10002         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10003         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10004         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10005         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10006         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10007         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10008         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10009         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10010         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10011         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10012         gl_MBRLEN_NUL_RETVAL): Likewise.
10013         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10014         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10015         Likewise.
10016         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10017         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10018         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10019         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10020         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10021         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10022         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10023         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10024         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10025         Likewise.
10026         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10027         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10028         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10029         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10030         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10031         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10032         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10033         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10034         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10036
10037 2010-08-26  Bruno Haible  <bruno@clisp.org>
10038
10039         Modernize AC_TRY_LINK invocations.
10040         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10041         AC_TRY_LINK.
10042         * m4/argp.m4 (gl_ARGP): Likewise.
10043         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10044         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10045         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10046         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10047         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10048         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10049         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10050         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10051         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10052         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10053         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10054         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10055         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10056         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10057         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10058         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10059         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10060         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10061         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10062         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10063         Likewise.
10064         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10065         Likewise.
10066         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10067         Likewise.
10068         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10069         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10070         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10071         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10072         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10073         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10074         * m4/servent.m4 (gl_SERVENT): Likewise.
10075         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10076         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10077         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10078         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10079         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10080         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10081         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10082         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10083         * modules/tsearch-tests (configure.ac): Likewise.
10084
10085 2010-08-26  Bruno Haible  <bruno@clisp.org>
10086
10087         Modernize AC_TRY_COMPILE invocations.
10088         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10089         AC_TRY_COMPILE.
10090         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10091         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10092         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10093         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10094         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10095         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10096         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10097         * m4/lock.m4 (gl_LOCK): Likewise.
10098         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10099         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10100         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10101         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10102         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10103         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10104         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10105         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10106         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10107         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10108         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10109         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10110         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10111         extraneous semicolon.
10112
10113 2010-08-26  Jim Meyering  <meyering@redhat.com>
10114
10115         stat-time: relax license LGPL
10116         * modules/stat-time (License): Change from GPL to LGPL,
10117         with consent from all contributors, for use in libguile.
10118         Requested by Ludovic Courtès.
10119
10120 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10121
10122         poll: return immediately on POLLHUP.
10123         * lib/poll.c (poll): Always set timeout before wait_timeout is
10124         computed.
10125
10126 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10127
10128         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10129         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10130         rmdir ("dir/.//"), unlinkat.
10131
10132 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10133
10134         stdbool: avoid spurious failure with modern xlc
10135         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10136
10137 2010-08-24  Bruno Haible  <bruno@clisp.org>
10138
10139         getloadavg: simplify code
10140         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10141         gl_have_func. Update comments.
10142
10143 2010-08-24  Eric Blake  <eblake@redhat.com>
10144
10145         getloadavg: don't define SVR4 on cygwin
10146         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10147         only define SVR4 when -lkvm is required.
10148         Reported by Yaakov Selkowitz.
10149
10150 2010-08-24  Bruno Haible  <bruno@clisp.org>
10151
10152         priv-set: fix comment
10153         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10154
10155 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10156
10157         priv-set: fix comments
10158         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10159         to match code, as suggested by David Bartley in:
10160         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10161
10162 2010-08-23  Eric Blake  <eblake@redhat.com>
10163
10164         stdbool: avoid rejecting clang
10165         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10166         * tests/test-stdbool.c: Enable more tests if using the system
10167         <stdbool.h> instead of the gnulib replacement.
10168         (main): Move xlc bug test to a runtime test for all compilers.
10169         Reported by Anders Kaseorg.
10170
10171         argz: fix shell quoting issue
10172         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10173         Reported by Charles Wilson.
10174
10175 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10176             Erik Faye-Lund <kusmabite@gmail.com>
10177
10178         poll, select: handle ERROR_BROKEN_PIPE.
10179         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10180         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10181         * lib/select.c (win32_compute_revents): Do not mark a pipe
10182         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10183
10184 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10185
10186         fts: allow compilation with C++
10187         * lib/fts_.h: Specify extern "C" linkage with C++.
10188
10189 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10190
10191         Fix gnulib-tool sed script de-commentation for AIX sed.
10192         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10193         sed.
10194
10195 2010-08-17  Eric Blake  <eblake@redhat.com>
10196
10197         test-stddef: test for (some) offsetof bugs
10198         * tests/test-stddef.c: Enhance test to ensure correct type of
10199         offsetof.
10200         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10201         that we are not fixing at this time.
10202
10203 2010-08-15  Bruno Haible  <bruno@clisp.org>
10204
10205         stpncpy: Allow stpncpy to be defined as a macro.
10206         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10207         if it's already correctly declared.
10208         * lib/string.in.h (stpncpy): Undefine before redefining.
10209         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10210
10211 2010-08-14  Bruno Haible  <bruno@clisp.org>
10212
10213         Rename module 'memxfrm' to 'amemxfrm'.
10214         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10215         (amemxfrm): Renamed from memxfrm.
10216         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10217         (amemxfrm): Renamed from memxfrm.
10218         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10219         * NEWS: Mention the change.
10220         * MODULES.html.sh (String handling <string.h>): Update.
10221         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10222         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10223         * lib/unicase/u16-casexfrm.c: Likewise.
10224         * lib/unicase/u32-casexfrm.c: Likewise.
10225         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10226         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10227         * lib/uninorm/u16-normxfrm.c: Likewise.
10228         * lib/uninorm/u32-normxfrm.c: Likewise.
10229         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10230         memxfrm.
10231         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10232         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10233         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10234         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10235         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10236         Suggested by Paul Eggert.
10237
10238 2010-08-14  Bruno Haible  <bruno@clisp.org>
10239
10240         Tests for module 'astrxfrm'.
10241         * modules/astrxfrm-tests: New file.
10242         * tests/test-astrxfrm.c: New file.
10243
10244         New module 'astrxfrm'.
10245         * lib/astrxfrm.h: New file.
10246         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10247         * modules/astrxfrm: New file.
10248
10249 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10250
10251         regex: Tweak doc.
10252         * doc/regex.texi (Overview): Don't mention regex.c.
10253         (GNU Regular Expression Compiling): Likewise.
10254         (Match-end-of-line Operator): Mention 'not_eol'.
10255
10256 2010-08-14  Brian Gough  <bjg@gnu.org>
10257             Bruno Haible  <bruno@clisp.org>
10258
10259         git-merge-changelog: add doc relating to use with bzr and hg.
10260         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10261
10262 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10263
10264         pthread: fix pthread.h creation for srcdir != builddir
10265         * modules/pthread (Makefile.am): Fix the rule to work also in a
10266         non-srcdir build.
10267
10268 2010-08-13  Karl Berry  <karl@gnu.org>
10269
10270         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10271         * doc/posix-*/*: force line break before @url of POSIX
10272         specifications.
10273         Suggested by Werner Lemberg.
10274
10275 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10276
10277         strtod: fix const diagnostic
10278         * lib/strtod.c (strtod): Don't assign const char * to char *,
10279         as this elicits a warning from GCC when warnings are enabled.
10280
10281 2010-08-10  Pádraig Brady <P@draigbrady.com>
10282         and Eric Blake  <eblake@redhat.com>
10283
10284         copy-acl: ignore ENOTSUP on HP-UX
10285         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10286         so that it is available for HP-UX.
10287         * lib/copy-acl.c (qcopy_acl): Use it.
10288         Reported by Patrick M. Callahan.
10289
10290 2010-08-10  Eric Blake  <eblake@redhat.com>
10291
10292         open, chown: relax license
10293         * modules/open (License): Change to LGPLv2+, with consent by all
10294         authors, for use in augeas.
10295         * modules/chown (License): Likewise.
10296         * modules/lchown (Likewise): Likewise.
10297         Requested by Adam Stokes.
10298
10299 2010-08-09  Karl Berry  <karl@gnu.org>
10300
10301         * build-aux/ar-lib: new file, import from Automake.
10302         * config/srclist.txt: autocheck for updates.
10303
10304 2010-08-09  Eric Blake  <eblake@redhat.com>
10305
10306         readlinkat: adjust client modules
10307         * modules/areadlinkat (Depends-on): Use readlinkat, not
10308         symlinkat.
10309         * modules/areadlinkat-with-size (Depends-on): Likewise.
10310
10311         mknod: be more vocal about danger of running tests as root
10312         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10313         root, since that is just asking for problems.
10314         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10315
10316         readlinkat: split into its own module
10317         * modules/symlinkat: Split readlinkat...
10318         * modules/readlinkat: ...into separate module.
10319         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10320         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10321         * lib/symlinkat.c (readlinkat): Move...
10322         * lib/readlinkat.c: ...into new file.
10323         * modules/symlinkat-tests: Split readlinkat test...
10324         * modules/readlinkat-tests: ...into separate module.
10325         * tests/test-symlinkat.c: Split...
10326         * tests/test-readlinkat.c: ...into new file.
10327         * NEWS: Document the split.
10328         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10329         * lib/unistd.in.h (readlinkat): Likewise.
10330         Suggested by Bruno Haible.
10331
10332 2010-08-08  Bruno Haible  <bruno@clisp.org>
10333
10334         memxfrm: Speed up.
10335         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10336         that usually only one call to strxfrm is necessary for each string
10337         part.
10338         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10339
10340 2010-08-07  Karl Berry  <karl@gnu.org>
10341
10342         * doc/posix-headers/limits.texi,
10343         * doc/posix-functions/malloc.texi,
10344         * doc/posix-functions/strsignal.texi: missing @item.
10345         * doc/ld-version-script.texi: spurious leading i.
10346         * doc/regex.texi (Interval Operators): no commas inside @var.
10347
10348 2010-08-01  Bruno Haible  <bruno@clisp.org>
10349
10350         Integrate the regex documentation.
10351         * doc/gnulib.texi: Define 'cn' index.
10352         (Regular expressions): New a chapter that includes regex.texi and
10353         regexprops-generic.texi.
10354         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10355         syntax.
10356
10357         Whitespace cleanup.
10358         * doc/regex.texi: Remove trailing spaces.
10359
10360         Add regex documentation.
10361         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10362         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10363         Written by Kathy A. Hargreaves and Karl Berry.
10364
10365 2010-08-01  Bruno Haible  <bruno@clisp.org>
10366
10367         link: Update documentation.
10368         * doc/posix-functions/link.texi: Update regarding Solaris.
10369
10370 2010-07-31  Bruno Haible  <bruno@clisp.org>
10371
10372         Update modules list.
10373         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10374         (String handling <string.h>): Add memcmp2, memxfrm.
10375         (Container data structures): Add xlist, xsublist, xoset.
10376         (Core language properties): Add alignof, unused-parameter.
10377         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10378         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10379         (Unibyte characters <ctype.h>): New section.
10380         (String handling <string.h>): New section.
10381         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10382         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10383         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10384         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10385         tan, tanh, tanl, y0, y1, yn.
10386         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10387         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10388         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10389         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10390         unlockpt, vdprintf, vdprintf-posix.
10391         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10392         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10393         xconcat-filename.
10394         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10395         getdtablesize, pipe2, pipe2-safer.
10396         (Security): New section.
10397         (Networking functions): Add accept4.
10398         (Signal handling): Add sigpipe.
10399         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10400         mbmemcasecoll.
10401         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10402         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10403         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10404         pipe-filter-ii.
10405         (Misc): Add argp-version-etc, login_tty, parse-duration.
10406
10407 2010-07-31  Bruno Haible  <bruno@clisp.org>
10408
10409         Improve doc in MODULES.html.
10410         * modules/linkat (Description): Add the word "function".
10411         * modules/mkfifo (Description): Likewise.
10412         * modules/mknod (Description): Likewise.
10413         * modules/remove (Description): Likewise.
10414         * modules/renameat (Description): Likewise.
10415         * modules/stat (Description): Likewise.
10416         * modules/symlink (Description): Likewise.
10417         * modules/unlink (Description): Likewise.
10418
10419 2010-07-31  Bruno Haible  <bruno@clisp.org>
10420
10421         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10422         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10423         option --enable/disable-c++ instead of --enable/disable-cxx.
10424         * NEWS: Mention the change.
10425
10426 2010-07-31  Bruno Haible  <bruno@clisp.org>
10427
10428         readlink, areadlink: Relax test a bit.
10429         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10430         alternative to ENOTDIR.
10431         * tests/test-areadlink.h (test_areadlink): Likewise.
10432         Reported by Rainer Tammer.
10433
10434 2010-07-31  Bruno Haible  <bruno@clisp.org>
10435
10436         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10437         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10438         character, perform the search using U_STRCHR.
10439         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10440         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10441         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10442         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10443         Suggested by Paolo Bonzini.
10444
10445 2010-07-31  Bruno Haible  <bruno@clisp.org>
10446
10447         unistr/u*-strstr: Fix dependencies.
10448         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10449         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10450         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10451
10452 2010-07-31  Bruno Haible  <bruno@clisp.org>
10453
10454         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10455         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10456         the beginning of the loop.
10457         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10458         cases in 'switch' statement.
10459
10460         unistr/u8-strchr: Fix several bugs.
10461         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
10462         the string. When not found, return NULL, not a pointer near the end.
10463
10464         More tests for unistr/u8-strchr.
10465         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
10466         that the function does not read past the first occurrence of the byte
10467         being searched.
10468         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
10469         * tests/unistr/test-u16-strchr.c (main): New function.
10470         * tests/unistr/test-u32-strchr.c (main): New function.
10471
10472 2010-07-31  Bruno Haible  <bruno@clisp.org>
10473
10474         posix-modules: Ignore backup files of documentation files.
10475         * posix-modules: grep only through files named *.texi.
10476
10477 2010-07-31  Bruno Haible  <bruno@clisp.org>
10478
10479         symlinkat: Fix documentation.
10480         * doc/posix-functions/readlinkat.texi: Fix module name.
10481
10482 2010-07-31  Bruno Haible  <bruno@clisp.org>
10483
10484         fchownat: Replace also when chown has the trailing slash bug.
10485         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
10486         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
10487         introduced on 2010-04-10.
10488         Reported by Rainer Tammer.
10489
10490 2010-07-31  Bruno Haible  <bruno@clisp.org>
10491
10492         linkat: Work around AIX 7.1 bug.
10493         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
10494         whether linkat handles trailing slash correctly. If not, replace linkat
10495         and define LINKAT_TRAILING_SLASH_BUG.
10496         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
10497         check whether (fd1,file1) points to a directory if file1 or file2 ends
10498         in a slash. Code taken from lib/link.c.
10499         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
10500         Reported by Rainer Tammer.
10501
10502 2010-07-31  Bruno Haible  <bruno@clisp.org>
10503
10504         Correctly determine whether pow is available in libc on AIX 7 with xlc.
10505         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
10506         This disables an xlc optimization that was causing wrong test results.
10507         Reported by Rainer Tammer.
10508
10509 2010-07-31  Bruno Haible  <bruno@clisp.org>
10510
10511         iconv: Work around AIX 6.1..7.1 bug.
10512         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
10513         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
10514         cross-compiling, guess no on all versions of AIX.
10515         Reported by Rainer Tammer.
10516
10517 2010-07-31  Bruno Haible  <bruno@clisp.org>
10518
10519         readlink: Relax test a bit.
10520         * tests/test-readlink.h (test_readlink): Allow different errno value
10521         when readlink is called with a file name that ends in / and refers to
10522         a file.
10523         Suggested by Eric Blake.
10524         Reported by Rainer Tammer.
10525
10526 2010-07-31  Bruno Haible  <bruno@clisp.org>
10527
10528         copysign: Does not require -lm on glibc systems.
10529         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
10530         gl_COMMON_DOUBLE_MATHFUNC.
10531         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
10532
10533 2010-07-31  Bruno Haible  <bruno@clisp.org>
10534
10535         duplocale: Work around AIX 7.1 bug.
10536         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
10537         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
10538         * lib/duplocale.c (rpl_duplocale): Update comment.
10539         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
10540         Reported by Rainer Tammer.
10541
10542 2010-07-30  Bruno Haible  <bruno@clisp.org>
10543
10544         dirfd: Avoid link error on AIX 7.1.
10545         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
10546         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
10547         exist, set REPLACE_DIRFD.
10548         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
10549         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
10550         * doc/posix-functions/dirfd.texi: Update.
10551         Reported by Rainer Tammer.
10552
10553 2010-07-30  Eric Blake  <eblake@redhat.com>
10554
10555         strtod: next round of AIX fixes
10556         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
10557         exponent.
10558         * tests/test-strtod.c (main): Enhance tests.
10559         * doc/posix-functions/strtod.texi (strtod): Document next bug.
10560         Reported by Rainer Tammer.
10561
10562         futimens: fix configure check
10563         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
10564         Reported by Bruno Haible.
10565
10566 2010-07-30  Bruno Haible  <bruno@clisp.org>
10567
10568         getline: Update regarding AIX.
10569         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
10570         Reported by Rainer Tammer.
10571
10572 2010-07-30  Bruno Haible  <bruno@clisp.org>
10573
10574         wcwidth: Drop replacement on AIX 7.
10575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
10576         AIX 7.
10577         Reported by Rainer Tammer.
10578
10579 2010-07-30  Bruno Haible  <bruno@clisp.org>
10580
10581         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
10582         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
10583         a 'char *'.
10584         Reported by Rainer Tammer.
10585
10586 2010-07-30  Bruno Haible  <bruno@clisp.org>
10587
10588         unlink: Update regarding AIX.
10589         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
10590         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
10591         Reported by Rainer Tammer.
10592
10593 2010-07-30  Bruno Haible  <bruno@clisp.org>
10594
10595         symlink: Update regarding AIX.
10596         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
10597         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
10598         Reported by Rainer Tammer.
10599
10600 2010-07-30  Bruno Haible  <bruno@clisp.org>
10601
10602         strndup: Update regarding AIX.
10603         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
10604         AIX 7.
10605         Reported by Rainer Tammer.
10606
10607 2010-07-30  Bruno Haible  <bruno@clisp.org>
10608
10609         stat: Update regarding AIX.
10610         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
10611         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
10612         Reported by Rainer Tammer.
10613
10614 2010-07-30  Bruno Haible  <bruno@clisp.org>
10615
10616         truncl: Fix autoconf test.
10617         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
10618         whether truncl works.
10619         Reported by Rainer Tammer.
10620
10621 2010-07-30  Bruno Haible  <bruno@clisp.org>
10622
10623         round: Update regarding AIX.
10624         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
10625         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
10626         Reported by Rainer Tammer.
10627
10628 2010-07-30  Bruno Haible  <bruno@clisp.org>
10629
10630         rename: Update regarding AIX.
10631         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
10632         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
10633         Reported by Rainer Tammer.
10634
10635 2010-07-30  Bruno Haible  <bruno@clisp.org>
10636
10637         printf.m4: Update regarding AIX.
10638         * m4/printf.m4: Update comments regarding AIX.
10639         Reported by Rainer Tammer.
10640
10641 2010-07-30  Bruno Haible  <bruno@clisp.org>
10642
10643         iconv: Update regarding AIX.
10644         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
10645         AIX 7.
10646         Reported by Rainer Tammer.
10647
10648 2010-07-30  Bruno Haible  <bruno@clisp.org>
10649
10650         getopt: Update regarding AIX.
10651         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
10652         no on AIX.
10653         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
10654         Reported by Rainer Tammer.
10655
10656 2010-07-30  Bruno Haible  <bruno@clisp.org>
10657
10658         ldexpl; Update regarding AIX.
10659         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
10660         on AIX 7.
10661         Reported by Rainer Tammer.
10662
10663 2010-07-30  Bruno Haible  <bruno@clisp.org>
10664
10665         frexpl: Update regarding AIX.
10666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
10667         on AIX 7.
10668         Reported by Rainer Tammer.
10669
10670 2010-07-30  Bruno Haible  <bruno@clisp.org>
10671
10672         open, fopen: Update regarding AIX.
10673         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
10674         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10675         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
10676         * doc/posix-functions/fopen.texi: Likewise.
10677         Reported by Rainer Tammer.
10678
10679 2010-07-30  Bruno Haible  <bruno@clisp.org>
10680
10681         chown: Update doc regarding AIX.
10682         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
10683         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
10684         Reported by Rainer Tammer.
10685
10686 2010-07-30  Eric Blake  <eblake@redhat.com>
10687
10688         strtod: fix bug in replacement function on AIX
10689         * lib/strtod.c (strtod): Special case broken "0x" parse in
10690         underlying strtod.
10691         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
10692         * doc/posix-functions/strtod.texi (strtod): Likewise.
10693         Reported by Rainer Tammer.
10694
10695 2010-07-30  Bruno Haible  <bruno@clisp.org>
10696
10697         mbrlen: Fix cross-compilation guess for AIX.
10698         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
10699         guess. Leftover from 2008-12-22.
10700
10701 2010-07-30  Bruno Haible  <bruno@clisp.org>
10702
10703         mbrtowc: Fix cross-compilation guess for AIX.
10704         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
10705         guess. Leftover from 2008-12-21.
10706
10707 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
10708
10709         init.sh: work around trap limitation of some shells
10710         * tests/init.sh (setup_): Move exit trap outside of shell function.
10711
10712 2010-07-29  Eric Blake  <eblake@redhat.com>
10713
10714         strtod: aid debugging
10715         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
10716         understanding why strtod is rejected.
10717
10718 2010-07-28  Bruno Haible  <bruno@clisp.org>
10719
10720         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
10721         * lib/unistr/u8-chr.c: Include <string.h>.
10722         * tests/unistr/test-u8-chr.c: Likewise.
10723         * tests/unistr/test-u16-chr.c: Likewise.
10724         * tests/unistr/test-u32-chr.c: Likewise.
10725         * tests/unistr/test-u8-strchr.c: Likewise.
10726         * tests/unistr/test-u16-strchr.c: Likewise.
10727         * tests/unistr/test-u32-strchr.c: Likewise.
10728         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
10729         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
10730         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
10731         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
10732
10733 2010-07-28  Bruno Haible  <bruno@clisp.org>
10734
10735         Use spaces for indentation, not tabs.
10736         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10737
10738 2010-07-27  Bruno Haible  <bruno@clisp.org>
10739
10740         mbspcasecmp: Fix function specification.
10741         * lib/string.in.h (mbspcasecmp): Fix specification comment.
10742         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
10743         Reported by Eric Blake <eblake@redhat.com>.
10744
10745 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
10746
10747         timespec: use cast and not conditional, as truncation isn't possible
10748         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
10749         instead of a conditional.  Comment about the situation in more detail.
10750         This undoes most of the 2009-10-29 patch.
10751
10752 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
10753
10754         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
10755         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
10756         * lib/unistr/u8-strchr.c: Likewise.
10757         * modules/unistr/u8-chr: Depend on memchr.
10758
10759         unistr/u*-strchr: add tests
10760         * modules/unistr/u8-strchr-tests: New file.
10761         * modules/unistr/u16-strchr-tests: New file.
10762         * modules/unistr/u32-strchr-tests: New file.
10763         * tests/unistr/test-strchr.h: New file.
10764         * tests/unistr/test-u8-strchr.c: New file.
10765         * tests/unistr/test-u16-strchr.c: New file.
10766         * tests/unistr/test-u32-strchr.c: New file.
10767
10768         unistr/u*-chr: test multibyte sequences more
10769         * tests/unistr/test-chr.h: Do complete testing of the characters in the
10770         test vector.
10771         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
10772         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
10773         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
10774
10775         unistr/u*-chr: test multibyte sequences
10776         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
10777
10778         unistr/u*-chr: prepare for multibyte tests
10779         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
10780         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
10781         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
10782         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
10783         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
10784         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
10785
10786 2010-07-18  Bruno Haible  <bruno@clisp.org>
10787
10788         unistr/u8-strchr: Optimize non-ASCII argument case.
10789         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
10790         because the first byte often matches anyway.
10791         Reported by Pádraig Brady <P@draigbrady.com>.
10792
10793 2010-07-15  Karl Berry  <karl@gnu.org>
10794
10795         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
10796
10797 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10798
10799         getcwd: on Solaris, work better if ancestors are inaccessible
10800         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10801         buffer and size, try again with a large buffer.  This works better
10802         on Solaris, since its getcwd succeeds even if the path to the root
10803         is inaccessible, and this is helpful in common cases such as .zfs
10804         hidden directories.  Problem reported by J Chapman Flack in
10805         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10806         Use system getcwd if it's declared, not merely if it's partly
10807         working; use the partly-working test only to avoid needless effort
10808         if the system getcwd fails.
10809         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10810         comment that was already obsolete and is now even more obsolete.
10811         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10812         now might call strdup.
10813
10814 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10815
10816         pthread: Add enough so that coreutils/src/sort.c compiles.
10817         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10818         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10819         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10820         Include <sys/types.h>, in case it defines pthread_t.
10821         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10822         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10823         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10824         (pthread_rwlockattr_t, pthread_spinlock_t):
10825         New typedefs, if HAVE_PTHREAD_T is not defined.
10826         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10827         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10828         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10829         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10830         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10831         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10832         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10833         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10834         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10835         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10836         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10837         New macros.
10838         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10839         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10840         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10841         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10842         (pthread_spin_unlock): New dummy functions.
10843         (pthread_create): Return EAGAIN; don't set errno.
10844         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10845         require AC_C_INLINE.
10846         * modules/pthread (Depends-on): Add sched, time.
10847         (pthread.h): Use AM_V_GEN.
10848
10849 2010-07-13  Bruno Haible  <bruno@clisp.org>
10850
10851         striconveh: Don't malloc memory if the result buffer is sufficient.
10852         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10853         buffer if its size is sufficient.
10854         Reported by Ludovic Courtès <ludo@gnu.org>.
10855
10856 2010-07-13  Bruno Haible  <bruno@clisp.org>
10857
10858         strtod: Add safety check.
10859         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10860
10861 2010-07-12  Bruno Haible  <bruno@clisp.org>
10862
10863         Unify tests that set gl_cv_func_ldexpl_no_libm.
10864         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10865         gl_FUNC_LDEXPL.
10866         (gl_FUNC_LDEXPL): Invoke it.
10867         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10868
10869 2010-07-12  Bruno Haible  <bruno@clisp.org>
10870
10871         Unify tests that set gl_cv_func_ldexp_no_libm.
10872         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10873         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10874         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10875         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10876         * modules/strtod (Files): Add m4/ldexp.m4.
10877
10878 2010-07-12  Bruno Haible  <bruno@clisp.org>
10879
10880         Unify tests that set gl_cv_func_frexpl_no_libm.
10881         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10882         gl_FUNC_FREXPL_NO_LIBM.
10883         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10884         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10885
10886 2010-07-12  Bruno Haible  <bruno@clisp.org>
10887
10888         Unify tests that set gl_cv_func_frexp_no_libm.
10889         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10890         gl_FUNC_FREXP_NO_LIBM.
10891         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10892         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10893
10894 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10895
10896         memcoll: clarify sizes versus lengths, document better, and tweak perf
10897         * lib/memcoll.c (strcoll_loop, memcoll0):
10898         Improve quality of descriptive comments.  Name variables
10899         consistently as to whether they are lengths (which do not include
10900         terminating null) versus sizes (which do).
10901         * lib/xmemcoll.c (xmemcoll0): Likewise.
10902         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10903         returned when s1size == 0; this is easier to compile and saves
10904         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10905
10906 2010-07-12  Bruno Haible  <bruno@clisp.org>
10907
10908         Tests for module '_Exit'.
10909         * modules/_Exit-tests: New file.
10910         * tests/test-_Exit.sh: New file.
10911         * tests/test-_Exit.c: New file.
10912
10913         New module '_Exit'.
10914         * lib/stdlib.in.h (__attribute__): New macro.
10915         (_Exit): New declaration.
10916         * lib/_Exit.c: New file.
10917         * m4/_Exit.m4: New file.
10918         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10919         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10920         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10921         * modules/_Exit: New file.
10922         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10923         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10924
10925 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10926
10927         strtod: make it more-accurate typically, and don't require libm
10928         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10929         Include limits.h.  Don't include string.h.
10930         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10931         (locale_isspace): New function, so that no casts are needed to
10932         check whether *s is a space.
10933         (ldexp): Provide an unused dummy if not available.
10934         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10935         (strtod): Use them.  This implementation prefers to use the
10936         underlying strtod if available, falling back on our own code
10937         only to fix known bugs.  This is more likely to produce an
10938         accurate result.  Also, it avoids the use of libm functions.
10939         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10940         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10941         was absent, but it caused a test failure with coreutils.
10942         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10943         with libm.
10944         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10945         * modules/strtod-tests (Makefile.am): Likewise.
10946
10947 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10948             Bruno Haible  <bruno@clisp.org>
10949
10950         unistr/u8-strchr: Optimize ASCII argument case.
10951         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10952
10953 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10954
10955         (x)memcoll: minor tweaks
10956         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10957         is after the type that it qualifies.
10958         (memcoll0): Likewise.
10959         * lib/memcoll.h (memcoll0): Likewise.
10960         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10961         * lib/xmemcoll.h (xmemcoll0): Likewise.
10962         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10963         differs from memcoll in that the NUL byte is part of the argument.
10964         Omit the abort-checks, as performance is a real issue here.  Plus,
10965         the checks were wrong anyway (an off-by-one error).  Omit local
10966         variable 'diff', as it's a bit clearer that way.
10967         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10968         no longer needed.
10969
10970 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10971
10972         (x)memcoll: speedup when input is known to be NUL delimited
10973         * lib/memcoll.c: Include stdlib.
10974         (memcoll0) New function.
10975         (strcoll_loop) New function, refactored for use in both memcoll
10976         and memcoll0.
10977         * lib/memcoll.h: Add prototype for memcoll0.
10978         * lib/xmemcoll.c: (xmemcoll0) New function.
10979         (collate_error) New function, refactored for use in both xmemcoll
10980         and xmemcoll0.
10981         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10982         * m4/memcoll.m4: add inline invocation.
10983
10984 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10985
10986         * build-aux/bootstrap: Remove any local translations
10987         from the translation project synchronization directory,
10988         so that local only translations are not distributed.
10989
10990 2010-07-04  Bruno Haible  <bruno@clisp.org>
10991
10992         fsusage: Clarify which code applies to which platforms.
10993         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10994         platform.
10995         * lib/fsusage.c (get_fs_usage): Likewise.
10996
10997 2010-07-04  Bruno Haible  <bruno@clisp.org>
10998
10999         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11000         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11001         Reported by Martin Lambers <marlam@marlam.de>.
11002
11003 2010-07-04  Jim Meyering  <meyering@redhat.com>
11004
11005         hash: once again explicitly disallow insertion of NULL
11006         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11007         inserting a NULL pointer cannot work with these functions.
11008         Add a comment with details.
11009         This reverts part of the 2010-07-01 commit, 5bef1a35
11010         "hash: extend module to deal with non-pointer keys".
11011
11012 2010-07-01  Bruno Haible  <bruno@clisp.org>
11013
11014         stdbool: Update doc.
11015         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11016         Info from Christian Weisgerber <naddy@mips.inka.de>.
11017
11018 2010-07-01  Jim Meyering  <meyering@redhat.com>
11019
11020         hash: extend module to deal with non-pointer keys
11021         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11022         but that allows insertion of non-pointer entries.
11023         Do not disallow an ENTRY value of NULL.
11024         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11025         * lib/hash.h (hash_insert0): Declare.
11026
11027 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11028
11029         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11030         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11031         not present (i.e. with autoconf 2.59 and when using gettextize, not
11032         gnulib), require AC_GNU_SOURCE instead.
11033
11034 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11035
11036         idpriv-drop: Fix tests.
11037         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11038         not to the test-idpriv-droptemp program.
11039
11040 2010-06-29  Bruno Haible  <bruno@clisp.org>
11041
11042         string: Fix syntax error with g++ 2.96.
11043         * lib/string.in.h (__pure__): Remove definition.
11044         (_GL_ATTRIBUTE_PURE): New macro.
11045         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11046         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11047         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11048
11049 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11050
11051         unitypes: Fix bug introduced on 2010-05-18.
11052         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11053
11054 2010-06-22  Eric Blake  <eblake@redhat.com>
11055
11056         memmem: slight optimization
11057         * lib/str-two-way.h (critical_factorization): Update comments.
11058         Reduce work during factorization phase.
11059         Reported by Carlos Bueno <carlos@bueno.org>.
11060
11061 2010-06-21  Bruno Haible  <bruno@clisp.org>
11062
11063         Fix HAVE_CALLOC_POSIX misnomer.
11064         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11065         !HAVE_CALLOC_POSIX.
11066         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11067         HAVE_CALLOC_POSIX.
11068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11069         instead of HAVE_CALLOC_POSIX.
11070         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11071         HAVE_CALLOC_POSIX.
11072
11073         Use modern idiom for calloc() replacement.
11074         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11075         AC_FUNC_CALLOC.
11076         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11077         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11078         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11079         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11080         (gl_REPLACE_CALLOC): New macro.
11081
11082 2010-06-21  Bruno Haible  <bruno@clisp.org>
11083
11084         Fix HAVE_REALLOC_POSIX misnomer.
11085         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11086         !HAVE_REALLOC_POSIX.
11087         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11088         HAVE_REALLOC_POSIX.
11089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11090         instead of HAVE_REALLOC_POSIX.
11091         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11092         HAVE_REALLOC_POSIX.
11093
11094         Use modern idiom for realloc() replacement.
11095         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11096         AC_FUNC_REALLOC.
11097         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11098         Autoconf's AC_FUNC_REALLOC.
11099         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11100         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11101         (gl_REPLACE_REALLOC): New macro.
11102         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11103
11104 2010-06-21  Bruno Haible  <bruno@clisp.org>
11105
11106         Fix HAVE_MALLOC_POSIX misnomer.
11107         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11108         !HAVE_MALLOC_POSIX.
11109         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11110         HAVE_MALLOC_POSIX.
11111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11112         instead of HAVE_MALLOC_POSIX.
11113         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11114         HAVE_MALLOC_POSIX.
11115
11116         Use modern idiom for malloc() replacement.
11117         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11118         AC_FUNC_MALLOC.
11119         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11120         Autoconf's AC_FUNC_MALLOC.
11121         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11122         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11123         (gl_REPLACE_MALLOC): New macro.
11124         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11125
11126 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11127
11128         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11129         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11130         This macro takes 3 arguments, not 4.
11131
11132 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11133
11134         ipv6: fix detection under mingw
11135         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11136         in6_addr.
11137
11138 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11139
11140         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11141         that strtod() works when cross-compiling to a glibc version known
11142         to work.
11143
11144 2010-06-15  Bruno Haible  <bruno@clisp.org>
11145
11146         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11147
11148 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11149
11150         select: Correct timeout.
11151         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11152
11153 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11154
11155         git-version-gen: init shell var to avoid env var influence
11156         * build-aux/git-version-gen (v): Init shell var to empty.
11157
11158 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11159
11160         priv-set: Don't assume that priv.h exists merely because getppriv does.
11161         See Jan Andersen's bug report about AIX 5L in
11162         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11163         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11164         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11165         * lib/priv-set.h: Likewise.
11166         * tests/test-priv-set.c: Likewise.
11167
11168 2010-06-13  Bruno Haible  <bruno@clisp.org>
11169
11170         relocatable: Make it easier to test whether to install wrappers.
11171         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11172         RELOCATABLE_VIA_WRAPPER.
11173
11174 2010-06-13  Bruno Haible  <bruno@clisp.org>
11175
11176         gnulib-tool: Display specified modules and dependencies differently.
11177         * gnulib-tool (func_show_module_list): New function.
11178         (func_import, func_create_testdir): Invoke it.
11179         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11180
11181 2010-06-13  Bruno Haible  <bruno@clisp.org>
11182
11183         gnulib-tool: Align code of func_import and func_create_testdir.
11184         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11185         specified_modules.
11186
11187 2010-06-12  Jim Meyering  <meyering@redhat.com>
11188
11189         test-inttostr: avoid spurious failure on Solaris 9
11190         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11191         to accept "%ju".  Reported by Bruno Haible.
11192
11193 2010-06-11  Jim Meyering  <meyering@redhat.com>
11194
11195         test-sys_socket: mark variables as used more readably
11196         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11197         as "used" explicitly via (void) statement casts.  This is more
11198         readable than using them in an artificial return expression.
11199         Suggestion from Bruno Haible.
11200
11201 2010-06-11  Bruno Haible  <bruno@clisp.org>
11202
11203         Avoid some more warnings from "gcc -Wwrite-strings".
11204         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11205         to 'const char *'.
11206         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11207         * tests/test-c-strcasestr.c (main): Likewise.
11208         * tests/test-mbscasestr1.c (main): Likewise.
11209         * tests/test-mbscasestr2.c (main): Likewise.
11210         * tests/test-memmem.c (main): Likewise.
11211         * tests/test-strstr.c (main): Likewise.
11212         * tests/test-strcasestr.c (main): Likewise.
11213
11214 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11215
11216         init.sh: change framework_failure_ to fail with status 99, not 1
11217         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11218         automake's parallel-tests rule that this is an unexpected failure,
11219         even if the test is listed in XFAIL_TESTS.
11220
11221 2010-06-11  Jim Meyering  <meyering@redhat.com>
11222
11223         test-inttostr: avoid warnings about 4-6KB literal strings
11224         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11225         Include "macros.h", for its definition of ASSERT.
11226         (CK): s/assert/ASSERT/
11227         * modules/inttostr-tests (Files): Add macros.h.
11228
11229         init.sh: don't use $ME_ or skip_ before they are defined
11230         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11231         their first uses.  Also hoist their companions: warn_, fail_,
11232         framework_failure_, $stderr_fileno.  Prompted by a patch from
11233         Stefano Lattarini.
11234
11235         test-sys_socket: avoid set-but-not-used warnings from gcc
11236         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11237         avoid warning about set-but-not-used variables.
11238
11239         test-xvasprintf: avoid 'const' discard warnings
11240         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11241         "const" when assigning from literal strings.
11242         (test_xasprintf): Add "void" in function argument list to placate
11243         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11244
11245         tests: avoid compilation warnings in argmatch and exclude tests...
11246         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11247         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11248         Since it always exits, declare with the "noreturn" attribute.
11249         * tests/test-argmatch.c: Likewise.
11250
11251         tests: avoid 'const' discard warnings in mbsstr tests
11252         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11253         * tests/test-mbsstr2.c (main): Likewise.
11254
11255         test-verify: avoid warning from gcc's -Wmissing-declarations
11256         * tests/test-verify.c (function): Declare to be static.
11257
11258         test-inttostr.c: include <string.h> for use of strcmp
11259         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11260
11261         test-linkat: avoid failed assertion on "other" architectures
11262         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11263         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11264         sparc: https://bugs.launchpad.net/bugs/591968
11265
11266 2010-06-11  Jim Meyering  <meyering@redhat.com>
11267
11268         printf.m4: avoid autoconf's "Expanded Before Required" warning
11269         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11270         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11271         autoconf warning.
11272
11273 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11274
11275         Replacement header templates are now named with ".in", not "_".
11276         * doc/gnulib-intro.texi: Correct.
11277
11278 2010-06-10  Jim Meyering  <meyering@redhat.com>
11279
11280         inttostr-tests: depend on snprintf, not snprintf-posix
11281         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11282         snprintf-posix, to avoid this aclocal failure:
11283           missing file gnulib-tests/vasnprintf.c
11284           configure.ac:45: error: expected source file, required through \
11285           AC_LIBSOURCES, not found
11286
11287 2010-06-10  Jim Meyering  <meyering@redhat.com>
11288
11289         inttostr: add a new function, inttostr, and tests
11290         The namesake function was not available.  The existence of the
11291         template file, inttostr.c makes its addition nontrivial.
11292         * lib/anytostr.c: Rename from inttostr.c.
11293         (anytostr): Rename from inttostr.
11294         * lib/inttostr.c: New file.
11295         * modules/inttostr (Files): Add anytostr.c.
11296         (Makefile.am): Set lib_SOURCES instead of ...
11297         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11298         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11299         * lib/offtostr.c: Likewise.
11300         * lib/uinttostr.c: Likewise.
11301         * lib/umaxtostr.c: Likewise.
11302         * modules/inttostr-tests: New file.
11303         * tests/test-inttostr.c: New file.  Test these functions.
11304
11305 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11306             Bruno Haible  <bruno@clisp.org>
11307
11308         Add "Extending Gnulib" chapter to manual.
11309         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11310         chapter.
11311         (Extending Gnulib): New chapter.
11312         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11313         chapter.
11314
11315 2010-06-09  Bruno Haible  <bruno@clisp.org>
11316
11317         Avoid relocwrapper link errors due to gnulib replacement functions.
11318         * lib/areadlink.c: Use the system's malloc, realloc functions.
11319         (areadlink): Set errno to ENOMEM explicitly.
11320         * modules/areadlink (Depends-on): Remove malloc-posix.
11321         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11322
11323 2010-06-09  Bruno Haible  <bruno@clisp.org>
11324
11325         Avoid relocwrapper link errors due to gnulib replacement functions.
11326         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11327         * lib/malloca.c: Likewise.
11328         * lib/relocatable.c: Likewise.
11329         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11330         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11331         * lib/setenv.c: Use the system's malloc, realloc functions.
11332         * lib/strerror.c: Use the system's sprintf function.
11333         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11334
11335 2010-06-04  Bruno Haible  <bruno@clisp.org>
11336
11337         Prefer documented low-level autoconf macro names.
11338         * m4/lib-link.m4: Use m4_translit instead of translit.
11339         * m4/environ.m4: Likewise.
11340         * m4/mathfunc.m4: Likewise.
11341         * m4/onceonly.m4: Likewise.
11342         * m4/stdint.m4: Likewise.
11343         Suggested by Eric Blake.
11344
11345 2010-06-04  Martin Lambers  <marlam@marlam.de>
11346             Bruno Haible  <bruno@clisp.org>
11347
11348         havelib: Allow library names with '+' characters.
11349         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11350         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11351
11352 2010-06-09  Bruno Haible  <bruno@clisp.org>
11353
11354         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11355         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11356         realloc failed.
11357
11358 2010-06-08  Peter Simons  <simons@cryp.to>
11359
11360         maint.mk: make the news-check rule more configurable
11361         * top/maint.mk (news-check-lines-spec) New variable.
11362         (news-check): Use "sed -n 1,10p" in place of "head".
11363
11364 2010-06-07  Jim Meyering  <meyering@redhat.com>
11365
11366         do-release-commit-and-tag: fix typo in --help
11367         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11368
11369         regex: avoid new dead-code warning with gcc-4.6.0
11370         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11371         if-block containing a while-loop.  It's been unused for at least
11372         5 years.
11373
11374 2010-06-05  Bruno Haible  <bruno@clisp.org>
11375
11376         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11377         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11378
11379 2010-06-04  Bruno Haible  <bruno@clisp.org>
11380
11381         Update to GNU gettext 0.18.1.
11382         * modules/gettext (configure.ac): Require gettext infrastructure from
11383         version 0.18.1.
11384
11385 2010-06-03  Bruno Haible  <bruno@clisp.org>
11386
11387         Don't use AC_LIBOBJ with file names in subdirectories.
11388         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11389         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11390         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11391         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11392         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11393         gl_LIBUNISTRING_LIBSOURCE.
11394         (Makefile.am): Augment lib_SOURCES here, conditionally.
11395         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11396
11397 2010-06-03  Bruno Haible  <bruno@clisp.org>
11398
11399         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11400         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11401         expansion does not end with a newline.
11402         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11403         unnecessary newline.
11404
11405 2010-06-03  Bruno Haible  <bruno@clisp.org>
11406
11407         Reduce dependencies.
11408         * tests/test-quotearg.h: New file, extracted from
11409         tests/test-quotearg.c.
11410         * tests/test-quotearg-simple.c: New file, extracted from
11411         tests/test-quotearg.c.
11412         * tests/test-quotearg.c: Don't include <ctype.h>.
11413         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11414         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11415         use_quote_double_quotes, use_quotearg_colon): Moved to
11416         tests/test-quotearg.h.
11417         (results_g, flag_results, custom_quotes, custom_results): Moved
11418         to tests/test-quotearg-simple.c.
11419         (main): Moved the part that does not depend on gettext to
11420         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11421         performed.
11422         * modules/quotearg-simple: New file.
11423         * modules/quotearg-simple-tests: New file.
11424         * modules/quotearg (Depends-on): Add quotearg-simple.
11425         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11426         (Files): Add tests/test-quotearg.h.
11427         Reported by Paolo Bonzini.
11428
11429 2010-06-03  Bruno Haible  <bruno@clisp.org>
11430
11431         Reduce dependencies.
11432         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11433
11434 2010-06-03  Bruno Haible  <bruno@clisp.org>
11435
11436         time: Undefine more broken macros.
11437         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11438         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11439         Reported by Eric Blake.
11440
11441 2010-06-03  Bruno Haible  <bruno@clisp.org>
11442
11443         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11444         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11445         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11446         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11447         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11448         Reported by Ludovic Courtès <ludo@gnu.org>.
11449
11450 2010-06-02  Eric Blake  <eblake@redhat.com>
11451
11452         time: work with mingw + pthreads-win32 library
11453         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11454         if timespec is defined only in pthread.h.
11455         * modules/time (Makefile.am): Substitute it.
11456         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11457         <pthread.h>, when needed.
11458         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11459         from the library.
11460
11461 2010-05-31  Bruno Haible  <bruno@clisp.org>
11462
11463         Avoid expanding two macros in the wrong order.
11464         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
11465         gl_LIBUNISTRING if it is defined.
11466         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
11467         autoconf >= 2.64.
11468         Reported by Ludovic Courtès <ludo@gnu.org>.
11469
11470 2010-05-27  Jim Meyering  <meyering@redhat.com>
11471
11472         maint.mk: also prohibit "#undef" of always-defined symbols
11473         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
11474         Allow more than one space before the symbol name.
11475         (sc_prohibit_always-defined_macros): Use grep's -E, now that
11476         the regexp uses alternation.
11477
11478 2010-05-26  Eric Blake  <eblake@redhat.com>
11479
11480         maint.mk: avoid echo -e
11481         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
11482         Convert all uses of echo -* to printf.
11483         Reported by Matthias Bolte.
11484
11485 2010-05-25  Bruno Haible  <bruno@clisp.org>
11486
11487         Update to GNU gettext 0.18, part 2.
11488         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
11489         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
11490
11491 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11492
11493         Add missing include in test-pwrite.c.
11494         * tests/test-pwrite.c: Include string.h, for strcmp.
11495
11496 2010-05-24  Bruno Haible  <bruno@clisp.org>
11497
11498         * NEWS: Mention requirement for Automake option 'subdir-objects'.
11499
11500 2010-05-24  Bruno Haible  <bruno@clisp.org>
11501
11502         Don't use conversion with transliteration in u{8,16,32}_strcoll.
11503         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
11504         iconveh_error argument.
11505         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
11506         U_STRCONV_TO_LOCALE.
11507         * lib/unistr/u16-strcoll.c: Likewise.
11508         * lib/unistr/u32-strcoll.c: Likewise.
11509         * modules/unistr/u8-strcoll (Depends-on): Add
11510         uniconv/u8-strconv-to-enc, localcharset. Remove
11511         uniconv/u8-strconv-to-locale.
11512         (configure.ac): Bump version number.
11513         * modules/unistr/u16-strcoll (Depends-on): Add
11514         uniconv/u16-strconv-to-enc, localcharset. Remove
11515         uniconv/u16-strconv-to-locale.
11516         (configure.ac): Bump version number.
11517         * modules/unistr/u32-strcoll (Depends-on): Add
11518         uniconv/u32-strconv-to-enc, localcharset. Remove
11519         uniconv/u32-strconv-to-locale.
11520         (configure.ac): Bump version number.
11521
11522 2010-05-24  Bruno Haible  <bruno@clisp.org>
11523
11524         Avoid a test failure on NetBSD 5.0.
11525         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
11526         an iconv() bug.
11527
11528 2010-05-24  Bruno Haible  <bruno@clisp.org>
11529
11530         Adjust #include directive style.
11531         * modules/regex (Includes): Recommend to write <regex.h>.
11532
11533 2010-05-24  Bruno Haible  <bruno@clisp.org>
11534
11535         regex: Don't require alloca.
11536         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
11537         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
11538         only inside if (0).
11539
11540 2010-05-23  Jim Meyering  <meyering@redhat.com>
11541
11542         test-renameat.c: include <sys/stat.h>
11543         * tests/test-renameat.c: Include <sys/stat.h>; required for
11544         definition of S_IS* macros.
11545
11546 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
11547
11548         Update maintainer documentation for 'relocatable-prog' module.
11549         * doc/relocatable-maint.texi: Update.
11550         Comments by Bruno Haible.
11551
11552 2010-05-23  Bruno Haible  <bruno@clisp.org>
11553
11554         git-merge-changelog: Enable --split-merged-entry by default.
11555         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
11556         (usage): Don't mention this option any more.
11557         Reported by Ralf Wildenhues.
11558
11559 2010-05-23  Jim Meyering  <meyering@redhat.com>
11560
11561         test-pwrite: do not leave behind a test file named "out"
11562         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
11563         The trivial-looking use of init.sh is really necessary.
11564         It ensures that the temporary file, "out", is created in
11565         a temporary directory, and removed upon termination.
11566         * tests/test-pwrite.sh: Re-add file.
11567         * modules/pwrite-tests: Reference it.
11568
11569 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11570
11571         Fix output redirection buglet in init.sh.
11572         * tests/init.sh: Fix redirection of stderr.
11573
11574 2010-05-20  Simon Josefsson  <simon@josefsson.org>
11575
11576         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
11577
11578 2010-05-17  Simon Josefsson  <simon@josefsson.org>
11579
11580         * modules/valgrind-tests: New file.
11581         * m4/valgrind-tests.m4: New file.
11582         * doc/valgrind-tests.texi: New file.
11583         * doc/gnulib.texi (Running self-tests under valgrind): New
11584         section.
11585
11586 2010-05-19  Bruno Haible  <bruno@clisp.org>
11587
11588         Clean up dead code in recent commit.
11589         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
11590         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
11591         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
11592         Suggested by Paolo Bonzini.
11593
11594 2010-05-19  Bruno Haible  <bruno@clisp.org>
11595
11596         Avoid valgrind error reports from libunistring.
11597         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
11598         * modules/libunistring (Files): Add it.
11599         * modules/libunistring-optional (Files): Likewise.
11600
11601 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
11602             Bruno Haible  <bruno@clisp.org>
11603
11604         New module 'libunistring-optional'.
11605         * modules/libunistring-optional: New file.
11606         * m4/libunistring-base.m4: New file.
11607         * m4/libunistring-optional.m4: New file.
11608         * lib/unicase.in.h: Renamed from lib/unicase.h.
11609         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
11610         * lib/unictype.in.h: Renamed from lib/unictype.h.
11611         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
11612         * lib/uniname.in.h: Renamed from lib/uniname.h.
11613         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
11614         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
11615         * lib/unistr.in.h: Renamed from lib/unistr.h.
11616         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
11617         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
11618         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
11619         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
11620         gl_LIBUNISTRING. If the library was found, determine the installed
11621         version and set LIBUNISTRING_VERSION.
11622         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
11623         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
11624         handle a configuration option --with-included-libunistring.
11625         * modules/libunistring (Files): Add m4/absolute-header.m4.
11626         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
11627         Add m4/libunistring-base.m4.
11628         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11629         (Makefile.am): Build unicase.h from unicase.in.h.
11630         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
11631         Add m4/libunistring-base.m4.
11632         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11633         (Makefile.am): Build uniconv.h from uniconv.in.h.
11634         * modules/unictype/base (Files): Use unictype.in.h instead of
11635         unictype.h. Add m4/libunistring-base.m4.
11636         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11637         (Makefile.am): Build unictype.h from unictype.in.h.
11638         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
11639         Add m4/libunistring-base.m4.
11640         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11641         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
11642         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
11643         Add m4/libunistring-base.m4.
11644         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11645         (Makefile.am): Build uniname.h from uniname.in.h.
11646         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
11647         Add m4/libunistring-base.m4.
11648         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11649         (Makefile.am): Build uninorm.h from uninorm.in.h.
11650         * modules/unistdio/base (Files): Use unistdio.in.h instead of
11651         unistdio.h. Add m4/libunistring-base.m4.
11652         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11653         (Makefile.am): Build unistdio.h from unistdio.in.h.
11654         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
11655         Add m4/libunistring-base.m4.
11656         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11657         (Makefile.am): Build unistr.h from unistr.in.h.
11658         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
11659         Add m4/libunistring-base.m4.
11660         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11661         (Makefile.am): Build unitypes.h from unitypes.in.h.
11662         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
11663         Add m4/libunistring-base.m4.
11664         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11665         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
11666         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
11667         uniwidth.h. Add m4/libunistring-base.m4.
11668         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11669         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
11670         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
11671         instead of augmenting lib_SOURCES.
11672         * modules/unicase/empty-suffix-context: Likewise.
11673         * modules/unicase/locale-language: Likewise.
11674         * modules/unicase/tolower: Likewise.
11675         * modules/unicase/totitle: Likewise.
11676         * modules/unicase/toupper: Likewise.
11677         * modules/unicase/u8-casecmp: Likewise.
11678         * modules/unicase/u8-casecoll: Likewise.
11679         * modules/unicase/u8-casefold: Likewise.
11680         * modules/unicase/u8-casexfrm: Likewise.
11681         * modules/unicase/u8-ct-casefold: Likewise.
11682         * modules/unicase/u8-ct-tolower: Likewise.
11683         * modules/unicase/u8-ct-totitle: Likewise.
11684         * modules/unicase/u8-ct-toupper: Likewise.
11685         * modules/unicase/u8-is-cased: Likewise.
11686         * modules/unicase/u8-is-casefolded: Likewise.
11687         * modules/unicase/u8-is-lowercase: Likewise.
11688         * modules/unicase/u8-is-titlecase: Likewise.
11689         * modules/unicase/u8-is-uppercase: Likewise.
11690         * modules/unicase/u8-prefix-context: Likewise.
11691         * modules/unicase/u8-suffix-context: Likewise.
11692         * modules/unicase/u8-tolower: Likewise.
11693         * modules/unicase/u8-totitle: Likewise.
11694         * modules/unicase/u8-toupper: Likewise.
11695         * modules/unicase/u16-casecmp: Likewise.
11696         * modules/unicase/u16-casecoll: Likewise.
11697         * modules/unicase/u16-casefold: Likewise.
11698         * modules/unicase/u16-casexfrm: Likewise.
11699         * modules/unicase/u16-ct-casefold: Likewise.
11700         * modules/unicase/u16-ct-tolower: Likewise.
11701         * modules/unicase/u16-ct-totitle: Likewise.
11702         * modules/unicase/u16-ct-toupper: Likewise.
11703         * modules/unicase/u16-is-cased: Likewise.
11704         * modules/unicase/u16-is-casefolded: Likewise.
11705         * modules/unicase/u16-is-lowercase: Likewise.
11706         * modules/unicase/u16-is-titlecase: Likewise.
11707         * modules/unicase/u16-is-uppercase: Likewise.
11708         * modules/unicase/u16-prefix-context: Likewise.
11709         * modules/unicase/u16-suffix-context: Likewise.
11710         * modules/unicase/u16-tolower: Likewise.
11711         * modules/unicase/u16-totitle: Likewise.
11712         * modules/unicase/u16-toupper: Likewise.
11713         * modules/unicase/u32-casecmp: Likewise.
11714         * modules/unicase/u32-casecoll: Likewise.
11715         * modules/unicase/u32-casefold: Likewise.
11716         * modules/unicase/u32-casexfrm: Likewise.
11717         * modules/unicase/u32-ct-casefold: Likewise.
11718         * modules/unicase/u32-ct-tolower: Likewise.
11719         * modules/unicase/u32-ct-totitle: Likewise.
11720         * modules/unicase/u32-ct-toupper: Likewise.
11721         * modules/unicase/u32-is-cased: Likewise.
11722         * modules/unicase/u32-is-casefolded: Likewise.
11723         * modules/unicase/u32-is-lowercase: Likewise.
11724         * modules/unicase/u32-is-titlecase: Likewise.
11725         * modules/unicase/u32-is-uppercase: Likewise.
11726         * modules/unicase/u32-prefix-context: Likewise.
11727         * modules/unicase/u32-suffix-context: Likewise.
11728         * modules/unicase/u32-tolower: Likewise.
11729         * modules/unicase/u32-totitle: Likewise.
11730         * modules/unicase/u32-toupper: Likewise.
11731         * modules/unicase/ulc-casecmp: Likewise.
11732         * modules/unicase/ulc-casecoll: Likewise.
11733         * modules/unicase/ulc-casexfrm: Likewise.
11734         * modules/uniconv/u8-conv-from-enc: Likewise.
11735         * modules/uniconv/u8-conv-to-enc: Likewise.
11736         * modules/uniconv/u8-strconv-from-enc: Likewise.
11737         * modules/uniconv/u8-strconv-from-locale: Likewise.
11738         * modules/uniconv/u8-strconv-to-enc: Likewise.
11739         * modules/uniconv/u8-strconv-to-locale: Likewise.
11740         * modules/uniconv/u16-conv-from-enc: Likewise.
11741         * modules/uniconv/u16-conv-to-enc: Likewise.
11742         * modules/uniconv/u16-strconv-from-enc: Likewise.
11743         * modules/uniconv/u16-strconv-from-locale: Likewise.
11744         * modules/uniconv/u16-strconv-to-enc: Likewise.
11745         * modules/uniconv/u16-strconv-to-locale: Likewise.
11746         * modules/uniconv/u32-conv-from-enc: Likewise.
11747         * modules/uniconv/u32-conv-to-enc: Likewise.
11748         * modules/uniconv/u32-strconv-from-enc: Likewise.
11749         * modules/uniconv/u32-strconv-from-locale: Likewise.
11750         * modules/uniconv/u32-strconv-to-enc: Likewise.
11751         * modules/uniconv/u32-strconv-to-locale: Likewise.
11752         * modules/unictype/bidicategory-byname: Likewise.
11753         * modules/unictype/bidicategory-name: Likewise.
11754         * modules/unictype/bidicategory-of: Likewise.
11755         * modules/unictype/bidicategory-test: Likewise.
11756         * modules/unictype/block-list: Likewise.
11757         * modules/unictype/block-test: Likewise.
11758         * modules/unictype/category-C: Likewise.
11759         * modules/unictype/category-Cc: Likewise.
11760         * modules/unictype/category-Cf: Likewise.
11761         * modules/unictype/category-Cn: Likewise.
11762         * modules/unictype/category-Co: Likewise.
11763         * modules/unictype/category-Cs: Likewise.
11764         * modules/unictype/category-L: Likewise.
11765         * modules/unictype/category-Ll: Likewise.
11766         * modules/unictype/category-Lm: Likewise.
11767         * modules/unictype/category-Lo: Likewise.
11768         * modules/unictype/category-Lt: Likewise.
11769         * modules/unictype/category-Lu: Likewise.
11770         * modules/unictype/category-M: Likewise.
11771         * modules/unictype/category-Mc: Likewise.
11772         * modules/unictype/category-Me: Likewise.
11773         * modules/unictype/category-Mn: Likewise.
11774         * modules/unictype/category-N: Likewise.
11775         * modules/unictype/category-Nd: Likewise.
11776         * modules/unictype/category-Nl: Likewise.
11777         * modules/unictype/category-No: Likewise.
11778         * modules/unictype/category-P: Likewise.
11779         * modules/unictype/category-Pc: Likewise.
11780         * modules/unictype/category-Pd: Likewise.
11781         * modules/unictype/category-Pe: Likewise.
11782         * modules/unictype/category-Pf: Likewise.
11783         * modules/unictype/category-Pi: Likewise.
11784         * modules/unictype/category-Po: Likewise.
11785         * modules/unictype/category-Ps: Likewise.
11786         * modules/unictype/category-S: Likewise.
11787         * modules/unictype/category-Sc: Likewise.
11788         * modules/unictype/category-Sk: Likewise.
11789         * modules/unictype/category-Sm: Likewise.
11790         * modules/unictype/category-So: Likewise.
11791         * modules/unictype/category-Z: Likewise.
11792         * modules/unictype/category-Zl: Likewise.
11793         * modules/unictype/category-Zp: Likewise.
11794         * modules/unictype/category-Zs: Likewise.
11795         * modules/unictype/category-and: Likewise.
11796         * modules/unictype/category-and-not: Likewise.
11797         * modules/unictype/category-byname: Likewise.
11798         * modules/unictype/category-name: Likewise.
11799         * modules/unictype/category-none: Likewise.
11800         * modules/unictype/category-of: Likewise.
11801         * modules/unictype/category-or: Likewise.
11802         * modules/unictype/category-test: Likewise.
11803         * modules/unictype/combining-class: Likewise.
11804         * modules/unictype/ctype-alnum: Likewise.
11805         * modules/unictype/ctype-alpha: Likewise.
11806         * modules/unictype/ctype-blank: Likewise.
11807         * modules/unictype/ctype-cntrl: Likewise.
11808         * modules/unictype/ctype-digit: Likewise.
11809         * modules/unictype/ctype-graph: Likewise.
11810         * modules/unictype/ctype-lower: Likewise.
11811         * modules/unictype/ctype-print: Likewise.
11812         * modules/unictype/ctype-punct: Likewise.
11813         * modules/unictype/ctype-space: Likewise.
11814         * modules/unictype/ctype-upper: Likewise.
11815         * modules/unictype/ctype-xdigit: Likewise.
11816         * modules/unictype/decimal-digit: Likewise.
11817         * modules/unictype/digit: Likewise.
11818         * modules/unictype/mirror: Likewise.
11819         * modules/unictype/numeric: Likewise.
11820         * modules/unictype/property-alphabetic: Likewise.
11821         * modules/unictype/property-ascii-hex-digit: Likewise.
11822         * modules/unictype/property-bidi-arabic-digit: Likewise.
11823         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11824         * modules/unictype/property-bidi-block-separator: Likewise.
11825         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11826         * modules/unictype/property-bidi-common-separator: Likewise.
11827         * modules/unictype/property-bidi-control: Likewise.
11828         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11829         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11830         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11831         * modules/unictype/property-bidi-european-digit: Likewise.
11832         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11833         * modules/unictype/property-bidi-left-to-right: Likewise.
11834         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11835         * modules/unictype/property-bidi-other-neutral: Likewise.
11836         * modules/unictype/property-bidi-pdf: Likewise.
11837         * modules/unictype/property-bidi-segment-separator: Likewise.
11838         * modules/unictype/property-bidi-whitespace: Likewise.
11839         * modules/unictype/property-byname: Likewise.
11840         * modules/unictype/property-combining: Likewise.
11841         * modules/unictype/property-composite: Likewise.
11842         * modules/unictype/property-currency-symbol: Likewise.
11843         * modules/unictype/property-dash: Likewise.
11844         * modules/unictype/property-decimal-digit: Likewise.
11845         * modules/unictype/property-default-ignorable-code-point: Likewise.
11846         * modules/unictype/property-deprecated: Likewise.
11847         * modules/unictype/property-diacritic: Likewise.
11848         * modules/unictype/property-extender: Likewise.
11849         * modules/unictype/property-format-control: Likewise.
11850         * modules/unictype/property-grapheme-base: Likewise.
11851         * modules/unictype/property-grapheme-extend: Likewise.
11852         * modules/unictype/property-grapheme-link: Likewise.
11853         * modules/unictype/property-hex-digit: Likewise.
11854         * modules/unictype/property-hyphen: Likewise.
11855         * modules/unictype/property-id-continue: Likewise.
11856         * modules/unictype/property-id-start: Likewise.
11857         * modules/unictype/property-ideographic: Likewise.
11858         * modules/unictype/property-ids-binary-operator: Likewise.
11859         * modules/unictype/property-ids-trinary-operator: Likewise.
11860         * modules/unictype/property-ignorable-control: Likewise.
11861         * modules/unictype/property-iso-control: Likewise.
11862         * modules/unictype/property-join-control: Likewise.
11863         * modules/unictype/property-left-of-pair: Likewise.
11864         * modules/unictype/property-line-separator: Likewise.
11865         * modules/unictype/property-logical-order-exception: Likewise.
11866         * modules/unictype/property-lowercase: Likewise.
11867         * modules/unictype/property-math: Likewise.
11868         * modules/unictype/property-non-break: Likewise.
11869         * modules/unictype/property-not-a-character: Likewise.
11870         * modules/unictype/property-numeric: Likewise.
11871         * modules/unictype/property-other-alphabetic: Likewise.
11872         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11873         * modules/unictype/property-other-grapheme-extend: Likewise.
11874         * modules/unictype/property-other-id-continue: Likewise.
11875         * modules/unictype/property-other-id-start: Likewise.
11876         * modules/unictype/property-other-lowercase: Likewise.
11877         * modules/unictype/property-other-math: Likewise.
11878         * modules/unictype/property-other-uppercase: Likewise.
11879         * modules/unictype/property-paired-punctuation: Likewise.
11880         * modules/unictype/property-paragraph-separator: Likewise.
11881         * modules/unictype/property-pattern-syntax: Likewise.
11882         * modules/unictype/property-pattern-white-space: Likewise.
11883         * modules/unictype/property-private-use: Likewise.
11884         * modules/unictype/property-punctuation: Likewise.
11885         * modules/unictype/property-quotation-mark: Likewise.
11886         * modules/unictype/property-radical: Likewise.
11887         * modules/unictype/property-sentence-terminal: Likewise.
11888         * modules/unictype/property-soft-dotted: Likewise.
11889         * modules/unictype/property-space: Likewise.
11890         * modules/unictype/property-terminal-punctuation: Likewise.
11891         * modules/unictype/property-test: Likewise.
11892         * modules/unictype/property-titlecase: Likewise.
11893         * modules/unictype/property-unassigned-code-value: Likewise.
11894         * modules/unictype/property-unified-ideograph: Likewise.
11895         * modules/unictype/property-uppercase: Likewise.
11896         * modules/unictype/property-variation-selector: Likewise.
11897         * modules/unictype/property-white-space: Likewise.
11898         * modules/unictype/property-xid-continue: Likewise.
11899         * modules/unictype/property-xid-start: Likewise.
11900         * modules/unictype/property-zero-width: Likewise.
11901         * modules/unictype/scripts: Likewise.
11902         * modules/unictype/syntax-c-ident: Likewise.
11903         * modules/unictype/syntax-c-whitespace: Likewise.
11904         * modules/unictype/syntax-java-ident: Likewise.
11905         * modules/unictype/syntax-java-whitespace: Likewise.
11906         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11907         * modules/unilbrk/u8-width-linebreaks: Likewise.
11908         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11909         * modules/unilbrk/u16-width-linebreaks: Likewise.
11910         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11911         * modules/unilbrk/u32-width-linebreaks: Likewise.
11912         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11913         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11914         * modules/uniname/uniname: Likewise.
11915         * modules/uninorm/canonical-decomposition: Likewise.
11916         * modules/uninorm/composition: Likewise.
11917         * modules/uninorm/decomposing-form: Likewise.
11918         * modules/uninorm/decomposition: Likewise.
11919         * modules/uninorm/filter: Likewise.
11920         * modules/uninorm/nfc: Likewise.
11921         * modules/uninorm/nfd: Likewise.
11922         * modules/uninorm/nfkc: Likewise.
11923         * modules/uninorm/nfkd: Likewise.
11924         * modules/uninorm/u8-normalize: Likewise.
11925         * modules/uninorm/u8-normcmp: Likewise.
11926         * modules/uninorm/u8-normcoll: Likewise.
11927         * modules/uninorm/u8-normxfrm: Likewise.
11928         * modules/uninorm/u16-normalize: Likewise.
11929         * modules/uninorm/u16-normcmp: Likewise.
11930         * modules/uninorm/u16-normcoll: Likewise.
11931         * modules/uninorm/u16-normxfrm: Likewise.
11932         * modules/uninorm/u32-normalize: Likewise.
11933         * modules/uninorm/u32-normcmp: Likewise.
11934         * modules/uninorm/u32-normcoll: Likewise.
11935         * modules/uninorm/u32-normxfrm: Likewise.
11936         * modules/unistdio/u8-asnprintf: Likewise.
11937         * modules/unistdio/u8-asprintf: Likewise.
11938         * modules/unistdio/u8-snprintf: Likewise.
11939         * modules/unistdio/u8-sprintf: Likewise.
11940         * modules/unistdio/u8-u8-asnprintf: Likewise.
11941         * modules/unistdio/u8-u8-asprintf: Likewise.
11942         * modules/unistdio/u8-u8-snprintf: Likewise.
11943         * modules/unistdio/u8-u8-sprintf: Likewise.
11944         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11945         * modules/unistdio/u8-u8-vasprintf: Likewise.
11946         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11947         * modules/unistdio/u8-u8-vsprintf: Likewise.
11948         * modules/unistdio/u8-vasnprintf: Likewise.
11949         * modules/unistdio/u8-vasprintf: Likewise.
11950         * modules/unistdio/u8-vsnprintf: Likewise.
11951         * modules/unistdio/u8-vsprintf: Likewise.
11952         * modules/unistdio/u16-asnprintf: Likewise.
11953         * modules/unistdio/u16-asprintf: Likewise.
11954         * modules/unistdio/u16-snprintf: Likewise.
11955         * modules/unistdio/u16-sprintf: Likewise.
11956         * modules/unistdio/u16-u16-asnprintf: Likewise.
11957         * modules/unistdio/u16-u16-asprintf: Likewise.
11958         * modules/unistdio/u16-u16-snprintf: Likewise.
11959         * modules/unistdio/u16-u16-sprintf: Likewise.
11960         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11961         * modules/unistdio/u16-u16-vasprintf: Likewise.
11962         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11963         * modules/unistdio/u16-u16-vsprintf: Likewise.
11964         * modules/unistdio/u16-vasnprintf: Likewise.
11965         * modules/unistdio/u16-vasprintf: Likewise.
11966         * modules/unistdio/u16-vsnprintf: Likewise.
11967         * modules/unistdio/u16-vsprintf: Likewise.
11968         * modules/unistdio/u32-asnprintf: Likewise.
11969         * modules/unistdio/u32-asprintf: Likewise.
11970         * modules/unistdio/u32-snprintf: Likewise.
11971         * modules/unistdio/u32-sprintf: Likewise.
11972         * modules/unistdio/u32-u32-asnprintf: Likewise.
11973         * modules/unistdio/u32-u32-asprintf: Likewise.
11974         * modules/unistdio/u32-u32-snprintf: Likewise.
11975         * modules/unistdio/u32-u32-sprintf: Likewise.
11976         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11977         * modules/unistdio/u32-u32-vasprintf: Likewise.
11978         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11979         * modules/unistdio/u32-u32-vsprintf: Likewise.
11980         * modules/unistdio/u32-vasnprintf: Likewise.
11981         * modules/unistdio/u32-vasprintf: Likewise.
11982         * modules/unistdio/u32-vsnprintf: Likewise.
11983         * modules/unistdio/u32-vsprintf: Likewise.
11984         * modules/unistdio/ulc-asnprintf: Likewise.
11985         * modules/unistdio/ulc-asprintf: Likewise.
11986         * modules/unistdio/ulc-fprintf: Likewise.
11987         * modules/unistdio/ulc-snprintf: Likewise.
11988         * modules/unistdio/ulc-sprintf: Likewise.
11989         * modules/unistdio/ulc-vasnprintf: Likewise.
11990         * modules/unistdio/ulc-vasprintf: Likewise.
11991         * modules/unistdio/ulc-vfprintf: Likewise.
11992         * modules/unistdio/ulc-vsnprintf: Likewise.
11993         * modules/unistdio/ulc-vsprintf: Likewise.
11994         * modules/unistr/u8-check: Likewise.
11995         * modules/unistr/u8-chr: Likewise.
11996         * modules/unistr/u8-cmp: Likewise.
11997         * modules/unistr/u8-cmp2: Likewise.
11998         * modules/unistr/u8-cpy: Likewise.
11999         * modules/unistr/u8-cpy-alloc: Likewise.
12000         * modules/unistr/u8-endswith: Likewise.
12001         * modules/unistr/u8-mblen: Likewise.
12002         * modules/unistr/u8-mbsnlen: Likewise.
12003         * modules/unistr/u8-mbtouc: Likewise.
12004         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12005         * modules/unistr/u8-mbtoucr: Likewise.
12006         * modules/unistr/u8-move: Likewise.
12007         * modules/unistr/u8-next: Likewise.
12008         * modules/unistr/u8-prev: Likewise.
12009         * modules/unistr/u8-set: Likewise.
12010         * modules/unistr/u8-startswith: Likewise.
12011         * modules/unistr/u8-stpcpy: Likewise.
12012         * modules/unistr/u8-stpncpy: Likewise.
12013         * modules/unistr/u8-strcat: Likewise.
12014         * modules/unistr/u8-strchr: Likewise.
12015         * modules/unistr/u8-strcmp: Likewise.
12016         * modules/unistr/u8-strcoll: Likewise.
12017         * modules/unistr/u8-strcpy: Likewise.
12018         * modules/unistr/u8-strcspn: Likewise.
12019         * modules/unistr/u8-strdup: Likewise.
12020         * modules/unistr/u8-strlen: Likewise.
12021         * modules/unistr/u8-strmblen: Likewise.
12022         * modules/unistr/u8-strmbtouc: Likewise.
12023         * modules/unistr/u8-strncat: Likewise.
12024         * modules/unistr/u8-strncmp: Likewise.
12025         * modules/unistr/u8-strncpy: Likewise.
12026         * modules/unistr/u8-strnlen: Likewise.
12027         * modules/unistr/u8-strpbrk: Likewise.
12028         * modules/unistr/u8-strrchr: Likewise.
12029         * modules/unistr/u8-strspn: Likewise.
12030         * modules/unistr/u8-strstr: Likewise.
12031         * modules/unistr/u8-strtok: Likewise.
12032         * modules/unistr/u8-to-u16: Likewise.
12033         * modules/unistr/u8-to-u32: Likewise.
12034         * modules/unistr/u8-uctomb: Likewise.
12035         * modules/unistr/u16-check: Likewise.
12036         * modules/unistr/u16-chr: Likewise.
12037         * modules/unistr/u16-cmp: Likewise.
12038         * modules/unistr/u16-cmp2: Likewise.
12039         * modules/unistr/u16-cpy: Likewise.
12040         * modules/unistr/u16-cpy-alloc: Likewise.
12041         * modules/unistr/u16-endswith: Likewise.
12042         * modules/unistr/u16-mblen: Likewise.
12043         * modules/unistr/u16-mbsnlen: Likewise.
12044         * modules/unistr/u16-mbtouc: Likewise.
12045         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12046         * modules/unistr/u16-mbtoucr: Likewise.
12047         * modules/unistr/u16-move: Likewise.
12048         * modules/unistr/u16-next: Likewise.
12049         * modules/unistr/u16-prev: Likewise.
12050         * modules/unistr/u16-set: Likewise.
12051         * modules/unistr/u16-startswith: Likewise.
12052         * modules/unistr/u16-stpcpy: Likewise.
12053         * modules/unistr/u16-stpncpy: Likewise.
12054         * modules/unistr/u16-strcat: Likewise.
12055         * modules/unistr/u16-strchr: Likewise.
12056         * modules/unistr/u16-strcmp: Likewise.
12057         * modules/unistr/u16-strcoll: Likewise.
12058         * modules/unistr/u16-strcpy: Likewise.
12059         * modules/unistr/u16-strcspn: Likewise.
12060         * modules/unistr/u16-strdup: Likewise.
12061         * modules/unistr/u16-strlen: Likewise.
12062         * modules/unistr/u16-strmblen: Likewise.
12063         * modules/unistr/u16-strmbtouc: Likewise.
12064         * modules/unistr/u16-strncat: Likewise.
12065         * modules/unistr/u16-strncmp: Likewise.
12066         * modules/unistr/u16-strncpy: Likewise.
12067         * modules/unistr/u16-strnlen: Likewise.
12068         * modules/unistr/u16-strpbrk: Likewise.
12069         * modules/unistr/u16-strrchr: Likewise.
12070         * modules/unistr/u16-strspn: Likewise.
12071         * modules/unistr/u16-strstr: Likewise.
12072         * modules/unistr/u16-strtok: Likewise.
12073         * modules/unistr/u16-to-u32: Likewise.
12074         * modules/unistr/u16-to-u8: Likewise.
12075         * modules/unistr/u16-uctomb: Likewise.
12076         * modules/unistr/u32-check: Likewise.
12077         * modules/unistr/u32-chr: Likewise.
12078         * modules/unistr/u32-cmp: Likewise.
12079         * modules/unistr/u32-cmp2: Likewise.
12080         * modules/unistr/u32-cpy: Likewise.
12081         * modules/unistr/u32-cpy-alloc: Likewise.
12082         * modules/unistr/u32-endswith: Likewise.
12083         * modules/unistr/u32-mblen: Likewise.
12084         * modules/unistr/u32-mbsnlen: Likewise.
12085         * modules/unistr/u32-mbtouc: Likewise.
12086         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12087         * modules/unistr/u32-mbtoucr: Likewise.
12088         * modules/unistr/u32-move: Likewise.
12089         * modules/unistr/u32-next: Likewise.
12090         * modules/unistr/u32-prev: Likewise.
12091         * modules/unistr/u32-set: Likewise.
12092         * modules/unistr/u32-startswith: Likewise.
12093         * modules/unistr/u32-stpcpy: Likewise.
12094         * modules/unistr/u32-stpncpy: Likewise.
12095         * modules/unistr/u32-strcat: Likewise.
12096         * modules/unistr/u32-strchr: Likewise.
12097         * modules/unistr/u32-strcmp: Likewise.
12098         * modules/unistr/u32-strcoll: Likewise.
12099         * modules/unistr/u32-strcpy: Likewise.
12100         * modules/unistr/u32-strcspn: Likewise.
12101         * modules/unistr/u32-strdup: Likewise.
12102         * modules/unistr/u32-strlen: Likewise.
12103         * modules/unistr/u32-strmblen: Likewise.
12104         * modules/unistr/u32-strmbtouc: Likewise.
12105         * modules/unistr/u32-strncat: Likewise.
12106         * modules/unistr/u32-strncmp: Likewise.
12107         * modules/unistr/u32-strncpy: Likewise.
12108         * modules/unistr/u32-strnlen: Likewise.
12109         * modules/unistr/u32-strpbrk: Likewise.
12110         * modules/unistr/u32-strrchr: Likewise.
12111         * modules/unistr/u32-strspn: Likewise.
12112         * modules/unistr/u32-strstr: Likewise.
12113         * modules/unistr/u32-strtok: Likewise.
12114         * modules/unistr/u32-to-u16: Likewise.
12115         * modules/unistr/u32-to-u8: Likewise.
12116         * modules/unistr/u32-uctomb: Likewise.
12117         * modules/uniwbrk/u8-wordbreaks: Likewise.
12118         * modules/uniwbrk/u16-wordbreaks: Likewise.
12119         * modules/uniwbrk/u32-wordbreaks: Likewise.
12120         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12121         * modules/uniwbrk/wordbreak-property: Likewise.
12122         * modules/uniwidth/u8-strwidth: Likewise.
12123         * modules/uniwidth/u8-width: Likewise.
12124         * modules/uniwidth/u16-strwidth: Likewise.
12125         * modules/uniwidth/u16-width: Likewise.
12126         * modules/uniwidth/u32-strwidth: Likewise.
12127         * modules/uniwidth/u32-width: Likewise.
12128         * modules/uniwidth/width: Likewise.
12129         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12130         with $(LIBUNISTRING).
12131         * modules/unicase/ignorable-tests: Likewise.
12132         * modules/unicase/locale-language-tests: Likewise.
12133         * modules/unicase/tolower-tests: Likewise.
12134         * modules/unicase/totitle-tests: Likewise.
12135         * modules/unicase/toupper-tests: Likewise.
12136         * modules/unicase/u8-casecmp-tests: Likewise.
12137         * modules/unicase/u8-casecoll-tests: Likewise.
12138         * modules/unicase/u8-casefold-tests: Likewise.
12139         * modules/unicase/u8-is-cased-tests: Likewise.
12140         * modules/unicase/u8-is-casefolded-tests: Likewise.
12141         * modules/unicase/u8-is-lowercase-tests: Likewise.
12142         * modules/unicase/u8-is-titlecase-tests: Likewise.
12143         * modules/unicase/u8-is-uppercase-tests: Likewise.
12144         * modules/unicase/u8-tolower-tests: Likewise.
12145         * modules/unicase/u8-totitle-tests: Likewise.
12146         * modules/unicase/u8-toupper-tests: Likewise.
12147         * modules/unicase/u16-casecmp-tests: Likewise.
12148         * modules/unicase/u16-casecoll-tests: Likewise.
12149         * modules/unicase/u16-casefold-tests: Likewise.
12150         * modules/unicase/u16-is-cased-tests: Likewise.
12151         * modules/unicase/u16-is-casefolded-tests: Likewise.
12152         * modules/unicase/u16-is-lowercase-tests: Likewise.
12153         * modules/unicase/u16-is-titlecase-tests: Likewise.
12154         * modules/unicase/u16-is-uppercase-tests: Likewise.
12155         * modules/unicase/u16-tolower-tests: Likewise.
12156         * modules/unicase/u16-totitle-tests: Likewise.
12157         * modules/unicase/u16-toupper-tests: Likewise.
12158         * modules/unicase/u32-casecmp-tests: Likewise.
12159         * modules/unicase/u32-casecoll-tests: Likewise.
12160         * modules/unicase/u32-casefold-tests: Likewise.
12161         * modules/unicase/u32-is-cased-tests: Likewise.
12162         * modules/unicase/u32-is-casefolded-tests: Likewise.
12163         * modules/unicase/u32-is-lowercase-tests: Likewise.
12164         * modules/unicase/u32-is-titlecase-tests: Likewise.
12165         * modules/unicase/u32-is-uppercase-tests: Likewise.
12166         * modules/unicase/u32-tolower-tests: Likewise.
12167         * modules/unicase/u32-totitle-tests: Likewise.
12168         * modules/unicase/u32-toupper-tests: Likewise.
12169         * modules/unicase/ulc-casecmp-tests: Likewise.
12170         * modules/unicase/ulc-casecoll-tests: Likewise.
12171         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12172         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12173         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12174         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12175         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12176         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12177         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12178         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12179         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12180         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12181         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12182         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12183         * modules/unictype/bidicategory-byname-tests: Likewise.
12184         * modules/unictype/bidicategory-name-tests: Likewise.
12185         * modules/unictype/bidicategory-of-tests: Likewise.
12186         * modules/unictype/bidicategory-test-tests: Likewise.
12187         * modules/unictype/block-list-tests: Likewise.
12188         * modules/unictype/block-of-tests: Likewise.
12189         * modules/unictype/block-test-tests: Likewise.
12190         * modules/unictype/category-C-tests: Likewise.
12191         * modules/unictype/category-Cc-tests: Likewise.
12192         * modules/unictype/category-Cf-tests: Likewise.
12193         * modules/unictype/category-Cn-tests: Likewise.
12194         * modules/unictype/category-Co-tests: Likewise.
12195         * modules/unictype/category-Cs-tests: Likewise.
12196         * modules/unictype/category-L-tests: Likewise.
12197         * modules/unictype/category-Ll-tests: Likewise.
12198         * modules/unictype/category-Lm-tests: Likewise.
12199         * modules/unictype/category-Lo-tests: Likewise.
12200         * modules/unictype/category-Lt-tests: Likewise.
12201         * modules/unictype/category-Lu-tests: Likewise.
12202         * modules/unictype/category-M-tests: Likewise.
12203         * modules/unictype/category-Mc-tests: Likewise.
12204         * modules/unictype/category-Me-tests: Likewise.
12205         * modules/unictype/category-Mn-tests: Likewise.
12206         * modules/unictype/category-N-tests: Likewise.
12207         * modules/unictype/category-Nd-tests: Likewise.
12208         * modules/unictype/category-Nl-tests: Likewise.
12209         * modules/unictype/category-No-tests: Likewise.
12210         * modules/unictype/category-P-tests: Likewise.
12211         * modules/unictype/category-Pc-tests: Likewise.
12212         * modules/unictype/category-Pd-tests: Likewise.
12213         * modules/unictype/category-Pe-tests: Likewise.
12214         * modules/unictype/category-Pf-tests: Likewise.
12215         * modules/unictype/category-Pi-tests: Likewise.
12216         * modules/unictype/category-Po-tests: Likewise.
12217         * modules/unictype/category-Ps-tests: Likewise.
12218         * modules/unictype/category-S-tests: Likewise.
12219         * modules/unictype/category-Sc-tests: Likewise.
12220         * modules/unictype/category-Sk-tests: Likewise.
12221         * modules/unictype/category-Sm-tests: Likewise.
12222         * modules/unictype/category-So-tests: Likewise.
12223         * modules/unictype/category-Z-tests: Likewise.
12224         * modules/unictype/category-Zl-tests: Likewise.
12225         * modules/unictype/category-Zp-tests: Likewise.
12226         * modules/unictype/category-Zs-tests: Likewise.
12227         * modules/unictype/category-and-not-tests: Likewise.
12228         * modules/unictype/category-and-tests: Likewise.
12229         * modules/unictype/category-byname-tests: Likewise.
12230         * modules/unictype/category-name-tests: Likewise.
12231         * modules/unictype/category-none-tests: Likewise.
12232         * modules/unictype/category-of-tests: Likewise.
12233         * modules/unictype/category-or-tests: Likewise.
12234         * modules/unictype/category-test-withtable-tests: Likewise.
12235         * modules/unictype/combining-class-tests: Likewise.
12236         * modules/unictype/ctype-alnum-tests: Likewise.
12237         * modules/unictype/ctype-alpha-tests: Likewise.
12238         * modules/unictype/ctype-blank-tests: Likewise.
12239         * modules/unictype/ctype-cntrl-tests: Likewise.
12240         * modules/unictype/ctype-digit-tests: Likewise.
12241         * modules/unictype/ctype-graph-tests: Likewise.
12242         * modules/unictype/ctype-lower-tests: Likewise.
12243         * modules/unictype/ctype-print-tests: Likewise.
12244         * modules/unictype/ctype-punct-tests: Likewise.
12245         * modules/unictype/ctype-space-tests: Likewise.
12246         * modules/unictype/ctype-upper-tests: Likewise.
12247         * modules/unictype/ctype-xdigit-tests: Likewise.
12248         * modules/unictype/decimal-digit-tests: Likewise.
12249         * modules/unictype/digit-tests: Likewise.
12250         * modules/unictype/mirror-tests: Likewise.
12251         * modules/unictype/numeric-tests: Likewise.
12252         * modules/unictype/property-alphabetic-tests: Likewise.
12253         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12254         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12255         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12256         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12257         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12258         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12259         * modules/unictype/property-bidi-control-tests: Likewise.
12260         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12261         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12262         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12263         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12264         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12265         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12266         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12267         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12268         * modules/unictype/property-bidi-pdf-tests: Likewise.
12269         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12270         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12271         * modules/unictype/property-byname-tests: Likewise.
12272         * modules/unictype/property-combining-tests: Likewise.
12273         * modules/unictype/property-composite-tests: Likewise.
12274         * modules/unictype/property-currency-symbol-tests: Likewise.
12275         * modules/unictype/property-dash-tests: Likewise.
12276         * modules/unictype/property-decimal-digit-tests: Likewise.
12277         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12278         * modules/unictype/property-deprecated-tests: Likewise.
12279         * modules/unictype/property-diacritic-tests: Likewise.
12280         * modules/unictype/property-extender-tests: Likewise.
12281         * modules/unictype/property-format-control-tests: Likewise.
12282         * modules/unictype/property-grapheme-base-tests: Likewise.
12283         * modules/unictype/property-grapheme-extend-tests: Likewise.
12284         * modules/unictype/property-grapheme-link-tests: Likewise.
12285         * modules/unictype/property-hex-digit-tests: Likewise.
12286         * modules/unictype/property-hyphen-tests: Likewise.
12287         * modules/unictype/property-id-continue-tests: Likewise.
12288         * modules/unictype/property-id-start-tests: Likewise.
12289         * modules/unictype/property-ideographic-tests: Likewise.
12290         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12291         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12292         * modules/unictype/property-ignorable-control-tests: Likewise.
12293         * modules/unictype/property-iso-control-tests: Likewise.
12294         * modules/unictype/property-join-control-tests: Likewise.
12295         * modules/unictype/property-left-of-pair-tests: Likewise.
12296         * modules/unictype/property-line-separator-tests: Likewise.
12297         * modules/unictype/property-logical-order-exception-tests: Likewise.
12298         * modules/unictype/property-lowercase-tests: Likewise.
12299         * modules/unictype/property-math-tests: Likewise.
12300         * modules/unictype/property-non-break-tests: Likewise.
12301         * modules/unictype/property-not-a-character-tests: Likewise.
12302         * modules/unictype/property-numeric-tests: Likewise.
12303         * modules/unictype/property-other-alphabetic-tests: Likewise.
12304         * modules/unictype/property-other-default-ignorable-code-point-tests:
12305         Likewise.
12306         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12307         * modules/unictype/property-other-id-continue-tests: Likewise.
12308         * modules/unictype/property-other-id-start-tests: Likewise.
12309         * modules/unictype/property-other-lowercase-tests: Likewise.
12310         * modules/unictype/property-other-math-tests: Likewise.
12311         * modules/unictype/property-other-uppercase-tests: Likewise.
12312         * modules/unictype/property-paired-punctuation-tests: Likewise.
12313         * modules/unictype/property-paragraph-separator-tests: Likewise.
12314         * modules/unictype/property-pattern-syntax-tests: Likewise.
12315         * modules/unictype/property-pattern-white-space-tests: Likewise.
12316         * modules/unictype/property-private-use-tests: Likewise.
12317         * modules/unictype/property-punctuation-tests: Likewise.
12318         * modules/unictype/property-quotation-mark-tests: Likewise.
12319         * modules/unictype/property-radical-tests: Likewise.
12320         * modules/unictype/property-sentence-terminal-tests: Likewise.
12321         * modules/unictype/property-soft-dotted-tests: Likewise.
12322         * modules/unictype/property-space-tests: Likewise.
12323         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12324         * modules/unictype/property-test-tests: Likewise.
12325         * modules/unictype/property-titlecase-tests: Likewise.
12326         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12327         * modules/unictype/property-unified-ideograph-tests: Likewise.
12328         * modules/unictype/property-uppercase-tests: Likewise.
12329         * modules/unictype/property-variation-selector-tests: Likewise.
12330         * modules/unictype/property-white-space-tests: Likewise.
12331         * modules/unictype/property-xid-continue-tests: Likewise.
12332         * modules/unictype/property-xid-start-tests: Likewise.
12333         * modules/unictype/property-zero-width-tests: Likewise.
12334         * modules/unictype/scripts-tests: Likewise.
12335         * modules/unictype/syntax-c-ident-tests: Likewise.
12336         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12337         * modules/unictype/syntax-java-ident-tests: Likewise.
12338         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12339         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12340         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12341         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12342         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12343         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12344         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12345         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12346         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12347         * modules/uniname/uniname-tests: Likewise.
12348         * modules/uninorm/canonical-decomposition-tests: Likewise.
12349         * modules/uninorm/compat-decomposition-tests: Likewise.
12350         * modules/uninorm/composition-tests: Likewise.
12351         * modules/uninorm/decomposing-form-tests: Likewise.
12352         * modules/uninorm/decomposition-tests: Likewise.
12353         * modules/uninorm/filter-tests: Likewise.
12354         * modules/uninorm/nfc-tests: Likewise.
12355         * modules/uninorm/nfd-tests: Likewise.
12356         * modules/uninorm/nfkc-tests: Likewise.
12357         * modules/uninorm/nfkd-tests: Likewise.
12358         * modules/uninorm/u8-normcmp-tests: Likewise.
12359         * modules/uninorm/u8-normcoll-tests: Likewise.
12360         * modules/uninorm/u16-normcmp-tests: Likewise.
12361         * modules/uninorm/u16-normcoll-tests: Likewise.
12362         * modules/uninorm/u32-normcmp-tests: Likewise.
12363         * modules/uninorm/u32-normcoll-tests: Likewise.
12364         * modules/unistdio/u8-asnprintf-tests: Likewise.
12365         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12366         * modules/unistdio/u8-vasprintf-tests: Likewise.
12367         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12368         * modules/unistdio/u8-vsprintf-tests: Likewise.
12369         * modules/unistdio/u16-asnprintf-tests: Likewise.
12370         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12371         * modules/unistdio/u16-vasprintf-tests: Likewise.
12372         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12373         * modules/unistdio/u16-vsprintf-tests: Likewise.
12374         * modules/unistdio/u32-asnprintf-tests: Likewise.
12375         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12376         * modules/unistdio/u32-vasprintf-tests: Likewise.
12377         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12378         * modules/unistdio/u32-vsprintf-tests: Likewise.
12379         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12380         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12381         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12382         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12383         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12384         * modules/unistr/u8-check-tests: Likewise.
12385         * modules/unistr/u8-chr-tests: Likewise.
12386         * modules/unistr/u8-cmp-tests: Likewise.
12387         * modules/unistr/u8-cmp2-tests: Likewise.
12388         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12389         * modules/unistr/u8-cpy-tests: Likewise.
12390         * modules/unistr/u8-mblen-tests: Likewise.
12391         * modules/unistr/u8-mbsnlen-tests: Likewise.
12392         * modules/unistr/u8-mbtouc-tests: Likewise.
12393         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12394         * modules/unistr/u8-mbtoucr-tests: Likewise.
12395         * modules/unistr/u8-move-tests: Likewise.
12396         * modules/unistr/u8-next-tests: Likewise.
12397         * modules/unistr/u8-prev-tests: Likewise.
12398         * modules/unistr/u8-set-tests: Likewise.
12399         * modules/unistr/u8-stpcpy-tests: Likewise.
12400         * modules/unistr/u8-stpncpy-tests: Likewise.
12401         * modules/unistr/u8-strcat-tests: Likewise.
12402         * modules/unistr/u8-strcmp-tests: Likewise.
12403         * modules/unistr/u8-strcoll-tests: Likewise.
12404         * modules/unistr/u8-strcpy-tests: Likewise.
12405         * modules/unistr/u8-strdup-tests: Likewise.
12406         * modules/unistr/u8-strlen-tests: Likewise.
12407         * modules/unistr/u8-strmblen-tests: Likewise.
12408         * modules/unistr/u8-strmbtouc-tests: Likewise.
12409         * modules/unistr/u8-strncat-tests: Likewise.
12410         * modules/unistr/u8-strncmp-tests: Likewise.
12411         * modules/unistr/u8-strncpy-tests: Likewise.
12412         * modules/unistr/u8-strnlen-tests: Likewise.
12413         * modules/unistr/u8-to-u16-tests: Likewise.
12414         * modules/unistr/u8-to-u32-tests: Likewise.
12415         * modules/unistr/u8-uctomb-tests: Likewise.
12416         * modules/unistr/u16-check-tests: Likewise.
12417         * modules/unistr/u16-chr-tests: Likewise.
12418         * modules/unistr/u16-cmp-tests: Likewise.
12419         * modules/unistr/u16-cmp2-tests: Likewise.
12420         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12421         * modules/unistr/u16-cpy-tests: Likewise.
12422         * modules/unistr/u16-mblen-tests: Likewise.
12423         * modules/unistr/u16-mbsnlen-tests: Likewise.
12424         * modules/unistr/u16-mbtouc-tests: Likewise.
12425         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12426         * modules/unistr/u16-mbtoucr-tests: Likewise.
12427         * modules/unistr/u16-move-tests: Likewise.
12428         * modules/unistr/u16-next-tests: Likewise.
12429         * modules/unistr/u16-prev-tests: Likewise.
12430         * modules/unistr/u16-set-tests: Likewise.
12431         * modules/unistr/u16-stpcpy-tests: Likewise.
12432         * modules/unistr/u16-stpncpy-tests: Likewise.
12433         * modules/unistr/u16-strcat-tests: Likewise.
12434         * modules/unistr/u16-strcmp-tests: Likewise.
12435         * modules/unistr/u16-strcoll-tests: Likewise.
12436         * modules/unistr/u16-strcpy-tests: Likewise.
12437         * modules/unistr/u16-strdup-tests: Likewise.
12438         * modules/unistr/u16-strlen-tests: Likewise.
12439         * modules/unistr/u16-strmblen-tests: Likewise.
12440         * modules/unistr/u16-strmbtouc-tests: Likewise.
12441         * modules/unistr/u16-strncat-tests: Likewise.
12442         * modules/unistr/u16-strncmp-tests: Likewise.
12443         * modules/unistr/u16-strncpy-tests: Likewise.
12444         * modules/unistr/u16-strnlen-tests: Likewise.
12445         * modules/unistr/u16-to-u32-tests: Likewise.
12446         * modules/unistr/u16-to-u8-tests: Likewise.
12447         * modules/unistr/u16-uctomb-tests: Likewise.
12448         * modules/unistr/u32-check-tests: Likewise.
12449         * modules/unistr/u32-chr-tests: Likewise.
12450         * modules/unistr/u32-cmp-tests: Likewise.
12451         * modules/unistr/u32-cmp2-tests: Likewise.
12452         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12453         * modules/unistr/u32-cpy-tests: Likewise.
12454         * modules/unistr/u32-mblen-tests: Likewise.
12455         * modules/unistr/u32-mbsnlen-tests: Likewise.
12456         * modules/unistr/u32-mbtouc-tests: Likewise.
12457         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12458         * modules/unistr/u32-mbtoucr-tests: Likewise.
12459         * modules/unistr/u32-move-tests: Likewise.
12460         * modules/unistr/u32-next-tests: Likewise.
12461         * modules/unistr/u32-prev-tests: Likewise.
12462         * modules/unistr/u32-set-tests: Likewise.
12463         * modules/unistr/u32-stpcpy-tests: Likewise.
12464         * modules/unistr/u32-stpncpy-tests: Likewise.
12465         * modules/unistr/u32-strcat-tests: Likewise.
12466         * modules/unistr/u32-strcmp-tests: Likewise.
12467         * modules/unistr/u32-strcoll-tests: Likewise.
12468         * modules/unistr/u32-strcpy-tests: Likewise.
12469         * modules/unistr/u32-strdup-tests: Likewise.
12470         * modules/unistr/u32-strlen-tests: Likewise.
12471         * modules/unistr/u32-strmblen-tests: Likewise.
12472         * modules/unistr/u32-strmbtouc-tests: Likewise.
12473         * modules/unistr/u32-strncat-tests: Likewise.
12474         * modules/unistr/u32-strncmp-tests: Likewise.
12475         * modules/unistr/u32-strncpy-tests: Likewise.
12476         * modules/unistr/u32-strnlen-tests: Likewise.
12477         * modules/unistr/u32-to-u16-tests: Likewise.
12478         * modules/unistr/u32-to-u8-tests: Likewise.
12479         * modules/unistr/u32-uctomb-tests: Likewise.
12480         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
12481         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
12482         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
12483         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
12484         * modules/uniwidth/u8-strwidth-tests: Likewise.
12485         * modules/uniwidth/u8-width-tests: Likewise.
12486         * modules/uniwidth/u16-strwidth-tests: Likewise.
12487         * modules/uniwidth/u16-width-tests: Likewise.
12488         * modules/uniwidth/u32-strwidth-tests: Likewise.
12489         * modules/uniwidth/u32-width-tests: Likewise.
12490         * modules/uniwidth/width-tests: Likewise.
12491
12492 2010-05-18  Richard Jones  <rjones@redhat.com>
12493
12494         doc: users.txt: list hivex
12495         * users.txt: Add hivex.
12496
12497 2010-05-18  Richard Jones  <rjones@redhat.com>
12498
12499         doc: users.txt: list febootstrap
12500         * users.txt: Add febootstrap.
12501
12502 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
12503
12504         bootstrap: fix an error when gnulib is not used as a git submodule
12505         * build-aux/bootstrap (gnulib_path): If its length is zero then
12506         assign "gnulib" to it.
12507         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
12508
12509 2010-05-16  Bruno Haible  <bruno@clisp.org>
12510
12511         Avoid autoconf warnings about AM_ICONV.
12512         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
12513         2.64.
12514
12515 2010-05-16  Bruno Haible  <bruno@clisp.org>
12516
12517         absolute-header: Make the macro usable in more situations.
12518         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
12519         from gl_ABSOLUTE_HEADER.
12520         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
12521
12522 2010-05-16  James Youngman  <jay@gnu.org>
12523
12524         doc: update users.txt
12525         * users.txt: Add CSSC.
12526
12527 2010-05-16  Jim Meyering  <meyering@redhat.com>
12528
12529         init.sh: fix an error in the previous change; add more comments
12530         * tests/init.sh: Compare exit code in loop against 9, not 2.
12531         Patch by Bruno Haible.
12532         Make the two tests more similar by adding an empty "then" clause.
12533         Add comments.
12534
12535         init.sh: avoid unnecessary shell re-exec
12536         * tests/init.sh: Improve the re-exec-required check to first test the
12537         current shell.  If it passes the test, do not search for a shell that
12538         does pass, and do not re-exec.  This test is particularly contorted to
12539         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
12540         of $(...) evokes a syntax error and causes immediate shell exit with
12541         status 2.  Bruno Haible reported that the re-exec made it impossible
12542         to single-step through any init.sh-using script.
12543
12544 2010-05-16  Bruno Haible  <bruno@clisp.org>
12545
12546         Fix collision between gnulib's and libintl's printf replacements.
12547         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
12548         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
12549         (printf): When using GNU C, map the __printf__ function to rpl_printf
12550         via __asm__. When not using GNU C, define rpl_printf instead of
12551         __printf__.
12552         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
12553         commit.
12554         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
12555         commit.
12556         * m4/asm-underscore.m4: New file.
12557         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
12558         * modules/stdio (Files): Add m4/asm-underscore.m4.
12559         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
12560         Reported by Ben Pfaff.
12561
12562 2010-05-16  Bruno Haible  <bruno@clisp.org>
12563
12564         verify: Avoid skipping the test on openSUSE 11.0.
12565         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
12566
12567 2010-05-13  Bruno Haible  <bruno@clisp.org>
12568
12569         Avoid useless warnings from G++.
12570         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
12571         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
12572         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12573
12574 2010-05-11  Jim Meyering  <meyering@redhat.com>
12575
12576         maint.mk: tweak preceding change
12577         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
12578         regexps tighter by anchoring at EOL, and make the new group "shy"
12579         for slightly decreased overhead.
12580
12581 2010-05-11  Eric Blake  <eblake@redhat.com>
12582
12583         maint.mk: gnulib doesn't guarantee NSIG
12584         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
12585
12586 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12587
12588         test-pwrite.c: Remove unused variable declaration.
12589         * tests/test-pwrite.c (main): Remove read_buf declaration.
12590
12591         Remove useless test-pwrite.sh file.
12592         * tests/test-pwrite.sh: Delete file.
12593         * modules/pwrite-tests: Remove references.
12594         Reported by Bruno Haible.
12595
12596 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12597
12598         init.sh: fix a typo
12599         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
12600
12601 2010-05-10  Jim Meyering  <meyering@redhat.com>
12602
12603         maint.mk: avoid using a temporary file in the always-defined-macros check
12604         * top/maint.mk (.re-defmac): Remove rule.
12605         (gl_trap_): Remove definition.
12606         (sc_prohibit_always-defined_macros): Rewrite not to create and
12607         depend on a temporary file.  Instead, depend on GNU grep's ability
12608         to read a list of regular expressions from stdin when given "-f -".
12609
12610 2010-05-09  Bruno Haible  <bruno@clisp.org>
12611
12612         Update to GNU gettext 0.18, part 1.
12613         * m4/gettext.m4: Update to GNU gettext 0.18.
12614         * m4/intl.m4: Likewise.
12615         * m4/po.m4: Likewise.
12616         * modules/gettext (Files): Add m4/fcntl-o.m4.
12617         (configure.ac): Require gettext infrastructure from version 0.18.
12618
12619 2010-05-09  Jim Meyering  <meyering@redhat.com>
12620
12621         init.sh: enable MALLOC_PERTURB_
12622         * tests/init.sh: Enable glibc's malloc-perturbing option.
12623
12624         maint.mk: improve sc_cross_check_PATH_usage_in_tests
12625         With my recent change in init.sh from the two-line form:
12626             -#   : ${srcdir=.}
12627             -#   . "$srcdir/init.sh"; path_prepend_ .
12628             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
12629         I noticed that using the one-line form would cause this test
12630         to fail with a false-positive, or to stop working altogether,
12631         depending on whether help-version changed or all the tests did.
12632         * top/maint.mk (_hv_regex): Remove this definition.
12633         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
12634         (_hv_regex_strong): Use a stronger regex to check for conformance.
12635         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
12636         Give a separate diagnostic for lack of conforming use.
12637
12638         maint.mk: prohibit definition of symbols defined by gnulib
12639         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
12640         definition of symbols defined by gnulib.
12641
12642 2010-05-09  Bruno Haible  <bruno@clisp.org>
12643
12644         acl: Avoid test failure on Cygwin-hosted mingw.
12645         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
12646
12647 2010-05-09  Bruno Haible  <bruno@clisp.org>
12648
12649         error: Use system's fcntl function.
12650         * lib/error.c (fcntl): Undefine.
12651
12652 2010-05-09  Jim Meyering  <meyering@redhat.com>
12653
12654         verify: adjust formatting to be more consistent
12655         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
12656         argument-list '('s, and after one comma.
12657
12658 2010-05-09  Bruno Haible  <bruno@clisp.org>
12659
12660         error: More reliable output on mingw.
12661         * lib/error.c: Include <windows.h>.
12662         (is_open): New function.
12663         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
12664         defined.
12665
12666 2010-05-09  Bruno Haible  <bruno@clisp.org>
12667
12668         vasnprintf: Fix syntax errors in libintl build on mingw.
12669         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
12670         pad_ourselves and prec_ourselves after use.
12671
12672 2010-05-08  Bruno Haible  <bruno@clisp.org>
12673
12674         * lib/config.charset: Update comments for Cygwin 1.7.
12675         * lib/localcharset.c: Likewise.
12676
12677 2010-05-07  Jim Meyering  <meyering@redhat.com>
12678
12679         init.sh: improve comments
12680         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
12681         . "${srcdir=.}/init.sh"; path_prepend_ .
12682         Add a note about path_prepend_ and the alternative of using
12683         TESTS_ENVIRONMENT.
12684
12685 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
12686
12687         exclude: Unescape hashed patterns in wildcard mode.
12688         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
12689         to the hash list.
12690         * tests/test-exclude8.sh: New test case.
12691         * modules/exclude-tests: Add new test.
12692
12693 2010-05-05  Eric Blake  <eblake@redhat.com>
12694
12695         verify: automate tests
12696         * modules/verify-tests: New module.
12697         * tests/test-verify.sh: New file.
12698         * tests/test-verify.c: Guard each negative test with a unique id.
12699         Also avoid warning about unused left hand of comma expressions.
12700
12701 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12702
12703         Further improvements to verify.h, suggested by Eric Blake.
12704         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
12705         the GL_* versions, to avoid collision with OpenGL.
12706         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
12707         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
12708         than testing merely whether it's defined.
12709
12710         Modify verify.h to pacify gcc -Wredundant_decls.
12711         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
12712         These use the prefix "GL_" since they're likely to be useful elsewhere.
12713         We may need to break them out into a different .h file.
12714         (__COUNTER__): Define to 0 if the compiler doesn't support it.
12715         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
12716         of verify_function__.
12717
12718 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12719
12720         Tests for module pwrite.
12721         * modules/pwrite-tests: New file.
12722         * tests/test-pwrite.sh: New file.
12723         * tests/test-pwrite.c: New file.
12724
12725         New module pwrite.
12726         * lib/unistd.in.h (pwrite): New declaration.
12727         * lib/pwrite.c: New file, from glibc with modifications.
12728         * m4/pwrite.m4: New file.
12729         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
12730         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
12731         REPLACE_PWRITE.
12732         * modules/pwrite: New file.
12733         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
12734         REPLACE_PWRITE.
12735         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
12736         * doc/posix-functions/pwrite.texi: Mention the new module.
12737
12738 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12739
12740         pread: Update documentation.
12741         * doc/posix-functions/pread.texi: Mention the 'pread' module.
12742
12743 2010-05-04  Eric Blake  <eblake@redhat.com>
12744
12745         docs: update cygwin progress
12746         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
12747         this bug.
12748         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12749         Added in cygwin 1.7.2.
12750         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
12751         Likewise.
12752         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
12753         Likewise.
12754         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12755         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12756         * doc/glibc-functions/accept4.texi (accept4): Likewise.
12757         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
12758         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
12759         Mention nproc module.
12760         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
12761         bug in cygwin 1.7.5 addition.
12762         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
12763         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
12764         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
12765         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
12766         1.7.5.
12767         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
12768         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
12769         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
12770         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
12771         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
12772         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
12773         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
12774         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
12775         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
12776         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
12777         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
12778         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
12779         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
12780         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
12781         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
12782         Likewise.
12783         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
12784         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
12785         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
12786         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
12787         Likewise.
12788         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
12789         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
12790         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
12791         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
12792         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
12793         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
12794         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
12795         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
12796         Likewise.
12797         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12798         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12799         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12800         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12801         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12802         Likewise.
12803         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12804         Likewise.
12805         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12806         Likewise.
12807         * doc/glibc-functions/xdrrec_endofrecord.texi
12808         (xdrrec_endofrecord): Likewise.
12809         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12810         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12811         Likewise.
12812         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12813         Likewise.
12814
12815 2010-05-04  Jim Meyering  <meyering@redhat.com>
12816
12817         gendocs.sh: make its "-s FILE" option more useful
12818         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12819         $PACKAGE to reflect the probably-different basename of "FILE".
12820
12821 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12822
12823         bootstrap: don't ignore download_po_files failure
12824         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12825         failure.
12826
12827 2010-05-03  Jim Meyering  <meyering@redhat.com>
12828
12829         maint.mk: allow to pass options to gendocs.sh
12830         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12831         (gendocs_options_): New overridable variable.
12832
12833         gnu-web-doc-update: don't ignore configure or build failure
12834         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12835
12836         announce-gen: backslash-escape '@'s in --help output
12837         * build-aux/announce-gen: Fix syntax errors.
12838
12839         maint.mk, announce-gen: allow project-specific announcement mail headers
12840         * top/maint.mk (translation_project_): Define default.
12841         (announcement_Cc_, announcement_mail_headers_): Likewise.
12842         (announcement): Invoke announce-gen with new --mail-headers option.
12843         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12844
12845         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12846         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12847         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12848         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12849         line in the "err2" output file when running "make check" in verbose
12850         mode (i.e., with set -x enabled).
12851
12852 2010-05-03  Bruno Haible  <bruno@clisp.org>
12853
12854         wctob: Fix for weird platforms.
12855         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12856         argument value.
12857
12858 2010-05-03  Jim Meyering  <meyering@redhat.com>
12859
12860         maint.mk: prohibit unwarranted use of <strings.h>
12861         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12862         strings.h in a file that does not also use strcasecmp, strncasecmp,
12863         ffs or ffsll.
12864
12865         maint.mk: remove obsolete comments
12866         * top/maint.mk: Remove stale, commented-out rules.
12867
12868 2010-05-02  Bruno Haible  <bruno@clisp.org>
12869
12870         wcwidth: Declare also when it's aliased.
12871         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12872         macro.
12873
12874 2010-05-02  Bruno Haible  <bruno@clisp.org>
12875
12876         Fix regression from 2010-04-25.
12877         * gnulib-tool (func_modules_transitive_closure): Check the status of
12878         all modules, not only of the tests that are of the form foo-tests where
12879         foo is a module.
12880
12881 2010-05-02  Bruno Haible  <bruno@clisp.org>
12882
12883         wctob: Work around nasty Cygwin 1.7.2 bug.
12884         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12885         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12886
12887 2010-05-01  Bruno Haible  <bruno@clisp.org>
12888
12889         fpurge: Sharper test.
12890         * tests/test-fpurge.c (main): Add one more ftell check.
12891         * modules/fpurge-tests (Depends-on): Add ftell.
12892         Suggested by Eric Blake.
12893
12894 2010-05-01  Bruno Haible  <bruno@clisp.org>
12895
12896         ftello: Another test.
12897         * tests/test-ftello3.c: New file.
12898         * modules/ftello-tests (Files): Add it.
12899         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12900         MOSTLYCLEANFILES.
12901
12902         ftell: Another test.
12903         * tests/test-ftell3.c: New file.
12904         * modules/ftell-tests (Files): Add it.
12905         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12906         MOSTLYCLEANFILES.
12907
12908 2010-05-01  Bruno Haible  <bruno@clisp.org>
12909
12910         ftell, ftello: Work around Solaris bug.
12911         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12912         * lib/ftello.c: Include stdio-impl.h.
12913         (ftello): On Solaris, when _IOWRT is set, compute the result without
12914         looking at _IOREAD.
12915         * modules/ftello (Files): Add lib/stdio-impl.h.
12916         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12917         * doc/posix-functions/ftello.texi: Likewise.
12918         Reported by Eric Blake.
12919
12920 2010-05-01  Bruno Haible  <bruno@clisp.org>
12921
12922         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12923         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12924         the _IOWRT flag is also set.
12925
12926 2010-05-01  Bruno Haible  <bruno@clisp.org>
12927
12928         Fix doc about a HP-UX stdio bug.
12929         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12930         * doc/posix-functions/ftello.texi: Likewise.
12931
12932 2010-05-01  Bruno Haible  <bruno@clisp.org>
12933
12934         lseek test: Fix failure on Solaris.
12935         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12936         output.
12937
12938 2010-04-30  Jim Meyering  <meyering@redhat.com>
12939
12940         bootstrap: don't ignore failure to generate po*/Makevars
12941         * build-aux/bootstrap (with_gettext): Don't ignore failure
12942         to create po/Makevars or runtime-po/Makevars.
12943
12944 2010-04-29  Eric Blake  <eblake@redhat.com>
12945
12946         headers: relax license to LGPLv2+
12947         * modules/fcntl-h (License): Relax license.
12948         * modules/getopt-posix (License): Likewise.
12949         * modules/locale (License): Likewise.
12950         * modules/math (License): Likewise.
12951         * modules/pty (License): Likewise.
12952         * modules/sched (License): Likewise.
12953         * modules/search (License): Likewise.
12954         * modules/spawn (License): Likewise.
12955         * modules/stdarg (License): Likewise.
12956         * modules/sysexits (License): Likewise.
12957
12958 2010-04-29  Jim Meyering  <meyering@redhat.com>
12959
12960         inttypes: relax license to LGPLv2+
12961         * modules/inttypes (License): Relax license.
12962
12963 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12964
12965         * top/maint.mk (indent): Run twice to produce idempotent results.
12966
12967 2010-04-28  Bruno Haible  <bruno@clisp.org>
12968
12969         getdate: Generate getdate.c in the source directory.
12970         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12971         MOSTLYCLEANFILES.
12972         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12973
12974 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12975
12976         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12977         is not declared as a const *; avoid warnings in that case.
12978
12979 2010-04-28  Eric Blake  <eblake@redhat.com>
12980
12981         canonicalize-lgpl: avoid compiler warning
12982         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12983         declaration' / 'extraneous semicolon' warning with some compilers.
12984         Reported by Andreas Gruenbacher.
12985
12986 2010-04-28  Jim Meyering  <meyering@redhat.com>
12987
12988         init.sh: ensure a more reliable exit status when exiting via trap
12989         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12990         Inspired by patches from Dmitry V. Levin.
12991         Also trap on signal 3 (SIGQUIT).
12992
12993 2010-04-27  Bruno Haible  <bruno@clisp.org>
12994
12995         Update doc about utimes().
12996         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12997         'utimens' module.
12998         Reported by Andreas Gruenbacher <agruen@suse.de>.
12999
13000 2010-04-27  Eric Blake  <eblake@redhat.com>
13001
13002         full-read, full-write: relax license
13003         * modules/full-read (License): Drop to LGPLv2+.
13004         * modules/full-write (License): Likewise.
13005         * modules/safe-read (License): Likewise.
13006         * modules/safe-write (License): Likewise.
13007
13008         pthread: mention library for linking
13009         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13010
13011 2010-04-27  Jim Meyering  <meyering@redhat.com>
13012
13013         maint.mk: fix a bug introduced in last change
13014         * top/maint.mk (gl_assured_headers_): Now that all names are on
13015         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13016         is not anchored to end of word, it should be adequate.
13017
13018         maint.mk: avoid side-effect in latest syntax-check
13019         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13020         to run commands via $(shell...), and hence to incur cost only when
13021         the new rule is actually run.
13022
13023         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13024         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13025         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13026         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13027         (gl_assured_headers_, az_, AZ_): Define.
13028         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13029
13030 2010-04-26  Jim Meyering  <jim@meyering.net>
13031             Bruno Haible  <bruno@clisp.org>
13032
13033         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13034         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13035         Prompted by an exchange with Gilles Espinasse.
13036
13037 2010-04-26  Jim Meyering  <meyering@redhat.com>
13038
13039         git-version-gen: aesthetic tweak
13040         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13041         so that the command remains on a single line.
13042
13043 2010-04-26  Eric Blake  <eblake@redhat.com>
13044
13045         git-version-gen: allow use on EBCDIC hosts
13046         * build-aux/git-version-gen (dirty): Use literal rather than tying
13047         ourselves to ascii.
13048         Reported by Steve Goetze.
13049
13050 2010-04-25  Bruno Haible  <bruno@clisp.org>
13051
13052         netdb: Add support for GNULIB_POSIXCHECK.
13053         * lib/netdb.in.h: Include warn-on-use.h.
13054         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13055         functions are used when GNULIB_POSIXCHECK is defined and the
13056         getaddrinfo module is not in use.
13057         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13058         freeaddrinfo, gai_strerror, getnameinfo are declared.
13059         * modules/netdb (Depends-on): Add warn-on-use.
13060         (Makefile.am): Include warn-on-use.h in netdb.h.
13061
13062 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13063
13064         build: avoid "make check" failure without .git/ directory
13065         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13066         there is no .git/ directory.
13067
13068 2010-04-25  Bruno Haible  <bruno@clisp.org>
13069
13070         ptsname: Fix misuse of ttyname_r.
13071         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13072         of errno.
13073
13074 2010-04-25  Bruno Haible  <bruno@clisp.org>
13075
13076         ttyname_r: Make it work on Solaris 10.
13077         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13078         if the system function has the POSIX declaration. Test whether the
13079         function fails if the buffer is less than 128 bytes large.
13080         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13081         system's ttyname_r function. Provide a reasonably large buffer.
13082         * modules/ttyname_r (Depends-on): Add extensions.
13083         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13084
13085 2010-04-25  Bruno Haible  <bruno@clisp.org>
13086
13087         Use the 'extensions' module for some more functions on Solaris.
13088         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13089         module.
13090         * doc/posix-functions/ctime_r.texi: Likewise.
13091         * doc/posix-functions/getgrgid_r.texi: Likewise.
13092         * doc/posix-functions/getgrnam_r.texi: Likewise.
13093         * doc/posix-functions/getpwnam_r.texi: Likewise.
13094         * doc/posix-functions/getpwuid_r.texi: Likewise.
13095         * doc/posix-functions/readdir_r.texi: Likewise.
13096         * doc/posix-functions/sigwait.texi: Likewise.
13097         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13098         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13099
13100 2010-04-25  Bruno Haible  <bruno@clisp.org>
13101
13102         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13103         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13104         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13105         * lib/ttyname_r.c: Include <limits.h>.
13106         (ttyname_r): Define using the system's ttyname_r function, if it exists
13107         and not on Solaris.
13108         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13109         set.
13110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13111         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13112         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13113         Reported by Simon Josefsson.
13114
13115 2010-04-25  Bruno Haible  <bruno@clisp.org>
13116
13117         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13118         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13119         * doc/posix-functions/ctime_r.texi: Likewise.
13120         * doc/posix-functions/getgrgid_r.texi: Likewise.
13121         * doc/posix-functions/getgrnam_r.texi: Likewise.
13122         * doc/posix-functions/getlogin_r.texi: Likewise.
13123         * doc/posix-functions/getpwnam_r.texi: Likewise.
13124         * doc/posix-functions/getpwuid_r.texi: Likewise.
13125         * doc/posix-functions/readdir_r.texi: Likewise.
13126         * doc/posix-functions/sigwait.texi: Likewise.
13127         * doc/posix-functions/ttyname_r.texi: Likewise.
13128         Reported by Simon Josefsson.
13129
13130 2010-04-25  Bruno Haible  <bruno@clisp.org>
13131
13132         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13133         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13134         also to --create-testdir.
13135         (func_acceptable): Don't consider the status of *-tests modules here.
13136         (func_modules_transitive_closure): Consider it here, before including a
13137         test module.
13138         (func_import, func_create_testdir): Set inc_all_direct_tests,
13139         inc_all_indirect_tests.
13140         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13141         --create-testdir and --create-megatestdir.
13142
13143 2010-04-25  Bruno Haible  <bruno@clisp.org>
13144
13145         gnulib-tool: Add --without-*-tests options.
13146         * gnulib-tool (func_usage): Document the --without-*-tests options.
13147         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13148         excl_unportable_tests): New variables.
13149         Fail if they are specified with --import or --update.
13150         (func_acceptable): Respect the excl_*_tests variables.
13151         (func_import): Set the excl_*_tests variables to empty.
13152
13153 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13154             Bruno Haible  <bruno@clisp.org>
13155
13156         Work around a MacOS X 10.4 bug with openpty.
13157         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13158         * tests/test-openpty.c (main): Close the master side explicitly.
13159
13160 2010-04-25  Bruno Haible  <bruno@clisp.org>
13161
13162         strnlen: Fix a C++ test error on MacOS X and Solaris.
13163         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13164         the function is not declared.
13165         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13166         Simon Josefsson.
13167
13168 2010-04-24  Bruno Haible  <bruno@clisp.org>
13169
13170         Avoid a gcc warning.
13171         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13172         of correct type for %08lx directive.
13173         Reported by Eric Blake.
13174
13175 2010-04-24  Bruno Haible  <bruno@clisp.org>
13176
13177         vasnprintf: Correct errno value in case of out-of-memory.
13178         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13179         or sprintf. Use the errno value from SNPRINTF or sprintf.
13180         Reported by Ian Beckwith <ianb@erislabs.net>.
13181
13182 2010-04-24  Bruno Haible  <bruno@clisp.org>
13183
13184         ansi-c++-opt: Find correct compiler when cross-compiling.
13185         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13186         AC_CHECK_PROGS.
13187         Reported by Simon Josefsson.
13188
13189 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13190
13191         vc-list-files: Add support for subversion
13192         * build-aux/vc-list-files: Use "svn list" to generate the list of
13193         files controlled by subversion.
13194
13195 2010-04-23  Jim Meyering  <meyering@redhat.com>
13196
13197         vc-list-files tests: convert to use init.sh
13198         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13199         path_prepend_.
13200         Use Exit, not exit.
13201         Use skip_ rather than open coding it.
13202         Remove trap set-up and compare definitions.
13203         * tests/test-vc-list-files-git.sh: Likewise.
13204         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13205
13206 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13207
13208         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13209         backup files.
13210
13211 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13212
13213         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13214
13215 2010-04-20  Eric Blake  <eblake@redhat.com>
13216
13217         tests: be robust to ignored SIGPIPE
13218         * tests/test-select-in.sh: Consume all output.
13219         * tests/test-lseek.sh: Check correct exit status, while avoiding
13220         EPIPE.
13221
13222 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13223             Bruno Haible  <bruno@clisp.org>
13224
13225         visibility: Don't use -fvisibility if it leads to a warning.
13226         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13227         yes, don't pretend that visibility works if it leads to a warning.
13228         Reported by Mike Gran <spk121@yahoo.com>.
13229
13230 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13231
13232         * build-aux/bootstrap: Use "git -h" for testing for supported options
13233         instead of "git --help".  The short-form option only shows a summary,
13234         and doesn't layout the full man page.  Grep for the full option name
13235         in the summary, too.
13236
13237 2010-04-19  Bruno Haible  <bruno@clisp.org>
13238
13239         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13240         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13241         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13242         mention of RELOCATABLE_STRIP.
13243         Reported by Sylvain Beucler <beuc@beuc.net>.
13244
13245 2010-04-19  Bruno Haible  <bruno@clisp.org>
13246
13247         * lib/diffseq.h: Fix typo in comment.
13248         Reported by Eric Blake.
13249
13250 2010-04-19  Bruno Haible  <bruno@clisp.org>
13251
13252         ioctl: Move autoconf macro to a .m4 file.
13253         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13254         * modules/ioctl (Files): Add it.
13255         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13256         Reported by Ian Beckwith <ianb@erislabs.net>.
13257
13258 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13259             Bruno Haible  <bruno@clisp.org>
13260
13261         diffseq: Accommodate use-case with abstract arrays.
13262         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13263         is not defined.
13264         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13265         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13266
13267 2010-04-18  Bruno Haible  <bruno@clisp.org>
13268
13269         * doc/posix-headers/stdbool.texi: More precise wording.
13270
13271 2010-04-17  Jim Meyering  <meyering@redhat.com>
13272
13273         maint.mk: use gnu-style indentation in an embedded perl script
13274         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13275         Rename variable: s/two/last_two_bytes/
13276
13277 2010-04-16  Eric Blake  <eblake@redhat.com>
13278
13279         test-stdbool: skip test that fails with Solaris CC
13280         * tests/test-stdbool.c (f): Skip test that causes compilation
13281         error under buggy C++ compiler.
13282         * lib/stdbool.in.h: Document the limitation.
13283         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13284
13285         setenv: allow compilation with C++
13286         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13287         register keyword.
13288
13289         stdint: allow test to pass with C++
13290         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13291
13292         getopt: allow compilation with C++
13293         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13294         struct.
13295         * lib/getopt.c (_getopt_internal_r): Use correct type.
13296         Reported by Dagobert Michelson, via Joel E. Denny.
13297
13298 2010-04-16  Bruno Haible  <bruno@clisp.org>
13299
13300         Override netdb.h always.
13301         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13302         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13303         Reported by Ludovic Courtès <ludo@gnu.org>.
13304
13305 2010-04-15  Bruno Haible  <bruno@clisp.org>
13306
13307         openpty: Fix mistake from 2010-03-21.
13308         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13309         Reported by Simon Josefsson.
13310
13311 2010-04-15  Eric Blake  <eblake@redhat.com>
13312
13313         test-forkpty: fix expected signature
13314         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13315         Reported by Simon Josefsson.
13316
13317 2010-04-15  Jim Meyering  <meyering@redhat.com>
13318
13319         maint.mk: texinfo_suffix_re_: correct the default regexp
13320         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13321
13322         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13323         make it configurable via texinfo_suffix_re_.
13324
13325 2010-04-14  Eric Blake  <eblake@redhat.com>
13326
13327         strtok_r: relax license to LGPLv2+
13328         * modules/strtok_r (License): Relax license.
13329         Reported by Matthias Bolte.
13330
13331 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13332
13333         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13334         version 1.4.4 by default instead of requiring the libgcrypt
13335         version used during build.  This makes it possible to use the
13336         application with older but still binary compatible libgcrypt
13337         versions.
13338
13339 2010-04-13  Eric Blake  <eblake@redhat.com>
13340
13341         getopt-gnu: match recent glibc fixes and posix ruling
13342         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13343         '+' handling, when requesting extensions.
13344         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13345         'W;' handling.
13346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13347         * doc/posix-functions/getopt.texi (getopt): Document this.
13348         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13349         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13350         Likewise.
13351
13352         getopt: merge bug fixes from glibc
13353         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13354         diagnostics.  Honor '+:' correctly.  Reject ';'.
13355
13356         getopt-posix: detect MacOS bug
13357         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13358         optind when missing a required argument.
13359         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13360         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13361         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13362         Likewise.
13363
13364         getopt-posix: avoid spurious failure on Solaris
13365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13366         an indicator that setting optind=1 is sufficient for reset.
13367
13368         getopt-posix: avoid spurious failure on FreeBSD
13369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13370         in POSIX mode, since the m4 test uses it.
13371
13372         gnulib-tool: silence warning on BSD sh
13373         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13374
13375 2010-04-13  Jim Meyering  <meyering@redhat.com>
13376
13377         doc: users.txt: GNU patch now uses gnulib
13378         * users.txt: Add patch.
13379
13380 2010-04-12  Jim Meyering  <meyering@redhat.com>
13381
13382         maint.mk: generate more concise timing data for syntax-check rules
13383         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13384         " done" from each line that reports a syntax-check test duration.
13385
13386 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13387
13388         git-version-gen: use "git update-index..." rather than "git status"
13389         * build-aux/git-version-gen: Use git update-index --refresh, not
13390         "git status".  With some versions of git, "git status" would fail
13391         to update the index and result in an unwarranted "-dirty" suffix.
13392
13393 2010-04-11  Jim Meyering  <meyering@redhat.com>
13394
13395         openat: correct formatting (no semantic change)
13396         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13397         Suggested by Bruno Haible.
13398
13399 2010-04-11  Bruno Haible  <bruno@clisp.org>
13400
13401         Stricter declaration checking in testdirs.
13402         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13403         If for_tests is true, augment AM_CPPFLAGS to define
13404         GNULIB_STRICT_CHECKING.
13405         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13406         GNULIB_STRICT_CHECKING is defined, verify that the function is
13407         declared.
13408
13409 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13410             Bruno Haible  <bruno@clisp.org>
13411
13412         libunistring: Improve configure output.
13413         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13414         Don't say "consider installing GNU libunistring" when checking again
13415         with libiconv.
13416
13417 2010-04-11  Bruno Haible  <bruno@clisp.org>
13418
13419         libunistring: Correct value of $LTLIBUNISTRING.
13420         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13421         correct the value of $LTLIBUNISTRING.
13422
13423 2010-04-11  Bruno Haible  <bruno@clisp.org>
13424
13425         havelib: Add static libraries to LIBS in the right order.
13426         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13427         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13428
13429 2010-04-11  Bruno Haible  <bruno@clisp.org>
13430
13431         libunistring: Detect libunistring also when it depends on libiconv.
13432         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13433         the second AC_LIB_HAVE_LINKFLAGS invocation.
13434
13435 2010-04-11  James Youngman  <jay@gnu.org>
13436
13437         close-stream: declare local scalars to be "const"
13438         * lib/close-stream.c (close_stream): Make boolean variables const
13439         to document the fact that we set but do not change them.
13440
13441 2010-04-11  Bruno Haible  <bruno@clisp.org>
13442
13443         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13444
13445 2010-04-11  Jim Meyering  <meyering@redhat.com>
13446
13447         maint.mk: don't include dist-check.mk
13448         * top/maint.mk: Remove bogus include directive.
13449
13450         maint.mk: improve empty-line-at-EOF check
13451         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13452         solution, rather than tail+Perl-based one.  The latter would read
13453         a few kilobytes from the end of each file, and did not handle empty
13454         files properly.
13455
13456         maint.mk: print the elapsed time for each syntax-check rule
13457         * top/maint.mk (sc_m_rules_): Save start time in a file.
13458         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13459         (local-check): Interpose the .z rules
13460
13461 2010-04-11  Jim Meyering  <meyering@redhat.com>
13462
13463         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
13464         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
13465         empty file with one that ends in an empty line.
13466
13467 2010-04-10  Bruno Haible  <bruno@clisp.org>
13468
13469         mkdir: Make it work on mingw64.
13470         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
13471         * lib/mkdir.c: Update comment.
13472         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
13473
13474 2010-04-10  Bruno Haible  <bruno@clisp.org>
13475
13476         Don't override improved macro from newer autoconf.
13477         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
13478         autoconf >= 2.62.
13479         Reported by Joel E. Denny <jdenny@clemson.edu>.
13480
13481 2010-04-10  Jim Meyering  <meyering@redhat.com>
13482
13483         maint.mk: new syntax-check rule: prohibit empty lines at end of file
13484         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
13485
13486         maint.mk: correct a diagnostic
13487         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
13488         in diagnostic; now use $prohibit.
13489
13490 2010-04-10  Bruno Haible  <address@hidden>
13491
13492         fchownat: Fix a C++ test error on Solaris 8.
13493         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
13494         the function does not exist.
13495
13496 2010-04-10  Bruno Haible  <bruno@clisp.org>
13497
13498         vasnprintf: Add more tests.
13499         * tests/test-vasnprintf-posix.c: Include <errno.h>.
13500         (test_function): Test converting an invalid wide string.
13501
13502         vasnprintf: Correct handling of unconvertible wide string arguments.
13503         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
13504         VASNPRINTF.
13505         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
13506         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
13507         smaller than the expected maximum need for the directive. Set errno to
13508         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
13509         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
13510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
13511         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
13512         * modules/vasnprintf (Files): Add m4/printf.m4.
13513         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13514
13515 2010-04-10  Bruno Haible  <bruno@clisp.org>
13516
13517         vasnprintf: Fix crash in %ls directive.
13518         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
13519         string is passed as argument to %ls, with no precision and no width.
13520         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13521
13522 2010-04-10  Bruno Haible  <bruno@clisp.org>
13523
13524         vasnprintf: Fix multiple test failures on mingw.
13525         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
13526         _snprintf, or snwprintf, not _snwprintf.
13527
13528 2010-04-10  Bruno Haible  <bruno@clisp.org>
13529
13530         write: Fix a C++ test error on mingw.
13531         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
13532
13533 2010-04-10  Bruno Haible  <bruno@clisp.org>
13534
13535         vasnprintf test: Reduce code duplication.
13536         * tests/test-vasnprintf.c (test_function): New function, extracted from
13537         test_vasnprintf.
13538         (test_vasnprintf, test_asnprintf): Invoke it.
13539
13540 2010-04-10  Bruno Haible  <bruno@clisp.org>
13541
13542         strnlen: Fix warning in C++ mode on MacOS X.
13543         * lib/string.in.h (strnlen): Use the modern idiom.
13544         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
13545         defining strnlen as a macro already in <config.h>.
13546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13547         REPLACE_STRNLEN.
13548         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
13549         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13550
13551 2010-04-08  James Youngman  <jay@gnu.org>
13552
13553         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
13554         the example.
13555
13556 2010-04-09  Jim Meyering  <meyering@redhat.com>
13557
13558         maint.mk: print better diagnostic when there is no $(_hv_file)
13559         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
13560         announce that when $(_hv_file) (aka help-version) does not exist.
13561
13562         init.sh: run tr in the "C" locale to avoid multibyte interpretation
13563         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
13564         not try to interpret its random input bytes.  Jarno Rajahalme reported
13565         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
13566         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
13567         (mktempd_): Likewise, just in case.
13568
13569         ftruncate: add two years to projected module removal date: 2012
13570         * m4/ftruncate.m4: Adjust comments.
13571
13572         ftruncate: mark module as obsolete; even MinGW provides it, now
13573         * modules/ftruncate (Status): Obsolete.
13574         (Notice): Say that.
13575         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
13576         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
13577
13578 2010-04-08  Bruno Haible  <bruno@clisp.org>
13579
13580         Fix side effects from tests-related modules.
13581         * modules/dprintf-posix (Comment): New section.
13582         * modules/fprintf-posix (Comment): Likewise.
13583         * modules/obstack-printf-posix (Comment): Likewise.
13584         * modules/printf-posix (Comment): Likewise.
13585         * modules/snprintf-posix (Comment): Likewise.
13586         * modules/sprintf-posix (Comment): Likewise.
13587         * modules/vasnprintf-posix (Comment): Likewise.
13588         * modules/vasprintf-posix (Comment): Likewise.
13589         * modules/vdprintf-posix (Comment): Likewise.
13590         * modules/vfprintf-posix (Comment): Likewise.
13591         * modules/vprintf-posix (Comment): Likewise.
13592         * modules/vsnprintf-posix (Comment): Likewise.
13593         * modules/vsprintf-posix (Comment): Likewise.
13594         * modules/xprintf-posix (Comment): Likewise.
13595         * modules/xvasprintf-posix (Comment): Likewise.
13596         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
13597         * modules/floorf-tests (Depends-on): Likewise.
13598         * modules/round-tests (Depends-on): Likewise.
13599         * modules/roundf-tests (Depends-on): Likewise.
13600         * modules/trunc-tests (Depends-on): Likewise.
13601         * modules/truncf-tests (Depends-on): Likewise.
13602         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
13603         'fprintf-posix' module is not present.
13604         * tests/test-floorf2.c (check): Likewise.
13605         * tests/test-trunc2.c (check): Likewise.
13606         * tests/test-truncf2.c (check): Likewise.
13607         * tests/test-round2.c (equal): Likewise.
13608         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13609
13610 2010-04-07  Karl Berry  <karl@gnu.org>
13611
13612         * config/srclist.txt,
13613         * config/srclistvars.sh,
13614         * config/srclist-update: doc fixes.
13615
13616 2010-04-07  Jim Meyering  <meyering@redhat.com>
13617
13618         maint.mk: add a PATH crosschecking syntax-check rule
13619         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
13620         Useful if you use a test like the one in help-version (coreutils,
13621         diffutils, grep, gzip) that ensures $(VERSION) matches what is
13622         printed by prog --version.
13623
13624 2010-04-06  Bruno Haible  <bruno@clisp.org>
13625
13626         Fix link error on mingw.
13627         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
13628         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
13629
13630 2010-04-06  Bruno Haible  <bruno@clisp.org>
13631
13632         Assume rmdir exists.
13633         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
13634
13635 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
13636
13637         doc: update users.txt
13638         * users.txt: Add gcal.
13639
13640 2010-04-06  Jim Meyering  <meyering@redhat.com>
13641
13642         init.sh: simply unset TMPDIR rather than risking env -i
13643         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
13644         although it probably works fine on all Unix-based systems, some
13645         systems (Cygwin?) cannot tolerate a totally cleared environment.
13646         Suggestion from Eric Blake.
13647
13648 2010-04-06  Jim Meyering  <meyering@redhat.com>
13649
13650         init.sh: portability fix: use env's POSIX-specified -i option not -u
13651         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
13652         than unportable env -u.  Solaris 5.11's env lacks support for -u.
13653
13654 2010-04-05  Bruno Haible  <bruno@clisp.org>
13655
13656         btowc: Work around Cygwin 1.7.2 bug.
13657         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
13658         does not map NUL to 0.
13659         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
13660
13661 2010-04-05  Bruno Haible  <bruno@clisp.org>
13662
13663         Make the multithread modules work on Cygwin 1.7.2.
13664         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
13665         imported symbols can be declared weak, so that it returns "no" on
13666         Cygwin 1.7.2.
13667
13668 2010-04-05  Bruno Haible  <bruno@clisp.org>
13669
13670         Use the module 'strncat'.
13671         * modules/unistr/u8-strncat (Depends-on): Add strncat.
13672
13673         Tests for module 'strncat'.
13674         * modules/strncat-tests: New file.
13675         * tests/test-strncat.c: New file.
13676
13677         New module 'strncat'.
13678         * lib/string.in.h (strncat): New declaration.
13679         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
13680         * m4/strncat.m4: New file, based on m4/memchr.m4.
13681         * modules/strncat: New file.
13682         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
13683         is declared.
13684         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
13685         REPLACE_STRNCAT.
13686         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
13687         REPLACE_STRNCAT.
13688         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
13689         module.
13690         * tests/test-string-c++.cc: Check signature of strncat.
13691
13692 2010-04-05  Jim Meyering  <meyering@redhat.com>
13693
13694         xstrtoumax-tests: convert to use init.sh
13695         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
13696         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13697         Use Exit, not exit.
13698         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13699
13700         xstrtoimax-tests: convert to use init.sh
13701         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
13702         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13703         Use Exit, not exit.
13704         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13705
13706 2010-04-05  Bruno Haible  <bruno@clisp.org>
13707
13708         sys_socket: Avoid #define replacements in C++ mode.
13709         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
13710         warning to the function if possible, rather than #defining the symbol
13711         to a dysfunctional alias.
13712
13713 2010-04-05  Bruno Haible  <bruno@clisp.org>
13714
13715         fseeko: Fix C++ test error on mingw.
13716         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
13717         gl_FUNC_FSEEKO.
13718         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
13719         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
13720         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
13721         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
13722
13723 2010-04-05  Bruno Haible  <bruno@clisp.org>
13724
13725         duplocale: Improve test output.
13726         * tests/test-duplocale.c (main): Print reason for skipped test.
13727
13728 2010-04-05  Bruno Haible  <bruno@clisp.org>
13729
13730         Assume rmdir exists.
13731         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
13732         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
13733
13734 2010-04-05  Bruno Haible  <bruno@clisp.org>
13735
13736         Fix link error on Solaris 8 with cc.
13737         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
13738
13739 2010-04-05  Bruno Haible  <bruno@clisp.org>
13740
13741         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13742         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
13743
13744 2010-04-05  Bruno Haible  <bruno@clisp.org>
13745
13746         vasprintf: Update documentation.
13747         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
13748
13749 2010-04-05  Bruno Haible  <bruno@clisp.org>
13750
13751         ptsname: Improve test.
13752         * tests/test-ptsname.c (main): Also try the various master names of BSD
13753         systems.
13754
13755 2010-04-05  Bruno Haible  <bruno@clisp.org>
13756
13757         memchr: Avoid a possible C++ test error.
13758         * lib/string.in.h (memchr): Provide declaration if function is missing.
13759         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
13760         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
13761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
13762         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
13763
13764 2010-04-05  Bruno Haible  <bruno@clisp.org>
13765
13766         strtok_r: Improve idiom.
13767         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
13768         AC_LIBOBJ is used.
13769
13770 2010-04-05  Bruno Haible  <bruno@clisp.org>
13771
13772         strdup: Improve idiom.
13773         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
13774         AC_LIBOBJ is used.
13775         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
13776         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
13777         when AC_LIBOBJ is used.
13778
13779 2010-04-05  Bruno Haible  <bruno@clisp.org>
13780
13781         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13782         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
13783         don't set REPLACE_MBSINIT to 1.
13784         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
13785         don't set REPLACE_MBRTOWC to 1.
13786         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
13787         exist, don't set REPLACE_MBSRTOWCS to 1.
13788         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
13789         exist, don't set REPLACE_MBSNRTOWCS to 1.
13790         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
13791         don't set REPLACE_WCRTOMB to 1.
13792         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
13793         exist, don't set REPLACE_WCSRTOMBS to 1.
13794         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
13795         exist, don't set REPLACE_WCSNRTOMBS to 1.
13796
13797 2010-04-05  Bruno Haible  <bruno@clisp.org>
13798
13799         ldexpl: Improve idiom.
13800         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13801         make sure to set HAVE_DECL_LDEXPL to 0.
13802
13803 2010-04-05  Jim Meyering  <meyering@redhat.com>
13804
13805         xstrtol-tests: convert to use init.sh
13806         * modules/xstrtol-tests (Files): Add tests/init.sh.
13807         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13808         Use Exit, not exit.
13809         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13810
13811         atexit-tests: convert to use init.sh
13812         * modules/atexit-tests (Files): Add tests/init.sh.
13813         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13814         Use Exit, not exit.
13815         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13816
13817         init.sh: fix typo
13818         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13819
13820         init.sh: make it easier for a test script to write to the tty, ...
13821         when using automake's parallel-tests mode.
13822         * tests/init.sh (stderr_fileno_): Define overridable variable.
13823         (warn_): New function, to use it.
13824         (fail_, skip_, framework_failure_): Use warn_.
13825
13826 2010-04-04  Bruno Haible  <bruno@clisp.org>
13827
13828         btowc: Avoid warning.
13829         * lib/btowc.c: Include <stdlib.h>.
13830         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13831
13832 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13833             Bruno Haible  <bruno@clisp.org>
13834
13835         wchar: Port to NetBSD 1.5.
13836         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13837         * lib/wctype.in.h (WEOF): Likewise.
13838
13839 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13840             Bruno Haible  <bruno@clisp.org>
13841
13842         Port extended stdio to NetBSD 1.5.
13843         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13844         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13845         older.
13846
13847 2010-04-04  Bruno Haible  <bruno@clisp.org>
13848
13849         string: Remove unused substitution.
13850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13851         HAVE_DECL_STRERROR.
13852         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13853
13854 2010-04-04  Bruno Haible  <bruno@clisp.org>
13855
13856         strtod: Avoid a possible C++ test error.
13857         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13858         set REPLACE_STRTOD.
13859
13860 2010-04-04  Bruno Haible  <bruno@clisp.org>
13861
13862         strerror: Update documentation.
13863         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13864
13865 2010-04-04  Bruno Haible  <bruno@clisp.org>
13866
13867         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13868         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13869         _GL_CXXALIAS_SYS_CAST.
13870
13871 2010-04-04  Bruno Haible  <bruno@clisp.org>
13872
13873         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13874         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13875         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13876         REPLACE_FREXPL to 1.
13877         * doc/posix-functions/frexpl.texi: Update documentation.
13878
13879 2010-04-04  Bruno Haible  <bruno@clisp.org>
13880
13881         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13882         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13883
13884 2010-04-04  Bruno Haible  <bruno@clisp.org>
13885
13886         Implement nanosleep for native Windows.
13887         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13888
13889 2010-04-04  Bruno Haible  <bruno@clisp.org>
13890
13891         math: Fix some C++ test errors on Solaris 8.
13892         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13893
13894 2010-04-04  Bruno Haible  <bruno@clisp.org>
13895
13896         math: Fix some C++ test errors on Cygwin.
13897         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13898         truncl): Provide declaration if the system does not have it.
13899         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13900         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13901         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13902         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13903         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13904         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13905         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13906         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13907         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13908         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13909         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13910         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13911         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13912         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13913         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13914         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13916         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13917         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13918         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13919         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13920         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13921
13922 2010-04-04  Bruno Haible  <bruno@clisp.org>
13923
13924         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13925         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13926         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13927         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13928         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13929         * m4/isinf.m4 (gl_ISINF): Likewise.
13930         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13931
13932 2010-04-04  Bruno Haible  <bruno@clisp.org>
13933
13934         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13935         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13936
13937 2010-04-04  Bruno Haible  <bruno@clisp.org>
13938
13939         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13940         * modules/tmpfile (configure.ac): Update.
13941
13942         tmpfile: Fix C++ test error on mingw.
13943         * lib/stdio.in.h (tmpfile): New declaration.
13944         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13945         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13946         * modules/tmpfile (Depends-on): Add stdio.
13947         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13948         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13949         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13950         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13951         REPLACE_TMPFILE.
13952         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13953
13954 2010-04-04  Bruno Haible  <bruno@clisp.org>
13955
13956         ioctl: Fix C++ test error on mingw.
13957         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13958         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13959         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13960
13961 2010-04-03  Bruno Haible  <bruno@clisp.org>
13962
13963         wcwidth: Fix C++ test error on mingw.
13964         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13966         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13967
13968 2010-04-03  Bruno Haible  <bruno@clisp.org>
13969
13970         nanosleep: Fix C++ test error on mingw.
13971         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13972         * lib/time.in.h (nanosleep): Use modern idiom.
13973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13974         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13975         REPLACE_NANOSLEEP to 1.
13976         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13977         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13978
13979 2010-04-03  Bruno Haible  <bruno@clisp.org>
13980
13981         strptime: Fix C++ test error on mingw.
13982         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13983         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13984         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13985         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13986         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13987         not REPLACE_STRPTIME.
13988         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13989         REPLACE_STRPTIME.
13990
13991 2010-04-03  Bruno Haible  <bruno@clisp.org>
13992
13993         timegm: Fix C++ test error on mingw.
13994         * lib/time.in.h (timegm): Use modern idiom.
13995         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13996         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13997         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13998         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13999
14000 2010-04-03  Bruno Haible  <bruno@clisp.org>
14001
14002         timegm: Assume declaration if function exists.
14003         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14004         if it exists. Don't clobber ac_cv_func_timegm.
14005
14006 2010-04-03  Bruno Haible  <bruno@clisp.org>
14007
14008         time_r: Fix C++ test error on mingw.
14009         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14010         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14011         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14012         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14013         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14014
14015 2010-04-03  Bruno Haible  <bruno@clisp.org>
14016
14017         time_r: Minor updates.
14018         * modules/time_r (Description): Mention the provided functions.
14019         * lib/time_r.c: Don't include <string.h>.
14020         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14021         * doc/posix-functions/localtime_r.texi: Likewise.
14022
14023 2010-04-03  Bruno Haible  <bruno@clisp.org>
14024
14025         time: Fix regression introduced on 2010-03-08.
14026         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14027         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14028
14029 2010-04-03  Jim Meyering  <meyering@redhat.com>
14030
14031         maint.mk: don't silently disable project-specific syntax-check rules
14032         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14033         that they need to convert their project-specific syntax-check rules
14034         to use the new _sc_search_regexp.
14035
14036 2010-04-03  Bruno Haible  <bruno@clisp.org>
14037
14038         fchdir: Fix regression introduced on 2010-03-08.
14039         * lib/unistd.in.h (fchdir): Fix declaration.
14040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14042         REPLACE_FCHDIR.
14043         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14044         REPLACE_FCHDIR.
14045
14046 2010-04-03  Bruno Haible  <bruno@clisp.org>
14047
14048         getpagesize: Fix C++ test error on mingw.
14049         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14050         system does not declare the function.
14051         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14052         declared.
14053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14054         HAVE_DECL_GETPAGESIZE.
14055         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14056
14057 2010-04-03  Bruno Haible  <bruno@clisp.org>
14058
14059         stdio: Make C++ tests work on mingw.
14060         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14061         does not declare the function.
14062
14063 2010-04-03  Bruno Haible  <bruno@clisp.org>
14064
14065         ftello: Fix C++ test error on mingw.
14066         * lib/stdio.in.h (ftello): Use modern idiom.
14067         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14068         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14069         is missing and that it needs to be replaced.
14070         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14072         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14073
14074 2010-04-03  Bruno Haible  <bruno@clisp.org>
14075
14076         fseeko: Fix C++ test error on mingw.
14077         * lib/stdio.in.h (fseeko): Use modern idiom.
14078         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14079         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14080         is missing and that it needs to be replaced.
14081         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14083         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14084
14085 2010-04-03  Bruno Haible  <bruno@clisp.org>
14086
14087         mkstemp: Fix C++ test error on mingw.
14088         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14089         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14090         function is missing and that it needs to be replaced.
14091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14092         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14093
14094 2010-04-03  Bruno Haible  <bruno@clisp.org>
14095
14096         stpncpy: Fix C++ test error on mingw.
14097         * lib/string.in.h (stpncpy): Use modern idiom.
14098         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14099         function is missing and that it needs to be replaced.
14100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14101         REPLACE_STPNCPY.
14102         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14103
14104 2010-04-03  Bruno Haible  <bruno@clisp.org>
14105
14106         sys_stat: Fix C++ test error on mingw.
14107         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14108         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14109
14110 2010-04-03  Bruno Haible  <bruno@clisp.org>
14111
14112         pty: Update doc.
14113         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14114
14115 2010-04-03  Bruno Haible  <bruno@clisp.org>
14116
14117         unistd: Fix C++ test error on mingw.
14118         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14119
14120 2010-04-03  Bruno Haible  <bruno@clisp.org>
14121
14122         Update doc regarding mingw.
14123         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14124         * doc/glibc-functions/login_tty.texi: Likewise.
14125         * doc/glibc-functions/forkpty.texi: Likewise.
14126
14127 2010-04-03  Bruno Haible  <bruno@clisp.org>
14128
14129         stdlib: Avoid compilation failure of c-strtold on mingw.
14130         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14131
14132 2010-04-03  Bruno Haible  <bruno@clisp.org>
14133
14134         locale: Make C++ tests work on Cygwin and mingw.
14135         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14136         cannot provide the function.
14137         Reported by Simon Josefsson.
14138
14139 2010-04-03  Bruno Haible  <bruno@clisp.org>
14140
14141         localename: Port to MacOS X 10.6.
14142         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14143         memory layout of the locales in MacOS X 10.6 as well.
14144         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14145
14146 2010-04-02  Bruno Haible  <bruno@clisp.org>
14147
14148         gnulib-tool: Ensure that long-running tests are executed last.
14149         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14150         running tests after the one for the other tests.
14151
14152 2010-04-02  Bruno Haible  <bruno@clisp.org>
14153
14154         gnulib-tool: Ensure the tests in the main directory are executed first.
14155         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14156         start with the current directory.
14157
14158 2010-04-02  Bruno Haible  <bruno@clisp.org>
14159
14160         Tests for module 'havelib', moved here from GNU gettext.
14161         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14162         modifications.
14163         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14164         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14165         with modifications.
14166         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14167         modifications.
14168         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14169         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14170         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14171         with modifications.
14172         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14173         with modifications.
14174         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14175         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14176         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14177         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14178         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14179         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14180         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14181         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14182         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14183         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14184         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14185         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14186         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14187         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14188         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14189         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14190         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14191         with modifications.
14192         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14193         with modifications.
14194         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14195         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14196         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14197         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14198         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14199         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14200         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14201         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14202         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14203         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14204         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14205         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14206         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14207         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14208         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14209         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14210         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14211         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14212         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14213         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14214         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14215         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14216         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14217         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14218         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14219         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14220         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14221         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14222         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14223         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14224         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14225         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14226         * tests/havelib/rpathx/rpathx.c: New file, from
14227         gettext/autoconf-lib-link.
14228         * tests/havelib/rpathx/Makefile.am: New file, from
14229         gettext/autoconf-lib-link.
14230         * tests/havelib/rpathx/configure.ac: New file, from
14231         gettext/autoconf-lib-link with modifications.
14232         * tests/havelib/rpathy/rpathy.c: New file, from
14233         gettext/autoconf-lib-link.
14234         * tests/havelib/rpathy/Makefile.am: New file, from
14235         gettext/autoconf-lib-link.
14236         * tests/havelib/rpathy/configure.ac: New file, from
14237         gettext/autoconf-lib-link with modifications.
14238         * tests/havelib/rpathz/rpathz.c: New file, from
14239         gettext/autoconf-lib-link.
14240         * tests/havelib/rpathz/Makefile.am: New file, from
14241         gettext/autoconf-lib-link.
14242         * tests/havelib/rpathz/configure.ac: New file, from
14243         gettext/autoconf-lib-link with modifications.
14244         * tests/havelib/rpathlx/usex.c: New file, from
14245         gettext/autoconf-lib-link.
14246         * tests/havelib/rpathlx/Makefile.am: New file, from
14247         gettext/autoconf-lib-link.
14248         * tests/havelib/rpathlx/configure.ac: New file, from
14249         gettext/autoconf-lib-link with modifications.
14250         * tests/havelib/rpathly/usey.c: New file, from
14251         gettext/autoconf-lib-link.
14252         * tests/havelib/rpathly/Makefile.am: New file, from
14253         gettext/autoconf-lib-link.
14254         * tests/havelib/rpathly/configure.ac: New file, from
14255         gettext/autoconf-lib-link with modifications.
14256         * tests/havelib/rpathlz/usez.c: New file, from
14257         gettext/autoconf-lib-link.
14258         * tests/havelib/rpathlz/Makefile.am: New file, from
14259         gettext/autoconf-lib-link.
14260         * tests/havelib/rpathlz/configure.ac: New file, from
14261         gettext/autoconf-lib-link with modifications.
14262         * tests/havelib/rpathlyx/usey.c: New file, from
14263         gettext/autoconf-lib-link.
14264         * tests/havelib/rpathlyx/Makefile.am: New file, from
14265         gettext/autoconf-lib-link.
14266         * tests/havelib/rpathlyx/configure.ac: New file, from
14267         gettext/autoconf-lib-link with modifications.
14268         * tests/havelib/rpathlzyx/usez.c: New file, from
14269         gettext/autoconf-lib-link.
14270         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14271         gettext/autoconf-lib-link.
14272         * tests/havelib/rpathlzyx/configure.ac: New file, from
14273         gettext/autoconf-lib-link with modifications.
14274         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14275         with modifications.
14276
14277 2010-04-02  Bruno Haible  <bruno@clisp.org>
14278
14279         gnulib-tool: Create distributed built sources also for the tests.
14280         * gnulib-tool (func_create_testdir): Also generate distributed built
14281         sources in the tests directory.
14282
14283 2010-04-02  Bruno Haible  <bruno@clisp.org>
14284
14285         gnulib-tool: Obey user's environment variables.
14286         * gnulib-tool (func_create_testdir): When creating built sources,
14287         respect the environment variables for autoconf, automake, etc. given by
14288         the user.
14289
14290 2010-04-02  Bruno Haible  <bruno@clisp.org>
14291
14292         gnulib-tool: Provide the value of --m4-base to modules.
14293         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14294         of gl_m4_base.
14295
14296 2010-04-02  Eric Blake  <eblake@redhat.com>
14297
14298         maint.mk: fix some fallout
14299         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14300         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14301
14302 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14303
14304         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14305         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14306         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14307         (sc_cast_of_x_alloc_return_value): Likewise.
14308         (sc_cast_of_alloca_return_value): Likewise.
14309         (sc_space_tab): Likewise.
14310         (sc_prohibit_atoi_atof): Likewise.
14311         (sc_prohibit_magic_number_exit): Likewise.
14312         (sc_error_exit_success): Likewise.
14313         (sc_file_system): Likewise.
14314         (sc_prohibit_have_config_h): Likewise.
14315         (sc_require_config_h): Likewise.
14316         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14317         (sc_obsolete_symbols): Likewise.
14318         (sc_changelog): Likewise.
14319         (sc_program_name): Likewise.
14320         (sc_the_the): Likewise.
14321         (sc_trailing_blank): Likewise.
14322         (sc_two_space_separator_in_usage): Likewise.
14323         (sc_useless_cpp_parens): Likewise.
14324         (sc_GPL_version): Likewise.
14325         (sc_GFDL_version): Likewise.
14326         (sc_texinfo_acronym): Likewise.
14327         (sc_prohibit_cvs_keyword): Likewise.
14328         (sc_prohibit_stat_st_blocks): Likewise.
14329         (sc_prohibit_S_IS_definition): Likewise.
14330         (sc_redundant_const): Likewise.
14331         (sc_makefile_TAB_only_indentation): Likewise.
14332         (sc_m4_quote_check): Likewise.
14333         (sc_makefile_path_separator_check): Likewise.
14334         (sc_copyright_check): Likewise.
14335         (sc_Wundef_boolean): Likewise.
14336         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14337
14338         maint.mk: match 0 or more whitespace-before-function-call '('
14339         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14340         that have zero or two-and-more spaces between the function name
14341         and the open parenthesis.
14342         (sc_error_message_warn_fatal): Likewise.
14343         (sc_error_message_uppercase): Likewise.
14344         (sc_error_message_period): Likewise.
14345
14346 2010-03-31  Eric Blake  <eblake@redhat.com>
14347
14348         maint.mk: check for [ as well as test
14349         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14350         Based on a libvirt report by Matthias Bolte.
14351
14352         gnumakefile: don't squelch _version output
14353         * top/GNUmakefile (_version): Create one-shot dependency rather
14354         than using $(shell) when version must be regenerated.
14355         (_autoreconf): Run verbosely, by default.
14356
14357         sys_time: avoid compiler warnings
14358         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14359         unconditional, fixing regression from 2010-03-29.
14360         Reported by Simon Josefsson.
14361
14362 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14363
14364         maint.mk: s/_header_without_use/_sc_header_without_use/
14365         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14366         (sc_prohibit_assert_without_use): Use the new name.
14367         (sc_prohibit_close_stream_without_use): Likewise.
14368         (sc_prohibit_getopt_without_use): Likewise.
14369         (sc_prohibit_quotearg_without_use): Likewise.
14370         (sc_prohibit_quote_without_use): Likewise.
14371         (sc_prohibit_long_options_without_use): Likewise.
14372         (sc_prohibit_inttostr_without_use): Likewise.
14373         (sc_prohibit_ignore_value_without_use): Likewise.
14374         (sc_prohibit_error_without_use): Likewise.
14375         (sc_prohibit_xalloc_without_use): Likewise.
14376         (sc_prohibit_hash_without_use): Likewise.
14377         (sc_prohibit_hash_pjw_without_use): Likewise.
14378         (sc_prohibit_safe_read_without_use): Likewise.
14379         (sc_prohibit_argmatch_without_use): Likewise.
14380         (sc_prohibit_canonicalize_without_use): Likewise.
14381         (sc_prohibit_root_dev_ino_without_use): Likewise.
14382         (sc_prohibit_openat_without_use): Likewise.
14383         (sc_prohibit_c_ctype_without_use): Likewise.
14384         (sc_prohibit_signal_without_use): Likewise.
14385         (sc_prohibit_intprops_without_use): Likewise.
14386
14387 2010-03-30  Eric Blake  <eblake@redhat.com>
14388
14389         maint: improve module indicators
14390         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14391         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14392         columns, and avoid extra macro expansion.
14393
14394         fdopendir: work around FreeBSD bug
14395         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14396         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14397         * modules/dirent (Makefile.am): Substitute it.
14398         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14399         declaration.
14400         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14401         fix.
14402         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14403
14404 2010-03-29  Bruno Haible  <bruno@clisp.org>
14405
14406         Emit #pragma system_header after the inclusion guard, not before.
14407         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14408         guard that spans the entire file, not before. This enables an
14409         optimization in GCC's preprocessor.
14410         * lib/ctype.in.h: Likewise.
14411         * lib/dirent.in.h: Likewise.
14412         * lib/errno.in.h: Likewise.
14413         * lib/float.in.h: Likewise.
14414         * lib/getopt.in.h: Likewise.
14415         * lib/iconv.in.h: Likewise.
14416         * lib/langinfo.in.h: Likewise.
14417         * lib/locale.in.h: Likewise.
14418         * lib/math.in.h: Likewise.
14419         * lib/netdb.in.h: Likewise.
14420         * lib/netinet_in.in.h: Likewise.
14421         * lib/pty.in.h: Likewise.
14422         * lib/sched.in.h: Likewise.
14423         * lib/se-selinux.in.h: Likewise.
14424         * lib/search.in.h: Likewise.
14425         * lib/spawn.in.h: Likewise.
14426         * lib/stdarg.in.h: Likewise.
14427         * lib/stdint.in.h: Likewise.
14428         * lib/string.in.h: Likewise.
14429         * lib/strings.in.h: Likewise.
14430         * lib/sys_file.in.h: Likewise.
14431         * lib/sys_ioctl.in.h: Likewise.
14432         * lib/sys_time.in.h: Likewise.
14433         * lib/sys_times.in.h: Likewise.
14434         * lib/sys_utsname.in.h: Likewise.
14435         * lib/sys_wait.in.h: Likewise.
14436         * lib/sysexits.in.h: Likewise.
14437         * lib/wctype.in.h: Likewise.
14438
14439 2010-03-28  James Youngman  <jay@gnu.org>
14440
14441         save-cwd: don't leak a file descriptor when the caller execs.
14442         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14443         saved file descriptor.
14444         * modules/save-cwd (Depends-on): Depend on cloexec.
14445
14446 2010-03-29  Bruno Haible  <bruno@clisp.org>
14447
14448         Remove vestiges of fts-lgpl module.
14449         * lib/fts_.h: Assume GNULIB_FTS is 1.
14450         * lib/fts.c: Likewise.
14451         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14452
14453 2010-03-28  Bruno Haible  <bruno@clisp.org>
14454
14455         Fix definition of tests witness macro.
14456         * gnulib-tool (func_import): Fix definition of witness macro.
14457
14458 2010-03-28  Bruno Haible  <bruno@clisp.org>
14459
14460         Fix ioctl's protoype on glibc systems.
14461         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
14462         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
14463         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
14464         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
14465         signature. If not, arrange to replace the ioctl function.
14466         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14467         REPLACE_IOCTL.
14468         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
14469         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
14470         Reported by Ludovic Courtès <ludo@gnu.org>.
14471
14472 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
14473
14474         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
14475         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
14476         made it so grep -r --include=GLOB* ... did not work.
14477
14478 2010-03-26  Jim Meyering  <meyering@redhat.com>
14479             Eric Blake  <eblake@redhat.com>
14480
14481         maint.mk: prohibit use of test's -o and -a operators
14482         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
14483
14484 2010-03-28  Bruno Haible  <bruno@clisp.org>
14485
14486         Remove unused GNULIB_XYZ macro definitions.
14487         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
14488         invocation.
14489
14490 2010-03-28  Bruno Haible  <bruno@clisp.org>
14491
14492         Mark privileged tests modules.
14493         * modules/idpriv-drop-tests (Status): New section.
14494         * modules/idpriv-droptemp-tests (Status): New section.
14495
14496 2010-03-28  Bruno Haible  <bruno@clisp.org>
14497
14498         Split C++ tests into separate tests modules.
14499         * modules/dirent-c++-tests: New file, extracted from
14500         modules/dirent-tests.
14501         * modules/dirent-tests: Depend on it.
14502         * modules/fcntl-h-c++-tests: New file, extracted from
14503         modules/fcntl-h-tests.
14504         * modules/fcntl-h-tests: Depend on it.
14505         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
14506         * modules/glob-tests: Depend on it.
14507         * modules/iconv-h-c++-tests: New file, extracted from
14508         modules/iconv-h-tests.
14509         * modules/iconv-h-tests: Depend on it.
14510         * modules/langinfo-c++-tests: New file, extracted from
14511         modules/langinfo-tests.
14512         * modules/langinfo-tests: Depend on it.
14513         * modules/locale-c++-tests: New file, extracted from
14514         modules/locale-tests.
14515         * modules/locale-tests: Depend on it.
14516         * modules/math-c++-tests: New file, extracted from modules/math-tests.
14517         * modules/math-tests: Depend on it.
14518         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
14519         * modules/pty-tests: Depend on it.
14520         * modules/search-c++-tests: New file, extracted from
14521         modules/search-tests.
14522         * modules/search-tests: Depend on it.
14523         * modules/signal-c++-tests: New file, extracted from
14524         modules/signal-tests.
14525         * modules/signal-tests: Depend on it.
14526         * modules/spawn-c++-tests: New file, extracted from
14527         modules/spawn-tests.
14528         * modules/spawn-tests: Depend on it.
14529         * modules/stdio-c++-tests: New file, extracted from
14530         modules/stdio-tests.
14531         * modules/stdio-tests: Depend on it.
14532         * modules/stdlib-c++-tests: New file, extracted from
14533         modules/stdlib-tests.
14534         * modules/stdlib-tests: Depend on it.
14535         * modules/string-c++-tests: New file, extracted from
14536         modules/string-tests.
14537         * modules/string-tests: Depend on it.
14538         * modules/sys_ioctl-c++-tests: New file, extracted from
14539         modules/sys_ioctl-tests.
14540         * modules/sys_ioctl-tests: Depend on it.
14541         * modules/sys_select-c++-tests: New file, extracted from
14542         modules/sys_select-tests.
14543         * modules/sys_select-tests: Depend on it.
14544         * modules/sys_socket-c++-tests: New file, extracted from
14545         modules/sys_socket-tests.
14546         * modules/sys_socket-tests: Depend on it.
14547         * modules/sys_stat-c++-tests: New file, extracted from
14548         modules/sys_stat-tests.
14549         * modules/sys_stat-tests: Depend on it.
14550         * modules/sys_time-c++-tests: New file, extracted from
14551         modules/sys_time-tests.
14552         * modules/sys_time-tests: Depend on it.
14553         * modules/time-c++-tests: New file, extracted from modules/time-tests.
14554         * modules/time-tests: Depend on it.
14555         * modules/unistd-c++-tests: New file, extracted from
14556         modules/unistd-tests.
14557         * modules/unistd-tests: Depend on it.
14558         * modules/wchar-c++-tests: New file, extracted from
14559         modules/wchar-tests.
14560         * modules/wchar-tests: Depend on it.
14561         * modules/wctype-c++-tests: New file, extracted from
14562         modules/wctype-tests.
14563         * modules/wctype-tests: Depend on it.
14564         Reported by Simon Josefsson.
14565
14566 2010-03-28  Bruno Haible  <bruno@clisp.org>
14567
14568         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
14569         * gnulib-tool (func_exists_module): New function, extracted from
14570         func_verify_module.
14571         (func_verify_module): Use it.
14572         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
14573         'foo' only if 'foo' exists.
14574         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
14575         module.
14576
14577 2010-03-28  Bruno Haible  <bruno@clisp.org>
14578
14579         gnulib-tool: Add support for special categories of tests.
14580         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
14581         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
14582         (func_usage): Document them.
14583         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
14584         inc_unportable_tests, inc_all_tests): New variables.
14585         (func_acceptable): Consider these variables.
14586         (func_modules_transitive_closure): Make it work when the 'Status' field
14587         consists of multiple words.
14588         (func_import): Store and restore the values of inc_cxx_tests,
14589         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
14590         inc_all_tests in gnulib-comp.m4.
14591         (func_create_testdir): Set inc_all_tests to true.
14592         * doc/gnulib.texi (Extra tests modules): New section.
14593         Suggested by Jim Meyering.
14594
14595 2010-03-28  Bruno Haible  <bruno@clisp.org>
14596
14597         ansi-c++-opt: Allow turning off the C++ build by default.
14598         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
14599         gl_CXX_CHOICE_DEFAULT_NO is defined.
14600         Requested by Eric Blake.
14601
14602 2010-03-28  Bruno Haible  <bruno@clisp.org>
14603
14604         unistd: Avoid #define replacements in C++ mode.
14605         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14606         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14607         setsockopt, shutdown, select): In C++, attach a warning to the function
14608         if possible, rather than #defining the symbol to a dysfunctional alias.
14609         Reported by John W. Eaton <jwe@gnu.org>.
14610
14611 2010-03-28  Bruno Haible  <bruno@clisp.org>
14612
14613         Fix link errors on mingw.
14614         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
14615         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
14616         $(LIBSOCKET).
14617         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
14618         $(LIBSOCKET).
14619
14620 2010-03-28  Bruno Haible  <bruno@clisp.org>
14621             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14622
14623         lib-ignore: Determine different options for different compilers.
14624         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
14625         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
14626         Add comments.
14627         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
14628         * NEWS: Mention the change.
14629
14630 2010-03-27  Bruno Haible  <bruno@clisp.org>
14631
14632         Remove unused GNULIB_XYZ macro definitions.
14633         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14634         * modules/fseek (configure.ac): Likewise.
14635         * modules/ioctl (configure.ac): Likewise.
14636         * modules/open (configure.ac): Likewise.
14637         * modules/stdlib-safer (configure.ac): Likewise.
14638
14639 2010-03-27  Bruno Haible  <bruno@clisp.org>
14640
14641         Add a remark about certain modules.
14642         * modules/malloc (Comment): New section.
14643         * modules/realloc (Comment): Likewise.
14644         * modules/sigpipe (Comment): Likewise.
14645
14646 2010-03-27  Bruno Haible  <bruno@clisp.org>
14647
14648         Resolve conflict between the two kinds of module indicators.
14649         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
14650         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
14651         * modules/canonicalize (configure.ac): Invoke
14652         gl_MODULE_INDICATOR_FOR_TESTS.
14653         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
14654         GNULIB_XYZ.
14655         * tests/test-dirent-c++.cc: Likewise.
14656         * tests/test-dirent-safer.c: Likewise.
14657         * tests/test-dup2.c: Likewise.
14658         * tests/test-fchdir.c: Likewise.
14659         * tests/test-fcntl-h-c++.cc: Likewise.
14660         * tests/test-getopt.c: Likewise.
14661         * tests/test-getopt.h: Likewise.
14662         * tests/test-langinfo-c++.cc: Likewise.
14663         * tests/test-locale-c++.cc: Likewise.
14664         * tests/test-math-c++.cc: Likewise.
14665         * tests/test-pty-c++.cc: Likewise.
14666         * tests/test-search-c++.cc: Likewise.
14667         * tests/test-signal-c++.cc: Likewise.
14668         * tests/test-spawn-c++.cc: Likewise.
14669         * tests/test-stdio-c++.cc: Likewise.
14670         * tests/test-stdlib-c++.cc: Likewise.
14671         * tests/test-string-c++.cc: Likewise.
14672         * tests/test-sys_ioctl-c++.cc: Likewise.
14673         * tests/test-sys_select-c++.cc: Likewise.
14674         * tests/test-sys_socket-c++.cc: Likewise.
14675         * tests/test-sys_stat-c++.cc: Likewise.
14676         * tests/test-sys_time-c++.cc: Likewise.
14677         * tests/test-time-c++.cc: Likewise.
14678         * tests/test-unistd-c++.cc: Likewise.
14679         * tests/test-wchar-c++.cc: Likewise.
14680         * tests/uninorm/test-u8-nfc.c: Likewise.
14681         * tests/uninorm/test-u8-nfd.c: Likewise.
14682         * tests/uninorm/test-u8-nfkc.c: Likewise.
14683         * tests/uninorm/test-u8-nfkd.c: Likewise.
14684         * tests/uninorm/test-u16-nfc.c: Likewise.
14685         * tests/uninorm/test-u16-nfd.c: Likewise.
14686         * tests/uninorm/test-u16-nfkc.c: Likewise.
14687         * tests/uninorm/test-u16-nfkd.c: Likewise.
14688         * tests/uninorm/test-u32-nfc.c: Likewise.
14689         * tests/uninorm/test-u32-nfc-big.c: Likewise.
14690         * tests/uninorm/test-u32-nfd.c: Likewise.
14691         * tests/uninorm/test-u32-nfd-big.c: Likewise.
14692         * tests/uninorm/test-u32-nfkc.c: Likewise.
14693         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
14694         * tests/uninorm/test-u32-nfkd.c: Likewise.
14695         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
14696         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14697
14698 2010-03-27  Bruno Haible  <bruno@clisp.org>
14699
14700         Distinguish two kinds of module indicators.
14701         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
14702         gl_MODULE_INDICATOR.
14703         (gl_MODULE_INDICATOR): New macro.
14704         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14705         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
14706         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14707         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14708         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14709         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14710         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14711         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14712         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14713         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14714         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14715         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14716         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14717         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14718         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14719         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14720         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14721         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14722         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14723         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14724         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14725         * modules/cloexec (configure.ac): Likewise.
14726         * modules/getopt-gnu (configure.ac): Likewise.
14727         * modules/uninorm/u8-normalize (configure.ac): Likewise.
14728         * modules/uninorm/u16-normalize (configure.ac): Likewise.
14729         * modules/uninorm/u32-normalize (configure.ac): Likewise.
14730         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
14731
14732 2010-03-27  Bruno Haible  <bruno@clisp.org>
14733
14734         New module description field 'Comment'.
14735         * gnulib-tool: New option --extract-comment.
14736         (func_usage): Document it.
14737         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
14738         (func_get_comment): New function.
14739         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
14740
14741 2010-03-27  Bruno Haible  <bruno@clisp.org>
14742
14743         Addendum to 2010-02-07 commit.
14744         * gnulib-tool (func_usage): Document --extract-applicability option.
14745
14746 2010-03-27  Bruno Haible  <bruno@clisp.org>
14747
14748         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
14749         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
14750         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
14751         rather than link errors.
14752
14753 2010-03-27  Bruno Haible  <bruno@clisp.org>
14754
14755         Avoid side effects from tests-related modules on the compilation of lib.
14756         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
14757         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
14758         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
14759         parameter. Emit into AM_CPPFLAGS a definition of the designated C
14760         macro.
14761         (func_import): Define a witness macro. Assign it a value that depends
14762         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
14763         tests-related modules.
14764         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
14765         Reported by Jim Meyering.
14766
14767 2010-03-27  Bruno Haible  <bruno@clisp.org>
14768
14769         Factorize common .m4 code.
14770         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
14771         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
14772         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
14773         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
14774         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14775         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
14776         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
14777         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14778         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14779         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14780         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
14781         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14782         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14783         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14784         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14785         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
14786         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14787         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14788         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14789         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
14790         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
14791         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14792         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14793         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14794         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14795         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14796         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14797         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14798         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14799         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14800         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14801         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14802
14803 2010-03-27  Bruno Haible  <bruno@clisp.org>
14804
14805         Fix a compilation error on Cygwin with g++ >= 4.3.
14806         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14807         if it is undefined or if we alias it to chmod.
14808         (lstat): Don't warn about the use of this function if it is undefined
14809         or if we alias it to stat.
14810         Reported by Simon Josefsson.
14811
14812 2010-03-27  Bruno Haible  <bruno@clisp.org>
14813
14814         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14815         * modules/getlogin (configure.ac): Update.
14816
14817         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14818         * modules/getlogin_r (configure.ac): Update.
14819
14820         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14821         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14822         * modules/inet_ntop (configure.ac): Update.
14823
14824         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14825         * modules/inet_pton (configure.ac): Update.
14826
14827         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14828         * modules/mbslen (configure.ac): Update.
14829
14830         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14831         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14832         * modules/forkpty (configure.ac): Update.
14833         * modules/openpty (configure.ac): Update.
14834
14835 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14836
14837         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14838         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14839
14840 2010-03-25  Eric Blake  <eblake@redhat.com>
14841
14842         maint: use pragma consistently across replacement headers
14843         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14844         * lib/dirent.in.h (system_header): Likewise.
14845         * lib/errno.in.h (system_header): Likewise.
14846         * lib/float.in.h (system_header): Likewise.
14847         * lib/getopt.in.h (system_header): Likewise.
14848         * lib/iconv.in.h (system_header): Likewise.
14849         * lib/inttypes.in.h (system_header): Likewise.
14850         * lib/langinfo.in.h (system_header): Likewise.
14851         * lib/locale.in.h (system_header): Likewise.
14852         * lib/math.in.h (system_header): Likewise.
14853         * lib/netdb.in.h (system_header): Likewise.
14854         * lib/netinet_in.in.h (system_header): Likewise.
14855         * lib/pty.in.h (system_header): Likewise.
14856         * lib/sched.in.h (system_header): Likewise.
14857         * lib/se-selinux.in.h (system_header): Likewise.
14858         * lib/search.in.h (system_header): Likewise.
14859         * lib/spawn.in.h (system_header): Likewise.
14860         * lib/stdarg.in.h (system_header): Likewise.
14861         * lib/stdint.in.h (system_header): Likewise.
14862         * lib/string.in.h (system_header): Likewise.
14863         * lib/strings.in.h (system_header): Likewise.
14864         * lib/sys_file.in.h (system_header): Likewise.
14865         * lib/sys_ioctl.in.h (system_header): Likewise.
14866         * lib/sys_socket.in.h (system_header): Likewise.
14867         * lib/sys_times.in.h (system_header): Likewise.
14868         * lib/sys_utsname.in.h (system_header): Likewise.
14869         * lib/sys_wait.in.h (system_header): Likewise.
14870         * lib/sysexits.in.h (system_header): Likewise.
14871         * lib/unistd.in.h (system_header): Likewise.
14872         * lib/wctype.in.h (system_header): Likewise.
14873
14874         arpa/inet: fix mingw compilation warning
14875         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14876         Reported by Matthew Bolte.
14877
14878 2010-03-25  Bruno Haible  <bruno@clisp.org>
14879
14880         Avoid collision between gnulib wrapper and libintl wrapper.
14881         * lib/printf.c (printf): Don't define if a printf wrapper is already
14882         defined in intl/printf.c.
14883         Reported by Michel Boaventura <michel@michelboaventura.com>.
14884
14885 2010-03-25  Bruno Haible  <bruno@clisp.org>
14886
14887         Use ANSI C.
14888         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14889
14890 2010-03-25  Bruno Haible  <bruno@clisp.org>
14891
14892         Minor formatting changes.
14893         * lib/acosl.c: Insert space before function argument list.
14894         * lib/argz.c: Likewise.
14895         * lib/asinl.c: Likewise.
14896         * lib/expl.c: Likewise.
14897         * lib/gen-uni-tables.c: Likewise.
14898         * lib/gettext.h: Likewise.
14899         * lib/glthread/lock.h: Likewise.
14900         * lib/tanl.c: Likewise.
14901         * lib/uniname/uniname.c: Likewise.
14902         * tests/test-idpriv-drop.c: Likewise.
14903         * tests/test-idpriv-droptemp.c: Likewise.
14904         * tests/test-lock.c: Likewise.
14905         * tests/test-tls.c: Likewise.
14906         * lib/argp-help.c: Insert space before function-like macro argument
14907         list.
14908         * lib/memcmp.c: Likewise.
14909         * tests/test-base64.c: Likewise.
14910         * lib/localename.c: Insert space before sizeof's argument list.
14911         * lib/safe-alloc.h: Likewise.
14912         * lib/file-set.h: Insert space before macro argument list.
14913         * tests/test-argp.c: Likewise.
14914         * lib/argp-namefrob.h: Insert space before function parameter list.
14915         * lib/getaddrinfo.c: Likewise.
14916         * lib/netdb.in.h: Likewise.
14917         * lib/parse-duration.h: Likewise.
14918         * lib/parse-duration.c: Likewise.
14919         * lib/poll.c: Likewise.
14920         * lib/select.c: Likewise.
14921         * lib/trim.h: Likewise.
14922         * tests/test-usleep.c: Likewise.
14923         * lib/ldexpl.c: Insert space before function parameter list and before
14924         function argument list.
14925         * lib/logl.c: Likewise.
14926         * lib/sqrtl.c: Likewise.
14927         * lib/trim.c: Likewise.
14928         * lib/cosl.c: Use GNU style indentation. Insert space before function
14929         argument list.
14930         * lib/sinl.c: Likewise.
14931         * lib/tsearch.c: Insert space after 'for'.
14932         Reported by Jim Meyering.
14933
14934 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14935
14936         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14937         config header before grepping, as it's not present before
14938         autoreconf/configure are run.  Reported by Simon Josefsson.
14939
14940 2010-03-23  Bruno Haible  <bruno@clisp.org>
14941
14942         pt_chown: Make it work with automake < 1.11.
14943         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14944         Reported by Simon Josefsson.
14945
14946 2010-03-23  Bruno Haible  <bruno@clisp.org>
14947
14948         pt_chown: Don't depend on GPLed modules.
14949         * lib/pt_chown.c: Don't include idpriv.h.
14950         (main): Don't drop privileges.
14951         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14952         Reported by Simon Josefsson.
14953
14954 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14955
14956         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14957         suggestions from karl@freefriends.org (Karl Berry).
14958
14959 2010-03-22  Eric Blake  <eblake@redhat.com>
14960
14961         gethostname: further tweaks
14962         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14963         are overriding gethostname.
14964         Suggested by Bruno Haible.
14965
14966 2010-03-21  Bruno Haible  <bruno@clisp.org>
14967
14968         Fix comments.
14969         * lib/forkpty.c (rpl_forkpty): Fix comment.
14970         * lib/openpty.c (rpl_openpty): Likewise.
14971         Reported by Eric Blake.
14972
14973 2010-03-22  Eric Blake  <eblake@redhat.com>
14974
14975         gethostname: fix build on mingw
14976         * lib/unistd.in.h (includes): Work around fact that mingw
14977         <winsock2.h> re-includes <unistd.h>, by avoiding any
14978         redeclarations if we are being included by <winsock2.h>.
14979         Reported by Matthias Bolte.
14980
14981 2010-03-21  Bruno Haible  <bruno@clisp.org>
14982
14983         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14984         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14985         modifications.
14986         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14987         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14988         provide the replacement.
14989         * modules/forkpty (Depends-on): Add openpty, login_tty.
14990         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14991         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14992         * doc/glibc-functions/forkpty.texi: More supported platforms.
14993         * config/srclist.txt: Add forkpty.c (commented).
14994
14995 2010-03-21  Bruno Haible  <bruno@clisp.org>
14996
14997         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14998         (Makefile.am): Verify that PTY_LIB is defined.
14999
15000         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15001
15002 2010-03-21  Bruno Haible  <bruno@clisp.org>
15003
15004         Tests for module 'login_tty'.
15005         * modules/login_tty-tests: New file.
15006         * tests/test-login_tty.c: New file.
15007
15008         New module 'login_tty'.
15009         * lib/login_tty.c: New file.
15010         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15011         * modules/login_tty: New file.
15012         * doc/glibc-functions/login_tty.texi: Mention the new module.
15013
15014 2010-03-21  Bruno Haible  <bruno@clisp.org>
15015
15016         login_tty: Documentation.
15017         * doc/glibc-functions/login_tty.texi: New file.
15018         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15019
15020 2010-03-21  Bruno Haible  <bruno@clisp.org>
15021
15022         pty: Consistent macro naming.
15023         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15024         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15025         * modules/pty (configure.ac): Update.
15026
15027 2010-03-21  Bruno Haible  <bruno@clisp.org>
15028
15029         Tests for openpty: Make stricter.
15030         * tests/test-openpty.c (main): Add test of canonical processing and
15031         erase.
15032         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15033
15034         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15035         * lib/openpty.c (openpty): New replacement function.
15036         * lib/pty.in.h: Include <termios.h>.
15037         (openpty): Update declaration. Add comments.
15038         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15039         is not declared, arrange to provide the replacement. Check for _getpty
15040         and posix_openpt.
15041         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15042         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15043         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15044         * modules/pty-tests (test_pty_c___LDADD): New variable.
15045         * doc/glibc-functions/openpty.texi: More supported platforms.
15046
15047 2010-03-21  Bruno Haible  <bruno@clisp.org>
15048
15049         setenv: Tweaks.
15050         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15051         the test program.
15052         * doc/posix-functions/setenv.texi: Update platforms list.
15053
15054 2010-03-21  Bruno Haible  <bruno@clisp.org>
15055
15056         New module 'unlockpt'.
15057         * lib/unlockpt.c: New file, from glibc with modifications.
15058         * m4/unlockpt.m4: New file.
15059         * modules/unlockpt: New file.
15060         * lib/stdlib.in.h (unlockpt): New declaration.
15061         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15062         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15063         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15064         HAVE_UNLOCKPT.
15065         * doc/posix-functions/unlockpt.texi: Mention the new module.
15066         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15067         * config/srclist.txt: Add unlockpt.c (commented).
15068
15069 2010-03-21  Jim Meyering  <meyering@redhat.com>
15070
15071         maint.mk: prohibit inclusion of "intprops.h" without use
15072         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15073
15074 2010-03-21  Bruno Haible  <bruno@clisp.org>
15075
15076         New module 'grantpt'.
15077         * lib/grantpt.c: New file, from glibc with modifications.
15078         * m4/grantpt.m4: New file.
15079         * modules/grantpt: New file.
15080         * lib/stdlib.in.h (grantpt): New declaration.
15081         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15082         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15083         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15084         HAVE_GRANTPT.
15085         * doc/posix-functions/grantpt.texi: Mention the new module.
15086         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15087         * config/srclist.txt: Add grantpt.c (commented).
15088
15089 2010-03-21  Bruno Haible  <bruno@clisp.org>
15090
15091         New module 'pt_chown'.
15092         * lib/pt_chown.c: New file, from glibc with modifications.
15093         * lib/pty-private.h: New file, from glibc with modifications.
15094         * modules/pt_chown: New file.
15095         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15096
15097 2010-03-21  Bruno Haible  <bruno@clisp.org>
15098
15099         Tests for module 'ptsname'.
15100         * modules/ptsname-tests: New file.
15101         * tests/test-ptsname.c: New file.
15102
15103         New module 'ptsname'.
15104         * lib/ptsname.c: New file, from glibc with modifications.
15105         * m4/ptsname.m4: New file.
15106         * modules/ptsname: New file.
15107         * lib/stdlib.in.h (ptsname): New declaration.
15108         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15109         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15110         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15111         HAVE_PTSNAME.
15112         * doc/posix-functions/ptsname.texi: Mention the new module.
15113         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15114         * config/srclist.txt: Add ptsname.c (commented).
15115
15116 2010-03-21  Bruno Haible  <bruno@clisp.org>
15117
15118         Tests for module 'ttyname_r'.
15119         * modules/ttyname_r-tests: New file.
15120         * tests/test-ttyname_r.c: New file.
15121
15122         New module 'ttyname_r'.
15123         * lib/ttyname_r.c: New file.
15124         * m4/ttyname_r.m4: New file.
15125         * modules/ttyname_r: New file.
15126         * lib/unistd.in.h (ttyname_r): New declaration.
15127         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15128         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15129         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15130         HAVE_TTYNAME_R.
15131         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15132         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15133
15134 2010-03-20  Bruno Haible  <bruno@clisp.org>
15135
15136         signal: Undefine macro definitions in C++ mode.
15137         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15138         sigfillset): Undefine macro definitions from the system header in C++
15139         mode.
15140         Reported by John W. Eaton <jwe@gnu.org>.
15141
15142 2010-03-20  Bruno Haible  <bruno@clisp.org>
15143
15144         Ensure no #include statements inside extern "C" { ... }.
15145         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15146         contain #include statements.
15147         * lib/time.in.h: Likewise.
15148
15149 2010-03-20  Bruno Haible  <bruno@clisp.org>
15150
15151         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15152         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15153         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15154         Reported by John W. Eaton <jwe@gnu.org>.
15155
15156 2010-03-20  Bruno Haible  <bruno@clisp.org>
15157
15158         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15159         Reported by Jim Meyering.
15160
15161 2010-03-20  Bruno Haible  <bruno@clisp.org>
15162
15163         pipe: Set errno upon failure.
15164         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15165         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15166         errno value in error message.
15167
15168 2010-03-20  Bruno Haible  <bruno@clisp.org>
15169             Jim Meyering  <meyering@redhat.com>
15170
15171         lchown: Avoid "unused variable" warning.
15172         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15173
15174 2010-03-20  Bruno Haible  <bruno@clisp.org>
15175
15176         Work around unlink() bug on MacOS X 10.5.6.
15177         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15178         attempting to unlink a parent directory.
15179         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15180         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15181         activate for the replacement function.
15182         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15183
15184 2010-03-20  Bruno Haible  <bruno@clisp.org>
15185
15186         Fix link errors on Solaris 8.
15187         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15188         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15189
15190 2010-03-19  Jim Meyering  <meyering@redhat.com>
15191
15192         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15193         The _LIBC implementation of build_range_exp correctly honors the
15194         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15195         However, the non-_LIBC implementation would ignore that syntax-bit
15196         flag and return REG_ERANGE unconditionally.
15197         This change makes it honor that flag.
15198         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15199         Make two pointer parameters "const".
15200         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15201         (parse_bracket_exp): Update caller.
15202
15203         regex.m4: correct the reversed range endpoint ([b-a]) test
15204         * m4/regex.m4: When requiring that [b-a] evoke failure,
15205         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15206         test pass once again for x86-based systems.
15207
15208 2010-03-19  Bruno Haible  <bruno@clisp.org>
15209
15210         scandir: Fix link error on Solaris 8.
15211         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15212         macros.
15213
15214 2010-03-19  Bruno Haible  <bruno@clisp.org>
15215
15216         getusershell: Fix documentation.
15217         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15218         module.
15219         * doc/glibc-functions/setusershell.texi: Likewise.
15220
15221         getusershell: Provide declaration, missing on Solaris 9.
15222         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15223         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15224         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15225         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15227         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15228         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15229         HAVE_GETUSERSHELL.
15230         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15231
15232 2010-03-19  Bruno Haible  <bruno@clisp.org>
15233
15234         wctype: Provide iswblank function.
15235         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15236         exists and is fine.
15237         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15238         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15239         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15240         * doc/posix-functions/iswblank.texi: Update.
15241
15242 2010-03-19  Bruno Haible  <bruno@clisp.org>
15243
15244         Tests of module 'pty' in C++ mode.
15245         * modules/pty-tests: New file.
15246         * tests/test-pty-c++.cc: New file.
15247         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15248
15249 2010-03-19  Eric Blake  <eblake@redhat.com>
15250
15251         logb: fix documentation
15252         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15253         1.5 declaration bug.
15254
15255         forkpty, openpty: prefer glibc's const-safe prototype
15256         * lib/forkpty.c (rpl_forkpty): New file.
15257         * lib/openpty.c (rpl_openpty): Likewise.
15258         * modules/forkpty (Files): Distribute it.
15259         * modules/openpty (Files): Likewise.
15260         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15261         check...
15262         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15263         replacement for for non-const BSD signature.
15264         * modules/pty (Makefile.am): Substitute witnesses.
15265         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15266         * tests/test-forkpty.c: Update signature check.
15267         * tests/test-openpty.c: Likewise.
15268         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15269         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15270
15271         forkpty, openpty: split functions into new modules
15272         * modules/pty (Makefile.am): Substitute new witnesses.
15273         (Libraries): Move library detection...
15274         * modules/forkpty: ...into new module.
15275         * modules/openpty: Another new module.
15276         * modules/pty-tests: Rename and split...
15277         * modules/forkpty-tests: ...to this...
15278         * modules/openpty-tests: ...and this.
15279         * tests/test-pty.c: Rename and split...
15280         * tests/test-forkpty.c: ...to this...
15281         * tests/test-openpty.c: ...and this.
15282         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15283         (gl_PTY): Split library searching...
15284         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15285         (gl_FORKPTY, gl_OPENPTY): New macros.
15286         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15287         * NEWS: Mention the split.
15288         * MODULES.html.sh (Misc): Document the modules.
15289         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15290         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15291
15292         pty: improve replacement header
15293         * lib/pty.in.h: New file.
15294         * modules/pty (Files): Ship it.
15295         (Makefile.am): Always build replacement.
15296         * m4/pty.m4: Rename...
15297         * m4/pty_h.m4: ...to this.
15298         (gl_PTY): Modernize setting of witness macros; update check of
15299         forkpty to take proper advantage of cache.
15300         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15301
15302         getopt: avoid compiler warning
15303         * lib/getopt.c (attribute_hidden): Remove unused macro.
15304
15305 2010-03-18  Bruno Haible  <bruno@clisp.org>
15306
15307         Fix link errors on Solaris 8.
15308         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15309         * modules/search-tests (test_search_c___LDADD): Likewise.
15310         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15311         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15312         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15313         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15314         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15315         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15316         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15317
15318 2010-03-18  Bruno Haible  <bruno@clisp.org>
15319
15320         Fix bug introduced on 2010-03-14.
15321         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15322         (gl_SPAWN_H): Require it.
15323         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15324         Reported by Simon Josefsson.
15325
15326 2010-03-18  Bruno Haible  <bruno@clisp.org>
15327
15328         Fix typo introduced on 2009-12-31.
15329         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15330         posix_spawn_file_actions_adddup2.
15331
15332 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15333         and Eric Blake  <eblake@redhat.com>
15334
15335         test-vc-list-files-git: make more robust
15336         * tests/test-vc-list-files-git.sh: Unset problematic environment
15337         variables.  Chain commands together.
15338
15339 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15340
15341         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15342         `AC_CHECK_DECL' invocation.
15343
15344 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15345
15346         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15347         appears before executable statements. Suggested by Petr Sumbera
15348         <Petr.Sumbera@Sun.COM>.
15349
15350 2010-03-14  Bruno Haible  <bruno@clisp.org>
15351
15352         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15353         portability problems. Instead use a simpler test.
15354         (main): Check that invalid arguments are rejected only on Linux.
15355
15356 2010-03-14  Bruno Haible  <bruno@clisp.org>
15357
15358         Fix bug introduced on 2009-12-31.
15359         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15360         gl_PREREQ_SYS_H_WINSOCK2 always.
15361         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15362         SYS_SOCKET_H variable.
15363         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15364         Update comments.
15365         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15366         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15367         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15368         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15369         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15370
15371 2010-03-14  Bruno Haible  <bruno@clisp.org>
15372
15373         Fix values returned by sinl, cosl.
15374         * lib/trigl.h: Add specification comments.
15375         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15376         that combines the values from the precomputed table with the values of
15377         the Chebyshev polynomials.
15378
15379 2010-03-14  Bruno Haible  <bruno@clisp.org>
15380
15381         Fix compilation error when modules 'posix_spawn[p]' are not used.
15382         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15383         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15384
15385 2010-03-14  Bruno Haible  <bruno@clisp.org>
15386
15387         Fix compilation error on mingw when module 'time_r' is not used.
15388         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15389         is 1.
15390         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15391         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15392         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15393         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15394
15395 2010-03-14  Bruno Haible  <bruno@clisp.org>
15396
15397         Fix compilation error with Sun C.
15398         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15399         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15400         instead of GCC specific ULONG_LONG_MAX.
15401         * lib/xstrtoll.c: Likewise.
15402         * lib/xstrtoull.c: Likewise.
15403
15404 2010-03-13  Bruno Haible  <bruno@clisp.org>
15405
15406         Allow the user to disable C++ code and tests.
15407         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15408         (gl_PROG_ANSI_CXX): Require it.
15409
15410 2010-03-13  Bruno Haible  <bruno@clisp.org>
15411
15412         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15413         cases.
15414
15415 2010-03-13  Bruno Haible  <bruno@clisp.org>
15416
15417         Test that gnulib does not break the standard C++ headers.
15418         * tests/test-locale-c++2.cc: New file.
15419         * modules/locale-tests (Files): Add it.
15420         (Makefile.am): Compile it for test-locale-c++.
15421         * tests/test-math-c++2.cc: New file.
15422         * modules/math-tests (Files): Add it.
15423         (Makefile.am): Compile it for test-math-c++.
15424         * tests/test-signal-c++2.cc: New file.
15425         * modules/signal-tests (Files): Add it.
15426         (Makefile.am): Compile it for test-signal-c++.
15427         * tests/test-stdio-c++2.cc: New file.
15428         * modules/stdio-tests (Files): Add it.
15429         (Makefile.am): Compile it for test-stdio-c++.
15430         * tests/test-stdlib-c++2.cc: New file.
15431         * modules/stdlib-tests (Files): Add it.
15432         (Makefile.am): Compile it for test-stdlib-c++.
15433         * tests/test-string-c++2.cc: New file.
15434         * modules/string-tests (Files): Add it.
15435         (Makefile.am): Compile it for test-string-c++.
15436         * tests/test-time-c++2.cc: New file.
15437         * modules/time-tests (Files): Add it.
15438         (Makefile.am): Compile it for test-time-c++.
15439         Reported by John W. Eaton <jwe@gnu.org>.
15440
15441 2010-03-13  Bruno Haible  <bruno@clisp.org>
15442
15443         * gnulib-tool (func_usage): Clarify which options are available for
15444         --create-testdir and --create-megatestdir.
15445
15446 2010-03-13  Bruno Haible  <bruno@clisp.org>
15447
15448         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15449         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15450         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15451         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15452         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15453         when appropriate.
15454         Reported by Jim Meyering.
15455
15456 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15457
15458         * gnulib-tool (func_import): Explain origin of code.
15459
15460 2010-03-12  Bruno Haible  <bruno@clisp.org>
15461
15462         Fix problem with automake's definition of CXXLINK.
15463         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
15464         Reported by Simon Josefsson and Ludovic Courtès.
15465
15466 2010-03-12  Bruno Haible  <bruno@clisp.org>
15467
15468         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
15469         stable releases.
15470
15471 2010-03-11  Bruno Haible  <bruno@clisp.org>
15472
15473         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
15474         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
15475         whether the system provides one variant or multiple variants of the
15476         function.
15477         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
15478         C++ compilers.
15479         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
15480         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
15481         Reported by Jim Meyering.
15482
15483 2010-03-09  Simon Josefsson  <simon@josefsson.org>
15484
15485         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
15486
15487 2010-03-08  Bruno Haible  <bruno@clisp.org>
15488
15489         gnulib-tool: Add support for --libtool in --create-testdir.
15490         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
15491         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
15492
15493 2010-03-08  Eric Blake  <eblake@redhat.com>
15494
15495         gnulib-tool.texi: mention possibility of git submodule
15496         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
15497         submodules.
15498         * doc/.gitignore: Ignore another generated file.
15499
15500 2010-03-08  Karl Berry  <karl@gnu.org>
15501
15502         * doc/gnulib-tool.texi (VCS Issues): Mention third option
15503         of committing gnulib files while skipping others.
15504
15505 2010-03-07  Bruno Haible  <bruno@clisp.org>
15506
15507         Tests of module 'wctype' in C++ mode.
15508         * tests/test-wctype-c++.cc: New file.
15509         * modules/wctype-tests (Files): Add it and tests/signature.h.
15510         (Depends-on): Add ansi-c++-opt.
15511         (Makefile.am): Arrange to compile and run test-wctype-c++.
15512
15513         Tests of module 'wchar' in C++ mode.
15514         * tests/test-wchar-c++.cc: New file.
15515         * modules/wchar-tests (Files): Add it and tests/signature.h.
15516         (Depends-on): Add ansi-c++-opt.
15517         (Makefile.am): Arrange to compile and run test-wchar-c++.
15518         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
15519         gl_MODULE_INDICATOR.
15520
15521         Tests of module 'unistd' in C++ mode.
15522         * tests/test-unistd-c++.cc: New file.
15523         * modules/unistd-tests (Files): Add it and tests/signature.h.
15524         (Depends-on): Add ansi-c++-opt.
15525         (Makefile.am): Arrange to compile and run test-unistd-c++.
15526         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
15527         gl_MODULE_INDICATOR.
15528
15529         Tests of module 'time' in C++ mode.
15530         * tests/test-time-c++.cc: New file.
15531         * modules/time-tests (Files): Add it and tests/signature.h.
15532         (Depends-on): Add ansi-c++-opt.
15533         (Makefile.am): Arrange to compile and run test-time-c++.
15534         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15535
15536         Tests of module 'sys_time' in C++ mode.
15537         * tests/test-sys_time-c++.cc: New file.
15538         * modules/sys_time-tests (Files): Add it and tests/signature.h.
15539         (Depends-on): Add ansi-c++-opt.
15540         (Makefile.am): Arrange to compile and run test-sys_time-c++.
15541         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
15542         gl_MODULE_INDICATOR.
15543
15544         Tests of module 'sys_stat' in C++ mode.
15545         * tests/test-sys_stat-c++.cc: New file.
15546         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
15547         (Depends-on): Add ansi-c++-opt.
15548         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
15549         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
15550         gl_MODULE_INDICATOR.
15551
15552         Tests of module 'sys_socket' in C++ mode.
15553         * tests/test-sys_socket-c++.cc: New file.
15554         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
15555         (Depends-on): Add ansi-c++-opt.
15556         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
15557         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
15558         gl_MODULE_INDICATOR.
15559
15560         Tests of module 'sys_select' in C++ mode.
15561         * tests/test-sys_select-c++.cc: New file.
15562         * modules/sys_select-tests (Files): Add it and tests/signature.h.
15563         (Depends-on): Add ansi-c++-opt.
15564         (Makefile.am): Arrange to compile and run test-sys_select-c++.
15565         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
15566         gl_MODULE_INDICATOR.
15567
15568         Tests of module 'sys_ioctl' in C++ mode.
15569         * tests/test-sys_ioctl-c++.cc: New file.
15570         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
15571         (Depends-on): Add ansi-c++-opt.
15572         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
15573         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
15574         gl_MODULE_INDICATOR.
15575
15576         Tests of module 'string' in C++ mode.
15577         * tests/test-string-c++.cc: New file.
15578         * modules/string-tests (Files): Add it and tests/signature.h.
15579         (Depends-on): Add ansi-c++-opt.
15580         (Makefile.am): Arrange to compile and run test-string-c++.
15581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
15582         gl_MODULE_INDICATOR.
15583
15584         Tests of module 'stdlib' in C++ mode.
15585         * tests/test-stdlib-c++.cc: New file.
15586         * modules/stdlib-tests (Files): Add it and tests/signature.h.
15587         (Depends-on): Add ansi-c++-opt.
15588         (Makefile.am): Arrange to compile and run test-stdlib-c++.
15589         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
15590         gl_MODULE_INDICATOR.
15591
15592         Tests of module 'stdio' in C++ mode.
15593         * tests/test-stdio-c++.cc: New file.
15594         * modules/stdio-tests (Files): Add it and tests/signature.h.
15595         (Depends-on): Add ansi-c++-opt.
15596         (Makefile.am): Arrange to compile and run test-stdio-c++.
15597         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
15598         gl_MODULE_INDICATOR.
15599
15600         Tests of module 'spawn' in C++ mode.
15601         * tests/test-spawn-c++.cc: New file.
15602         * modules/spawn-tests (Files): Add it and tests/signature.h.
15603         (Depends-on): Add ansi-c++-opt.
15604         (Makefile.am): Arrange to compile and run test-spawn-c++.
15605         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
15606         gl_MODULE_INDICATOR.
15607
15608         Tests of module 'signal' in C++ mode.
15609         * tests/test-signal-c++.cc: New file.
15610         * modules/signal-tests (Files): Add it and tests/signature.h.
15611         (Depends-on): Add ansi-c++-opt.
15612         (Makefile.am): Arrange to compile and run test-signal-c++.
15613         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
15614         gl_MODULE_INDICATOR.
15615
15616         Tests of module 'search' in C++ mode.
15617         * tests/test-search-c++.cc: New file.
15618         * modules/search-tests (Files): Add it and tests/signature.h.
15619         (Depends-on): Add ansi-c++-opt.
15620         (Makefile.am): Arrange to compile and run test-search-c++.
15621         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
15622         gl_MODULE_INDICATOR.
15623
15624         Tests of module 'math' in C++ mode.
15625         * tests/test-math-c++.cc: New file.
15626         * modules/math-tests (Files): Add it and tests/signature.h.
15627         (Depends-on): Add ansi-c++-opt.
15628         (Makefile.am): Arrange to compile and run test-math-c++.
15629         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15630
15631         Tests of module 'locale' in C++ mode.
15632         * tests/test-locale-c++.cc: New file.
15633         * modules/locale-tests (Files): Add it and tests/signature.h.
15634         (Depends-on): Add ansi-c++-opt.
15635         (Makefile.am): Arrange to compile and run test-locale-c++.
15636         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
15637         gl_MODULE_INDICATOR.
15638
15639         Tests of module 'langinfo' in C++ mode.
15640         * tests/test-langinfo-c++.cc: New file.
15641         * modules/langinfo-tests (Files): Add it and tests/signature.h.
15642         (Depends-on): Add ansi-c++-opt.
15643         (Makefile.am): Arrange to compile and run test-langinfo-c++.
15644         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
15645         gl_MODULE_INDICATOR.
15646
15647         Tests of module 'iconv-h' in C++ mode.
15648         * tests/test-iconv-h-c++.cc: New file.
15649         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
15650         (Depends-on): Add ansi-c++-opt.
15651         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
15652
15653         Tests of module 'glob' in C++ mode.
15654         * tests/test-glob-c++.cc: New file.
15655         * modules/glob-tests (Files): Add it.
15656         (Depends-on): Add ansi-c++-opt.
15657         (Makefile.am): Arrange to compile and run test-glob-c++.
15658
15659         Tests of module 'fcntl-h' in C++ mode.
15660         * tests/test-fcntl-h-c++.cc: New file.
15661         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
15662         (Depends-on): Add ansi-c++-opt.
15663         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
15664         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
15665         gl_MODULE_INDICATOR.
15666
15667         Tests of module 'dirent' in C++ mode.
15668         * tests/test-dirent-c++.cc: New file.
15669         * modules/dirent-tests (Files): Add it and tests/signature.h.
15670         (Depends-on): Add ansi-c++-opt.
15671         (Makefile.am): Arrange to compile and run test-dirent-c++.
15672         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15673         gl_MODULE_INDICATOR.
15674
15675         New module 'ansi-c++-opt'.
15676         * modules/ansi-c++-opt: New file.
15677         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
15678
15679         Document C++ namespace mode.
15680         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
15681
15682         wctype: Avoid #define replacements in C++ mode.
15683         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
15684         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
15685         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
15686         In C++, define a namespaced alias symbol.
15687         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
15688         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
15689         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
15690         rule.
15691
15692         wchar: Avoid #define replacements in C++ mode.
15693         * lib/wchar.in.h: Include c++defs.h.
15694         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
15695         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
15696         symbol.
15697         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
15698         * modules/wchar (Depends-on): Add c++defs.
15699         (Makefile.am): Update wchar.h rule.
15700
15701         unistd: Avoid #define replacements in C++ mode.
15702         * lib/unistd.in.h: Include c++defs.h.
15703         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
15704         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
15705         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
15706         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
15707         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
15708         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
15709         symbol.
15710         (environ): Update.
15711         * modules/unistd (Depends-on): Add c++defs.
15712         (Makefile.am): Update unistd.h rule.
15713
15714         time: Avoid #define replacements in C++ mode.
15715         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
15716         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
15717         define a namespaced alias symbol.
15718         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
15719         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
15720         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
15721         * modules/time (Depends-on): Add c++defs, warn-on-use.
15722         (Makefile.am): Update time.h rule.
15723         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15724         * modules/nanosleep (configure.ac): Likewise.
15725         * modules/strptime (configure.ac): Likewise.
15726         * modules/timegm (configure.ac): Likewise.
15727
15728         sys_time: Avoid #define replacements in C++ mode.
15729         * lib/sys_time.in.h: Include c++defs.h.
15730         (gettimeofday): In C++, define a namespaced alias symbol.
15731         * modules/sys_time (Depends-on): Add c++defs.
15732         (Makefile.am): Update sys/time.h rule.
15733
15734         sys_stat: Avoid #define replacements in C++ mode.
15735         * lib/sys_stat.in.h: Include c++defs.h.
15736         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
15737         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
15738         namespaced alias symbol.
15739         In C++, define a namespaced alias symbol.
15740         * modules/sys_stat (Depends-on): Add c++defs.
15741         (Makefile.am): Update sys/stat.h rule.
15742
15743         sys_socket: Avoid #define replacements in C++ mode.
15744         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
15745         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
15746         definitions also when the system has a <sys/socket.h>.
15747         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15748         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
15749         In C++, define a namespaced alias symbol.
15750         * modules/sys_socket (Depends-on): Add c++defs.
15751         (Makefile.am): Update sys/socket.h rule.
15752
15753         sys_select: Avoid #define replacements in C++ mode.
15754         * lib/sys_select.in.h: Include c++defs.h. Enable the function
15755         definitions also when the system has a <sys/select.h>.
15756         (select): In C++, define a namespaced alias symbol.
15757         * modules/sys_select (Depends-on): Add c++defs.
15758         (Makefile.am): Update sys/select.h rule.
15759
15760         sys_ioctl: Avoid #define replacements in C++ mode.
15761         * lib/sys_ioctl.in.h: Include c++defs.h.
15762         (ioctl): In C++, define a namespaced alias symbol.
15763         * modules/sys_ioctl (Depends-on): Add c++defs.
15764         (Makefile.am): Update sys/ioctl.h rule.
15765
15766         string: Avoid #define replacements in C++ mode.
15767         * lib/string.in.h: Include c++defs.h.
15768         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
15769         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15770         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15771         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
15772         strsignal, strverscmp): In C++, define a namespaced alias symbol.
15773         * modules/string (Depends-on): Add c++defs.
15774         (Makefile.am): Update string.h rule.
15775
15776         stdlib: Avoid #define replacements in C++ mode.
15777         * lib/stdlib.in.h: Include c++defs.h.
15778         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
15779         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
15780         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
15781         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
15782         symbol.
15783         * modules/stdlib (Depends-on): Add c++defs.
15784         (Makefile.am): Update stdlib.h rule.
15785
15786         stdio: Avoid #define replacements in C++ mode.
15787         * lib/stdio.in.h: Include c++defs.h.
15788         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
15789         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
15790         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
15791         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
15792         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
15793         namespaced alias symbol.
15794         * modules/stdio (Depends-on): Add c++defs.
15795         (Makefile.am): Update stdio.h rule.
15796
15797         spawn: Avoid #define replacements in C++ mode.
15798         * lib/spawn.in.h: Include c++defs.h.
15799         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15800         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15801         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15802         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15803         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15804         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15805         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15806         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15807         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15808         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15809         In C++, define a namespaced alias symbol.
15810         * modules/spawn (Depends-on): Add c++defs.
15811         (Makefile.am): Update spawn.h rule.
15812
15813         signal: Avoid #define replacements in C++ mode.
15814         * lib/signal.in.h: Include c++defs.h.
15815         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15816         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15817         namespaced alias symbol.
15818         * modules/signal (Depends-on): Add c++defs.
15819         (Makefile.am): Update signal.h rule.
15820
15821         search: Avoid #define replacements in C++ mode.
15822         * lib/search.in.h: Include c++defs.h.
15823         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15824         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15825         symbol.
15826         * modules/search (Depends-on): Add c++defs.
15827         (Makefile.am): Update search.h rule.
15828
15829         math: Avoid #define replacements in C++ mode.
15830         * lib/math.in.h: Include c++defs.h.
15831         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15832         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15833         trunc, truncl): In C++, define a namespaced alias symbol.
15834         * modules/math (Depends-on): Add c++defs.
15835         (Makefile.am): Update math.h rule.
15836
15837         locale: Avoid #define replacements in C++ mode.
15838         * lib/locale.in.h: Include c++defs.h.
15839         (duplocale): In C++, define a namespaced alias symbol.
15840         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15841         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15842         * modules/locale (Depends-on): Add c++defs.
15843         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15844
15845         langinfo: Avoid #define replacements in C++ mode.
15846         * lib/langinfo.in.h: Include c++defs.h.
15847         (nl_langinfo): In C++, define a namespaced alias symbol.
15848         * modules/langinfo (Depends-on): Add c++defs.
15849         (Makefile.am): Update langinfo.h rule.
15850
15851         iconv-h: Avoid #define replacements in C++ mode.
15852         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15853         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15854         symbol.
15855         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15856         whenever iconv is present.
15857         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15858         (Makefile.am): Update iconv.h rule.
15859
15860         glob: Avoid #define replacements in C++ mode.
15861         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15862         (_gl_glob_errfunc_fn): New type.
15863         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15864         symbol.
15865         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15866         (Makefile.am): Update glob.h rule.
15867
15868         fcntl-h: Avoid #define replacements in C++ mode.
15869         * lib/fcntl.in.h: Include c++defs.h.
15870         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15871         * modules/fcntl-h (Depends-on): Add c++defs.
15872         (Makefile.am): Update fcntl.h rule.
15873
15874         dirent: Avoid #define replacements in C++ mode.
15875         * lib/dirent.in.h: Include c++defs.h.
15876         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15877         namespaced alias symbol.
15878         (dirfd): Update declaration.
15879         * modules/dirent (Depends-on): Add c++defs.
15880         (Makefile.am): Update dirent.h rule.
15881
15882         ctype: Make it usable in C++ code.
15883         * lib/ctype.in.h: Include c++defs.h.
15884         (isblank): Declare as extern "C".
15885         * modules/ctype (Depends-on): Add c++defs.
15886         (Makefile.am): Update ctype.h rule.
15887
15888         New module 'c++defs'.
15889         * modules/c++defs: New file.
15890         * build-aux/c++defs.h: New file.
15891         Reported by John W. Eaton <jwe@gnu.org>.
15892
15893 2010-03-07  Bruno Haible  <bruno@clisp.org>
15894
15895         logb: Provide missing declaration for Cygwin.
15896         * lib/math.in.h (logb): New declaration.
15897         * m4/logb.m4: New file.
15898         * modules/logb (Files): Add m4/logb.m4.
15899         (Depends-on): Add math.
15900         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15901         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15903         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15904         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15905
15906 2010-03-07  Bruno Haible  <bruno@clisp.org>
15907
15908         Fix test-cond link error.
15909         * tests/test-cond.c: Include <stdio.h>.
15910
15911 2010-03-07  Bruno Haible  <bruno@clisp.org>
15912
15913         Fix test-dirent-safer link error.
15914         * modules/dirent-safer-tests (Makefile.am): Define
15915         test_dirent_safer_LDADD.
15916
15917 2010-03-07  Bruno Haible  <bruno@clisp.org>
15918
15919         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15920         among default module list.
15921
15922 2010-03-07  Bruno Haible  <bruno@clisp.org>
15923
15924         Fix link error on platforms with GNU libiconv.
15925         * modules/unistr/u8-strcoll-tests (Makefile): Define
15926         test_u8_strcoll_LDADD.
15927         * modules/unistr/u16-strcoll-tests (Makefile): Define
15928         test_u16_strcoll_LDADD.
15929         * modules/unistr/u32-strcoll-tests (Makefile): Define
15930         test_u32_strcoll_LDADD.
15931
15932 2010-03-07  Bruno Haible  <bruno@clisp.org>
15933
15934         Use POSIX declarations for socket functions.
15935         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15936         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15937         rpl_sendto): Change declaration to match POSIX.
15938         * lib/connect.c (rpl_connect): Likewise.
15939         * lib/accept.c (rpl_accept): Likewise.
15940         * lib/bind.c (rpl_bind): Likewise.
15941         * lib/getpeername.c (rpl_getpeername): Likewise.
15942         * lib/getsockname.c (rpl_getsockname): Likewise.
15943         * lib/recv.c (rpl_recv): Likewise.
15944         * lib/send.c (rpl_send): Likewise.
15945         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15946         * lib/sendto.c (rpl_sendto): Likewise.
15947
15948 2010-03-06  Bruno Haible  <bruno@clisp.org>
15949
15950         Clarify access, euidaccess, faccessat.
15951         * doc/posix-functions/faccessat.texi: Mention security problem under
15952         "Other problems", not "Portability problems".
15953         * doc/posix-functions/access.texi: Likewise. Mention a related security
15954         problem.
15955         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15956         * lib/euidaccess.c: Add comments about platforms.
15957         * lib/unistd.in.h (access, euidaccess): Add warnings.
15958
15959 2010-03-07  Bruno Haible  <bruno@clisp.org>
15960
15961         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15962         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15963         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15964         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15965         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15966         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15967         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15968         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15969         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15970         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15971         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15972         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15973         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15974         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15975         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15976         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15977         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15978         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15979         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15980         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15981         Likewise.
15982         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15983         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15984         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15985         Likewise.
15986         * tests/test-spawn.c (main): Make it work when
15987         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15988
15989 2010-03-07  Bruno Haible  <bruno@clisp.org>
15990
15991         Fix incorrect Makefile.am generation in German locale.
15992         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15993         Execute sed command with character range in C locale.
15994
15995 2010-03-06  Bruno Haible  <bruno@clisp.org>
15996
15997         Tests for module 'iconv-h'.
15998         * modules/iconv-h-tests: New file.
15999         * tests/test-iconv-h.c: New file.
16000
16001         New module 'iconv-h'.
16002         * modules/iconv-h: New file.
16003         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16004         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16005         (configure.ac): Remove gl_ICONV_H.
16006         (Makefile.am): Remove rule for iconv.h.
16007
16008 2010-03-06  Bruno Haible  <bruno@clisp.org>
16009
16010         More consistent naming of *.m4 files.
16011         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16012         * modules/wctype (Files): Update.
16013
16014         More consistent naming of *.m4 files.
16015         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16016         * modules/wchar (Files): Update.
16017
16018 2010-03-06  Jim Meyering  <meyering@redhat.com>
16019
16020         euidaccess: relax license to LGPLv2+
16021         * modules/euidaccess (License): Relax to LGPLv2+.
16022
16023 2010-03-06  Bruno Haible  <bruno@clisp.org>
16024
16025         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16026         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16027         (Makefile.am): Augment lib_SOURCES instead.
16028
16029 2010-03-04  Jim Meyering  <meyering@redhat.com>
16030
16031         utime: remove obsolete module
16032         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16033         unnecessary for years, and has been marked as obsolete for 10 months.
16034         * modules/utime: Remove file.
16035         * lib/utime.c: Remove file.
16036         * m4/utime.m4: Remove file.
16037         * m4/utimes-null.m4: Remove file.
16038         * doc/posix-functions/utime.texi (utime): Remove reference to
16039         the module.  Move the sole "fixed by gnulib" item into the
16040         "problems not fixed by Gnulib" list.
16041         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16042
16043 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16044
16045         * modules/exit (License): Relax license to LGPLv2+.
16046         (Status): Mark as obsolete.
16047         * NEWS: Mention deprecated 'exit' module.
16048         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16049         of now obsolete 'exit'.
16050
16051 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16052
16053         fts-lgpl: remove unused module
16054         * modules/fts-lgpl: Remove.
16055         * MODULES.html.sh (func_all_modules): Adjust.
16056         * check-module (find_included_lib_files): Adjust.
16057         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16058
16059 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16060
16061         copy-acl: enhance Solaris ACL error handling
16062         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16063         * lib/set-mode-acl.c (qset_acl): Likewise.
16064
16065 2010-03-02  Bruno Haible  <bruno@clisp.org>
16066
16067         spawn: Don't override the system defined values on FreeBSD 8.
16068         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16069         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16070         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16071         if HAVE_POSIX_SPAWN is 1.
16072         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16073
16074 2010-03-01  Bruno Haible  <bruno@clisp.org>
16075
16076         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16077         regarding Automake.
16078
16079 2010-02-25  Bruno Haible  <bruno@clisp.org>
16080
16081         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16082         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16083         setting, not afterwards.
16084         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16085
16086 2010-02-24  Eric Blake  <eblake@redhat.com>
16087
16088         bootstrap, git-version-gen: use timestamp
16089         * build-aux/git-version-gen (scriptversion): Force UTC.
16090         * build-aux/bootstrap (scriptversion): New variable.
16091
16092         bootstrap: allow older git
16093         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16094         older than 1.6.4.  Requested by the libvirt project.
16095
16096 2010-02-23  Eric Blake  <eblake@redhat.com>
16097
16098         warn-on-use: work with old autoconf
16099         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16100         AS_VAR semantics of autoconf 2.60.
16101         Reported by Bruno Haible.
16102
16103         bootstrap: improve some comments
16104         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16105         clarification comments.
16106
16107         gettimeofday: provide correct function
16108         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16109         when replacement is declared, otherwise provide gettimeofday.
16110         Reported by Michael Goffioul.
16111
16112 2010-02-23  Jim Meyering  <meyering@redhat.com>
16113
16114         lib-ignore: relax license to "unlimited", not LGPLv2+
16115         * modules/lib-ignore (License): Relax to "unlimited".
16116
16117 2010-02-23  Jim Meyering  <meyering@redhat.com>
16118
16119         lib-ignore: relax license to LGPLv2+
16120         * modules/lib-ignore (License): Relax to LGPLv2+.
16121
16122 2010-02-22  Eric Blake  <eblake@redhat.com>
16123
16124         lseek: avoid bash 3.2 broken pipe bug
16125         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16126         warning from bash 3.2.
16127         Reported by Ben Pfaff, with analysis from Bruno Haible.
16128
16129         bootstrap: support non-FSF copyright holder
16130         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16131         bootstrap.conf override of COPYRIGHT_HOLDER.
16132         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16133
16134         bootstrap: interoperate with gettext 0.14.1
16135         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16136
16137         bootstrap: allow for alternate submodule location
16138         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16139         hardcoding submodule location.
16140         (gnulib_mk): Allow direct use of Makefile.am.
16141
16142         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16143         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16144         rather than reconfiguring where the submodule points.
16145
16146         gettimeofday: restore support for platforms that lack function
16147         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16148         replacement if function is missing.
16149         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16150         * modules/sys_time (Makefile.am): Substitute it.
16151         * lib/sys_time.in.h (gettimeofday): Check it.
16152         Reported by Michael Goffioul.
16153
16154 2010-02-21  Bruno Haible  <bruno@clisp.org>
16155
16156         * lib/stdio.in.h (obstack_printf): Fix typo.
16157
16158 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16159
16160         vc-list-files: use bzr ls's -R option
16161         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16162         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16163
16164 2010-02-21  Jim Meyering  <meyering@redhat.com>
16165
16166         init.sh: fix EXEEXT shims to work also for names like test-prog
16167         * tests/init.sh: Re-exec a better shell, when needed.
16168         If the current shell lacks support for posix $(...), an init.sh-using
16169         test will now try to find a shell that supports that.  If EXEEXT is
16170         nonempty, we also require support for hyphen-in-alias-name and shell
16171         substitutions like ${var#glob}.  Failure to find such a shell results
16172         in a skipped test.
16173
16174 2010-02-21  Bruno Haible  <bruno@clisp.org>
16175
16176         Really work around around "broken pipe" error message from bash 3.2.
16177         * gnulib-tool (func_reset_sigpipe): Remove function.
16178         (echo): In bash 3.2, define to a function that uses printf.
16179         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16180
16181 2010-02-20  Bruno Haible  <bruno@clisp.org>
16182
16183         Restore support for automake 1.9.6 with autoconf 2.61.
16184         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16185         Reported by James Youngman <jay@gnu.org>.
16186
16187 2010-02-20  Bruno Haible  <bruno@clisp.org>
16188
16189         Improve *printf warning condition.
16190         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16191         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16192         and the function is overridden due to SIGPIPE emulation.
16193
16194 2010-02-20  Bruno Haible  <bruno@clisp.org>
16195
16196         * lib/stdio.in.h: Tweak comments.
16197
16198 2010-02-19  Bruno Haible  <bruno@clisp.org>
16199
16200         Make it easier to find modules. New gnulib-tool option '--find'.
16201         * gnulib-tool: New option --find.
16202         (func_usage): Document it.
16203         (func_sanitize_modulelist): New function, extracted from
16204         func_all_modules.
16205         (func_all_modules): Invoke it.
16206         * doc/gnulib-tool.texi (Which modules?): New node.
16207
16208 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16209
16210         * lib/sys_select.in.h: Provide select replacement even if
16211         sys/select.h exists on a system, for Interix.
16212
16213 2010-02-18  Jim Meyering  <meyering@redhat.com>
16214
16215         init.sh: don't use $(...) just yet
16216         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16217         to accommodate e.g., Solaris' /bin/sh.
16218
16219 2010-02-17  Bruno Haible  <bruno@clisp.org>
16220
16221         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16222         Reported by Ludovic Courtès <ludo@gnu.org>.
16223
16224 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16225
16226         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16227         linking with -lintl.
16228
16229 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16230
16231         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16232         if not provided by the system's netdb.h.  Reported by
16233         ludo@gnu.org (Ludovic Courtès).
16234
16235 2010-02-15  Jim Meyering  <meyering@redhat.com>
16236
16237         init.sh: improve portability and efficiency
16238         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16239         "dummy" in a for loop.
16240         Use '!', not '^' to select the complement of a character set used
16241         in a "case" statement.
16242         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16243         Suggestions from Eric Blake.
16244
16245         init.sh: automatically accommodate programs with the .exe suffix
16246         Automatically arrange for an invocation of "prog" to execute the
16247         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16248         may use the simpler "prog", yet still work when built on a system
16249         that requires specifying the added suffix.
16250         Do this by constructing a function named "prog" that invokes
16251         "prog.exe" for each .exe file in selected directories.
16252         * tests/init.sh (find_exe_basenames_): New function.
16253         (create_exe_shim_functions_): New function.
16254         (path_prepend_): Use it.
16255
16256         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16257         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16258         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16259
16260 2010-02-14  Jim Meyering  <meyering@redhat.com>
16261
16262         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16263         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16264         (sc_prohibit_hash_pjw_without_use): New rule.
16265
16266         maint.mk: allow the default upload destination dir to be overridden
16267         * top/maint.mk (upload_dest_dir_): Define with a default that
16268         preserves the status quo.
16269         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16270         Reported by Peter Simons.
16271
16272         maint.mk: prohibit inclusion of "hash.h" without_use
16273         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16274
16275 2010-02-10  Jim Meyering  <meyering@redhat.com>
16276
16277         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16278         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16279
16280 2010-02-09  Eric Blake  <ebb9@byu.net>
16281         and Bruno Haible  <bruno@clisp.org>
16282
16283         obstack-printf-posix: ensure declaration
16284         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16285         extracted from gl_FUNC_OBSTACK_PRINTF.
16286         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16287         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16288         Likewise.
16289         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16290         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16291         0.
16292
16293 2010-02-08  Bruno Haible  <bruno@clisp.org>
16294
16295         gnulib-tool: Fix typo in 2010-02-07 commit.
16296         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16297         Reported by Eric Blake.
16298
16299 2010-02-07  Bruno Haible  <bruno@clisp.org>
16300
16301         gnulib-tool: Fix up caching patches.
16302         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16303         option --no-cache. Use associative arrays when supported by the shell.
16304         (sed_comments): New variable.
16305         (modcache): Renamed from do_cache.
16306         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16307         abbreviate unnecessarily.
16308         (have_associative): New variable.
16309         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16310         way also for ksh and zsh.
16311         (func_init_sed_convert_to_cache_statements): New function, extracted
16312         from func_cache_lookup_module. Add support for associative arrays.
16313         Don't set the c_MODULE_cached variable here. Ignore all lines before
16314         the first field header. Remove only the final newline, not all trailing
16315         newlines. Support empty fields correctly. Limit the use of 'eval' to
16316         assignments.
16317         (func_get_description, func_get_status, func_get_notice,
16318         func_get_applicability, func_get_filelist, func_get_dependencies,
16319         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16320         func_get_automake_snippet, func_get_include_directive,
16321         func_get_link_directive, func_get_license, func_get_maintainer):
16322         Update documentation. List the unoptimized code first. Add support for
16323         associative arrays. Limit the use of 'eval' to assignments.
16324         (func_get_applicability): Undo stylistic pessimisations.
16325         (func_get_automake_snippet, func_get_include_directive): Reduce code
16326         duplication.
16327         (func_modules_transitive_closure, func_modules_add_dummy,
16328         func_modules_notice, func_modules_to_filelist, func_add_file,
16329         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16330         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16331         func_create_testdir, func_create_megatestdir): Update documentation.
16332
16333 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16334
16335         * gnulib-tool (func_cache_lookup_module): Store the module name
16336         belonging to the cache variable; error out if two different
16337         module names map to the same cache variable name.
16338
16339 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16340
16341         gnulib-tool: Make caching optional.
16342         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16343         Update matching short versions of --no-changelog.
16344         (func_usage): Update.
16345         (sed_extract_cache_prog): Renamed from ...
16346         (sed_extract_prog): ... this; revert to old extraction script.
16347         (func_get_description, func_get_status)
16348         (func_get_notice, func_get_applicability, func_get_filelist)
16349         (func_get_dependencies, func_get_autoconf_early_snippet)
16350         (func_get_autoconf_snippet, func_get_automake_snippet)
16351         (func_get_include_directive, func_get_link_directive)
16352         (func_get_license, func_get_maintainer): If $do_cache is false,
16353         use old, non-caching extraction scripts.
16354         Suggestion by Bruno Haible.
16355
16356 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16357
16358         gnulib-tool: cache module metainformation.
16359         * gnulib-tool (sed_extract_prog): Match newline before each
16360         header, and rewrite header to a shell variable suffix.
16361         (func_cache_var, func_cache_lookup_module): New functions,
16362         to turn a module name into a cache variable prefix, and to
16363         look up and cache module metainformation.
16364         (func_get_description, func_get_status)
16365         (func_get_notice, func_get_applicability, func_get_filelist)
16366         (func_get_dependencies, func_get_autoconf_early_snippet)
16367         (func_get_autoconf_snippet, func_get_automake_snippet)
16368         (func_get_include_directive, func_get_link_directive)
16369         (func_get_license, func_get_maintainer): Use
16370         func_cache_lookup_module.
16371
16372 2010-02-07  Bruno Haible  <bruno@clisp.org>
16373
16374         fnctl: Fix missing dependency.
16375         * modules/fcntl (Depends-on): Add getdtablesize.
16376         Reported by John W. Eaton <jwe@gnu.org>.
16377
16378 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16379
16380         Argp: fix recognition of short alias options.
16381
16382         * lib/argp-parse.c (convert_options): Fix improper use of
16383         `|' between character values.
16384         * tests/test-argp.c (group1_option): New alias option
16385         --read (-r).
16386         (group1_parser): Special handling for 'r'.
16387         (test15): New test case.
16388         (test_fun): Add test15.
16389         * tests/test-argp-2.sh: Update expected --help and --usage
16390         outputs.
16391
16392 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16393
16394         * tests/test-argp.c: Fix indentation.
16395
16396 2010-02-04  Eric Blake  <ebb9@byu.net>
16397
16398         gettimeofday: expose type of second argument
16399         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16400         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16401         * tests/test-gettimeofday.c: Use it to silence warning.
16402         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16403         the issue.
16404
16405 2010-02-03  Jim Meyering  <meyering@redhat.com>
16406
16407         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16408         * lib/regcomp.c (TYPE_SIGNED): Define.
16409         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16410
16411         regcomp.c: avoid a new -Wshadow warning
16412         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16413
16414 2010-02-01  Jim Meyering  <meyering@redhat.com>
16415
16416         removing useless parentheses in cpp #define directives
16417         For motivation, see commit c0221df4, "define STREQ(a,b)
16418         consistently, removing useless parentheses"
16419         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16420         * lib/mountlist.c (MNT_IGNORE): Likewise.
16421         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16422
16423 2010-02-01  Eric Blake  <ebb9@byu.net>
16424
16425         sys_time: use link-warning
16426         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16427         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16428         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16429         * modules/sys_time (Depends-on): Add warn-on-use.
16430         (Makefile.am): Always build replacement.
16431         (configure.ac): Update substitutions.
16432         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16433         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16434         bother with SYS_TIME_H.
16435         * modules/gettimeofday (configure.ac): Declare indicator.
16436         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16437         in use.
16438
16439         closein-tests: silence compiler warning
16440         * tests/test-closein.c (main): Ignore fread result.
16441         * modules/closein-tests (Depends-on): Add ignore-value.
16442
16443         tests: silence warning about system return
16444         * tests/test-areadlink-with-size.c (main): Ignore system result.
16445         * tests/test-areadlink.c (main): Likewise.
16446         * tests/test-areadlinkat-with-size.c (main): Likewise.
16447         * tests/test-areadlinkat.c (main): Likewise.
16448         * tests/test-canonicalize-lgpl.c (main): Likewise.
16449         * tests/test-canonicalize.c (main): Likewise.
16450         * tests/test-chown.c (main): Likewise.
16451         * tests/test-fchownat.c (main): Likewise.
16452         * tests/test-fdutimensat.c (main): Likewise.
16453         * tests/test-fstatat.c (main): Likewise.
16454         * tests/test-futimens.c (main): Likewise.
16455         * tests/test-lchown.c (main): Likewise.
16456         * tests/test-link.c (main): Likewise.
16457         * tests/test-linkat.c (main): Likewise.
16458         * tests/test-lstat.c (main): Likewise.
16459         * tests/test-mkdir.c (main): Likewise.
16460         * tests/test-mkdirat.c (main): Likewise.
16461         * tests/test-mkfifo.c (main): Likewise.
16462         * tests/test-mkfifoat.c (main): Likewise.
16463         * tests/test-mknod.c (main): Likewise.
16464         * tests/test-readlink.c (main): Likewise.
16465         * tests/test-remove.c (main): Likewise.
16466         * tests/test-rename.c (main): Likewise.
16467         * tests/test-renameat.c (main): Likewise.
16468         * tests/test-rmdir.c (main): Likewise.
16469         * tests/test-symlink.c (main): Likewise.
16470         * tests/test-symlinkat.c (main): Likewise.
16471         * tests/test-unlink.c (main): Likewise.
16472         * tests/test-unlinkat.c (main): Likewise.
16473         * tests/test-utimens.c (main): Likewise.
16474         * tests/test-utimensat.c (main): Likewise.
16475         * modules/areadlink-tests (Depends-on): Add ignore-value.
16476         * modules/areadlink-with-size-tests (Depends-on): Likewise.
16477         * modules/areadlinkat-tests (Depends-on): Likewise.
16478         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
16479         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16480         * modules/canonicalize-tests (Depends-on): Likewise.
16481         * modules/chown-tests (Depends-on): Likewise.
16482         * modules/fdutimensat-tests (Depends-on): Likewise.
16483         * modules/futimens-tests (Depends-on): Likewise.
16484         * modules/lchown-tests (Depends-on): Likewise.
16485         * modules/link-tests (Depends-on): Likewise.
16486         * modules/linkat-tests (Depends-on): Likewise.
16487         * modules/lstat-tests (Depends-on): Likewise.
16488         * modules/mkdir-tests (Depends-on): Likewise.
16489         * modules/mkfifo-tests (Depends-on): Likewise.
16490         * modules/mkfifoat-tests (Depends-on): Likewise.
16491         * modules/mknod-tests (Depends-on): Likewise.
16492         * modules/openat-tests (Depends-on): Likewise.
16493         * modules/readlink-tests (Depends-on): Likewise.
16494         * modules/remove-tests (Depends-on): Likewise.
16495         * modules/rename-tests (Depends-on): Likewise.
16496         * modules/renameat-tests (Depends-on): Likewise.
16497         * modules/rmdir-tests (Depends-on): Likewise.
16498         * modules/symlink-tests (Depends-on): Likewise.
16499         * modules/symlinkat-tests (Depends-on): Likewise.
16500         * modules/unlink-tests (Depends-on): Likewise.
16501         * modules/utimens-tests (Depends-on): Likewise.
16502         * modules/utimensat-tests (Depends-on): Likewise.
16503
16504 2010-01-31  Bruno Haible  <bruno@clisp.org>
16505
16506         Perform the same test for many <math.h> functions.
16507         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
16508         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
16509         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
16510         of gl_MATHFUNC.
16511         * modules/acos (configure.ac): Likewise.
16512         * modules/asin (configure.ac): Likewise.
16513         * modules/atan (configure.ac): Likewise.
16514         * modules/atan2 (configure.ac): Likewise.
16515         * modules/cbrt (configure.ac): Likewise.
16516         * modules/copysign (configure.ac): Likewise.
16517         * modules/cos (configure.ac): Likewise.
16518         * modules/cosh (configure.ac): Likewise.
16519         * modules/erf (configure.ac): Likewise.
16520         * modules/erfc (configure.ac): Likewise.
16521         * modules/exp (configure.ac): Likewise.
16522         * modules/fmod (configure.ac): Likewise.
16523         * modules/hypot (configure.ac): Likewise.
16524         * modules/j0 (configure.ac): Likewise.
16525         * modules/j1 (configure.ac): Likewise.
16526         * modules/jn (configure.ac): Likewise.
16527         * modules/lgamma (configure.ac): Likewise.
16528         * modules/log (configure.ac): Likewise.
16529         * modules/log10 (configure.ac): Likewise.
16530         * modules/log1p (configure.ac): Likewise.
16531         * modules/pow (configure.ac): Likewise.
16532         * modules/remainder (configure.ac): Likewise.
16533         * modules/sin (configure.ac): Likewise.
16534         * modules/sinh (configure.ac): Likewise.
16535         * modules/tan (configure.ac): Likewise.
16536         * modules/tanh (configure.ac): Likewise.
16537         * modules/y0 (configure.ac): Likewise.
16538         * modules/y1 (configure.ac): Likewise.
16539         * modules/yn (configure.ac): Likewise.
16540         Suggested by Paolo Bonzini.
16541
16542 2010-01-31  Bruno Haible  <bruno@clisp.org>
16543
16544         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
16545
16546 2010-01-31  Bruno Haible  <bruno@clisp.org>
16547
16548         Work around getdelim() bug on FreeBSD 8.0.
16549         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
16550         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
16551         not work.
16552         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
16553         is 1.
16554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
16555         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
16556         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
16557         a non-zero size.
16558         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
16559
16560 2010-01-31  Bruno Haible  <bruno@clisp.org>
16561
16562         Work around getline() bug on FreeBSD 8.0.
16563         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
16564         and a non-zero size.
16565         * tests/test-getline.c (main): Likewise.
16566         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
16567         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
16568
16569 2010-01-28  Eric Blake  <ebb9@byu.net>
16570
16571         regex: fix build failure
16572         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
16573         platforms.
16574
16575 2010-01-28  Jim Meyering  <meyering@redhat.com>
16576
16577         regex: do not ignore memory allocation failure
16578         * lib/regex_internal.c (create_cd_newstate): Detect
16579         re_node_set_init_copy failure.   Extracted from glibc commit
16580         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16581
16582         regex: sync more white-space changes from libc
16583         * lib/regex_internal.c: White-space only changes.
16584         * lib/regexec.c: Likewise.
16585
16586         regex: add many uses of __attribute_warn_unused_result__
16587         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
16588         * lib/regexec.c: Likewise.
16589         Extracted from a messy glibc commit.
16590
16591         regcomp.c: spelling and merge-artifact from glibc
16592         * lib/regcomp.c: Merge remainder of glibc's
16593         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16594
16595         regcomp.c: sync white-space changes from glibc
16596         * lib/regcomp.c: Merge to accommodate white space
16597         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16598
16599         regcomp.c: do not ignore internal return values
16600         * lib/regcomp.c: Do not ignore internal return values.
16601         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
16602         but without its white-space changes and spelling fixes.
16603
16604         regex_internal.h: define __attribute_warn_unused_result__
16605         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
16606
16607         maint: add a syntax-check rule to check for vulnerable Makefile.in
16608         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
16609
16610 2010-01-27  Jim Meyering  <meyering@redhat.com>
16611
16612         ncftpput-ftp: clean up spaces
16613         * build-aux/ncftpput-ftp: Make Copyright line consistent.
16614         Remove trailing blanks.
16615
16616 2010-01-27  Simon Josefsson  <simon@josefsson.org>
16617
16618         * build-aux/git-version-gen: Fix copyright statement.
16619         * build-aux/gnupload: Likewise.
16620         * tests/test-arcfour.c: Likewise.
16621         * tests/test-arctwo.c: Likewise.
16622         * tests/test-count-one-bits.c: Likewise.
16623         * tests/test-crc.c: Likewise.
16624         * tests/test-des.c: Likewise.
16625         * tests/test-gc-arcfour.c: Likewise.
16626         * tests/test-gc-arctwo.c: Likewise.
16627         * tests/test-gc-des.c: Likewise.
16628         * tests/test-gc-hmac-md5.c: Likewise.
16629         * tests/test-gc-hmac-sha1.c: Likewise.
16630         * tests/test-gc-md2.c: Likewise.
16631         * tests/test-gc-md4.c: Likewise.
16632         * tests/test-gc-md5.c: Likewise.
16633         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16634         * tests/test-gc-rijndael.c: Likewise.
16635         * tests/test-gc-sha1.c: Likewise.
16636         * tests/test-gc.c: Likewise.
16637         * tests/test-gethostname.c: Likewise.
16638         * tests/test-gettimeofday.c: Likewise.
16639         * tests/test-hash.c: Likewise.
16640         * tests/test-hmac-md5.c: Likewise.
16641         * tests/test-hmac-sha1.c: Likewise.
16642         * tests/test-md2.c: Likewise.
16643         * tests/test-md4.c: Likewise.
16644         * tests/test-md5.c: Likewise.
16645         * tests/test-memchr.c: Likewise.
16646         * tests/test-memchr2.c: Likewise.
16647         * tests/test-memcmp.c: Likewise.
16648         * tests/test-memmem.c: Likewise.
16649         * tests/test-memrchr.c: Likewise.
16650         * tests/test-rawmemchr.c: Likewise.
16651         * tests/test-read-file.c: Likewise.
16652         * tests/test-rijndael.c: Likewise.
16653         * tests/test-sockets.c: Likewise.
16654         * tests/test-strchrnul.c: Likewise.
16655         * tests/test-strstr.c: Likewise.
16656         * tests/test-strtod.c: Likewise.
16657         * build-aux/ncftpput-ftp: Likewise.
16658
16659 2010-01-26  Eric Blake  <ebb9@byu.net>
16660
16661         ignore-value: update recommended header name
16662         * modules/ignore-value (Include): Only use <> for headers that
16663         exist in glibc.
16664
16665 2010-01-26  Jim Meyering  <meyering@redhat.com>
16666
16667         test-userspec.c: avoid compiler warnings
16668         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
16669         and "initialization discards qualifiers..." warnings.
16670         Put the first "uid" in its own scope, and make char* members "const".
16671
16672 2010-01-25  Bruno Haible  <bruno@clisp.org>
16673
16674         gnulib-tool: Make warning diagnostics consistent.
16675         * gnulib-tool (func_warning): New function.
16676         Use it everywhere where gnulib-tool produces output to stderr and it is
16677         not a fatal error.
16678
16679 2010-01-25  Bruno Haible  <bruno@clisp.org>
16680
16681         Fix test dependencies.
16682         * modules/xstrtol-tests (Depends-on): Add inttypes.
16683         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
16684
16685 2010-01-25 Pádraig Brady <P@draigBrady.com>
16686
16687         syntax-check: detect incorrect boolean macro values in config.h
16688         * modules/maintainer-makefile (configure.ac): Parameterize the location
16689         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
16690         The logic is from Eric Blake and the location indicated by Jim Meyering.
16691         Note the more natural CONFIG_HEADER name is prohibited by automake
16692         for backwards compatibility reasons.
16693         * top/maint.mk (sc_Wundef_boolean): New rule.
16694
16695 2010-01-25  Jim Meyering  <meyering@redhat.com>
16696
16697         bootstrap: detect MacOS 10.6's shasum, too
16698         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
16699         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
16700
16701 2010-01-23  Jim Meyering  <meyering@redhat.com>
16702
16703         xstrtoll: new module
16704         * modules/xstrtoll: New file.
16705         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
16706         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
16707         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
16708         ./configure fails if you use this module and lack "long long".
16709         * modules/xstrtoll-tests: New module.
16710         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
16711         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
16712         new init.sh-based test framework.
16713
16714 2010-01-24  Bruno Haible  <bruno@clisp.org>
16715
16716         Tests for module 'yn'.
16717         * modules/yn-tests: New file.
16718         * tests/test-yn.c: New file.
16719
16720         Tests for module 'y1'.
16721         * modules/y1-tests: New file.
16722         * tests/test-y1.c: New file.
16723
16724         Tests for module 'y0'.
16725         * modules/y0-tests: New file.
16726         * tests/test-y0.c: New file.
16727
16728         Tests for module 'tanh'.
16729         * modules/tanh-tests: New file.
16730         * tests/test-tanh.c: New file.
16731
16732         Tests for module 'tan'.
16733         * modules/tan-tests: New file.
16734         * tests/test-tan.c: New file.
16735
16736         Tests for module 'sqrt'.
16737         * modules/sqrt-tests: New file.
16738         * tests/test-sqrt.c: New file.
16739
16740         Tests for module 'sinh'.
16741         * modules/sinh-tests: New file.
16742         * tests/test-sinh.c: New file.
16743
16744         Tests for module 'sin'.
16745         * modules/sin-tests: New file.
16746         * tests/test-sin.c: New file.
16747
16748         Tests for module 'rint'.
16749         * modules/rint-tests: New file.
16750         * tests/test-rint.c: New file.
16751
16752         Tests for module 'remainder'.
16753         * modules/remainder-tests: New file.
16754         * tests/test-remainder.c: New file.
16755
16756         Tests for module 'pow'.
16757         * modules/pow-tests: New file.
16758         * tests/test-pow.c: New file.
16759
16760         Tests for module 'nextafter'.
16761         * modules/nextafter-tests: New file.
16762         * tests/test-nextafter.c: New file.
16763
16764         Tests for module 'modf'.
16765         * modules/modf-tests: New file.
16766         * tests/test-modf.c: New file.
16767
16768         Tests for module 'logb'.
16769         * modules/logb-tests: New file.
16770         * tests/test-logb.c: New file.
16771
16772         Tests for module 'log1p'.
16773         * modules/log1p-tests: New file.
16774         * tests/test-log1p.c: New file.
16775
16776         Tests for module 'log10'.
16777         * modules/log10-tests: New file.
16778         * tests/test-log10.c: New file.
16779
16780         Tests for module 'log'.
16781         * modules/log-tests: New file.
16782         * tests/test-log.c: New file.
16783
16784         Tests for module 'lgamma'.
16785         * modules/lgamma-tests: New file.
16786         * tests/test-lgamma.c: New file.
16787
16788         Tests for module 'ldexp'.
16789         * modules/ldexp-tests: New file.
16790         * tests/test-ldexp.c: New file.
16791
16792         Tests for module 'jn'.
16793         * modules/jn-tests: New file.
16794         * tests/test-jn.c: New file.
16795
16796         Tests for module 'j1'.
16797         * modules/j1-tests: New file.
16798         * tests/test-j1.c: New file.
16799
16800         Tests for module 'j0'.
16801         * modules/j0-tests: New file.
16802         * tests/test-j0.c: New file.
16803
16804         Tests for module 'hypot'.
16805         * modules/hypot-tests: New file.
16806         * tests/test-hypot.c: New file.
16807
16808         Tests for module 'fmod'.
16809         * modules/fmod-tests: New file.
16810         * tests/test-fmod.c: New file.
16811
16812         Tests for module 'fabs'.
16813         * modules/fabs-tests: New file.
16814         * tests/test-fabs.c: New file.
16815
16816         Tests for module 'exp'.
16817         * modules/exp-tests: New file.
16818         * tests/test-exp.c: New file.
16819
16820         Tests for module 'erfc'.
16821         * modules/erfc-tests: New file.
16822         * tests/test-erfc.c: New file.
16823
16824         Tests for module 'erf'.
16825         * modules/erf-tests: New file.
16826         * tests/test-erf.c: New file.
16827
16828         Tests for module 'cosh'.
16829         * modules/cosh-tests: New file.
16830         * tests/test-cosh.c: New file.
16831
16832         Tests for module 'cos'.
16833         * modules/cos-tests: New file.
16834         * tests/test-cos.c: New file.
16835
16836         Tests for module 'copysign'.
16837         * modules/copysign-tests: New file.
16838         * tests/test-copysign.c: New file.
16839
16840         Tests for module 'cbrt'.
16841         * modules/cbrt-tests: New file.
16842         * tests/test-cbrt.c: New file.
16843
16844         Tests for module 'atan2'.
16845         * modules/atan2-tests: New file.
16846         * tests/test-atan2.c: New file.
16847
16848         Tests for module 'atan'.
16849         * modules/atan-tests: New file.
16850         * tests/test-atan.c: New file.
16851
16852         Tests for module 'asin'.
16853         * modules/asin-tests: New file.
16854         * tests/test-asin.c: New file.
16855
16856         Tests for module 'acos'.
16857         * modules/acos-tests: New file.
16858         * tests/test-acos.c: New file.
16859
16860 2010-01-24  Bruno Haible  <bruno@clisp.org>
16861
16862         Fix tests for common <math.h> functions.
16863         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16864         code snippet that references the function pointer, rather than merely
16865         calling the function. Substitute the FUNC_LIBM variable.
16866         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16867         * modules/acos (configure.ac): Likewise.
16868         * modules/asin (configure.ac): Likewise.
16869         * modules/atan (configure.ac): Likewise.
16870         * modules/atan2 (configure.ac): Likewise.
16871         * modules/cbrt (configure.ac): Likewise.
16872         * modules/copysign (configure.ac): Likewise.
16873         * modules/cos (configure.ac): Likewise.
16874         * modules/cosh (configure.ac): Likewise.
16875         * modules/erf (configure.ac): Likewise.
16876         * modules/erfc (configure.ac): Likewise.
16877         * modules/exp (configure.ac): Likewise.
16878         * modules/fabs (configure.ac): Likewise.
16879         * modules/fmod (configure.ac): Likewise.
16880         * modules/hypot (configure.ac): Likewise.
16881         * modules/j0 (configure.ac): Likewise.
16882         * modules/j1 (configure.ac): Likewise.
16883         * modules/jn (configure.ac): Likewise.
16884         * modules/ldexp (configure.ac): Likewise.
16885         * modules/lgamma (configure.ac): Likewise.
16886         * modules/log (configure.ac): Likewise.
16887         * modules/log10 (configure.ac): Likewise.
16888         * modules/log1p (configure.ac): Likewise.
16889         * modules/logb (configure.ac): Likewise.
16890         * modules/modf (configure.ac): Likewise.
16891         * modules/nextafter (configure.ac): Likewise.
16892         * modules/pow (configure.ac): Likewise.
16893         * modules/remainder (configure.ac): Likewise.
16894         * modules/rint (configure.ac): Likewise.
16895         * modules/sin (configure.ac): Likewise.
16896         * modules/sinh (configure.ac): Likewise.
16897         * modules/tan (configure.ac): Likewise.
16898         * modules/tanh (configure.ac): Likewise.
16899         * modules/y0 (configure.ac): Likewise.
16900         * modules/y1 (configure.ac): Likewise.
16901         * modules/yn (configure.ac): Likewise.
16902
16903 2010-01-24  Bruno Haible  <bruno@clisp.org>
16904
16905         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16906         * tests/test-acosl.c (x): New variable.
16907         (main): Store argument in x and fetch it from x.
16908         * tests/test-asinl.c (x): New variable.
16909         (main): Store argument in x and fetch it from x.
16910         * tests/test-atanl.c (x): New variable.
16911         (main): Store argument in x and fetch it from x.
16912         * tests/test-cosl.c (x): New variable.
16913         (main): Store argument in x and fetch it from x.
16914         * tests/test-expl.c (x): New variable.
16915         (main): Store argument in x and fetch it from x.
16916         * tests/test-logl.c (x): New variable.
16917         (main): Store argument in x and fetch it from x.
16918         * tests/test-sinl.c (x): New variable.
16919         (main): Store argument in x and fetch it from x.
16920         * tests/test-sqrtl.c (x): New variable.
16921         (main): Store argument in x and fetch it from x.
16922         * tests/test-tanl.c (x): New variable.
16923         (main): Store argument in x and fetch it from x.
16924
16925 2010-01-24  Bruno Haible  <bruno@clisp.org>
16926
16927         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16928         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16929         assignments to the initial TESTS_ENVIRONMENT.
16930         * doc/gnulib.texi (Unit test modules): Document it.
16931         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16932         TESTS_ENVIRONMENT.
16933         * modules/btowc-tests (Makefile.am): Likewise.
16934         * modules/c-stack-tests (Makefile.am): Likewise.
16935         * modules/c-strcase-tests (Makefile.am): Likewise.
16936         * modules/copy-file-tests (Makefile.am): Likewise.
16937         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16938         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16939         * modules/mbrtowc-tests (Makefile.am): Likewise.
16940         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16941         * modules/mbscasestr-tests (Makefile.am): Likewise.
16942         * modules/mbschr-tests (Makefile.am): Likewise.
16943         * modules/mbscspn-tests (Makefile.am): Likewise.
16944         * modules/mbsinit-tests (Makefile.am): Likewise.
16945         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16946         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16947         * modules/mbspbrk-tests (Makefile.am): Likewise.
16948         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16949         * modules/mbsrchr-tests (Makefile.am): Likewise.
16950         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16951         * modules/mbsspn-tests (Makefile.am): Likewise.
16952         * modules/mbsstr-tests (Makefile.am): Likewise.
16953         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16954         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16955         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16956         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16957         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16958         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16959         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16960         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16961         * modules/wcrtomb-tests (Makefile.am): Likewise.
16962         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16963         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16964         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16965         assignments from TESTS_ENVIRONMENT.
16966         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16967         augmentation.
16968         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16969         * modules/atexit-tests (Makefile.am): Likewise.
16970         * modules/binary-io-tests (Makefile.am): Likewise.
16971         * modules/closein-tests (Makefile.am): Likewise.
16972         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16973         * modules/exclude-tests (Makefile.am): Likewise.
16974         * modules/fflush-tests (Makefile.am): Likewise.
16975         * modules/fpending-tests (Makefile.am): Likewise.
16976         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16977         * modules/freadahead-tests (Makefile.am): Likewise.
16978         * modules/freadptr-tests (Makefile.am): Likewise.
16979         * modules/freadseek-tests (Makefile.am): Likewise.
16980         * modules/fseek-tests (Makefile.am): Likewise.
16981         * modules/fseeko-tests (Makefile.am): Likewise.
16982         * modules/ftell-tests (Makefile.am): Likewise.
16983         * modules/ftello-tests (Makefile.am): Likewise.
16984         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16985         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16986         * modules/lseek-tests (Makefile.am): Likewise.
16987         * modules/parse-duration-tests (Makefile.am): Likewise.
16988         * modules/perror-tests (Makefile.am): Likewise.
16989         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16990         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16991         * modules/pipe-tests (Makefile.am): Likewise.
16992         * modules/pread-tests (Makefile.am): Likewise.
16993         * modules/printf-posix-tests (Makefile.am): Likewise.
16994         * modules/select-tests (Makefile.am): Likewise.
16995         * modules/sigpipe-tests (Makefile.am): Likewise.
16996         * modules/tsearch-tests (Makefile.am): Likewise.
16997         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16998         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16999         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17000         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17001         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17002         * modules/version-etc-tests (Makefile.am): Likewise.
17003         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17004         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17005         * modules/xalloc-die-tests (Makefile.am): Likewise.
17006         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17007         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17008         * modules/xstrtol-tests (Makefile.am): Likewise.
17009         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17010         * modules/yesno-tests (Makefile.am): Likewise.
17011         Suggested by Jim Meyering.
17012
17013 2010-01-24  Bruno Haible  <bruno@clisp.org>
17014
17015         More documentation.
17016         * doc/gnulib.texi (Writing modules): New chapter.
17017         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17018         the new chapter.
17019
17020 2010-01-24  Jim Meyering  <meyering@redhat.com>
17021
17022         maint.mk: do not prepend "./" after filtering
17023         * top/maint.mk (_prepend_srcdir_prefix): New variable
17024         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17025         "./" when $(srcdir) is ".".
17026
17027         define STREQ(a,b) consistently, removing useless parentheses
17028         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17029         since the only risk is that "a" or "b" contains an unparenthesized
17030         comma, but if either did that, STREQ would have 3 or more arguments.
17031         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17032         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17033         * lib/hash-triple.c (STREQ): Likewise.
17034         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17035         * lib/getugroups.c (STREQ): Likewise.
17036
17037 2010-01-23  Jim Meyering  <meyering@redhat.com>
17038
17039         maint.mk: fix syntax-check in a non-srcdir build directory
17040         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17041         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17042
17043 2010-01-22  Jim Meyering  <meyering@redhat.com>
17044
17045         userspec: add unit tests
17046         * tests/test-userspec.c: New file.
17047         * modules/userspec-tests: Likewise.
17048
17049 2010-01-21  Jim Meyering  <meyering@redhat.com>
17050
17051         maint.mk: handle source file names containing "." robustly
17052         * top/maint.mk (_dot_escaped_srcdir): Define.
17053         (VC_LIST): Use it in LHS of sed substitution.
17054
17055 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17056
17057         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17058         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17059         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17060         from a non-srcdir build.
17061
17062 2010-01-20  Eric Blake  <ebb9@byu.net>
17063
17064         warn-on-use: use instead of link-warning
17065         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17066         * modules/unistd (Depends-on, Makefile.am): Likewise.
17067         * modules/arpa_inet (Depends-on): Replace link-warning with
17068         warn-on-use.
17069         (Makefile.am): Update rules accordingly.
17070         * modules/ctype (Depends-on, Makefile.am): Likewise.
17071         * modules/dirent (Depends-on, Makefile.am): Likewise.
17072         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17073         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17074         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17075         * modules/locale (Depends-on, Makefile.am): Likewise.
17076         * modules/math (Depends-on, Makefile.am): Likewise.
17077         * modules/search (Depends-on, Makefile.am): Likewise.
17078         * modules/signal (Depends-on, Makefile.am): Likewise.
17079         * modules/spawn (Depends-on, Makefile.am): Likewise.
17080         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17081         * modules/string (Depends-on, Makefile.am): Likewise.
17082         * modules/strings (Depends-on, Makefile.am): Likewise.
17083         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17084         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17085         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17086         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17087         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17088         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17089         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17090         * modules/wchar (Depends-on, Makefile.am): Likewise.
17091         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17092         should be poisoned.
17093         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17094         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17095         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17096         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17097         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17098         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17099         * m4/math_h.m4 (gl_MATH_H): Likewise.
17100         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17101         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17102         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17103         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17104         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17105         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17106         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17107         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17108         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17109         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17110         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17111         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17112         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17113         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17114         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17115         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17116         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17117         GL_LINK_WARNING.
17118         * lib/ctype.in.h: Likewise.
17119         * lib/dirent.in.h: Likewise.
17120         * lib/fcntl.in.h: Likewise.
17121         * lib/inttypes.in.h: Likewise.
17122         * lib/langinfo.in.h: Likewise.
17123         * lib/locale.in.h: Likewise.
17124         * lib/math.in.h: Likewise.
17125         * lib/search.in.h: Likewise.
17126         * lib/signal.in.h: Likewise.
17127         * lib/spawn.in.h: Likewise.
17128         * lib/stdio.in.h: Likewise.
17129         * lib/stdlib.in.h: Likewise.
17130         * lib/string.in.h: Likewise.
17131         * lib/strings.in.h: Likewise.
17132         * lib/sys_file.in.h: Likewise.
17133         * lib/sys_ioctl.in.h: Likewise.
17134         * lib/sys_select.in.h: Likewise.
17135         * lib/sys_socket.in.h: Likewise.
17136         * lib/sys_stat.in.h: Likewise.
17137         * lib/sys_times.in.h: Likewise.
17138         * lib/sys_utsname.in.h: Likewise.
17139         * lib/unistd.in.h: Likewise.
17140         * lib/wchar.in.h: Likewise.
17141
17142 2010-01-20  Bruno Haible  <bruno@clisp.org>
17143
17144         Avoid duplicate -lm.
17145         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17146         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17148         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17149         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17150         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17151         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17152         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17153         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17154         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17155         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17156         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17157         Reported by Paolo Bonzini.
17158
17159 2010-01-19  Bruno Haible  <bruno@clisp.org>
17160
17161         langinfo, nl_langinfo: Relicense under LGPLv2+.
17162         * modules/langinfo (License): Change to LGPLv2+.
17163         * modules/nl_langinfo (License): Likewise.
17164         Patch by David Lutterkort <lutter@redhat.com>.
17165
17166 2010-01-19  Bruno Haible  <bruno@clisp.org>
17167
17168         Avoid compilation error with cc on OSF/1 5.1.
17169         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17170         statement, not before.
17171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17172
17173 2010-01-18  Bruno Haible  <bruno@clisp.org>
17174
17175         Avoid a link error due to the __printf__ symbol.
17176         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17177         and 2.6.x.
17178         (__format__, __printf__): Remove definitions.
17179         * lib/argp-fmtstream.h: Likewise.
17180         * lib/argp.h: Likewise.
17181         * lib/error.h: Likewise.
17182         * lib/vasnprintf.h: Likewise.
17183         * lib/xprintf.h: Likewise.
17184         * lib/xvasprintf.h: Likewise.
17185         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17186
17187 2010-01-18  Bruno Haible  <bruno@clisp.org>
17188
17189         Tests for module 'tanl'.
17190         * modules/tanl-tests: New file.
17191         * tests/test-tanl.c: New file.
17192
17193         Tests for module 'sqrtl'.
17194         * modules/sqrtl-tests: New file.
17195         * tests/test-sqrtl.c: New file.
17196
17197         Tests for module 'sinl'.
17198         * modules/sinl-tests: New file.
17199         * tests/test-sinl.c: New file.
17200
17201         Tests for module 'logl'.
17202         * modules/logl-tests: New file.
17203         * tests/test-logl.c: New file.
17204
17205         Tests for module 'expl'.
17206         * modules/expl-tests: New file.
17207         * tests/test-expl.c: New file.
17208
17209         Tests for module 'cosl'.
17210         * modules/cosl-tests: New file.
17211         * tests/test-cosl.c: New file.
17212
17213         Tests for module 'atanl'.
17214         * modules/atanl-tests: New file.
17215         * tests/test-atanl.c: New file.
17216
17217         Tests for module 'asinl'.
17218         * modules/asinl-tests: New file.
17219         * tests/test-asinl.c: New file.
17220
17221         Tests for module 'acosl'.
17222         * modules/acosl-tests: New file.
17223         * tests/test-acosl.c: New file.
17224
17225         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17226         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17227         tanl): Use the standard gnulib idiom.
17228         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17229         * lib/sinl.c: Likewise.
17230         * lib/tanl.c: Don't include trigl.c.
17231         (kernel_tanl): Make static.
17232         * lib/sincosl.c: Include trigl.h first.
17233         * lib/trigl.c: Likewise.
17234         * m4/acosl.m4: New file.
17235         * m4/asinl.m4: New file.
17236         * m4/atanl.m4: New file.
17237         * m4/cosl.m4: New file.
17238         * m4/expl.m4: New file.
17239         * m4/logl.m4: New file.
17240         * m4/sinl.m4: New file.
17241         * m4/sqrtl.m4: New file.
17242         * m4/tanl.m4: New file.
17243         * m4/mathl.m4: Remove file.
17244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17245         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17246         Don't initialize GNULIB_MATHL.
17247         * modules/acosl: New file.
17248         * modules/asinl: New file.
17249         * modules/atanl: New file.
17250         * modules/cosl: New file.
17251         * modules/expl: New file.
17252         * modules/logl: New file.
17253         * modules/sinl: New file.
17254         * modules/sqrtl: New file.
17255         * modules/tanl: New file.
17256         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17257         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17258         substitute GNULIB_MATHL.
17259         * modules/mathl: Rewritten.
17260         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17261         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17262         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17263         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17264         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17265         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17266         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17267         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17268         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17269
17270 2010-01-18  Bruno Haible  <bruno@clisp.org>
17271
17272         sqrt: Make gl_FUNC_SQRT requirable.
17273         * m4/sqrt.m4: New file.
17274         * modules/sqrt (Files): Add it.
17275         (configure.ac): Invoke gl_FUNC_SQRT.
17276
17277 2010-01-18  Bruno Haible  <bruno@clisp.org>
17278
17279         New modules for common <math.h> functions.
17280         * m4/mathfunc.m4: New file.
17281         * modules/acos: New file.
17282         * modules/asin: New file.
17283         * modules/atan: New file.
17284         * modules/atan2: New file.
17285         * modules/cbrt: New file.
17286         * modules/copysign: New file.
17287         * modules/cos: New file.
17288         * modules/cosh: New file.
17289         * modules/erf: New file.
17290         * modules/erfc: New file.
17291         * modules/exp: New file.
17292         * modules/fabs: New file.
17293         * modules/fmod: New file.
17294         * modules/hypot: New file.
17295         * modules/j0: New file.
17296         * modules/j1: New file.
17297         * modules/jn: New file.
17298         * modules/ldexp: New file.
17299         * modules/lgamma: New file.
17300         * modules/log: New file.
17301         * modules/log10: New file.
17302         * modules/log1p: New file.
17303         * modules/logb: New file.
17304         * modules/modf: New file.
17305         * modules/nextafter: New file.
17306         * modules/pow: New file.
17307         * modules/remainder: New file.
17308         * modules/rint: New file.
17309         * modules/sin: New file.
17310         * modules/sinh: New file.
17311         * modules/sqrt: New file.
17312         * modules/tan: New file.
17313         * modules/tanh: New file.
17314         * modules/y0: New file.
17315         * modules/y1: New file.
17316         * modules/yn: New file.
17317         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17318         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17319         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17320         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17321         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17322         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17323         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17324         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17325         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17326         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17327         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17328         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17329         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17330         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17331         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17332         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17333         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17334         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17335         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17336         * doc/posix-functions/log.texi: Mention the 'log' module.
17337         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17338         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17339         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17340         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17341         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17342         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17343         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17344         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17345         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17346         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17347         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17348         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17349         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17350         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17351         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17352         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17353
17354 2010-01-18  Jim Meyering  <meyering@redhat.com>
17355
17356         ignore-value: relax license to LGPLv2+
17357         * modules/ignore-value (License): Relax to LGPLv2+.
17358
17359         getdate: don't leak when TZ contains two or more '"'s
17360         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17361         double quote in TZ after the first one.
17362
17363         readtokens: do not leak internal token_lengths buffer
17364         * lib/readtokens.c (readtokens): Free the local, lengths,
17365         when the supplied "token_lengths" parameter is NULL.
17366
17367 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17368
17369         Fix a couple of missing LIBTHREAD link failures on AIX.
17370         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17371         $(LIBTHREAD).
17372         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17373
17374         Link test-poll against INET_PTON_LIB.
17375         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17376         for inet_pton on Solaris 10.
17377
17378 2010-01-17  Bruno Haible  <bruno@clisp.org>
17379
17380         unistdio/*-sprintf: Fix typo in module description.
17381         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17382         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17383         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17384         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17385         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17386         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17387         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17389
17390 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17391
17392         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17393         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17394         variables in shell case patterns, for AIX and HP-UX ksh.
17395
17396         Split large sed scripts, for HP-UX sed.
17397         * modules/stdio: Split sed scripts around 50 sed commands,
17398         to avoid HP-UX limit of 99 commands, in the near future.
17399         * modules/string: Likewise.
17400         * modules/unistd: Likewise.
17401
17402         gnulib-tool: avoid writing in the current directory.
17403         * gnulib-tool (func_emit_lib_Makefile_am)
17404         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17405         not in the current directory, so concurrent gnulib-tool
17406         instances do not interfere.
17407
17408 2010-01-16  Jim Meyering  <meyering@redhat.com>
17409
17410         doc: update users.txt
17411         * users.txt: Add grep.
17412         (diffutils, gzip): Update URLs.
17413
17414 2010-01-12  Bruno Haible  <bruno@clisp.org>
17415
17416         posix_spawn: Avoid test failure on Cygwin.
17417         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17418         characters.
17419         Reported by Simon Josefsson.
17420
17421 2010-01-12  Bruno Haible  <bruno@clisp.org>
17422
17423         * tests/test-cond.c (main): When skipping the test, show the reason.
17424
17425 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17426
17427         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17428
17429 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17430
17431         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17432         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17433
17434 2010-01-12  Eric Blake  <ebb9@byu.net>
17435
17436         build: guarantee AS_VAR_IF
17437         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17438         (gl_AS_VAR_IF): Move...
17439         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17440         Reported by Simon Josefsson.
17441
17442 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17443
17444         * lib/stdio.in.h: Fix typo.
17445
17446 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17447
17448         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17449         libgpg-error.
17450
17451 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17452
17453         * tests/test-xalloc-die.sh: Use $EXEEXT.
17454
17455 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17456             Bruno Haible  <bruno@clisp.org>
17457
17458         getlogin, getlogin_r: Avoid test failure.
17459         * tests/test-getlogin.c: Include <stdio.h>.
17460         (main): Skip the test when the function fails because stdin is not a
17461         tty.
17462         * tests/test-getlogin_r.c: Include <stdio.h>.
17463         (main): Skip the test when the function fails because stdin is not a
17464         tty.
17465
17466 2010-01-11  Eric Blake  <ebb9@byu.net>
17467
17468         tests: avoid more large file warnings
17469         * tests/test-fflush.c: Avoid warning about ftell use.
17470         * tests/test-fseek.c: Avoid warning about fseek use.
17471
17472 2010-01-10  Bruno Haible  <bruno@clisp.org>
17473
17474         nproc: Work better on Linux when /proc and /sys are not mounted.
17475         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
17476         as lower bound when, on glibc/Linux systems,
17477         sysconf (_SC_NPROCESSORS_CONF) returns 1.
17478         Suggested by Pádraig Brady <P@draigbrady.com>.
17479         Reported by Dmitry V. Levin <ldv@altlinux.org>.
17480
17481         nproc: Refactor.
17482         * lib/nproc.c (num_processors_via_affinity_mask): New function,
17483         extracted from num_processors.
17484         (num_processors): Call it.
17485
17486 2010-01-11  Jim Meyering  <meyering@redhat.com>
17487
17488         utimecmp: avoid new warning from upcoming gcc-4.5.0
17489         * lib/utimecmp.c (BILLION): Define using #define rather than an
17490         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
17491
17492 2010-01-11  Eric Blake  <ebb9@byu.net>
17493
17494         math: add portability warnings for classification macros
17495         * modules/math (Depends-on): Add warn-on-use.
17496         (Makefile.am): Provide new substitutions.
17497         * m4/math_h.m4 (gl_MATH_H): Require inline.
17498         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
17499         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
17500         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
17501         implement warnings.
17502
17503         unistd: warn on use of environ without module
17504         * modules/unistd (Depends-on): Add warn-on-use.
17505         (Makefile.am): Provide new substitutions.
17506         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
17507         * lib/unistd.in.h (environ): Wrap with a warning helper function.
17508
17509         stdio: warn on suspicious uses
17510         * modules/stdio (Depends-on): Add warn-on-use.
17511         (Makefile.am): Provide new substitutions.
17512         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
17513         fseeko.
17514         * lib/stdio.in.h (gets): Always warn on use.
17515         (fseek, ftell): Adjust when warnings are issued, and honor
17516         _GL_NO_LARGE_FILES as a way to silence the warning.
17517         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
17518         any warning about large file offsets.
17519         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
17520         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
17521         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
17522         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
17523         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
17524         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
17525         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
17526         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
17527
17528         warn-on-use: new module
17529         * modules/warn-on-use: New file.
17530         * build-aux/warn-on-use.h: Likewise.
17531         * m4/warn-on-use.m4: Likewise.
17532         * MODULES.html.sh (Support for building): Mention it.
17533
17534 2010-01-10  Bruno Haible  <bruno@clisp.org>
17535
17536         Tests for module 'unistr/u32-strdup'.
17537         * modules/unistr/u32-strdup-tests: New file.
17538         * tests/unistr/test-u32-strdup.c: New file.
17539
17540         Tests for module 'unistr/u16-strdup'.
17541         * modules/unistr/u16-strdup-tests: New file.
17542         * tests/unistr/test-u16-strdup.c: New file.
17543
17544         Tests for module 'unistr/u8-strdup'.
17545         * modules/unistr/u8-strdup-tests: New file.
17546         * tests/unistr/test-u8-strdup.c: New file.
17547         * tests/unistr/test-strdup.h: New file.
17548
17549         Tests for module 'unistr/u32-strncmp'.
17550         * modules/unistr/u32-strncmp-tests: New file.
17551         * tests/unistr/test-u32-strncmp.c: New file.
17552
17553         Tests for module 'unistr/u16-strncmp'.
17554         * modules/unistr/u16-strncmp-tests: New file.
17555         * tests/unistr/test-u16-strncmp.c: New file.
17556
17557         Tests for module 'unistr/u8-strncmp'.
17558         * modules/unistr/u8-strncmp-tests: New file.
17559         * tests/unistr/test-u8-strncmp.c: New file.
17560         * tests/unistr/test-strncmp.h: New file.
17561
17562         Tests for module 'unistr/u32-strcoll'.
17563         * modules/unistr/u32-strcoll-tests: New file.
17564         * tests/unistr/test-u32-strcoll.c: New file.
17565
17566         Tests for module 'unistr/u16-strcoll'.
17567         * modules/unistr/u16-strcoll-tests: New file.
17568         * tests/unistr/test-u16-strcoll.c: New file.
17569
17570         Tests for module 'unistr/u8-strcoll'.
17571         * modules/unistr/u8-strcoll-tests: New file.
17572         * tests/unistr/test-u8-strcoll.c: New file.
17573
17574         Tests for module 'unistr/u32-strcmp'.
17575         * modules/unistr/u32-strcmp-tests: New file.
17576         * tests/unistr/test-u32-strcmp.c: New file.
17577         * tests/unistr/test-u32-strcmp.h: New file.
17578
17579         Tests for module 'unistr/u16-strcmp'.
17580         * modules/unistr/u16-strcmp-tests: New file.
17581         * tests/unistr/test-u16-strcmp.c: New file.
17582         * tests/unistr/test-u16-strcmp.h: New file.
17583
17584         Tests for module 'unistr/u8-strcmp'.
17585         * modules/unistr/u8-strcmp-tests: New file.
17586         * tests/unistr/test-u8-strcmp.c: New file.
17587         * tests/unistr/test-u8-strcmp.h: New file.
17588         * tests/unistr/test-strcmp.h: New file.
17589
17590         Tests for module 'unistr/u32-strncat'.
17591         * modules/unistr/u32-strncat-tests: New file.
17592         * tests/unistr/test-u32-strncat.c: New file.
17593
17594         Tests for module 'unistr/u16-strncat'.
17595         * modules/unistr/u16-strncat-tests: New file.
17596         * tests/unistr/test-u16-strncat.c: New file.
17597
17598         Tests for module 'unistr/u8-strncat'.
17599         * modules/unistr/u8-strncat-tests: New file.
17600         * tests/unistr/test-u8-strncat.c: New file.
17601         * tests/unistr/test-strncat.h: New file.
17602
17603         Tests for module 'unistr/u32-strcat'.
17604         * modules/unistr/u32-strcat-tests: New file.
17605         * tests/unistr/test-u32-strcat.c: New file.
17606
17607         Tests for module 'unistr/u16-strcat'.
17608         * modules/unistr/u16-strcat-tests: New file.
17609         * tests/unistr/test-u16-strcat.c: New file.
17610
17611         Tests for module 'unistr/u8-strcat'.
17612         * modules/unistr/u8-strcat-tests: New file.
17613         * tests/unistr/test-u8-strcat.c: New file.
17614         * tests/unistr/test-strcat.h: New file.
17615
17616         Tests for module 'unistr/u32-stpncpy'.
17617         * modules/unistr/u32-stpncpy-tests: New file.
17618         * tests/unistr/test-u32-stpncpy.c: New file.
17619
17620         Tests for module 'unistr/u16-stpncpy'.
17621         * modules/unistr/u16-stpncpy-tests: New file.
17622         * tests/unistr/test-u16-stpncpy.c: New file.
17623
17624         Tests for module 'unistr/u8-stpncpy'.
17625         * modules/unistr/u8-stpncpy-tests: New file.
17626         * tests/unistr/test-u8-stpncpy.c: New file.
17627         * tests/unistr/test-stpncpy.h: New file.
17628
17629         Tests for module 'unistr/u32-strncpy'.
17630         * modules/unistr/u32-strncpy-tests: New file.
17631         * tests/unistr/test-u32-strncpy.c: New file.
17632
17633         Tests for module 'unistr/u16-strncpy'.
17634         * modules/unistr/u16-strncpy-tests: New file.
17635         * tests/unistr/test-u16-strncpy.c: New file.
17636
17637         Tests for module 'unistr/u8-strncpy'.
17638         * modules/unistr/u8-strncpy-tests: New file.
17639         * tests/unistr/test-u8-strncpy.c: New file.
17640         * tests/unistr/test-strncpy.h: New file.
17641
17642         Tests for module 'unistr/u32-stpcpy'.
17643         * modules/unistr/u32-stpcpy-tests: New file.
17644         * tests/unistr/test-u32-stpcpy.c: New file.
17645
17646         Tests for module 'unistr/u16-stpcpy'.
17647         * modules/unistr/u16-stpcpy-tests: New file.
17648         * tests/unistr/test-u16-stpcpy.c: New file.
17649
17650         Tests for module 'unistr/u8-stpcpy'.
17651         * modules/unistr/u8-stpcpy-tests: New file.
17652         * tests/unistr/test-u8-stpcpy.c: New file.
17653         * tests/unistr/test-stpcpy.h: New file.
17654
17655         Tests for module 'unistr/u32-strcpy'.
17656         * modules/unistr/u32-strcpy-tests: New file.
17657         * tests/unistr/test-u32-strcpy.c: New file.
17658
17659         Tests for module 'unistr/u16-strcpy'.
17660         * modules/unistr/u16-strcpy-tests: New file.
17661         * tests/unistr/test-u16-strcpy.c: New file.
17662
17663         Tests for module 'unistr/u8-strcpy'.
17664         * modules/unistr/u8-strcpy-tests: New file.
17665         * tests/unistr/test-u8-strcpy.c: New file.
17666         * tests/unistr/test-strcpy.h: New file.
17667
17668         Tests for module 'unistr/u32-strnlen'.
17669         * modules/unistr/u32-strnlen-tests: New file.
17670         * tests/unistr/test-u32-strnlen.c: New file.
17671
17672         Tests for module 'unistr/u16-strnlen'.
17673         * modules/unistr/u16-strnlen-tests: New file.
17674         * tests/unistr/test-u16-strnlen.c: New file.
17675
17676         Tests for module 'unistr/u8-strnlen'.
17677         * modules/unistr/u8-strnlen-tests: New file.
17678         * tests/unistr/test-u8-strnlen.c: New file.
17679         * tests/unistr/test-strnlen.h: New file.
17680
17681         Tests for module 'unistr/u32-strlen'.
17682         * modules/unistr/u32-strlen-tests: New file.
17683         * tests/unistr/test-u32-strlen.c: New file.
17684
17685         Tests for module 'unistr/u16-strlen'.
17686         * modules/unistr/u16-strlen-tests: New file.
17687         * tests/unistr/test-u16-strlen.c: New file.
17688
17689         Tests for module 'unistr/u8-strlen'.
17690         * modules/unistr/u8-strlen-tests: New file.
17691         * tests/unistr/test-u8-strlen.c: New file.
17692
17693         Tests for module 'unistr/u32-prev'.
17694         * modules/unistr/u32-prev-tests: New file.
17695         * tests/unistr/test-u32-prev.c: New file.
17696
17697         Tests for module 'unistr/u16-prev'.
17698         * modules/unistr/u16-prev-tests: New file.
17699         * tests/unistr/test-u16-prev.c: New file.
17700
17701         Tests for module 'unistr/u8-prev'.
17702         * modules/unistr/u8-prev-tests: New file.
17703         * tests/unistr/test-u8-prev.c: New file.
17704
17705         Tests for module 'unistr/u32-next'.
17706         * modules/unistr/u32-next-tests: New file.
17707         * tests/unistr/test-u32-next.c: New file.
17708
17709         Tests for module 'unistr/u16-next'.
17710         * modules/unistr/u16-next-tests: New file.
17711         * tests/unistr/test-u16-next.c: New file.
17712
17713         Tests for module 'unistr/u8-next'.
17714         * modules/unistr/u8-next-tests: New file.
17715         * tests/unistr/test-u8-next.c: New file.
17716
17717         Tests for module 'unistr/u32-strmbtouc'.
17718         * modules/unistr/u32-strmbtouc-tests: New file.
17719         * tests/unistr/test-u32-strmbtouc.c: New file.
17720
17721         Tests for module 'unistr/u16-strmbtouc'.
17722         * modules/unistr/u16-strmbtouc-tests: New file.
17723         * tests/unistr/test-u16-strmbtouc.c: New file.
17724
17725         Tests for module 'unistr/u8-strmbtouc'.
17726         * modules/unistr/u8-strmbtouc-tests: New file.
17727         * tests/unistr/test-u8-strmbtouc.c: New file.
17728
17729         Tests for module 'unistr/u32-strmblen'.
17730         * modules/unistr/u32-strmblen-tests: New file.
17731         * tests/unistr/test-u32-strmblen.c: New file.
17732
17733         Tests for module 'unistr/u16-strmblen'.
17734         * modules/unistr/u16-strmblen-tests: New file.
17735         * tests/unistr/test-u16-strmblen.c: New file.
17736
17737         Tests for module 'unistr/u8-strmblen'.
17738         * modules/unistr/u8-strmblen-tests: New file.
17739         * tests/unistr/test-u8-strmblen.c: New file.
17740
17741         Tests for module 'unistr/u32-cpy-alloc'.
17742         * modules/unistr/u32-cpy-alloc-tests: New file.
17743         * tests/unistr/test-u32-cpy-alloc.c: New file.
17744
17745         Tests for module 'unistr/u16-cpy-alloc'.
17746         * modules/unistr/u16-cpy-alloc-tests: New file.
17747         * tests/unistr/test-u16-cpy-alloc.c: New file.
17748
17749         Tests for module 'unistr/u8-cpy-alloc'.
17750         * modules/unistr/u8-cpy-alloc-tests: New file.
17751         * tests/unistr/test-u8-cpy-alloc.c: New file.
17752         * tests/unistr/test-cpy-alloc.h: New file.
17753
17754         Tests for module 'unistr/u32-mbsnlen'.
17755         * modules/unistr/u32-mbsnlen-tests: New file.
17756         * tests/unistr/test-u32-mbsnlen.c: New file.
17757
17758         Tests for module 'unistr/u16-mbsnlen'.
17759         * modules/unistr/u16-mbsnlen-tests: New file.
17760         * tests/unistr/test-u16-mbsnlen.c: New file.
17761
17762         Tests for module 'unistr/u8-mbsnlen'.
17763         * modules/unistr/u8-mbsnlen-tests: New file.
17764         * tests/unistr/test-u8-mbsnlen.c: New file.
17765
17766         Tests for module 'unistr/u32-chr'.
17767         * modules/unistr/u32-chr-tests: New file.
17768         * tests/unistr/test-u32-chr.c: New file.
17769
17770         Tests for module 'unistr/u16-chr'.
17771         * modules/unistr/u16-chr-tests: New file.
17772         * tests/unistr/test-u16-chr.c: New file.
17773
17774         Tests for module 'unistr/u8-chr'.
17775         * modules/unistr/u8-chr-tests: New file.
17776         * tests/unistr/test-u8-chr.c: New file.
17777         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
17778
17779         Tests for module 'unistr/u32-cmp2'.
17780         * modules/unistr/u32-cmp2-tests: New file.
17781         * tests/unistr/test-u32-cmp2.c: New file.
17782
17783         Tests for module 'unistr/u16-cmp2'.
17784         * modules/unistr/u16-cmp2-tests: New file.
17785         * tests/unistr/test-u16-cmp2.c: New file.
17786
17787         Tests for module 'unistr/u8-cmp2'.
17788         * modules/unistr/u8-cmp2-tests: New file.
17789         * tests/unistr/test-u8-cmp2.c: New file.
17790         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
17791
17792         Tests for module 'unistr/u32-cmp'.
17793         * modules/unistr/u32-cmp-tests: New file.
17794         * tests/unistr/test-u32-cmp.c: New file.
17795
17796         Tests for module 'unistr/u16-cmp'.
17797         * modules/unistr/u16-cmp-tests: New file.
17798         * tests/unistr/test-u16-cmp.c: New file.
17799
17800         Tests for module 'unistr/u8-cmp'.
17801         * modules/unistr/u8-cmp-tests: New file.
17802         * tests/unistr/test-u8-cmp.c: New file.
17803         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17804
17805         Tests for module 'unistr/u32-set'.
17806         * modules/unistr/u32-set-tests: New file.
17807         * tests/unistr/test-u32-set.c: New file.
17808
17809         Tests for module 'unistr/u16-set'.
17810         * modules/unistr/u16-set-tests: New file.
17811         * tests/unistr/test-u16-set.c: New file.
17812
17813         Tests for module 'unistr/u8-set'.
17814         * modules/unistr/u8-set-tests: New file.
17815         * tests/unistr/test-u8-set.c: New file.
17816         * tests/unistr/test-set.h: New file.
17817
17818         Tests for module 'unistr/u32-move'.
17819         * modules/unistr/u32-move-tests: New file.
17820         * tests/unistr/test-u32-move.c: New file.
17821
17822         Tests for module 'unistr/u16-move'.
17823         * modules/unistr/u16-move-tests: New file.
17824         * tests/unistr/test-u16-move.c: New file.
17825
17826         Tests for module 'unistr/u8-move'.
17827         * modules/unistr/u8-move-tests: New file.
17828         * tests/unistr/test-u8-move.c: New file.
17829         * tests/unistr/test-move.h: New file.
17830
17831         Tests for module 'unistr/u32-cpy'.
17832         * modules/unistr/u32-cpy-tests: New file.
17833         * tests/unistr/test-u32-cpy.c: New file.
17834
17835         Tests for module 'unistr/u16-cpy'.
17836         * modules/unistr/u16-cpy-tests: New file.
17837         * tests/unistr/test-u16-cpy.c: New file.
17838
17839         Tests for module 'unistr/u8-cpy'.
17840         * modules/unistr/u8-cpy-tests: New file.
17841         * tests/unistr/test-u8-cpy.c: New file.
17842         * tests/unistr/test-cpy.h: New file.
17843
17844 2010-01-09  Bruno Haible  <bruno@clisp.org>
17845
17846         Tests for module 'unistr/u32-uctomb'.
17847         * modules/unistr/u32-uctomb-tests: New file.
17848         * tests/unistr/test-u32-uctomb.c: New file.
17849
17850         Tests for module 'unistr/u16-uctomb'.
17851         * modules/unistr/u16-uctomb-tests: New file.
17852         * tests/unistr/test-u16-uctomb.c: New file.
17853
17854         Tests for module 'unistr/u8-uctomb'.
17855         * modules/unistr/u8-uctomb-tests: New file.
17856         * tests/unistr/test-u8-uctomb.c: New file.
17857
17858         Tests for module 'unistr/u32-mbtoucr'.
17859         * modules/unistr/u32-mbtoucr-tests: New file.
17860         * tests/unistr/test-u32-mbtoucr.c: New file.
17861
17862         Tests for module 'unistr/u16-mbtoucr'.
17863         * modules/unistr/u16-mbtoucr-tests: New file.
17864         * tests/unistr/test-u16-mbtoucr.c: New file.
17865
17866         Tests for module 'unistr/u8-mbtoucr'.
17867         * modules/unistr/u8-mbtoucr-tests: New file.
17868         * tests/unistr/test-u8-mbtoucr.c: New file.
17869
17870         Tests for module 'unistr/u32-mbtouc'.
17871         * modules/unistr/u32-mbtouc-tests: New file.
17872         * tests/unistr/test-u32-mbtouc.c: New file.
17873
17874         Tests for module 'unistr/u16-mbtouc'.
17875         * modules/unistr/u16-mbtouc-tests: New file.
17876         * tests/unistr/test-u16-mbtouc.c: New file.
17877
17878         Tests for module 'unistr/u8-mbtouc'.
17879         * modules/unistr/u8-mbtouc-tests: New file.
17880         * tests/unistr/test-u8-mbtouc.c: New file.
17881
17882         Tests for module 'unistr/u32-mbtouc-unsafe'.
17883         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17884         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17885         * tests/unistr/test-u32-mbtouc.h: New file.
17886
17887         Tests for module 'unistr/u16-mbtouc-unsafe'.
17888         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17889         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17890         * tests/unistr/test-u16-mbtouc.h: New file.
17891
17892         Tests for module 'unistr/u8-mbtouc-unsafe'.
17893         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17894         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17895         * tests/unistr/test-u8-mbtouc.h: New file.
17896
17897         Tests for module 'unistr/u32-mblen'.
17898         * modules/unistr/u32-mblen-tests: New file.
17899         * tests/unistr/test-u32-mblen.c: New file.
17900
17901         Tests for module 'unistr/u16-mblen'.
17902         * modules/unistr/u16-mblen-tests: New file.
17903         * tests/unistr/test-u16-mblen.c: New file.
17904
17905         Tests for module 'unistr/u8-mblen'.
17906         * modules/unistr/u8-mblen-tests: New file.
17907         * tests/unistr/test-u8-mblen.c: New file.
17908
17909         Tests for module 'unistr/u32-to-u16'.
17910         * modules/unistr/u32-to-u16-tests: New file.
17911         * tests/unistr/test-u32-to-u16.c: New file.
17912
17913         Tests for module 'unistr/u32-to-u8'.
17914         * modules/unistr/u32-to-u8-tests: New file.
17915         * tests/unistr/test-u32-to-u8.c: New file.
17916
17917         Tests for module 'unistr/u16-to-u32'.
17918         * modules/unistr/u16-to-u32-tests: New file.
17919         * tests/unistr/test-u16-to-u32.c: New file.
17920
17921         Tests for module 'unistr/u16-to-u8'.
17922         * modules/unistr/u16-to-u8-tests: New file.
17923         * tests/unistr/test-u16-to-u8.c: New file.
17924
17925         Tests for module 'unistr/u8-to-u32'.
17926         * modules/unistr/u8-to-u32-tests: New file.
17927         * tests/unistr/test-u8-to-u32.c: New file.
17928
17929         Tests for module 'unistr/u8-to-u16'.
17930         * modules/unistr/u8-to-u16-tests: New file.
17931         * tests/unistr/test-u8-to-u16.c: New file.
17932
17933         Tests for module 'unistr/u32-check'.
17934         * modules/unistr/u32-check-tests: New file.
17935         * tests/unistr/test-u32-check.c: New file.
17936
17937         Tests for module 'unistr/u16-check'.
17938         * modules/unistr/u16-check-tests: New file.
17939         * tests/unistr/test-u16-check.c: New file.
17940
17941         Tests for module 'unistr/u8-check'.
17942         * modules/unistr/u8-check-tests: New file.
17943         * tests/unistr/test-u8-check.c: New file.
17944
17945         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17946         (category_equals): New function.
17947         (main): Add more tests.
17948         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17949
17950         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17951
17952 2010-01-10  Bruno Haible  <bruno@clisp.org>
17953
17954         unistr/u*-strcoll: Try harder to distinguish different strings.
17955         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17956         compare s1 and s2 to see if they are different.
17957
17958 2010-01-10  Bruno Haible  <bruno@clisp.org>
17959
17960         unistr/u*-stpncpy: Fix the return value.
17961         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17962         description of the return value consistent with stpncpy in glibc.
17963         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17964         written non-NUL unit.
17965
17966 2010-01-10  Bruno Haible  <bruno@clisp.org>
17967
17968         unistr/u*-next: Add missing dependencies.
17969         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17970         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17971         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17972
17973 2010-01-10  Bruno Haible  <bruno@clisp.org>
17974
17975         unistr/u8-mbsnlen: Fix return value for incomplete character.
17976         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17977         u8_mblen.
17978         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17979         Remove unistr/u8-mblen.
17980         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17981         u16_mblen.
17982         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17983         Remove unistr/u16-mblen.
17984
17985 2010-01-10  Bruno Haible  <bruno@clisp.org>
17986
17987         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17988         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17989         Reported by Brian Gough <bjg@gnu.org> and
17990         Chris Clayton <chris2553@googlemail.com> via
17991         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17992
17993 2010-01-09  Bruno Haible  <bruno@clisp.org>
17994
17995         unistr/u16-to-u32: Reject invalid input.
17996         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17997         u16_mbtouc.
17998         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17999         Remove unistr/u16-mbtouc.
18000
18001         unistr/u16-to-u8: Reject invalid input.
18002         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18003         u16_mbtouc.
18004         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18005         Remove unistr/u16-mbtouc.
18006
18007         unistr/u8-to-u32: Reject invalid input.
18008         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18009         u8_mbtouc.
18010         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18011         Remove unistr/u8-mbtouc.
18012
18013         unistr/u8-to-u16: Reject invalid input.
18014         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18015         u8_mbtouc.
18016         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18017         Remove unistr/u8-mbtouc.
18018
18019 2010-01-09  Bruno Haible  <bruno@clisp.org>
18020
18021         Tests for module 'getlogin'.
18022         * modules/getlogin-tests: New file.
18023         * tests/test-getlogin.c: New file.
18024
18025         New module 'getlogin'.
18026         * lib/unistd.in.h (getlogin): New declaration.
18027         * lib/getlogin.c: New file.
18028         * m4/getlogin.m4: New file.
18029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18030         HAVE_GETLOGIN.
18031         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18032         HAVE_GETLOGIN.
18033         * modules/getlogin: New file.
18034         * doc/posix-functions/getlogin.texi: Mention the new module.
18035         Reported by John W. Eaton <jwe@gnu.org>.
18036
18037 2010-01-09  Bruno Haible  <bruno@clisp.org>
18038
18039         getlogin_r: Support for native Windows.
18040         * lib/getlogin_r.c: Include <windows.h>
18041         (getlogin_r): Implement for native Windows.
18042         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18043         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18044         via John W. Eaton <jwe@gnu.org>.
18045
18046 2010-01-09  Bruno Haible  <bruno@clisp.org>
18047
18048         getlogin_r: Small fixes.
18049         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18050         succeeds.
18051         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18052         before testing whether getlogin_r is declared. No need to set
18053         HAVE_DECL_GETLOGIN_R to 1.
18054         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18055
18056 2010-01-09  Bruno Haible  <bruno@clisp.org>
18057
18058         * lib/unistd.in.h (getlogin_r): Add comment.
18059
18060 2010-01-09  Bruno Haible  <bruno@clisp.org>
18061
18062         Tests for module 'getlogin_r'.
18063         * modules/getlogin_r-tests: New file.
18064         * tests/test-getlogin_r.c: New file.
18065
18066 2010-01-09  Jim Meyering  <meyering@redhat.com>
18067
18068         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18069         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18070         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18071
18072 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18073
18074         * lib/dup2.c (rpl_dup2): Improve comment.
18075
18076 2010-01-08  Eric Blake  <ebb9@byu.net>
18077
18078         maint.mk: allow packages to add makefile @@ exceptions
18079         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18080         (sc_makefile_check): Rename...
18081         (sc_makefile_at_at_check): ...to this, and use hook.
18082
18083         dup2: work around mingw bug
18084         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18085         Reported by Simon Josefsson.
18086
18087 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18088
18089         glob: Fix C++ compilation.
18090         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18091         C++.
18092
18093 2010-01-07  Bruno Haible  <bruno@clisp.org>
18094
18095         Fix indentation of wctype.in.h, broken since 2007-01-06.
18096         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18097
18098 2010-01-07  Bruno Haible  <bruno@clisp.org>
18099
18100         mbslen: Avoid collision with system function.
18101         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18102         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18103         * m4/mbslen.m4: New file.
18104         * modules/mbslen (Files): Add it.
18105         (configure.ac): Invoke gl_MBSLEN.
18106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18107         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18108         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18109         via Ian Beckwith <ianb@erislabs.net>.
18110
18111 2010-01-07  Bruno Haible  <bruno@clisp.org>
18112
18113         dirent: Document the last fix.
18114         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18115
18116 2010-01-07  Bruno Haible  <bruno@clisp.org>
18117
18118         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18119         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18120         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18121         va_list are defined.
18122         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18123         Reported by Eric Blake.
18124
18125 2010-01-07  Bruno Haible  <bruno@clisp.org>
18126
18127         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18128         * modules/xlist (Depends-on): Add 'list',
18129         * modules/xoset (Depends-on): Add 'oset'.
18130         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18131
18132 2010-01-07  Bruno Haible  <bruno@clisp.org>
18133
18134         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18135         * doc/posix-functions/strncasecmp.texi: Likewise.
18136
18137 2010-01-07  Bruno Haible  <bruno@clisp.org>
18138
18139         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18140
18141 2010-01-07  John W. Eaton  <jwe@octave.org>
18142
18143         wctype: allow C++ use
18144         * lib/wctype.in.h: Add extern "C" block for C++.
18145
18146 2010-01-06  Eric Blake  <ebb9@byu.net>
18147
18148         maint.mk: detect incorrect GFDL usage
18149         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18150
18151 2010-01-06  Jim Meyering  <meyering@redhat.com>
18152         and Eric Blake  <ebb9@byu.net>
18153
18154         maint.mk: ignore multi-line copyright in NEWS
18155         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18156
18157 2010-01-06  Eric Blake  <ebb9@byu.net>
18158
18159         select: add missing dependency
18160         * modules/select-tests (Depends-on): Move sockets dependency...
18161         * modules/select (Depends-on): ...here.
18162         Reported by Ian Beckwith.
18163
18164         doc: regenerate INSTALL
18165         * doc/INSTALL: Reflect recent autoconf update.
18166         * doc/INSTALL.ISO: Likewise.
18167         * doc/INSTALL.UTF-8: Likewise.
18168
18169         pread: fix compilation on glibc
18170         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18171         Reported by Ralf Wildenhues.
18172
18173         dirent: fix test failure
18174         * lib/dirent.in.h (includes): Guarantee ino_t.
18175         Reported by Ralf Wildenhues.
18176
18177 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18178
18179         linkat, renameat: avoid bad free
18180         * lib/at-func2.c (at_func2): Fix typo.
18181         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18182
18183 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18184
18185         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18186         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18187         to avoid failure of symlink test later.
18188
18189 2010-01-06  Eric Blake  <ebb9@byu.net>
18190
18191         stdio, unistd: guarantee ssize_t
18192         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18193         2008 are exposed when needed.
18194         * lib/stdio.in.h (includes): Likewise.
18195         Reported by Ralf Wildenhues.
18196
18197 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18198
18199         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18200         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18201         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18202
18203 2010-01-06  Jim Meyering  <meyering@redhat.com>
18204
18205         readtokens: this module *does* require xalloc.h
18206         It uses only functions that were omitted by the old syntax-check rule.
18207         * lib/readtokens.c: Include "xalloc.h" once again.
18208         * modules/readtokens (Depends-on): Add xalloc.
18209         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18210
18211 2010-01-05  Eric Blake  <ebb9@byu.net>
18212
18213         maint: support 'make announcement' from a VPATH build
18214         * top/maint.mk (announcement): Look for correct NEWS file.
18215
18216 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18217
18218         utimens (fdutimens): ignore a negative FD, per contract
18219         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18220         when we have a valid file descriptor.  Otherwise, using a brand
18221         new glibc (with just-patched futimens that now fails with EBADF)
18222         would cause this function to fail with ENOSYS.
18223         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18224         See also http://bugzilla.redhat.com/552320.
18225
18226 2010-01-05  Eric Blake  <ebb9@byu.net>
18227
18228         strcase: document what it provides
18229         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18230         gnulib module.
18231         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18232         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18233
18234 2010-01-05  Jim Meyering  <meyering@redhat.com>
18235
18236         maint: remove useless inclusions of "xalloc.h"
18237         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18238         * lib/readtokens.c: Likewise.
18239         * lib/same.c: Likewise.
18240         * modules/getloadavg (Depends-on): Remove xalloc.
18241         * modules/readtokens: Likewise.
18242         * modules/same: Likewise.
18243
18244         maint.mk: include 4 more function names in alloca.h-checking regexp
18245         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18246         regexp.  Before, we would give a false-positive (saying alloca.h
18247         is included unnecessarily) when the only uses involved omitted symbols.
18248
18249         xalloc.h: use consistent formatting
18250         * lib/xalloc.h: Move declarations to start in the first column.
18251
18252 2010-01-05  Eric Blake  <ebb9@byu.net>
18253
18254         mkdir: avoid xalloc
18255         * lib/mkdir.c (includes): Drop unused header.
18256         Reported by John W. Eaton.
18257
18258 2010-01-04  Jim Meyering  <meyering@redhat.com>
18259
18260         nl_langinfo: avoid configure-time syntax error
18261         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18262         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18263         the empty string.  Don't let that provoke a shell syntax error.
18264
18265         regcomp, regexec, fnmatch: avoid array bounds read error
18266         * lib/regcomp.c (build_equiv_class): From glibc:
18267         Use only the low 24 bits of a findidx return value as an index
18268         into the weights array.  Patch by Ulrich Drepper:
18269         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18270         * lib/regexec.c (check_node_accept_bytes): Likewise.
18271         * lib/fnmatch_loop.c (FCT): Likewise.
18272
18273         regcomp: skip collseq lookup when there are no rules
18274         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18275         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18276
18277         regcomp: recognize ill-formed { } expressions
18278         * lib/regcomp.c (parse_dup_op): From glibc:
18279         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18280
18281         regcomp: fix typo in comment
18282         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18283         s/satisfy/satisfies/.
18284
18285         regcomp: sync from glibc: remove dead store
18286         * lib/regcomp.c (duplicate_node_closure): Remove useless
18287         search_duplicated_node call and dead store.
18288
18289         regcomp: sync from glibc; always use nl_langinfo
18290         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18291         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18292         * modules/regex (Depends-on): Add nl_langinfo.
18293
18294 2010-01-04  Eric Blake  <ebb9@byu.net>
18295
18296         fdopendir: fix configure test
18297         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18298
18299 2010-01-01  Bruno Haible  <bruno@clisp.org>
18300
18301         wchar: Remove unused configure check.
18302         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18303
18304 2010-01-01  Eric Blake  <ebb9@byu.net>
18305
18306         headers: make check of system header explicit
18307         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18308         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18309         ourselves.
18310         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18311         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18313         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18314         internals.
18315         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18316         missing.
18317         Suggested by Bruno Haible.
18318
18319 2010-01-01  Jim Meyering  <meyering@redhat.com>
18320
18321         ChangeLog: tweak to eliminate unnecessary copyright line
18322         * ChangeLog: Remove a copyright line that was mistakenly updated
18323         by today's update-copyright run.  Reported by Eric Blake.
18324
18325         test-update-copyright: don't let envvar setting cause test failure
18326         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18327
18328 2010-01-01  Bruno Haible  <bruno@clisp.org>
18329
18330         localename: Avoid gcc warning.
18331         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18332         function if it is not used.
18333
18334 2010-01-01  Jim Meyering  <meyering@redhat.com>
18335
18336         update nearly all FSF copyright year lists to include 2010
18337         Use the same procedure as for 2009, outlined in
18338         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18339
18340         version-etc: set COPYRIGHT_YEAR to 2010
18341         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18342
18343 2009-12-31  Eric Blake  <ebb9@byu.net>
18344
18345         doc: correct availability of cygwin 1.5.x getopt
18346         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18347         variables.
18348         * doc/posix-functions/opterr.texi (opterr): Likewise.
18349         * doc/posix-functions/optind.texi (optind): Likewise.
18350         * doc/posix-functions/optopt.texi (optopt): Likewise.
18351         * doc/posix-functions/tzname.texi (tzname): Likewise.
18352
18353         openat: update maintainer
18354         * modules/openat (Maintainer): Add myself.
18355
18356         utimens: avoid shadowing warning
18357         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18358         buffers into one, to avoid shadowing, as well as avoiding a
18359         redundant stat.
18360         Reported by Jim Meyering.
18361
18362         test-dup2: avoid compiler warning
18363         * tests/test-dup2.c (is_inheritable): Only define if used.
18364
18365 2010-01-01  Bruno Haible  <bruno@clisp.org>
18366
18367         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18368         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18369         defined, use wctomb instead of wcrtomb.
18370
18371 2010-01-01  Bruno Haible  <bruno@clisp.org>
18372
18373         iconv: Reject native Solaris iconv.
18374         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18375         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18376
18377 2009-12-31  Bruno Haible  <bruno@clisp.org>
18378
18379         * tests/test-signal.c (main): Remove test of 'SIG'.
18380
18381 2009-12-31  Bruno Haible  <bruno@clisp.org>
18382
18383         spawn: Fix incomplete fix.
18384         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18385         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18386         warnings for GNULIB_POSIXCHECK again.
18387         Reported by Eric Blake.
18388
18389 2009-12-31  Bruno Haible  <bruno@clisp.org>
18390
18391         Avoid namespace pollution on glibc systems.
18392         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18393         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18394         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18395         glibc systems.
18396
18397 2009-12-31  Bruno Haible  <bruno@clisp.org>
18398
18399         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18400         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18401         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18402         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18403         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18404         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18405         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18406
18407 2009-12-31  Bruno Haible  <bruno@clisp.org>
18408
18409         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18410         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18411         afterwards.
18412
18413 2009-12-31  Bruno Haible  <bruno@clisp.org>
18414
18415         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18416         SYS_UTSNAME_H.
18417
18418 2009-12-31  Bruno Haible  <bruno@clisp.org>
18419
18420         spawn: Fix misapplied patch.
18421         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18422         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18423         warnings for GNULIB_POSIXCHECK.
18424
18425 2009-12-31  Bruno Haible  <bruno@clisp.org>
18426
18427         times: Update after sys_times changed.
18428         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18429         * modules/times (Files): Add it.
18430         (configure.ac): Invoke gl_FUNC_TIMES.
18431
18432 2009-12-31  Bruno Haible  <bruno@clisp.org>
18433
18434         Use AC_C_INLINE where necessary.
18435         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18436         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18437         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18438         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18439         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18440         * m4/mbiter.m4 (gl_MBITER): Likewise.
18441         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18442         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18443         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18444         * modules/u64 (configure.ac): Likewise.
18445
18446 2009-12-31  Bruno Haible  <bruno@clisp.org>
18447
18448         Use AC_C_INLINE instead of module 'inline' where possible.
18449         * modules/inline (Description): Clarify purpose.
18450         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18451         * modules/count-one-bits (Depends-on): Remove inline.
18452         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18453         * modules/openat (Depends-on): Remove inline.
18454         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18455         instead of depending on module 'inline'.
18456         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18457         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18458         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18459         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18460         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
18461         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
18462         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
18463         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
18464         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
18465         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
18466         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
18467         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
18468         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
18469         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
18470         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
18471         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
18472         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
18473         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
18474         Likewise.
18475         * modules/unictype/property-ascii-hex-digit (Depends-on,
18476         configure.ac): Likewise.
18477         * modules/unictype/property-bidi-arabic-digit (Depends-on,
18478         configure.ac): Likewise.
18479         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
18480         configure.ac): Likewise.
18481         * modules/unictype/property-bidi-block-separator (Depends-on,
18482         configure.ac): Likewise.
18483         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
18484         configure.ac): Likewise.
18485         * modules/unictype/property-bidi-common-separator (Depends-on,
18486         configure.ac): Likewise.
18487         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
18488         Likewise.
18489         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
18490         configure.ac): Likewise.
18491         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
18492         configure.ac): Likewise.
18493         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
18494         configure.ac): Likewise.
18495         * modules/unictype/property-bidi-european-digit (Depends-on,
18496         configure.ac): Likewise.
18497         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
18498         configure.ac): Likewise.
18499         * modules/unictype/property-bidi-left-to-right (Depends-on,
18500         configure.ac): Likewise.
18501         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
18502         configure.ac): Likewise.
18503         * modules/unictype/property-bidi-other-neutral (Depends-on,
18504         configure.ac): Likewise.
18505         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
18506         Likewise.
18507         * modules/unictype/property-bidi-segment-separator (Depends-on,
18508         configure.ac): Likewise.
18509         * modules/unictype/property-bidi-whitespace (Depends-on,
18510         configure.ac): Likewise.
18511         * modules/unictype/property-combining (Depends-on, configure.ac):
18512         Likewise.
18513         * modules/unictype/property-composite (Depends-on, configure.ac):
18514         Likewise.
18515         * modules/unictype/property-currency-symbol (Depends-on,
18516         configure.ac): Likewise.
18517         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
18518         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
18519         Likewise.
18520         * modules/unictype/property-default-ignorable-code-point (Depends-on,
18521         configure.ac): Likewise.
18522         * modules/unictype/property-deprecated (Depends-on, configure.ac):
18523         Likewise.
18524         * modules/unictype/property-diacritic (Depends-on, configure.ac):
18525         Likewise.
18526         * modules/unictype/property-extender (Depends-on, configure.ac):
18527         Likewise.
18528         * modules/unictype/property-format-control (Depends-on, configure.ac):
18529         Likewise.
18530         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
18531         Likewise.
18532         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
18533         Likewise.
18534         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
18535         Likewise.
18536         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
18537         Likewise.
18538         * modules/unictype/property-hyphen (Depends-on, configure.ac):
18539         Likewise.
18540         * modules/unictype/property-id-continue (Depends-on, configure.ac):
18541         Likewise.
18542         * modules/unictype/property-id-start (Depends-on, configure.ac):
18543         Likewise.
18544         * modules/unictype/property-ideographic (Depends-on, configure.ac):
18545         Likewise.
18546         * modules/unictype/property-ids-binary-operator (Depends-on,
18547         configure.ac): Likewise.
18548         * modules/unictype/property-ids-trinary-operator (Depends-on,
18549         configure.ac): Likewise.
18550         * modules/unictype/property-ignorable-control (Depends-on,
18551         configure.ac): Likewise.
18552         * modules/unictype/property-iso-control (Depends-on, configure.ac):
18553         Likewise.
18554         * modules/unictype/property-join-control (Depends-on, configure.ac):
18555         Likewise.
18556         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
18557         Likewise.
18558         * modules/unictype/property-line-separator (Depends-on, configure.ac):
18559         Likewise.
18560         * modules/unictype/property-logical-order-exception (Depends-on,
18561         configure.ac): Likewise.
18562         * modules/unictype/property-lowercase (Depends-on, configure.ac):
18563         Likewise.
18564         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
18565         * modules/unictype/property-non-break (Depends-on, configure.ac):
18566         Likewise.
18567         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
18568         Likewise.
18569         * modules/unictype/property-numeric (Depends-on, configure.ac):
18570         Likewise.
18571         * modules/unictype/property-other-alphabetic (Depends-on,
18572         configure.ac): Likewise.
18573         * modules/unictype/property-other-default-ignorable-code-point
18574         (Depends-on, configure.ac): Likewise.
18575         * modules/unictype/property-other-grapheme-extend (Depends-on,
18576         configure.ac): Likewise.
18577         * modules/unictype/property-other-id-continue (Depends-on,
18578         configure.ac): Likewise.
18579         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
18580         Likewise.
18581         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
18582         Likewise.
18583         * modules/unictype/property-other-math (Depends-on, configure.ac):
18584         Likewise.
18585         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
18586         Likewise.
18587         * modules/unictype/property-paired-punctuation (Depends-on,
18588         configure.ac): Likewise.
18589         * modules/unictype/property-paragraph-separator (Depends-on,
18590         configure.ac): Likewise.
18591         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
18592         Likewise.
18593         * modules/unictype/property-pattern-white-space (Depends-on,
18594         configure.ac): Likewise.
18595         * modules/unictype/property-private-use (Depends-on, configure.ac):
18596         Likewise.
18597         * modules/unictype/property-punctuation (Depends-on, configure.ac):
18598         Likewise.
18599         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
18600         Likewise.
18601         * modules/unictype/property-radical (Depends-on, configure.ac):
18602         Likewise.
18603         * modules/unictype/property-sentence-terminal (Depends-on,
18604         configure.ac): Likewise.
18605         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
18606         Likewise.
18607         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
18608         * modules/unictype/property-terminal-punctuation (Depends-on,
18609         configure.ac): Likewise.
18610         * modules/unictype/property-titlecase (Depends-on, configure.ac):
18611         Likewise.
18612         * modules/unictype/property-unassigned-code-value (Depends-on,
18613         configure.ac): Likewise.
18614         * modules/unictype/property-unified-ideograph (Depends-on,
18615         configure.ac): Likewise.
18616         * modules/unictype/property-uppercase (Depends-on, configure.ac):
18617         Likewise.
18618         * modules/unictype/property-variation-selector (Depends-on,
18619         configure.ac): Likewise.
18620         * modules/unictype/property-white-space (Depends-on, configure.ac):
18621         Likewise.
18622         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
18623         Likewise.
18624         * modules/unictype/property-xid-start (Depends-on, configure.ac):
18625         Likewise.
18626         * modules/unictype/property-zero-width (Depends-on, configure.ac):
18627         Likewise.
18628         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
18629         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
18630         Likewise.
18631
18632 2009-12-31  Bruno Haible  <bruno@clisp.org>
18633
18634         Remove unnecessary AC_C_INLINE invocation.
18635         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
18636         since 2009-08-21.
18637
18638 2009-12-31  Jim Meyering  <meyering@redhat.com>
18639
18640         maint.mk: don't require explicit gpg_key_ID in cfg.mk
18641         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
18642         With this change, we can all remove the gpg_key_ID = ... definition
18643         from our respective cfg.mk files.
18644
18645         maint.mk: create announcement template in ~/, not in /tmp
18646         * top/maint.mk (emit_upload_commands): Adjust.
18647         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
18648         Remove temporary file, .ci-msg.
18649
18650 2009-12-31  Eric Blake  <ebb9@byu.net>
18651
18652         link-warning: always build headers with link warnings
18653         * modules/arpa_inet (Makefile.am): Always build replacement
18654         header.
18655         * modules/ctype (Makefile.am): Likewise.
18656         * modules/dirent (Makefile.am): Likewise.
18657         * modules/inttypes (Makefile.am): Likewise.
18658         * modules/langinfo (Makefile.am): Likewise.
18659         * modules/locale (Makefile.am): Likewise.
18660         * modules/spawn (Makefile.am): Likewise.
18661         * modules/sys_file (Makefile.am): Likewise.
18662         * modules/sys_ioctl (Makefile.am): Likewise.
18663         * modules/sys_select (Makefile.am): Likewise.
18664         * modules/sys_socket (Makefile.am): Likewise.
18665         * modules/sys_times (Makefile.am): Likewise.
18666         * modules/sys_utsname (Makefile.am): Likewise.
18667         * modules/sys_wait (Makefile.am): Likewise.
18668         * modules/wchar (Makefile.am): Likewise.
18669         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
18670         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
18671         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
18672         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
18673         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
18674         Likewise.
18675         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18676         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18677         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
18678         Likewise.
18679         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
18680         Likewise.
18681         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18682         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
18683         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
18684         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18685         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18686         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18687         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18688         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
18689         (gl_WCHAR_H_DEFAULTS): Likewise.
18690
18691 2009-12-31  Eric Blake  <ebb9@byu.net>
18692
18693         signal, spawn: use link warnings
18694         * lib/signal.in.h (sigset_t): Make unconditional.
18695         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
18696         (sigpending, sigprocmask, sigaction): Add link warnings.
18697         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
18698         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
18699         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
18700         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
18701         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
18702         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
18703         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
18704         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
18705         (posix_spawn_file_actions_destroy)
18706         (posix_spawn_file_actions_addopen)
18707         (posix_spawn_file_actions_addclose)
18708         (posix_spawn_file_actions_adddup2): Likewise.
18709         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
18710         * tests/test-signal.c (main): Enhance test.
18711
18712         spawn: improve wrapper support
18713         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
18714         (gl_SPAWN_H_DEFAULTS): New defaults.
18715         * modules/spawn (Makefile.am): Substitute them.
18716         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
18717         Only declare if missing or broken.
18718
18719         sys_times, sys_utsname: use include_next
18720         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
18721         header.
18722         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
18723         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18724         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18725         * modules/sys_times (Depends-on): Add include_next.
18726         (Makefile.am): Substitute additional values.
18727         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18728         * lib/sys_times.in.h (includes): Include native header, if
18729         available.
18730         * lib/sys_utsname.in.h (includes): Likewise.
18731         * tests/test-sys_times.c (main): Enhance test.
18732
18733         fdutimensat: revert prior patch
18734         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
18735         utimens.h.
18736         Reported by Bruno Haible.
18737
18738 2009-12-30  Eric Blake  <ebb9@byu.net>
18739
18740         sys_wait: drop link-warning dependency
18741         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
18742         link-warning efforts.
18743         * lib/sys_wait.in.h: Likewise.
18744
18745         fdutimensat: remove bogus dependency
18746         * modules/fdutimensat (Depends-on): Drop inline.
18747
18748         unistd: fix typo
18749         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
18750
18751 2009-12-30  Bruno Haible  <bruno@clisp.org>
18752
18753         Fix compilation error with Solaris cc.
18754         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
18755         * lib/unicase/u16-is-invariant.c: Likewise.
18756         * lib/unicase/u32-is-invariant.c: Likewise.
18757         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18758
18759 2009-12-30  Bruno Haible  <bruno@clisp.org>
18760
18761         Fix test crash.
18762         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
18763         locales.
18764         Reported by Simon Josefsson <simon@josefsson.org>.
18765
18766 2009-12-30  Bruno Haible  <bruno@clisp.org>
18767
18768         Fix compilation error on most platforms.
18769         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
18770         Reported by Simon Josefsson <simon@josefsson.org>
18771         and Nelson H. F. Beebe <beebe@math.utah.edu>.
18772
18773 2009-12-30  Eric Blake  <ebb9@byu.net>
18774
18775         futimens, utimensat: work around ntfs-3g bug
18776         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
18777         a ctime bug is present, and expand workaround to cover ntfs-3g.
18778         * lib/utimens.c (fdutimens, lutimens): Likewise.
18779         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
18780         (validate_timespec): Adjust return value.
18781         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
18782         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18783         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
18784
18785 2009-12-29  Eric Blake  <ebb9@byu.net>
18786
18787         link-warning: make usage consistent
18788         * modules/ctype (Depends-on): Add link-warning.
18789         (Makefile.am): Update rules accordingly.
18790         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18791         * modules/locale (Depends-on, Makefile.am): Likewise.
18792         * modules/sys_file (Makefile.am): Likewise.
18793         * modules/getopt-posix (Makefile.am): Delete unused link warning
18794         efforts.
18795         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
18796         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18797         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18798         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18799
18800         stdio: remove unused variables
18801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18802         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18803         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18804
18805         tests: test more substitute headers
18806         * modules/ctype-tests: New file.
18807         * modules/dirent-tests: Likewise.
18808         * modules/spawn-tests: Likewise.
18809         * modules/sys_file-tests: Likewise.
18810         * modules/sys_ioctl-tests: Likewise.
18811         * modules/sys_wait-tests: Likewise.
18812         * tests/test-ctype.c: Likewise.
18813         * tests/test-dirent.c: Likewise.
18814         * tests/test-spawn.c: Likewise.
18815         * tests/test-sys_file.c: Likewise.
18816         * tests/test-sys_ioctl.c: Likewise.
18817         * tests/test-sys_wait.c: Likewise.
18818         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18819         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18820         whether or not flock is in use.
18821
18822         tests: remove License section from module
18823         * modules/arpa_inet-tests: Remove unneeded section.
18824         * modules/byteswap-tests: Likewise.
18825         * modules/ceilf-tests: Likewise.
18826         * modules/ceill-tests: Likewise.
18827         * modules/crypto/des-tests: Likewise.
18828         * modules/crypto/gc-arcfour-tests: Likewise.
18829         * modules/crypto/gc-arctwo-tests: Likewise.
18830         * modules/crypto/gc-des-tests: Likewise.
18831         * modules/crypto/gc-hmac-md5-tests: Likewise.
18832         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18833         * modules/crypto/gc-md2-tests: Likewise.
18834         * modules/crypto/gc-md4-tests: Likewise.
18835         * modules/crypto/gc-md5-tests: Likewise.
18836         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18837         * modules/crypto/gc-rijndael-tests: Likewise.
18838         * modules/crypto/gc-sha1-tests: Likewise.
18839         * modules/crypto/gc-tests: Likewise.
18840         * modules/crypto/md2-tests: Likewise.
18841         * modules/crypto/md4-tests: Likewise.
18842         * modules/fcntl-h-tests: Likewise.
18843         * modules/floorf-tests: Likewise.
18844         * modules/floorl-tests: Likewise.
18845         * modules/frexp-nolibm-tests: Likewise.
18846         * modules/frexp-tests: Likewise.
18847         * modules/frexpl-nolibm-tests: Likewise.
18848         * modules/frexpl-tests: Likewise.
18849         * modules/getaddrinfo-tests: Likewise.
18850         * modules/inttypes-tests: Likewise.
18851         * modules/isfinite-tests: Likewise.
18852         * modules/isinf-tests: Likewise.
18853         * modules/ldexpl-tests: Likewise.
18854         * modules/locale-tests: Likewise.
18855         * modules/math-tests: Likewise.
18856         * modules/netdb-tests: Likewise.
18857         * modules/netinet_in-tests: Likewise.
18858         * modules/printf-frexp-tests: Likewise.
18859         * modules/printf-frexpl-tests: Likewise.
18860         * modules/priv-set-tests: Likewise.
18861         * modules/random_r-tests: Likewise.
18862         * modules/round-tests: Likewise.
18863         * modules/roundf-tests: Likewise.
18864         * modules/roundl-tests: Likewise.
18865         * modules/search-tests: Likewise.
18866         * modules/select-tests: Likewise.
18867         * modules/signal-tests: Likewise.
18868         * modules/stdbool-tests: Likewise.
18869         * modules/stddef-tests: Likewise.
18870         * modules/stdint-tests: Likewise.
18871         * modules/stdio-tests: Likewise.
18872         * modules/stdlib-tests: Likewise.
18873         * modules/string-tests: Likewise.
18874         * modules/strings-tests: Likewise.
18875         * modules/sys_select-tests: Likewise.
18876         * modules/sys_socket-tests: Likewise.
18877         * modules/sys_stat-tests: Likewise.
18878         * modules/sys_time-tests: Likewise.
18879         * modules/sys_utsname-tests: Likewise.
18880         * modules/sysexits-tests: Likewise.
18881         * modules/time-tests: Likewise.
18882         * modules/trunc-tests: Likewise.
18883         * modules/truncf-tests: Likewise.
18884         * modules/truncl-tests: Likewise.
18885         * modules/tsearch-tests: Likewise.
18886         * modules/unistd-tests: Likewise.
18887         * modules/wchar-tests: Likewise.
18888         * modules/wctype-tests: Likewise.
18889
18890         tests: fix license on several tests
18891         * tests/test-des.c: Update to GPLv3+.
18892         * tests/test-flock.c: Likewise.
18893         * tests/test-fsync.c: Likewise.
18894         * tests/test-futimens.h: Likewise.
18895         * tests/test-gc-arcfour.c: Likewise.
18896         * tests/test-gc-arctwo.c: Likewise.
18897         * tests/test-gc-des.c: Likewise.
18898         * tests/test-gc-hmac-md5.c: Likewise.
18899         * tests/test-gc-hmac-sha1.c: Likewise.
18900         * tests/test-gc-md2.c: Likewise.
18901         * tests/test-gc-md4.c: Likewise.
18902         * tests/test-gc-md5.c: Likewise.
18903         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18904         * tests/test-gc-rijndael.c: Likewise.
18905         * tests/test-gc-sha1.c: Likewise.
18906         * tests/test-gc.c: Likewise.
18907         * tests/test-getcwd.c: Likewise.
18908         * tests/test-link.c: Likewise.
18909         * tests/test-link.h: Likewise.
18910         * tests/test-lutimens.h: Likewise.
18911         * tests/test-md2.c: Likewise.
18912         * tests/test-md4.c: Likewise.
18913         * tests/test-mkdir.h: Likewise.
18914         * tests/test-rename.c: Likewise.
18915         * tests/test-rename.h: Likewise.
18916         * tests/test-safe-alloc.c: Likewise.
18917         * tests/test-utimens-common.h: Likewise.
18918         * tests/test-utimens.h: Likewise.
18919
18920         maint: sync license texts
18921         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18922         * doc/gpl-3.0.texi: Revert copyright year update.
18923         * doc/lgpl-3.0.texi: Likewise.
18924
18925 2009-12-29  Jim Meyering  <meyering@redhat.com>
18926
18927         update nearly all FSF copyright year lists to include 2009
18928         The files named by the following are exempted:
18929             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18930               test -f "$dst" && { echo "$dst"; continue; }
18931               test -d "$dst" || continue
18932               echo "$dst"/$(basename "$src")
18933             done > exempt
18934             git ls-files tests/unictype >> exempt
18935         In the remaining files, convert to all-interval notation if
18936         - there is already at least one year interval like 2000-2003
18937         - the file is maintained by me
18938         - the file is in lib/uni*/, where that style already prevails
18939         Otherwise, use update-copyright's default.
18940
18941 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18942         and Eric Blake  <ebb9@byu.net>
18943
18944         tests: don't require debug system() to pass
18945         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18946         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18947         * tests/test-unlink.h (test_unlink_func): Likewise.
18948         * tests/test-fstatat.c (main): ...into callers.
18949         * tests/test-lstat.c (main): Likewise.
18950         * tests/test-rmdir.c (main): Likewise.
18951         * tests/test-unlink.c (main): Likewise.
18952         * tests/test-unlinkat.c (main): Likewise.
18953         * tests/test-areadlink-with-size.c (main): Don't require a
18954         debug-only system call to pass, aiding cross-testing to mingw.
18955         * tests/test-areadlink.c (main): Likewise.
18956         * tests/test-areadlinkat-with-size.c (main): Likewise.
18957         * tests/test-areadlinkat.c (main): Likewise.
18958         * tests/test-canonicalize-lgpl.c (main): Likewise.
18959         * tests/test-canonicalize.c (main): Likewise.
18960         * tests/test-chown.c (main): Likewise.
18961         * tests/test-fchownat.c (main): Likewise.
18962         * tests/test-lchown.c (main): Likewise.
18963         * tests/test-fdutimensat.c (main): Likewise.
18964         * tests/test-futimens.c (main): Likewise.
18965         * tests/test-link.c (main): Likewise.
18966         * tests/test-linkat.c (main): Likewise.
18967         * tests/test-mkdir.c (main): Likewise.
18968         * tests/test-mkdirat.c (main): Likewise.
18969         * tests/test-mkfifo.c (main): Likewise.
18970         * tests/test-mkfifoat.c (main): Likewise.
18971         * tests/test-mknod.c (main): Likewise.
18972         * tests/test-readlink.c (main): Likewise.
18973         * tests/test-remove.c (main): Likewise.
18974         * tests/test-rename.c (main): Likewise.
18975         * tests/test-renameat.c (main): Likewise.
18976         * tests/test-symlink.c (main): Likewise.
18977         * tests/test-symlinkat.c (main): Likewise.
18978         * tests/test-utimens.c (main): Likewise.
18979         * tests/test-utimensat.c (main): Likewise.
18980
18981 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18982
18983         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18984         on $(UNUSED_PARAMETER_H) to avoid build failure.
18985
18986 2009-12-28  Jim Meyering  <meyering@redhat.com>
18987
18988         update-copyright: you may specify a max. line length other than 72
18989         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18990
18991         maint: use consistent FSF copyright line syntax
18992         * lib/posixtm.c: Add missing comma in FSF copyright line.
18993         * lib/posixtm.h: Likewise.
18994         * lib/getugroups.c: Add missing ", Inc.".
18995
18996         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18997         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18998         FSF copyright line.  Remove trailing blanks.
18999
19000 2009-12-28  Eric Blake  <ebb9@byu.net>
19001
19002         test-dup2: reduce dependencies
19003         * modules/cloexec (Configure.ac): Set witness.
19004         * modules/dup2-tests (Depends-on): Drop cloexec.
19005         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19006         not present.
19007         Suggested by Bruno Haible.
19008
19009 2009-12-26  Bruno Haible  <bruno@clisp.org>
19010
19011         Remove an unneeded dependency.
19012         * modules/fseterr (Depends-on): Remove dup2.
19013
19014 2009-12-26  Eric Blake  <ebb9@byu.net>
19015
19016         tests: use macros.h in more places
19017         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19018         (ASSERT_STREAM): Provide default of stderr.
19019         * tests/test-dirent-safer.c: Include macros.h, using alternate
19020         stream for assertions.
19021         * tests/test-dup-safer.c: Likewise.
19022         * tests/test-freopen-safer.c: Likewise.
19023         * tests/test-getopt.c: Likewise.
19024         * tests/test-openat-safer.c: Likewise.
19025         * tests/test-pipe.c: Likewise.
19026         * tests/test-popen-safer.c: Likewise.
19027         * modules/dirent-safer-tests (Files): Include macros.h.
19028         * modules/unistd-safer-tests (Files): Likewise.
19029         * modules/freopen-safer-tests (Files): Likewise.
19030         * modules/getopt-posix-tests (Files): Likewise.
19031         * modules/openat-safer-tests (Files): Likewise.
19032         * modules/pipe-tests (Files): Likewise.
19033
19034 2009-12-26  Bruno Haible  <bruno@clisp.org>
19035
19036         javacomp: Portability fix.
19037         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19038         that it also works on Solaris.
19039
19040 2009-12-26  Bruno Haible  <bruno@clisp.org>
19041
19042         localename: Fix storage allocation of gl_locale_name_thread's result.
19043         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19044         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19045         all platforms that have 'uselocale'.
19046         (gl_locale_name_thread_unsafe): New function, extracted from
19047         gl_locale_name_thread.
19048         (gl_locale_name_thread): Call struniq on all platforms that have
19049         'uselocale'.
19050         * tests/test-localename.c (test_locale_name_thread): Check that the
19051         resulting strings are permanently allocated.
19052         * modules/localename-tests (Depends-on): Add strdup.
19053
19054 2009-12-26  Bruno Haible  <bruno@clisp.org>
19055
19056         * tests/test-localename.c (categories): Fill in the strings.
19057
19058 2009-12-26  Jim Meyering  <meyering@redhat.com>
19059
19060         isdir: complete the removal of m4/isdir.m4
19061         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19062
19063         isdir: clean up, since at least grep still uses it
19064         * lib/isdir.c: Include "isdir.h".
19065         (S_ISDIR): Remove now-unneeded definition.
19066         * modules/isdir (Files): Add lib/isdir.h.
19067         * lib/isdir.h: New file, with declaration.
19068         * m4/isdir.m4: Remove file -- unneeded.
19069
19070 2009-12-25  Bruno Haible  <bruno@clisp.org>
19071
19072         selinux-h: Make generated .h files standalone.
19073         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19074         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19075         * lib/se-selinux.in.h: Likewise.
19076         * modules/selinux-h (Depends-on): Add unused-parameter.
19077         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19078         selinux/selinux.h and selinux/context.h.
19079         Suggested by Eric Blake.
19080
19081 2009-12-25  Bruno Haible  <bruno@clisp.org>
19082
19083         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19084         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19085         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19086         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19087         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19088
19089 2009-12-24  Bruno Haible  <bruno@clisp.org>
19090
19091         openat: Fix warning.
19092         * lib/openat-proc.c: Include <unistd.h>.
19093
19094 2009-12-24  Bruno Haible  <bruno@clisp.org>
19095
19096         New module 'unused-parameter'.
19097         * build-aux/unused-parameter.h: New file, extracted from earlier
19098         gnulib-common.m4.
19099         * modules/unused-parameter: New file.
19100         * lib/unistr.h: Include unused-parameter.h.
19101         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19102         _GL_UNUSED.
19103         * modules/unistr/base (Depends-on): Add unused-parameter.
19104
19105 2009-12-24  Bruno Haible  <bruno@clisp.org>
19106
19107         Add missing dependencies to 'extensions' module.
19108         * m4/extensions.m4: Add comment.
19109         * modules/accept4 (Depends-on): Add extensions.
19110         * modules/dup3 (Depends-on): Likewise.
19111         * modules/fcntl (Depends-on): Likewise.
19112         * modules/futimens (Depends-on): Likewise.
19113         * modules/mknod (Depends-on): Likewise.
19114         * modules/pipe2 (Depends-on): Likewise.
19115         * modules/stat-time (Depends-on): Likewise.
19116         * modules/strcasestr-simple (Depends-on): Likewise.
19117         * modules/strsignal (Depends-on): Likewise.
19118         * modules/utimensat (Depends-on): Likewise.
19119         * modules/localcharset (Depends-on): Likewise. Needed because of
19120         gl_FCNTL_O_FLAGS.
19121         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19122         AC_TYPE_MBSTATE_T.
19123         * modules/wcsnrtombs (Depends-on): Likewise.
19124         * modules/wcsrtombs (Depends-on): Likewise.
19125
19126 2009-12-24  Bruno Haible  <bruno@clisp.org>
19127
19128         binary-io: Avoid gcc warning due to SET_BINARY.
19129         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19130         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19131
19132 2009-12-24  Bruno Haible  <bruno@clisp.org>
19133
19134         Avoid future namespace pollution on glibc systems.
19135         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19136         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19137         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19138         glibc systems.
19139
19140 2009-12-24  Bruno Haible  <bruno@clisp.org>
19141
19142         Refactor common macros used in tests.
19143         * tests/macros.h: New file.
19144         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19145         and/or <stdlib.h>, if appropriate.
19146         (ASSERT, SIZEOF): Remove macros.
19147         * tests/test-areadlink-with-size.c: Likewise.
19148         * tests/test-areadlinkat.c: Likewise.
19149         * tests/test-areadlinkat-with-size.c: Likewise.
19150         * tests/test-argmatch.c: Likewise.
19151         * tests/test-argv-iter.c: Likewise.
19152         * tests/test-array-mergesort.c: Likewise.
19153         * tests/test-array_list.c: Likewise.
19154         * tests/test-array_oset.c: Likewise.
19155         * tests/test-avltree_list.c: Likewise.
19156         * tests/test-avltree_oset.c: Likewise.
19157         * tests/test-avltreehash_list.c: Likewise.
19158         * tests/test-base64.c: Likewise.
19159         * tests/test-binary-io.c: Likewise.
19160         * tests/test-bitrotate.c: Likewise.
19161         * tests/test-btowc.c: Likewise.
19162         * tests/test-byteswap.c: Likewise.
19163         * tests/test-c-ctype.c: Likewise.
19164         * tests/test-c-stack.c: Likewise.
19165         * tests/test-c-strcasecmp.c: Likewise.
19166         * tests/test-c-strcasestr.c: Likewise.
19167         * tests/test-c-strncasecmp.c: Likewise.
19168         * tests/test-c-strstr.c: Likewise.
19169         * tests/test-canonicalize-lgpl.c: Likewise.
19170         * tests/test-canonicalize.c: Likewise.
19171         * tests/test-carray_list.c: Likewise.
19172         * tests/test-ceilf1.c: Likewise.
19173         * tests/test-ceilf2.c: Likewise.
19174         * tests/test-ceill.c: Likewise.
19175         * tests/test-chown.c: Likewise.
19176         * tests/test-cloexec.c: Likewise.
19177         * tests/test-copy-acl.c: Likewise.
19178         * tests/test-copy-file.c: Likewise.
19179         * tests/test-count-one-bits.c: Likewise.
19180         * tests/test-dprintf-posix.c: Likewise.
19181         * tests/test-dup2.c: Likewise.
19182         * tests/test-dup3.c: Likewise.
19183         * tests/test-duplocale.c: Likewise.
19184         * tests/test-fbufmode.c: Likewise.
19185         * tests/test-fchdir.c: Likewise.
19186         * tests/test-fchownat.c: Likewise.
19187         * tests/test-fcntl-safer.c: Likewise.
19188         * tests/test-fcntl.c: Likewise.
19189         * tests/test-fdopendir.c: Likewise.
19190         * tests/test-fdutimensat.c: Likewise.
19191         * tests/test-fflush2.c: Likewise.
19192         * tests/test-file-has-acl.c: Likewise.
19193         * tests/test-filevercmp.c: Likewise.
19194         * tests/test-flock.c: Likewise.
19195         * tests/test-floorf1.c: Likewise.
19196         * tests/test-floorf2.c: Likewise.
19197         * tests/test-floorl.c: Likewise.
19198         * tests/test-fnmatch.c: Likewise.
19199         * tests/test-fopen.h: Likewise.
19200         * tests/test-fpending.c: Likewise.
19201         * tests/test-fprintf-posix.c: Likewise.
19202         * tests/test-fpurge.c: Likewise.
19203         * tests/test-freadable.c: Likewise.
19204         * tests/test-freadahead.c: Likewise.
19205         * tests/test-freading.c: Likewise.
19206         * tests/test-freadptr.c: Likewise.
19207         * tests/test-freadptr2.c: Likewise.
19208         * tests/test-freadseek.c: Likewise.
19209         * tests/test-freopen.c: Likewise.
19210         * tests/test-frexp.c: Likewise.
19211         * tests/test-frexpl.c: Likewise.
19212         * tests/test-fseek.c: Likewise.
19213         * tests/test-fseeko.c: Likewise.
19214         * tests/test-fstatat.c: Likewise.
19215         * tests/test-fstrcmp.c: Likewise.
19216         * tests/test-fsync.c: Likewise.
19217         * tests/test-ftell.c: Likewise.
19218         * tests/test-ftello.c: Likewise.
19219         * tests/test-func.c: Likewise.
19220         * tests/test-futimens.c: Likewise.
19221         * tests/test-fwritable.c: Likewise.
19222         * tests/test-fwriting.c: Likewise.
19223         * tests/test-getcwd.c: Likewise.
19224         * tests/test-getdate.c: Likewise.
19225         * tests/test-getdelim.c: Likewise.
19226         * tests/test-getdtablesize.c: Likewise.
19227         * tests/test-getgroups.c: Likewise.
19228         * tests/test-getline.c: Likewise.
19229         * tests/test-getndelim2.c: Likewise.
19230         * tests/test-glob.c: Likewise.
19231         * tests/test-hash.c: Likewise.
19232         * tests/test-i-ring.c: Likewise.
19233         * tests/test-iconv-utf.c: Likewise.
19234         * tests/test-iconv.c: Likewise.
19235         * tests/test-idpriv-drop.c: Likewise.
19236         * tests/test-idpriv-droptemp.c: Likewise.
19237         * tests/test-inet_ntop.c: Likewise.
19238         * tests/test-inet_pton.c: Likewise.
19239         * tests/test-isblank.c: Likewise.
19240         * tests/test-isfinite.c: Likewise.
19241         * tests/test-isinf.c: Likewise.
19242         * tests/test-isnan.c: Likewise.
19243         * tests/test-isnand.h: Likewise.
19244         * tests/test-isnanf.h: Likewise.
19245         * tests/test-isnanl.h: Likewise.
19246         * tests/test-lchown.c: Likewise.
19247         * tests/test-ldexpl.c: Likewise.
19248         * tests/test-link.c: Likewise.
19249         * tests/test-linkat.c: Likewise.
19250         * tests/test-linked_list.c: Likewise.
19251         * tests/test-linkedhash_list.c: Likewise.
19252         * tests/test-localename.c: Likewise.
19253         * tests/test-lseek.c: Likewise.
19254         * tests/test-lstat.c: Likewise.
19255         * tests/test-mbmemcasecmp.c: Likewise.
19256         * tests/test-mbmemcasecoll.c: Likewise.
19257         * tests/test-mbrtowc.c: Likewise.
19258         * tests/test-mbscasecmp.c: Likewise.
19259         * tests/test-mbscasestr1.c: Likewise.
19260         * tests/test-mbscasestr2.c: Likewise.
19261         * tests/test-mbscasestr3.c: Likewise.
19262         * tests/test-mbscasestr4.c: Likewise.
19263         * tests/test-mbschr.c: Likewise.
19264         * tests/test-mbscspn.c: Likewise.
19265         * tests/test-mbsinit.c: Likewise.
19266         * tests/test-mbsncasecmp.c: Likewise.
19267         * tests/test-mbsnrtowcs.c: Likewise.
19268         * tests/test-mbspbrk.c: Likewise.
19269         * tests/test-mbspcasecmp.c: Likewise.
19270         * tests/test-mbsrchr.c: Likewise.
19271         * tests/test-mbsrtowcs.c: Likewise.
19272         * tests/test-mbsspn.c: Likewise.
19273         * tests/test-mbsstr1.c: Likewise.
19274         * tests/test-mbsstr2.c: Likewise.
19275         * tests/test-mbsstr3.c: Likewise.
19276         * tests/test-memchr.c: Likewise.
19277         * tests/test-memchr2.c: Likewise.
19278         * tests/test-memcmp.c: Likewise.
19279         * tests/test-memmem.c: Likewise.
19280         * tests/test-memrchr.c: Likewise.
19281         * tests/test-mkdir.c: Likewise.
19282         * tests/test-mkdirat.c: Likewise.
19283         * tests/test-mkfifo.c: Likewise.
19284         * tests/test-mkfifoat.c: Likewise.
19285         * tests/test-mknod.c: Likewise.
19286         * tests/test-nanosleep.c: Likewise.
19287         * tests/test-nl_langinfo.c: Likewise.
19288         * tests/test-obstack-printf.c: Likewise.
19289         * tests/test-open.c: Likewise.
19290         * tests/test-openat.c: Likewise.
19291         * tests/test-pipe-filter-gi1.c: Likewise.
19292         * tests/test-pipe-filter-gi2-main.c: Likewise.
19293         * tests/test-pipe-filter-ii1.c: Likewise.
19294         * tests/test-pipe-filter-ii2-main.c: Likewise.
19295         * tests/test-pipe2.c: Likewise.
19296         * tests/test-popen.h: Likewise.
19297         * tests/test-posixtm.c: Likewise.
19298         * tests/test-pread.c: Likewise.
19299         * tests/test-printf-frexp.c: Likewise.
19300         * tests/test-printf-frexpl.c: Likewise.
19301         * tests/test-printf-posix.c: Likewise.
19302         * tests/test-priv-set.c: Likewise.
19303         * tests/test-quotearg.c: Likewise.
19304         * tests/test-random_r.c: Likewise.
19305         * tests/test-rawmemchr.c: Likewise.
19306         * tests/test-rbtree_list.c: Likewise.
19307         * tests/test-rbtree_oset.c: Likewise.
19308         * tests/test-rbtreehash_list.c: Likewise.
19309         * tests/test-readlink.c: Likewise.
19310         * tests/test-remove.c: Likewise.
19311         * tests/test-rename.c: Likewise.
19312         * tests/test-renameat.c: Likewise.
19313         * tests/test-rmdir.c: Likewise.
19314         * tests/test-round1.c: Likewise.
19315         * tests/test-roundf1.c: Likewise.
19316         * tests/test-roundl.c: Likewise.
19317         * tests/test-safe-alloc.c: Likewise.
19318         * tests/test-sameacls.c: Likewise.
19319         * tests/test-set-mode-acl.c: Likewise.
19320         * tests/test-setenv.c: Likewise.
19321         * tests/test-sigaction.c: Likewise.
19322         * tests/test-signbit.c: Likewise.
19323         * tests/test-sleep.c: Likewise.
19324         * tests/test-snprintf-posix.c: Likewise.
19325         * tests/test-snprintf.c: Likewise.
19326         * tests/test-sprintf-posix.c: Likewise.
19327         * tests/test-stat-time.c: Likewise.
19328         * tests/test-stat.c: Likewise.
19329         * tests/test-strcasestr.c: Likewise.
19330         * tests/test-strchrnul.c: Likewise.
19331         * tests/test-strerror.c: Likewise.
19332         * tests/test-striconv.c: Likewise.
19333         * tests/test-striconveh.c: Likewise.
19334         * tests/test-striconveha.c: Likewise.
19335         * tests/test-strsignal.c: Likewise.
19336         * tests/test-strstr.c: Likewise.
19337         * tests/test-strtod.c: Likewise.
19338         * tests/test-strverscmp.c: Likewise.
19339         * tests/test-symlink.c: Likewise.
19340         * tests/test-symlinkat.c: Likewise.
19341         * tests/test-trunc1.c: Likewise.
19342         * tests/test-trunc2.c: Likewise.
19343         * tests/test-truncf1.c: Likewise.
19344         * tests/test-truncf2.c: Likewise.
19345         * tests/test-truncl.c: Likewise.
19346         * tests/test-uname.c: Likewise.
19347         * tests/test-unlink.c: Likewise.
19348         * tests/test-unlinkat.c: Likewise.
19349         * tests/test-unsetenv.c: Likewise.
19350         * tests/test-usleep.c: Likewise.
19351         * tests/test-utimens.c: Likewise.
19352         * tests/test-utimensat.c: Likewise.
19353         * tests/test-vasnprintf-posix.c: Likewise.
19354         * tests/test-vasnprintf-posix2.c: Likewise.
19355         * tests/test-vasnprintf.c: Likewise.
19356         * tests/test-vasprintf-posix.c: Likewise.
19357         * tests/test-vasprintf.c: Likewise.
19358         * tests/test-vdprintf-posix.c: Likewise.
19359         * tests/test-vfprintf-posix.c: Likewise.
19360         * tests/test-vprintf-posix.c: Likewise.
19361         * tests/test-vsnprintf-posix.c: Likewise.
19362         * tests/test-vsnprintf.c: Likewise.
19363         * tests/test-vsprintf-posix.c: Likewise.
19364         * tests/test-wcrtomb.c: Likewise.
19365         * tests/test-wcsnrtombs.c: Likewise.
19366         * tests/test-wcsrtombs.c: Likewise.
19367         * tests/test-wctype.c: Likewise.
19368         * tests/test-wcwidth.c: Likewise.
19369         * tests/test-xfprintf-posix.c: Likewise.
19370         * tests/test-xmemdup0.c: Likewise.
19371         * tests/test-xprintf-posix.c: Likewise.
19372         * tests/test-xvasprintf.c: Likewise.
19373         * tests/unicase/test-locale-language.c: Likewise.
19374         * tests/unicase/test-mapping-part1.h: Likewise.
19375         * tests/unicase/test-predicate-part1.h: Likewise.
19376         * tests/unicase/test-u8-casecmp.c: Likewise.
19377         * tests/unicase/test-u8-casecoll.c: Likewise.
19378         * tests/unicase/test-u8-casefold.c: Likewise.
19379         * tests/unicase/test-u8-is-cased.c: Likewise.
19380         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19381         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19382         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19383         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19384         * tests/unicase/test-u8-tolower.c: Likewise.
19385         * tests/unicase/test-u8-totitle.c: Likewise.
19386         * tests/unicase/test-u8-toupper.c: Likewise.
19387         * tests/unicase/test-u16-casecmp.c: Likewise.
19388         * tests/unicase/test-u16-casecoll.c: Likewise.
19389         * tests/unicase/test-u16-casefold.c: Likewise.
19390         * tests/unicase/test-u16-is-cased.c: Likewise.
19391         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19392         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19393         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19394         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19395         * tests/unicase/test-u16-tolower.c: Likewise.
19396         * tests/unicase/test-u16-totitle.c: Likewise.
19397         * tests/unicase/test-u16-toupper.c: Likewise.
19398         * tests/unicase/test-u32-casecmp.c: Likewise.
19399         * tests/unicase/test-u32-casecoll.c: Likewise.
19400         * tests/unicase/test-u32-casefold.c: Likewise.
19401         * tests/unicase/test-u32-is-cased.c: Likewise.
19402         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19403         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19404         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19405         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19406         * tests/unicase/test-u32-tolower.c: Likewise.
19407         * tests/unicase/test-u32-totitle.c: Likewise.
19408         * tests/unicase/test-u32-toupper.c: Likewise.
19409         * tests/unicase/test-ulc-casecmp.c: Likewise.
19410         * tests/unicase/test-ulc-casecoll.c: Likewise.
19411         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19412         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19413         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19414         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19415         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19416         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19417         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19418         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19419         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19420         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19421         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19422         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19423         * tests/unictype/test-bidi_byname.c: Likewise.
19424         * tests/unictype/test-bidi_name.c: Likewise.
19425         * tests/unictype/test-bidi_of.c: Likewise.
19426         * tests/unictype/test-bidi_test.c: Likewise.
19427         * tests/unictype/test-block_list.c: Likewise.
19428         * tests/unictype/test-block_of.c: Likewise.
19429         * tests/unictype/test-block_test.c: Likewise.
19430         * tests/unictype/test-categ_and.c: Likewise.
19431         * tests/unictype/test-categ_and_not.c: Likewise.
19432         * tests/unictype/test-categ_byname.c: Likewise.
19433         * tests/unictype/test-categ_name.c: Likewise.
19434         * tests/unictype/test-categ_none.c: Likewise.
19435         * tests/unictype/test-categ_of.c: Likewise.
19436         * tests/unictype/test-categ_or.c: Likewise.
19437         * tests/unictype/test-categ_test_withtable.c: Likewise.
19438         * tests/unictype/test-combining.c: Likewise.
19439         * tests/unictype/test-decdigit.c: Likewise.
19440         * tests/unictype/test-digit.c: Likewise.
19441         * tests/unictype/test-mirror.c: Likewise.
19442         * tests/unictype/test-numeric.c: Likewise.
19443         * tests/unictype/test-pr_byname.c: Likewise.
19444         * tests/unictype/test-pr_test.c: Likewise.
19445         * tests/unictype/test-predicate-part1.h: Likewise.
19446         * tests/unictype/test-scripts.c: Likewise.
19447         * tests/unictype/test-sy_c_ident.c: Likewise.
19448         * tests/unictype/test-sy_java_ident.c: Likewise.
19449         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19450         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19451         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19452         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19453         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19454         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19455         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19456         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19457         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19458         * tests/uninorm/test-compat-decomposition.c: Likewise.
19459         * tests/uninorm/test-composition.c: Likewise.
19460         * tests/uninorm/test-decomposing-form.c: Likewise.
19461         * tests/uninorm/test-decomposition.c: Likewise.
19462         * tests/uninorm/test-u8-nfc.c: Likewise.
19463         * tests/uninorm/test-u8-nfd.c: Likewise.
19464         * tests/uninorm/test-u8-nfkc.c: Likewise.
19465         * tests/uninorm/test-u8-nfkd.c: Likewise.
19466         * tests/uninorm/test-u8-normcmp.c: Likewise.
19467         * tests/uninorm/test-u8-normcoll.c: Likewise.
19468         * tests/uninorm/test-u16-nfc.c: Likewise.
19469         * tests/uninorm/test-u16-nfd.c: Likewise.
19470         * tests/uninorm/test-u16-nfkc.c: Likewise.
19471         * tests/uninorm/test-u16-nfkd.c: Likewise.
19472         * tests/uninorm/test-u16-normcmp.c: Likewise.
19473         * tests/uninorm/test-u16-normcoll.c: Likewise.
19474         * tests/uninorm/test-u32-nfc.c: Likewise.
19475         * tests/uninorm/test-u32-nfd.c: Likewise.
19476         * tests/uninorm/test-u32-nfkc.c: Likewise.
19477         * tests/uninorm/test-u32-nfkd.c: Likewise.
19478         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19479         * tests/uninorm/test-u32-normcmp.c: Likewise.
19480         * tests/uninorm/test-u32-normcoll.c: Likewise.
19481         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
19482         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19483         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19484         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19485         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19486         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19487         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19488         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19489         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19490         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19491         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19492         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19493         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19494         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19495         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19496         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19497         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19498         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19499         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19500         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19501         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19502         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19503         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19504         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19505         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19506         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19507         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19508         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19509         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19510         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
19511         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
19512         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
19513         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
19514         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19515         * tests/uniwidth/test-u8-width.c: Likewise.
19516         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19517         * tests/uniwidth/test-u16-width.c: Likewise.
19518         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19519         * tests/uniwidth/test-u32-width.c: Likewise.
19520         * tests/uniwidth/test-uc_width.c: Likewise.
19521         * tests/uniwidth/test-uc_width2.c: Likewise.
19522         * modules/acl-tests (Files): Add tests/macros.h.
19523         * modules/areadlink-tests (Files): Likewise.
19524         * modules/areadlink-with-size-tests (Files): Likewise.
19525         * modules/areadlinkat-tests (Files): Likewise.
19526         * modules/areadlinkat-with-size-tests (Files): Likewise.
19527         * modules/argmatch-tests (Files): Likewise.
19528         * modules/argv-iter-tests (Files): Likewise.
19529         * modules/array-list-tests (Files): Likewise.
19530         * modules/array-mergesort-tests (Files): Likewise.
19531         * modules/array-oset-tests (Files): Likewise.
19532         * modules/avltree-list-tests (Files): Likewise.
19533         * modules/avltree-oset-tests (Files): Likewise.
19534         * modules/avltreehash-list-tests (Files): Likewise.
19535         * modules/base64-tests (Files): Likewise.
19536         * modules/binary-io-tests (Files): Likewise.
19537         * modules/bitrotate-tests (Files): Likewise.
19538         * modules/btowc-tests (Files): Likewise.
19539         * modules/byteswap-tests (Files): Likewise.
19540         * modules/c-ctype-tests (Files): Likewise.
19541         * modules/c-stack-tests (Files): Likewise.
19542         * modules/c-strcase-tests (Files): Likewise.
19543         * modules/c-strcasestr-tests (Files): Likewise.
19544         * modules/c-strstr-tests (Files): Likewise.
19545         * modules/canonicalize-lgpl-tests (Files): Likewise.
19546         * modules/canonicalize-tests (Files): Likewise.
19547         * modules/carray-list-tests (Files): Likewise.
19548         * modules/ceilf-tests (Files): Likewise.
19549         * modules/ceill-tests (Files): Likewise.
19550         * modules/chown-tests (Files): Likewise.
19551         * modules/cloexec-tests (Files): Likewise.
19552         * modules/copy-file-tests (Files): Likewise.
19553         * modules/count-one-bits-tests (Files): Likewise.
19554         * modules/dprintf-posix-tests (Files): Likewise.
19555         * modules/dup2-tests (Files): Likewise.
19556         * modules/dup3-tests (Files): Likewise.
19557         * modules/duplocale-tests (Files): Likewise.
19558         * modules/fbufmode-tests (Files): Likewise.
19559         * modules/fchdir-tests (Files): Likewise.
19560         * modules/fcntl-safer-tests (Files): Likewise.
19561         * modules/fcntl-tests (Files): Likewise.
19562         * modules/fdopendir-tests (Files): Likewise.
19563         * modules/fdutimensat-tests (Files): Likewise.
19564         * modules/fflush-tests (Files): Likewise.
19565         * modules/filevercmp-tests (Files): Likewise.
19566         * modules/flock-tests (Files): Likewise.
19567         * modules/floorf-tests (Files): Likewise.
19568         * modules/floorl-tests (Files): Likewise.
19569         * modules/fnmatch-tests (Files): Likewise.
19570         * modules/fopen-safer-tests (Files): Likewise.
19571         * modules/fopen-tests (Files): Likewise.
19572         * modules/fpending-tests (Files): Likewise.
19573         * modules/fprintf-posix-tests (Files): Likewise.
19574         * modules/fpurge-tests (Files): Likewise.
19575         * modules/freadable-tests (Files): Likewise.
19576         * modules/freadahead-tests (Files): Likewise.
19577         * modules/freading-tests (Files): Likewise.
19578         * modules/freadptr-tests (Files): Likewise.
19579         * modules/freadseek-tests (Files): Likewise.
19580         * modules/freopen-tests (Files): Likewise.
19581         * modules/frexp-nolibm-tests (Files): Likewise.
19582         * modules/frexp-tests (Files): Likewise.
19583         * modules/frexpl-nolibm-tests (Files): Likewise.
19584         * modules/frexpl-tests (Files): Likewise.
19585         * modules/fseek-tests (Files): Likewise.
19586         * modules/fseeko-tests (Files): Likewise.
19587         * modules/fstrcmp-tests (Files): Likewise.
19588         * modules/fsync-tests (Files): Likewise.
19589         * modules/ftell-tests (Files): Likewise.
19590         * modules/ftello-tests (Files): Likewise.
19591         * modules/func-tests (Files): Likewise.
19592         * modules/futimens-tests (Files): Likewise.
19593         * modules/fwritable-tests (Files): Likewise.
19594         * modules/fwriting-tests (Files): Likewise.
19595         * modules/getcwd-tests (Files): Likewise.
19596         * modules/getdate-tests (Files): Likewise.
19597         * modules/getdelim-tests (Files): Likewise.
19598         * modules/getdtablesize-tests (Files): Likewise.
19599         * modules/getgroups-tests (Files): Likewise.
19600         * modules/getline-tests (Files): Likewise.
19601         * modules/getndelim2-tests (Files): Likewise.
19602         * modules/glob-tests (Files): Likewise.
19603         * modules/hash-tests (Files): Likewise.
19604         * modules/i-ring-tests (Files): Likewise.
19605         * modules/iconv-tests (Files): Likewise.
19606         * modules/iconv_open-utf-tests (Files): Likewise.
19607         * modules/idpriv-drop-tests (Files): Likewise.
19608         * modules/idpriv-droptemp-tests (Files): Likewise.
19609         * modules/inet_ntop-tests (Files): Likewise.
19610         * modules/inet_pton-tests (Files): Likewise.
19611         * modules/isblank-tests (Files): Likewise.
19612         * modules/isfinite-tests (Files): Likewise.
19613         * modules/isinf-tests (Files): Likewise.
19614         * modules/isnan-tests (Files): Likewise.
19615         * modules/isnand-nolibm-tests (Files): Likewise.
19616         * modules/isnand-tests (Files): Likewise.
19617         * modules/isnanf-nolibm-tests (Files): Likewise.
19618         * modules/isnanf-tests (Files): Likewise.
19619         * modules/isnanl-nolibm-tests (Files): Likewise.
19620         * modules/isnanl-tests (Files): Likewise.
19621         * modules/lchown-tests (Files): Likewise.
19622         * modules/ldexpl-tests (Files): Likewise.
19623         * modules/link-tests (Files): Likewise.
19624         * modules/linkat-tests (Files): Likewise.
19625         * modules/linked-list-tests (Files): Likewise.
19626         * modules/linkedhash-list-tests (Files): Likewise.
19627         * modules/localename-tests (Files): Likewise.
19628         * modules/lseek-tests (Files): Likewise.
19629         * modules/lstat-tests (Files): Likewise.
19630         * modules/mbmemcasecmp-tests (Files): Likewise.
19631         * modules/mbmemcasecoll-tests (Files): Likewise.
19632         * modules/mbrtowc-tests (Files): Likewise.
19633         * modules/mbscasecmp-tests (Files): Likewise.
19634         * modules/mbscasestr-tests (Files): Likewise.
19635         * modules/mbschr-tests (Files): Likewise.
19636         * modules/mbscspn-tests (Files): Likewise.
19637         * modules/mbsinit-tests (Files): Likewise.
19638         * modules/mbsncasecmp-tests (Files): Likewise.
19639         * modules/mbsnrtowcs-tests (Files): Likewise.
19640         * modules/mbspbrk-tests (Files): Likewise.
19641         * modules/mbspcasecmp-tests (Files): Likewise.
19642         * modules/mbsrchr-tests (Files): Likewise.
19643         * modules/mbsrtowcs-tests (Files): Likewise.
19644         * modules/mbsspn-tests (Files): Likewise.
19645         * modules/mbsstr-tests (Files): Likewise.
19646         * modules/memchr-tests (Files): Likewise.
19647         * modules/memchr2-tests (Files): Likewise.
19648         * modules/memcmp-tests (Files): Likewise.
19649         * modules/memmem-tests (Files): Likewise.
19650         * modules/memrchr-tests (Files): Likewise.
19651         * modules/mkdir-tests (Files): Likewise.
19652         * modules/mkfifo-tests (Files): Likewise.
19653         * modules/mkfifoat-tests (Files): Likewise.
19654         * modules/mknod-tests (Files): Likewise.
19655         * modules/nanosleep-tests (Files): Likewise.
19656         * modules/nl_langinfo-tests (Files): Likewise.
19657         * modules/obstack-printf-tests (Files): Likewise.
19658         * modules/open-tests (Files): Likewise.
19659         * modules/openat-tests (Files): Likewise.
19660         * modules/pipe-filter-gi-tests (Files): Likewise.
19661         * modules/pipe-filter-ii-tests (Files): Likewise.
19662         * modules/pipe2-tests (Files): Likewise.
19663         * modules/popen-safer-tests (Files): Likewise.
19664         * modules/popen-tests (Files): Likewise.
19665         * modules/posixtm-tests (Files): Likewise.
19666         * modules/pread-tests (Files): Likewise.
19667         * modules/printf-frexp-tests (Files): Likewise.
19668         * modules/printf-frexpl-tests (Files): Likewise.
19669         * modules/printf-posix-tests (Files): Likewise.
19670         * modules/priv-set-tests (Files): Likewise.
19671         * modules/quotearg-tests (Files): Likewise.
19672         * modules/random_r-tests (Files): Likewise.
19673         * modules/rawmemchr-tests (Files): Likewise.
19674         * modules/rbtree-list-tests (Files): Likewise.
19675         * modules/rbtree-oset-tests (Files): Likewise.
19676         * modules/rbtreehash-list-tests (Files): Likewise.
19677         * modules/readlink-tests (Files): Likewise.
19678         * modules/remove-tests (Files): Likewise.
19679         * modules/rename-tests (Files): Likewise.
19680         * modules/renameat-tests (Files): Likewise.
19681         * modules/rmdir-tests (Files): Likewise.
19682         * modules/round-tests (Files): Likewise.
19683         * modules/roundf-tests (Files): Likewise.
19684         * modules/roundl-tests (Files): Likewise.
19685         * modules/safe-alloc-tests (Files): Likewise.
19686         * modules/setenv-tests (Files): Likewise.
19687         * modules/sigaction-tests (Files): Likewise.
19688         * modules/signbit-tests (Files): Likewise.
19689         * modules/sleep-tests (Files): Likewise.
19690         * modules/snprintf-posix-tests (Files): Likewise.
19691         * modules/snprintf-tests (Files): Likewise.
19692         * modules/sprintf-posix-tests (Files): Likewise.
19693         * modules/stat-tests (Files): Likewise.
19694         * modules/stat-time-tests (Files): Likewise.
19695         * modules/strcasestr-tests (Files): Likewise.
19696         * modules/strchrnul-tests (Files): Likewise.
19697         * modules/strerror-tests (Files): Likewise.
19698         * modules/striconv-tests (Files): Likewise.
19699         * modules/striconveh-tests (Files): Likewise.
19700         * modules/striconveha-tests (Files): Likewise.
19701         * modules/strsignal-tests (Files): Likewise.
19702         * modules/strstr-tests (Files): Likewise.
19703         * modules/strtod-tests (Files): Likewise.
19704         * modules/strverscmp-tests (Files): Likewise.
19705         * modules/symlink-tests (Files): Likewise.
19706         * modules/symlinkat-tests (Files): Likewise.
19707         * modules/trunc-tests (Files): Likewise.
19708         * modules/truncf-tests (Files): Likewise.
19709         * modules/truncl-tests (Files): Likewise.
19710         * modules/uname-tests (Files): Likewise.
19711         * modules/unicase/cased-tests (Files): Likewise.
19712         * modules/unicase/ignorable-tests (Files): Likewise.
19713         * modules/unicase/locale-language-tests (Files): Likewise.
19714         * modules/unicase/tolower-tests (Files): Likewise.
19715         * modules/unicase/totitle-tests (Files): Likewise.
19716         * modules/unicase/toupper-tests (Files): Likewise.
19717         * modules/unicase/u8-casecmp-tests (Files): Likewise.
19718         * modules/unicase/u8-casecoll-tests (Files): Likewise.
19719         * modules/unicase/u8-casefold-tests (Files): Likewise.
19720         * modules/unicase/u8-is-cased-tests (Files): Likewise.
19721         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
19722         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
19723         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
19724         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
19725         * modules/unicase/u8-tolower-tests (Files): Likewise.
19726         * modules/unicase/u8-totitle-tests (Files): Likewise.
19727         * modules/unicase/u8-toupper-tests (Files): Likewise.
19728         * modules/unicase/u16-casecmp-tests (Files): Likewise.
19729         * modules/unicase/u16-casecoll-tests (Files): Likewise.
19730         * modules/unicase/u16-casefold-tests (Files): Likewise.
19731         * modules/unicase/u16-is-cased-tests (Files): Likewise.
19732         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
19733         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
19734         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
19735         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
19736         * modules/unicase/u16-tolower-tests (Files): Likewise.
19737         * modules/unicase/u16-totitle-tests (Files): Likewise.
19738         * modules/unicase/u16-toupper-tests (Files): Likewise.
19739         * modules/unicase/u32-casecmp-tests (Files): Likewise.
19740         * modules/unicase/u32-casecoll-tests (Files): Likewise.
19741         * modules/unicase/u32-casefold-tests (Files): Likewise.
19742         * modules/unicase/u32-is-cased-tests (Files): Likewise.
19743         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
19744         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
19745         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
19746         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
19747         * modules/unicase/u32-tolower-tests (Files): Likewise.
19748         * modules/unicase/u32-totitle-tests (Files): Likewise.
19749         * modules/unicase/u32-toupper-tests (Files): Likewise.
19750         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
19751         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
19752         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
19753         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
19754         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
19755         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
19756         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
19757         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
19758         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
19759         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
19760         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
19761         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
19762         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
19763         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
19764         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
19765         * modules/unictype/bidicategory-name-tests (Files): Likewise.
19766         * modules/unictype/bidicategory-of-tests (Files): Likewise.
19767         * modules/unictype/bidicategory-test-tests (Files): Likewise.
19768         * modules/unictype/block-list-tests (Files): Likewise.
19769         * modules/unictype/block-of-tests (Files): Likewise.
19770         * modules/unictype/block-test-tests (Files): Likewise.
19771         * modules/unictype/category-C-tests (Files): Likewise.
19772         * modules/unictype/category-Cc-tests (Files): Likewise.
19773         * modules/unictype/category-Cf-tests (Files): Likewise.
19774         * modules/unictype/category-Cn-tests (Files): Likewise.
19775         * modules/unictype/category-Co-tests (Files): Likewise.
19776         * modules/unictype/category-Cs-tests (Files): Likewise.
19777         * modules/unictype/category-L-tests (Files): Likewise.
19778         * modules/unictype/category-Ll-tests (Files): Likewise.
19779         * modules/unictype/category-Lm-tests (Files): Likewise.
19780         * modules/unictype/category-Lo-tests (Files): Likewise.
19781         * modules/unictype/category-Lt-tests (Files): Likewise.
19782         * modules/unictype/category-Lu-tests (Files): Likewise.
19783         * modules/unictype/category-M-tests (Files): Likewise.
19784         * modules/unictype/category-Mc-tests (Files): Likewise.
19785         * modules/unictype/category-Me-tests (Files): Likewise.
19786         * modules/unictype/category-Mn-tests (Files): Likewise.
19787         * modules/unictype/category-N-tests (Files): Likewise.
19788         * modules/unictype/category-Nd-tests (Files): Likewise.
19789         * modules/unictype/category-Nl-tests (Files): Likewise.
19790         * modules/unictype/category-No-tests (Files): Likewise.
19791         * modules/unictype/category-P-tests (Files): Likewise.
19792         * modules/unictype/category-Pc-tests (Files): Likewise.
19793         * modules/unictype/category-Pd-tests (Files): Likewise.
19794         * modules/unictype/category-Pe-tests (Files): Likewise.
19795         * modules/unictype/category-Pf-tests (Files): Likewise.
19796         * modules/unictype/category-Pi-tests (Files): Likewise.
19797         * modules/unictype/category-Po-tests (Files): Likewise.
19798         * modules/unictype/category-Ps-tests (Files): Likewise.
19799         * modules/unictype/category-S-tests (Files): Likewise.
19800         * modules/unictype/category-Sc-tests (Files): Likewise.
19801         * modules/unictype/category-Sk-tests (Files): Likewise.
19802         * modules/unictype/category-Sm-tests (Files): Likewise.
19803         * modules/unictype/category-So-tests (Files): Likewise.
19804         * modules/unictype/category-Z-tests (Files): Likewise.
19805         * modules/unictype/category-Zl-tests (Files): Likewise.
19806         * modules/unictype/category-Zp-tests (Files): Likewise.
19807         * modules/unictype/category-Zs-tests (Files): Likewise.
19808         * modules/unictype/category-and-not-tests (Files): Likewise.
19809         * modules/unictype/category-and-tests (Files): Likewise.
19810         * modules/unictype/category-byname-tests (Files): Likewise.
19811         * modules/unictype/category-name-tests (Files): Likewise.
19812         * modules/unictype/category-none-tests (Files): Likewise.
19813         * modules/unictype/category-of-tests (Files): Likewise.
19814         * modules/unictype/category-or-tests (Files): Likewise.
19815         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19816         * modules/unictype/combining-class-tests (Files): Likewise.
19817         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19818         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19819         * modules/unictype/ctype-blank-tests (Files): Likewise.
19820         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19821         * modules/unictype/ctype-digit-tests (Files): Likewise.
19822         * modules/unictype/ctype-graph-tests (Files): Likewise.
19823         * modules/unictype/ctype-lower-tests (Files): Likewise.
19824         * modules/unictype/ctype-print-tests (Files): Likewise.
19825         * modules/unictype/ctype-punct-tests (Files): Likewise.
19826         * modules/unictype/ctype-space-tests (Files): Likewise.
19827         * modules/unictype/ctype-upper-tests (Files): Likewise.
19828         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19829         * modules/unictype/decimal-digit-tests (Files): Likewise.
19830         * modules/unictype/digit-tests (Files): Likewise.
19831         * modules/unictype/mirror-tests (Files): Likewise.
19832         * modules/unictype/numeric-tests (Files): Likewise.
19833         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19834         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19835         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19836         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19837         Likewise.
19838         * modules/unictype/property-bidi-block-separator-tests (Files):
19839         Likewise.
19840         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19841         Likewise.
19842         * modules/unictype/property-bidi-common-separator-tests (Files):
19843         Likewise.
19844         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19845         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19846         Likewise.
19847         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19848         Likewise.
19849         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19850         Likewise.
19851         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19852         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19853         Likewise.
19854         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19855         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19856         Likewise.
19857         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19858         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19859         * modules/unictype/property-bidi-segment-separator-tests (Files):
19860         Likewise.
19861         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19862         * modules/unictype/property-byname-tests (Files): Likewise.
19863         * modules/unictype/property-combining-tests (Files): Likewise.
19864         * modules/unictype/property-composite-tests (Files): Likewise.
19865         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19866         * modules/unictype/property-dash-tests (Files): Likewise.
19867         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19868         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19869         Likewise.
19870         * modules/unictype/property-deprecated-tests (Files): Likewise.
19871         * modules/unictype/property-diacritic-tests (Files): Likewise.
19872         * modules/unictype/property-extender-tests (Files): Likewise.
19873         * modules/unictype/property-format-control-tests (Files): Likewise.
19874         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19875         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19876         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19877         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19878         * modules/unictype/property-hyphen-tests (Files): Likewise.
19879         * modules/unictype/property-id-continue-tests (Files): Likewise.
19880         * modules/unictype/property-id-start-tests (Files): Likewise.
19881         * modules/unictype/property-ideographic-tests (Files): Likewise.
19882         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19883         * modules/unictype/property-ids-trinary-operator-tests (Files):
19884         Likewise.
19885         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19886         * modules/unictype/property-iso-control-tests (Files): Likewise.
19887         * modules/unictype/property-join-control-tests (Files): Likewise.
19888         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19889         * modules/unictype/property-line-separator-tests (Files): Likewise.
19890         * modules/unictype/property-logical-order-exception-tests (Files):
19891         Likewise.
19892         * modules/unictype/property-lowercase-tests (Files): Likewise.
19893         * modules/unictype/property-math-tests (Files): Likewise.
19894         * modules/unictype/property-non-break-tests (Files): Likewise.
19895         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19896         * modules/unictype/property-numeric-tests (Files): Likewise.
19897         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19898         * modules/unictype/property-other-default-ignorable-code-point-tests
19899         (Files): Likewise.
19900         * modules/unictype/property-other-grapheme-extend-tests (Files):
19901         Likewise.
19902         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19903         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19904         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19905         * modules/unictype/property-other-math-tests (Files): Likewise.
19906         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19907         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19908         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19909         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19910         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19911         * modules/unictype/property-private-use-tests (Files): Likewise.
19912         * modules/unictype/property-punctuation-tests (Files): Likewise.
19913         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19914         * modules/unictype/property-radical-tests (Files): Likewise.
19915         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19916         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19917         * modules/unictype/property-space-tests (Files): Likewise.
19918         * modules/unictype/property-terminal-punctuation-tests (Files):
19919         Likewise.
19920         * modules/unictype/property-test-tests (Files): Likewise.
19921         * modules/unictype/property-titlecase-tests (Files): Likewise.
19922         * modules/unictype/property-unassigned-code-value-tests (Files):
19923         Likewise.
19924         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19925         * modules/unictype/property-uppercase-tests (Files): Likewise.
19926         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19927         * modules/unictype/property-white-space-tests (Files): Likewise.
19928         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19929         * modules/unictype/property-xid-start-tests (Files): Likewise.
19930         * modules/unictype/property-zero-width-tests (Files): Likewise.
19931         * modules/unictype/scripts-tests (Files): Likewise.
19932         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19933         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19934         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19935         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19936         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19937         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19938         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19939         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19940         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19941         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19942         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19943         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19944         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19945         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19946         * modules/uninorm/composition-tests (Files): Likewise.
19947         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19948         * modules/uninorm/decomposition-tests (Files): Likewise.
19949         * modules/uninorm/filter-tests (Files): Likewise.
19950         * modules/uninorm/nfc-tests (Files): Likewise.
19951         * modules/uninorm/nfd-tests (Files): Likewise.
19952         * modules/uninorm/nfkc-tests (Files): Likewise.
19953         * modules/uninorm/nfkd-tests (Files): Likewise.
19954         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19955         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19956         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19957         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19958         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19959         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19960         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19961         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19962         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19963         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19964         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19965         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19966         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19967         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19968         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19969         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19970         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19971         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19972         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19973         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19974         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19975         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19976         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19977         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19978         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19979         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19980         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19981         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19982         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19983         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19984         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19985         * modules/uniwidth/u8-width-tests (Files): Likewise.
19986         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19987         * modules/uniwidth/u16-width-tests (Files): Likewise.
19988         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19989         * modules/uniwidth/u32-width-tests (Files): Likewise.
19990         * modules/uniwidth/width-tests (Files): Likewise.
19991         * modules/unlink-tests (Files): Likewise.
19992         * modules/unsetenv-tests (Files): Likewise.
19993         * modules/usleep-tests (Files): Likewise.
19994         * modules/utimens-tests (Files): Likewise.
19995         * modules/utimensat-tests (Files): Likewise.
19996         * modules/vasnprintf-posix-tests (Files): Likewise.
19997         * modules/vasnprintf-tests (Files): Likewise.
19998         * modules/vasprintf-posix-tests (Files): Likewise.
19999         * modules/vasprintf-tests (Files): Likewise.
20000         * modules/vdprintf-posix-tests (Files): Likewise.
20001         * modules/vfprintf-posix-tests (Files): Likewise.
20002         * modules/vprintf-posix-tests (Files): Likewise.
20003         * modules/vsnprintf-posix-tests (Files): Likewise.
20004         * modules/vsnprintf-tests (Files): Likewise.
20005         * modules/vsprintf-posix-tests (Files): Likewise.
20006         * modules/wcrtomb-tests (Files): Likewise.
20007         * modules/wcsnrtombs-tests (Files): Likewise.
20008         * modules/wcsrtombs-tests (Files): Likewise.
20009         * modules/wctype-tests (Files): Likewise.
20010         * modules/wcwidth-tests (Files): Likewise.
20011         * modules/xmemdup0-tests (Files): Likewise.
20012         * modules/xprintf-posix-tests (Files): Likewise.
20013         * modules/xvasprintf-tests (Files): Likewise.
20014
20015 2009-12-24  Eric Blake  <ebb9@byu.net>
20016
20017         test-nanosleep: fix typo
20018         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20019         patch.
20020         Reported by Bruno Haible.
20021
20022 2009-12-24  Bruno Haible  <bruno@clisp.org>
20023
20024         Reduce namespace pollution on glibc systems.
20025         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20026         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20027         systems.
20028         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20029         <getopt.h> on glibc systems.
20030         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20031         systems.
20032         * lib/fcntl.c: Include <unistd.h> here instead.
20033
20034 2009-12-24  Bruno Haible  <bruno@clisp.org>
20035
20036         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20037
20038 2009-12-24  Eric Blake  <ebb9@byu.net>
20039
20040         tests: add signature checks
20041         * tests/signature.h (SIGNATURE_CHECK): New file.
20042         * modules/atexit-tests (Files): Use it.
20043         * modules/btowc-tests (Files): Likewise.
20044         * modules/canonicalize-lgpl-tests (Files): Likewise.
20045         * modules/ceilf-tests (Files): Likewise.
20046         * modules/ceill-tests (Files): Likewise.
20047         * modules/chown-tests (Files): Likewise.
20048         * modules/dprintf-posix-tests (Files): Likewise.
20049         * modules/dup2-tests (Files): Likewise.
20050         * modules/dup3-tests (Files): Likewise.
20051         * modules/duplocale-tests (Files): Likewise.
20052         * modules/fchdir-tests (Files): Likewise.
20053         * modules/fcntl-tests (Files): Likewise.
20054         * modules/fdopendir-tests (Files): Likewise.
20055         * modules/fflush-tests (Files): Likewise.
20056         * modules/flock-tests (Files): Likewise.
20057         * modules/floorf-tests (Files): Likewise.
20058         * modules/floorl-tests (Files): Likewise.
20059         * modules/fnmatch-tests (Files): Likewise.
20060         * modules/fopen-tests (Files): Likewise.
20061         * modules/fprintf-posix-tests (Files): Likewise.
20062         * modules/freopen-tests (Files): Likewise.
20063         * modules/frexp-nolibm-tests (Files): Likewise.
20064         * modules/frexp-tests (Files): Likewise.
20065         * modules/frexpl-nolibm-tests (Files): Likewise.
20066         * modules/frexpl-tests (Files): Likewise.
20067         * modules/fseek-tests (Files): Likewise.
20068         * modules/fseeko-tests (Files): Likewise.
20069         * modules/fsync-tests (Files): Likewise.
20070         * modules/ftell-tests (Files): Likewise.
20071         * modules/ftello-tests (Files): Likewise.
20072         * modules/futimens-tests (Files): Likewise.
20073         * modules/getaddrinfo-tests (Files): Likewise.
20074         * modules/getcwd-tests (Files): Likewise.
20075         * modules/getdelim-tests (Files): Likewise.
20076         * modules/getdtablesize-tests (Files): Likewise.
20077         * modules/getgroups-tests (Files): Likewise.
20078         * modules/gethostname-tests (Files): Likewise.
20079         * modules/getline-tests (Files): Likewise.
20080         * modules/getopt-posix-tests (Files): Likewise.
20081         * modules/gettimeofday-tests (Files): Likewise.
20082         * modules/glob-tests (Files): Likewise.
20083         * modules/iconv-tests (Files): Likewise.
20084         * modules/inet_ntop-tests (Files): Likewise.
20085         * modules/inet_pton-tests (Files): Likewise.
20086         * modules/isblank-tests (Files): Likewise.
20087         * modules/lchown-tests (Files): Likewise.
20088         * modules/ldexpl-tests (Files): Likewise.
20089         * modules/link-tests (Files): Likewise.
20090         * modules/linkat-tests (Files): Likewise.
20091         * modules/lseek-tests (Files): Likewise.
20092         * modules/lstat-tests (Files): Likewise.
20093         * modules/mbrtowc-tests (Files): Likewise.
20094         * modules/mbsinit-tests (Files): Likewise.
20095         * modules/mbsnrtowcs-tests (Files): Likewise.
20096         * modules/mbsrtowcs-tests (Files): Likewise.
20097         * modules/memchr-tests (Files): Likewise.
20098         * modules/memcmp-tests (Files): Likewise.
20099         * modules/memmem-tests (Files): Likewise.
20100         * modules/memrchr-tests (Files): Likewise.
20101         * modules/mkdir-tests (Files): Likewise.
20102         * modules/mkfifo-tests (Files): Likewise.
20103         * modules/mkfifoat-tests (Files): Likewise.
20104         * modules/mknod-tests (Files): Likewise.
20105         * modules/nanosleep-tests (Files): Likewise.
20106         * modules/nl_langinfo-tests (Files): Likewise.
20107         * modules/obstack-printf-tests (Files): Likewise.
20108         * modules/open-tests (Files): Likewise.
20109         * modules/openat-tests (Files): Likewise.
20110         * modules/perror-tests (Files): Likewise.
20111         * modules/pipe2-tests (Files): Likewise.
20112         * modules/poll-tests (Files): Likewise.
20113         * modules/popen-tests (Files): Likewise.
20114         * modules/posix_spawn-tests (Files): Likewise.
20115         * modules/posix_spawnp-tests (Files): Likewise.
20116         * modules/pread-tests (Files): Likewise.
20117         * modules/printf-posix-tests (Files): Likewise.
20118         * modules/pty-tests (Files): Likewise.
20119         * modules/random_r-tests (Files): Likewise.
20120         * modules/rawmemchr-tests (Files): Likewise.
20121         * modules/readlink-tests (Files): Likewise.
20122         * modules/remove-tests (Files): Likewise.
20123         * modules/rename-tests (Files): Likewise.
20124         * modules/renameat-tests (Files): Likewise.
20125         * modules/rmdir-tests (Files): Likewise.
20126         * modules/round-tests (Files): Likewise.
20127         * modules/roundf-tests (Files): Likewise.
20128         * modules/roundl-tests (Files): Likewise.
20129         * modules/select-tests (Files): Likewise.
20130         * modules/setenv-tests (Files): Likewise.
20131         * modules/sigaction-tests (Files): Likewise.
20132         * modules/sleep-tests (Files): Likewise.
20133         * modules/snprintf-posix-tests (Files): Likewise.
20134         * modules/snprintf-tests (Files): Likewise.
20135         * modules/sprintf-posix-tests (Files): Likewise.
20136         * modules/stat-tests (Files): Likewise.
20137         * modules/strcasestr-tests (Files): Likewise.
20138         * modules/strchrnul-tests (Files): Likewise.
20139         * modules/strerror-tests (Files): Likewise.
20140         * modules/strsignal-tests (Files): Likewise.
20141         * modules/strstr-tests (Files): Likewise.
20142         * modules/strtod-tests (Files): Likewise.
20143         * modules/strverscmp-tests (Files): Likewise.
20144         * modules/symlink-tests (Files): Likewise.
20145         * modules/symlinkat-tests (Files): Likewise.
20146         * modules/times-tests (Files): Likewise.
20147         * modules/trunc-tests (Files): Likewise.
20148         * modules/truncf-tests (Files): Likewise.
20149         * modules/truncl-tests (Files): Likewise.
20150         * modules/tsearch-tests (Files): Likewise.
20151         * modules/uname-tests (Files): Likewise.
20152         * modules/unlink-tests (Files): Likewise.
20153         * modules/unsetenv-tests (Files): Likewise.
20154         * modules/usleep-tests (Files): Likewise.
20155         * modules/utimensat-tests (Files): Likewise.
20156         * modules/vasprintf-tests (Files): Likewise.
20157         * modules/vdprintf-posix-tests (Files): Likewise.
20158         * modules/vfprintf-posix-tests (Files): Likewise.
20159         * modules/vprintf-posix-tests (Files): Likewise.
20160         * modules/vsnprintf-posix-tests (Files): Likewise.
20161         * modules/vsnprintf-tests (Files): Likewise.
20162         * modules/vsprintf-posix-tests (Files): Likewise.
20163         * modules/wcrtomb-tests (Files): Likewise.
20164         * modules/wcsnrtombs-tests (Files): Likewise.
20165         * modules/wcsrtombs-tests (Files): Likewise.
20166         * modules/wcwidth-tests (Files): Likewise.
20167         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20168         * tests/test-isinf.c (isinf): Likewise.
20169         * tests/test-isnan.c (isnan): Likewise.
20170         * tests/test-signbit.c (signbit): Likewise.
20171         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20172         declaration, either as macro or with correct signature.
20173         (select): Ensure function under test is declared with correct
20174         signature in correct header.
20175         * tests/test-atexit.c (atexit): Likewise.
20176         * tests/test-btowc.c (btowc): Likewise.
20177         * tests/test-canonicalize-lgpl.c (realpath)
20178         (canonicalize_file_name): Likewise.
20179         * tests/test-ceilf1.c (ceilf): Likewise.
20180         * tests/test-ceill.c (ceill): Likewise.
20181         * tests/test-chown.c (chown): Likewise.
20182         * tests/test-dprintf-posix.c (dprintf): Likewise.
20183         * tests/test-dup2.c (dup2): Likewise.
20184         * tests/test-dup3.c (dup3): Likewise.
20185         * tests/test-duplocale.c (duplocale): Likewise.
20186         * tests/test-fchdir.c (fchdir): Likewise.
20187         * tests/test-fchownat.c (fchownat): Likewise.
20188         * tests/test-fcntl.c (fcntl): Likewise.
20189         * tests/test-fdopendir.c (fdopendir): Likewise.
20190         * tests/test-fflush.c (fflush): Likewise.
20191         * tests/test-flock.c (flock): Likewise.
20192         * tests/test-floorf1.c (floorf): Likewise.
20193         * tests/test-floorl.c (floorl): Likewise.
20194         * tests/test-fnmatch.c (fnmatch): Likewise.
20195         * tests/test-fopen.c (fopen): Likewise.
20196         * tests/test-fprintf-posix.c (fprintf): Likewise.
20197         * tests/test-freopen.c (freopen): Likewise.
20198         * tests/test-frexp.c (frexp): Likewise.
20199         * tests/test-frexpl.c (frexpl): Likewise.
20200         * tests/test-fseek.c (fseek): Likewise.
20201         * tests/test-fseeko.c (fseeko): Likewise.
20202         * tests/test-fstatat.c (fstatat): Likewise.
20203         * tests/test-fsync.c (fsync): Likewise.
20204         * tests/test-ftell.c (ftell): Likewise.
20205         * tests/test-ftello.c (ftello): Likewise.
20206         * tests/test-futimens.c (futimens): Likewise.
20207         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20208         (gai_strerror): Likewise.
20209         * tests/test-getcwd.c (getcwd): Likewise.
20210         * tests/test-getdelim.c (getdelim): Likewise.
20211         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20212         * tests/test-getgroups.c (getgroups): Likewise.
20213         * tests/test-gethostname.c (gethostname): Likewise.
20214         * tests/test-getline.c (getline): Likewise.
20215         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20216         Likewise.
20217         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20218         * tests/test-glob.c (glob, globfree): Likewise.
20219         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20220         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20221         * tests/test-inet_pton.c (inet_pton): Likewise.
20222         * tests/test-isblank.c (isblank): Likewise.
20223         * tests/test-lchown.c (lchown): Likewise.
20224         * tests/test-ldexpl.c (ldexpl): Likewise.
20225         * tests/test-link.c (link): Likewise.
20226         * tests/test-linkat.c (linkat): Likewise.
20227         * tests/test-lseek.c (lseek): Likewise.
20228         * tests/test-lstat.c (lstat): Likewise.
20229         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20230         * tests/test-mbsinit.c (mbsinit): Likewise.
20231         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20232         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20233         * tests/test-memchr.c (memchr): Likewise.
20234         * tests/test-memcmp.c (memcmp): Likewise.
20235         * tests/test-memmem.c (memmem): Likewise.
20236         * tests/test-memrchr.c (memrchr): Likewise.
20237         * tests/test-mkdir.c (mkdir): Likewise.
20238         * tests/test-mkdirat.c (mkdirat): Likewise.
20239         * tests/test-mkfifo.c (mkfifo): Likewise.
20240         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20241         * tests/test-mknod.c (mknod): Likewise.
20242         * tests/test-nanosleep.c (nanosleep): Likewise.
20243         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20244         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20245         Likewise.
20246         * tests/test-open.c (open): Likewise.
20247         * tests/test-openat.c (openat): Likewise.
20248         * tests/test-perror.c (perror): Likewise.
20249         * tests/test-pipe2.c (pipe2): Likewise.
20250         * tests/test-poll.c (poll): Likewise.
20251         * tests/test-popen.c (popen, pclose): Likewise.
20252         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20253         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20254         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20255         (posix_spawn_file_actions_destroy)
20256         (posix_spawn_file_actions_addclose)
20257         (posix_spawn_file_actions_addopen)
20258         (posix_spawn_file_actions_adddup2): Likewise.
20259         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20260         * tests/test-pread.c (pread): Likewise.
20261         * tests/test-printf-posix.c (printf): Likewise.
20262         * tests/test-pty.c (openpty, forkpty): Likewise.
20263         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20264         (random_r): Likewise.
20265         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20266         * tests/test-readlink.c (readlink): Likewise.
20267         * tests/test-remove.c (remove): Likewise.
20268         * tests/test-rename.c (rename): Likewise.
20269         * tests/test-renameat.c (renameat): Likewise.
20270         * tests/test-rmdir.c (rmdir): Likewise.
20271         * tests/test-round1.c (round): Likewise.
20272         * tests/test-roundf1.c (roundf): Likewise.
20273         * tests/test-roundl.c (roundl): Likewise.
20274         * tests/test-setenv.c (setenv): Likewise.
20275         * tests/test-sigaction.c (sigaction): Likewise.
20276         * tests/test-sleep.c (sleep): Likewise.
20277         * tests/test-snprintf.c (snprintf): Likewise.
20278         * tests/test-sprintf-posix.c (sprintf): Likewise.
20279         * tests/test-stat.c (stat): Likewise.
20280         * tests/test-stpncpy.c (stpncpy): Likewise.
20281         * tests/test-strcasestr.c (strcasestr): Likewise.
20282         * tests/test-strchrnul.c (strchrnul): Likewise.
20283         * tests/test-strerror.c (strerror): Likewise.
20284         * tests/test-strsignal.c (strsignal): Likewise.
20285         * tests/test-strstr.c (strstr): Likewise.
20286         * tests/test-strtod.c (strtod): Likewise.
20287         * tests/test-strverscmp.c (strverscmp): Likewise.
20288         * tests/test-symlink.c (symlink): Likewise.
20289         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20290         * tests/test-times.c (times): Likewise.
20291         * tests/test-trunc1.c (trunc): Likewise.
20292         * tests/test-truncf1.c (truncf): Likewise.
20293         * tests/test-truncl.c (truncl): Likewise.
20294         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20295         Likewise.
20296         * tests/test-uname.c (uname): Likewise.
20297         * tests/test-unlink.c (unlink): Likewise.
20298         * tests/test-unlinkat.c (unlinkat): Likewise.
20299         * tests/test-unsetenv.c (unsetenv): Likewise.
20300         * tests/test-usleep.c (usleep): Likewise.
20301         * tests/test-utimensat.c (utimensat): Likewise.
20302         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20303         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20304         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20305         * tests/test-vprintf-posix.c (vprintf): Likewise.
20306         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20307         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20308         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20309         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20310         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20311         * tests/test-wcwidth.c (wcwidth): Likewise.
20312
20313         build: pull in conditional headers during GNULIB_POSIXCHECK
20314         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20315         definitions from any conditionally-included headers.
20316         * lib/stdlib.in.h (includes): Likewise.
20317         * lib/unistd.in.h (includes): Likewise.
20318
20319 2009-12-24  Bruno Haible  <bruno@clisp.org>
20320
20321         * tests/test-argv-iter.c: Include header file being tested immediately
20322         after config.h.
20323         * tests/test-base64.c: Likewise.
20324         * tests/test-flock.c: Likewise.
20325         * tests/test-fsync.c: Likewise.
20326         * tests/test-getdate.c: Likewise.
20327         * tests/test-getndelim2.c: Likewise.
20328         * tests/test-isfinite.c: Likewise.
20329         * tests/test-isinf.c: Likewise.
20330         * tests/test-strerror.c: Likewise.
20331         * tests/test-strsignal.c: Likewise.
20332
20333 2009-12-23  Eric Blake  <ebb9@byu.net>
20334
20335         unistd: work around cygwin bug
20336         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20337         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20338         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20339
20340 2009-12-23  Bruno Haible  <bruno@clisp.org>
20341
20342         localename: More tests.
20343         * tests/test-localename.c (SIZEOF): New macro.
20344         (categories): New variable.
20345         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20346         test_locale_name_default): Add test w.r.t. thread locale.
20347         (test_locale_name_thread): New function.
20348         (main): Invoke it.
20349
20350         localename: Make aware of thread locale.
20351         * lib/localename.h (gl_locale_name_thread): New declaration.
20352         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20353         behaviour with respect to thread locale.
20354         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20355         <langinfo.h>, glthread/lock.h.
20356         (SIZE_BITS): New macro.
20357         (string_hash): New function.
20358         (struct hash_node): New type.
20359         (HASH_TABLE_SIZE): New macro.
20360         (struniq_hash_table, struniq_lock): New variables.
20361         (struniq): New function.
20362         (gl_locale_name_thread): New function.
20363         (gl_locale_name): Invoke it.
20364         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20365         * modules/localename (Depends-on): Add lock.
20366         Reported by Mike Gran <spk121@yahoo.com>.
20367
20368 2009-12-23  Eric Blake  <ebb9@byu.net>
20369
20370         va-args: new module
20371         * modules/va-args: New file.
20372         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20373         * MODULES.html.sh (Core language properties): Mention it.
20374
20375         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20376         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20377         named alias for __attribute__((__unused__)).
20378         * lib/chown.c: Update client.
20379         * lib/fchmodat.c: Likewise.
20380         * lib/fts.c: Likewise.
20381         * lib/getdate.y: Likewise.
20382         * lib/getgroups.c: Likewise.
20383         * lib/getopt.c: Likewise.
20384         * lib/getugroups.c: Likewise.
20385         * lib/mkdir.c: Likewise.
20386         * lib/mkfifo.c: Likewise.
20387         * lib/mkfifoat.c: Likewise.
20388         * lib/mknod.c: Likewise.
20389         * lib/mknodat.c: Likewise.
20390         * lib/readlink.c: Likewise.
20391         * lib/se-context.in.h: Likewise.
20392         * lib/se-selinux.in.h: Likewise.
20393         * lib/sockets.c: Likewise.
20394         * lib/symlink.c: Likewise.
20395         * lib/symlinkat.c: Likewise.
20396         * lib/unicodeio.c: Likewise.
20397         * lib/unistr.h: Likewise.
20398         * tests/test-areadlink.c: Likewise.
20399         * tests/test-areadlinkat.c: Likewise.
20400         * tests/test-filenamecat.c: Likewise.
20401         * tests/test-fseeko.c: Likewise.
20402         * tests/test-ftello.c: Likewise.
20403         * tests/test-getdate.c: Likewise.
20404         * tests/test-getgroups.c: Likewise.
20405         * tests/test-gethostname.c: Likewise.
20406         * tests/test-quotearg.c: Likewise.
20407         * tests/test-version-etc.c: Likewise.
20408         * tests/test-xalloc-die.c: Likewise.
20409         * tests/test-xfprintf-posix.c: Likewise.
20410         * tests/test-xprintf-posix.c: Likewise.
20411         * tests/test-xvasprintf.c: Likewise.
20412
20413         tests: avoid compiler warnings
20414         * tests/test-fcntl.c (main): Delete unused parameters.
20415         * tests/test-freopen-safer.c (main): Likewise.
20416         * tests/test-xalloc-die.c (main): Mark unused parameters.
20417         * tests/test-fseeko.c (main): Likewise.
20418         * tests/test-ftello.c (main): Likewise.
20419         * tests/test-nanosleep.c (main): Avoid declaration warning.
20420         * tests/test-sleep.c (main): Likewise.
20421         * tests/test-unsetenv.c (main): Silence warning about string
20422         literal.
20423         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20424
20425 2009-12-23  Bruno Haible  <bruno@clisp.org>
20426
20427         * tests/test-localename.c (test_locale_name): New function, extracted
20428         from main. Also test mixed situations.
20429         (test_locale_name_posix, test_locale_name_environ,
20430         test_locale_name_default): New functions.
20431         (main): Invoke them all.
20432         * modules/localename-tests (configure.ac): Test for newlocale.
20433
20434 2009-12-23  Bruno Haible  <bruno@clisp.org>
20435
20436         unistd: Ensure getcwd gets declared before being overridden.
20437         * lib/unistd.in.h: Conditionally include <io.h>.
20438
20439 2009-12-22  Bruno Haible  <bruno@clisp.org>
20440
20441         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20442         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20443         (gl_WCHAR_H): Invoke it.
20444         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20445         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20446         Reported by Karl Berry <karl@freefriends.org>.
20447
20448 2009-12-22  Eric Blake  <ebb9@byu.net>
20449
20450         math, unistd: avoid redundant includes
20451         * lib/math.in.h (isnan): No need to re-include <math.h>.
20452         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20453
20454         getsubopt: work around cygwin bug
20455         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20456         avoid conflicting with system getsubopt.
20457         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20458         bug.
20459
20460         getopt: synchronize from glibc
20461         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
20462         parameter order.  Adjust all callers.
20463         (_getopt_internal_r, main): Adjust quoting in error messages.
20464         Drop considerations for outdated POSIX 1003.2 error message.
20465         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
20466         callers.
20467         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
20468
20469         test-getopt: test stderr behavior
20470         * modules/getopt-posix-tests (Depends-on): Add dup2.
20471         * tests/test-getopt.c (ASSERT): Avoid stderr.
20472         (main): Move stderr to a temporary file.
20473         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
20474         Instead, add parameter to inform caller if output occurred.
20475         (test_getopt): Adjust all existing tests to expect silence, and
20476         add new tests of leading ":".
20477         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20478         glibc shortcomings with leading "-:" or "+:" in optstring.
20479         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20480         Likewise.
20481         * doc/posix-functions/getopt.texi (getopt): Likewise.
20482
20483         test-getopt: enhance test
20484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
20485         supports optind=0.
20486         * tests/test-getopt.c (OPTIND_MIN): Move...
20487         * tests/test-getopt.h (OPTIND_MIN): ...here.
20488         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
20489         Require that optind=0 works, since modern BSD supports it in
20490         addition to optreset, and since coreutils expects it.
20491         (test_getopt_long_only): New test.
20492         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20493         glibc shortcomings with 'W;', and enforcement of optind=0.
20494         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20495         Likewise.
20496
20497 2009-12-21  Bruno Haible  <bruno@clisp.org>
20498
20499         localename: Improvements for MacOS X and Cygwin.
20500         * lib/localename.h (gl_locale_name_environ): New declaration.
20501         * lib/localename.c (gl_locale_name_environ): New function, extracted from
20502         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
20503         (gl_locale_name_posix): Invoke it.
20504         (gl_locale_name_default): Add comments. Use Windows native API also on
20505         Cygwin.
20506
20507 2009-12-21  Bruno Haible  <bruno@clisp.org>
20508
20509         Update list of Win32 locale ids.
20510         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
20511         (LANG_SAMI): Renamed from LANG_SAAMI.
20512         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
20513         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
20514         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
20515         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
20516         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
20517         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
20518         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
20519         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
20520         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
20521         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
20522         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
20523         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
20524         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
20525         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
20526         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
20527         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
20528         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
20529         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
20530         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
20531         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
20532         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
20533         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
20534         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
20535         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
20536         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
20537         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
20538         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
20539         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
20540         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
20541         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
20542         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
20543         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
20544         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
20545         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
20546         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
20547         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
20548         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
20549         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
20550         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
20551         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
20552         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
20553         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
20554         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
20555         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
20556         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
20557         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
20558         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
20559         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
20560         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
20561         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
20562         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
20563         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
20564         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
20565         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
20566         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
20567         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
20568         Add more languages and countries for Sami, Sorbian. Add more countries
20569         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
20570         for Pashto. Change country for Syriac, Tswana.
20571
20572 2009-12-21  Eric Blake  <ebb9@byu.net>
20573
20574         test-utimens: avoid spurious failure
20575         * tests/test-chown.h (nap): Factor...
20576         * tests/nap.h: ...into new file.
20577         * tests/test-lchown.h (nap): Avoid duplication.
20578         * tests/test-utimens-common.h (nap): Use shared implementation,
20579         necessary on file systems with 1-second resolution.
20580         * modules/chown-tests (Files): Include new file.
20581         * modules/fdutimensat-tests (Files): Likewise.
20582         * modules/futimens-tests (Files): Likewise.
20583         * modules/lchown-tests (Files): Likewise.
20584         * modules/openat-tests (Files): Likewise.
20585         * modules/utimens-tests (Files): Likewise.
20586         * modules/utimensat-tests (Files): Likewise.
20587
20588 2009-12-19  Eric Blake  <ebb9@byu.net>
20589
20590         futimens, utimensat: work around Linux bug
20591         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
20592         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20593         * lib/utimensat.c (rpl_utimensat): Work around it.
20594         * lib/futimens.c (rpl_futimens): Adjust comment.
20595
20596         utimens: work around Linux ctime bug
20597         * lib/utimens.c (detect_ctime_bug): New helper function.
20598         (update_timespec): Differentiate between workaround needed for
20599         this bug vs. what is needed for systems that lack utimensat.
20600         (fdutimens, lutimens): Work around bug.
20601
20602         utimens: check for ctime update
20603         * tests/test-utimens-common.h (check_ctime): Define.
20604         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
20605         * tests/test-futimens.h (test_futimens): Likewise.
20606         * tests/test-lutimens.h (test_lutimens): Likewise.
20607         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20608         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20609
20610 2009-12-19  Bruno Haible  <bruno@clisp.org>
20611
20612         dprintf-posix: Check against memory leak fixed on 2009-12-15.
20613         * tests/test-dprintf-posix2.sh: New file.
20614         * tests/test-dprintf-posix2.c: New file.
20615         * modules/dprintf-posix-tests (Files): Add them.
20616         (configure.ac): Check for getrlimit and setrlimit.
20617         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20618
20619 2009-12-19  Bruno Haible  <bruno@clisp.org>
20620
20621         fprintf-posix: Check against memory leak fixed on 2009-12-15.
20622         * tests/test-fprintf-posix3.sh: New file.
20623         * tests/test-fprintf-posix3.c: New file.
20624         * modules/fprintf-posix-tests (Files): Add them.
20625         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20626
20627 2009-12-19  Eric Blake  <ebb9@byu.net>
20628
20629         dirfd: fix prototype
20630         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
20631         * lib/dirfd.c (dirfd): Likewise.
20632
20633         canonicalize: reduce memory usage
20634         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
20635         allocation to size.
20636         Reported by Solar Designer <solar@openwall.com>.
20637
20638 2009-12-19  Bruno Haible  <bruno@clisp.org>
20639
20640         New module attribute 'Applicability'.
20641         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
20642         * gnulib-tool: New option --extract-applicability.
20643         (func_usage): Document it.
20644         (sed_extract_prog): Recognize it.
20645         (func_get_applicability): New function.
20646         (func_import): Generalize handling of 'link-warning' module.
20647         * modules/link-warning (Applicability): New section.
20648         * modules/arg-nonnull (Applicability): New section.
20649         Repoted by Simon Josefsson <simon@josefsson.org>.
20650
20651 2009-12-19  Bruno Haible  <bruno@clisp.org>
20652
20653         fflush: tweak
20654         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
20655         * lib/fseeko.c (rpl_fseeko): Likewise.
20656
20657 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
20658
20659         * lib/gl_list.h: Fix typo in comment.
20660
20661 2009-12-16  Eric Blake  <ebb9@byu.net>
20662
20663         fcntl: use to simplify other modules
20664         * modules/cloexec (Depends-on): Add fcntl.
20665         * modules/fchdir (Depends-on): Likewise.
20666         * modules/fd-safer-flag (Depends-on): Likewise.
20667         * modules/unistd-safer (Depends-on): Likewise.
20668         * modules/dup3 (configure.ac): Set module indicator.
20669         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
20670         missing.
20671         * lib/fchdir.c (_gl_register_dup): Fix comment.
20672         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
20673         * lib/dup-safer.c (dup_safer): Likewise.
20674         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
20675         * lib/dup3.c (dup3): Likewise.
20676         * tests/test-fchdir.c (main): Enhance test.
20677         Fixes a dup_cloexec bug reported by Ondřej Vašík.
20678
20679         fcntl: port portions of fcntl to mingw
20680         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
20681         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
20682         replacement for mingw.
20683         * modules/fcntl (Description): Update.
20684         (Depends-on): Add dup2.
20685         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
20686         * modules/fcntl-h (Makefile.am): Substitute it.
20687         * lib/fcntl.in.h (fcntl): Update declaration.
20688         (F_DUPFD, F_GETFD): New macros, when needed.
20689         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20690         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
20691         * tests/test-fcntl.c (check_flags, main): Enhance test for items
20692         we now guarantee.
20693
20694         fcntl: work around cygwin bug in F_DUPFD
20695         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
20696         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
20697         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
20698         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
20699         * doc/posix-functions/fcntl.texi (fcntl): Document it.
20700
20701         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
20702         * modules/fcntl (Files): List new files.
20703         (configure.ac): Run a test.
20704         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
20705         * lib/fcntl.c (rpl_fcntl): Likewise.
20706         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
20707         (gl_FCNTL_H): Always replace fcntl.h.
20708         * modules/fcntl-h (Makefile.am): Substitute witnesses.
20709         * lib/fcntl.in.h (fcntl): Declare replacement.
20710         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
20711         needed, plus a witness.
20712         * doc/posix-functions/fcntl.texi (fcntl): Document this.
20713         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20714         * tests/test-fcntl.c: New file.
20715         * modules/fcntl-tests: Likewise.
20716
20717         binary-io: avoid potential compilation warning
20718         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
20719         directives.
20720
20721         fflush: avoid compilation error on NetBSD
20722         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
20723         between off_t and fpos_t, since the latter is sometimes a struct.
20724         * lib/fseeko.c (rpl_fseeko): Likewise.
20725         Reported by Alexander Nasonov <alnsn@yandex.ru>.
20726
20727 2009-12-15  Eric Blake  <ebb9@byu.net>
20728
20729         fcntl-h, stdio, sys_ioctl: fix declarations
20730         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
20731         function must not take arguments.
20732         * lib/sys_ioctl.in.h (ioctl): Likewise.
20733         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
20734         (open): Add a link warning.
20735
20736 2009-12-15  Jim Meyering  <meyering@redhat.com>
20737
20738         areadlink, areadlink-with-size: relax license to LGPLv2+
20739         * modules/areadlink (License): Relax to LGPLv2+.
20740         * modules/areadlink-with-size (License): Likewise.
20741
20742 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
20743             Bruno Haible  <bruno@clisp.org>
20744
20745         *printf: Fix memory leak.
20746         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
20747         * lib/vfprintf.c (vfprintf): Likewise.
20748         * lib/dprintf.c (dprintf): Likewise.
20749         * lib/vdprintf.c (vdprintf): Likewise.
20750
20751 2009-12-14  Eric Blake  <ebb9@byu.net>
20752
20753         accept4: adjust module dependencies
20754         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
20755
20756         utimens: one more try at avoiding compiler warning
20757         * lib/utimens.c (lutimens): Lower scope of result.
20758
20759 2009-12-13  Bruno Haible  <bruno@clisp.org>
20760
20761         Move the malloc checking from module 'list' to new module 'xlist'.
20762         * modules/xlist: New file.
20763         * lib/gl_xlist.h: New file.
20764         * lib/gl_xlist.c: New file.
20765         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
20766         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
20767         gl_list_add_last, gl_list_add_before, gl_list_add_after,
20768         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
20769         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
20770         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
20771         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
20772         gl_sortedlist_nx_add): New declarations.
20773         (struct gl_list_implementation): Rename and change methods accordingly.
20774         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
20775         (gl_list_nx_create): Renamed from gl_list_create.
20776         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20777         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20778         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20779         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20780         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20781         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20782         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20783         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20784         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
20785         gl_list_create_empty.
20786         (gl_list_nx_create): Renamed from gl_list_create.
20787         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20788         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20789         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20790         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20791         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20792         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20793         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20794         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20795         * lib/gl_array_list.c: Don't include xalloc.h.
20796         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20797         NULL upon out-of-memory.
20798         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20799         out-of-memory.
20800         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20801         Change return type to 'int'.
20802         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20803         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20804         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20805         upon out-of-memory.
20806         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20807         upon out-of-memory.
20808         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20809         upon out-of-memory.
20810         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20811         upon out-of-memory.
20812         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20813         out-of-memory.
20814         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20815         Update.
20816         (gl_array_list_implementation): Update.
20817         * lib/gl_carray_list.c: Don't include xalloc.h.
20818         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20819         Return NULL upon out-of-memory.
20820         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20821         out-of-memory.
20822         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20823         Change return type to 'int'.
20824         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20825         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20826         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20827         upon out-of-memory.
20828         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20829         upon out-of-memory.
20830         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20831         out-of-memory.
20832         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20833         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20834         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20835         Update.
20836         (gl_carray_list_implementation): Update.
20837         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20838         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20839         gl_linked_create_empty. Return NULL upon out-of-memory.
20840         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20841         out-of-memory.
20842         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20843         Change return type to 'int'. Return -1 upon out-of-memory.
20844         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20845         out-of-memory.
20846         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20847         upon out-of-memory.
20848         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20849         upon out-of-memory.
20850         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20851         NULL upon out-of-memory.
20852         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20853         upon out-of-memory.
20854         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20855         out-of-memory.
20856         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20857         Update.
20858         * lib/gl_linked_list.c: Don't include xalloc.h.
20859         (gl_linked_list_implementation): Update.
20860         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20861         (add_to_bucket): Change return type to 'int'.
20862         (gl_linkedhash_list_implementation): Update.
20863         * lib/gl_anytree_list1.h (free_subtree): New function.
20864         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20865         gl_tree_create_empty. Return NULL upon out-of-memory.
20866         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20867         Change return type to 'int'. Return -1 upon out-of-memory.
20868         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20869         out-of-memory.
20870         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20871         (gl_tree_remove_node): New function, moved here from
20872         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20873         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20874         Update.
20875         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20876         malloc, not xmalloc. Return NULL upon out-of-memory.
20877         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20878         out-of-memory.
20879         (gl_tree_remove_node_from_tree): New function, extracted from
20880         gl_tree_remove_node.
20881         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20882         upon out-of-memory.
20883         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20884         out-of-memory.
20885         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20886         upon out-of-memory.
20887         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20888         upon out-of-memory.
20889         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20890         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20891         not xmalloc. Return NULL upon out-of-memory.
20892         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20893         out-of-memory.
20894         (gl_tree_remove_node_from_tree): New function, extracted from
20895         gl_tree_remove_node.
20896         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20897         upon out-of-memory.
20898         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20899         out-of-memory.
20900         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20901         upon out-of-memory.
20902         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20903         upon out-of-memory.
20904         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20905         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20906         gl_anytree_list1.h before gl_anyavltree_list2.h.
20907         (gl_avltree_list_implementation): Update.
20908         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20909         gl_anytree_list1.h before gl_anyavltree_list2.h.
20910         (gl_rbtree_list_implementation): Update.
20911         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20912         Change return type to 'int'. Return -1 upon out-of-memory. Use
20913         __builtin_expect.
20914         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20915         (gl_avltreehash_list_implementation): Update.
20916         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20917         (gl_rbtreehash_list_implementation): Update.
20918         * modules/array-list (Depends-on): Remove xalloc.
20919         * modules/carray-list (Depends-on): Likewise.
20920         * modules/linked-list (Depends-on): Likewise.
20921         * modules/linkedhash-list (Depends-on): Likewise.
20922         * modules/avltree-list (Depends-on): Likewise.
20923         * modules/rbtree-list (Depends-on): Likewise.
20924         * modules/avltreehash-list (Depends-on): Likewise.
20925         * modules/rbtreehash-list (Depends-on): Likewise.
20926
20927         * modules/xsublist: New file.
20928         * lib/gl_xsublist.h: New file.
20929         * lib/gl_xsublist.c: New file.
20930         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20931         (gl_sublist_nx_create): New declaration.
20932         * lib/gl_sublist.c: Don't include xalloc.h.
20933         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20934         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20935         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20936         Change return type to 'int'. Return -1 upon out-of-memory.
20937         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20938         upon out-of-memory.
20939         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20940         NULL upon out-of-memory.
20941         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20942         upon out-of-memory.
20943         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20944         NULL upon out-of-memory.
20945         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20946         NULL upon out-of-memory.
20947         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20948         upon out-of-memory.
20949         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20950         (gl_sublist_list_implementation): Update.
20951         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20952         upon out-of-memory.
20953         * modules/sublist (Depends-on): Remove xalloc.
20954
20955         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20956         * tests/test-carray_list.c: Likewise.
20957         * tests/test-linked_list.c: Likewise.
20958         * tests/test-linkedhash_list.c: Likewise.
20959         * tests/test-avltree_list.c: Likewise.
20960         * tests/test-rbtree_list.c: Likewise.
20961         * tests/test-avltreehash_list.c: Likewise.
20962         * tests/test-rbtreehash_list.c: Likewise.
20963         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20964         * modules/carray-list-tests (Makefile.am): Likewise.
20965         * modules/linked-list-tests (Makefile.am): Likewise.
20966         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20967         * modules/avltree-list-tests (Makefile.am): Likewise.
20968         * modules/rbtree-list-tests (Makefile.am): Likewise.
20969         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20970         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20971
20972         * NEWS: Mention the changes.
20973
20974         * lib/clean-temp.c: Include gl_xlist.h.
20975         * modules/clean-temp (Depends-on): Add xlist.
20976
20977         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20978         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20979
20980         * tests/test-array_oset.c: Include gl_xlist.h.
20981         * modules/array-oset-tests (Depends-on): Add xlist.
20982
20983         Reported by José E. Marchesi <jemarch@gnu.org>.
20984
20985 2009-12-13  Bruno Haible  <bruno@clisp.org>
20986
20987         Move the malloc checking from module 'oset' to new module 'xoset'.
20988         * modules/xoset: New file.
20989         * lib/gl_xoset.h: New file.
20990         * lib/gl_xoset.c: New file.
20991         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20992         declarations.
20993         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20994         (struct gl_oset_implementation): Rename and change methods accordingly.
20995         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20996         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20997         'int'. Mark as __warn_unused_result__.
20998         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20999         gl_oset_create_empty.
21000         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21001         'int'.
21002         * lib/gl_array_oset.c: Don't include xalloc.h.
21003         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21004         malloc, not xmalloc.
21005         (grow): Change return type to 'int'. Don't call xalloc_die.
21006         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21007         to 'int'.
21008         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21009         'int'.
21010         (gl_array_oset_implementation): Update.
21011         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21012         gl_tree_create_empty.
21013         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21014         'int'.
21015         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21016         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21017         xmalloc.
21018         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21019         not xmalloc.
21020         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21021         xmalloc.
21022         (gl_avltree_oset_implementation): Update.
21023         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21024         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21025         xmalloc.
21026         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21027         not xmalloc.
21028         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21029         xmalloc.
21030         (gl_rbtree_oset_implementation): Update.
21031         * modules/array-oset (Depends-on): Remove xalloc.
21032         * modules/avltree-oset (Depends-on): Likewise.
21033         * modules/rbtree-oset (Depends-on): Likewise.
21034         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21035         * tests/test-avltree_oset.c: Likewise.
21036         * tests/test-rbtree_oset.c: Likewise.
21037         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21038         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21039         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21040         * NEWS: Mention the change.
21041
21042 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21043
21044         maint.mk: allow a project to override release-prep commands
21045         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21046         commands into a new rule.
21047         (release-prep): New rule.
21048         (release-prep-hook): New overridable variable.
21049
21050 2009-12-13  Bruno Haible  <bruno@clisp.org>
21051
21052         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21053
21054 2009-12-13  Jim Meyering  <meyering@redhat.com>
21055
21056         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21057         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21058
21059 2009-12-12  Bruno Haible  <bruno@clisp.org>
21060
21061         duplocale: Tweak.
21062         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21063
21064 2009-12-12  Karl Berry  <karl@gnu.org>
21065
21066         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21067
21068 2009-12-12  Bruno Haible  <bruno@clisp.org>
21069
21070         * m4/po.m4: Undo incorrect untabification.
21071
21072 2009-12-12  Bruno Haible  <bruno@clisp.org>
21073
21074         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21075         * modules/c-strtod (Depends-on): Add locale.
21076         * modules/c-strtold (Depends-on): Likewise.
21077
21078 2009-12-12  Bruno Haible  <bruno@clisp.org>
21079
21080         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21081
21082 2009-12-11  Eric Blake  <ebb9@byu.net>
21083
21084         setenv: relax requirement in light of POSIX ruling
21085         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21086         not NULL.
21087         * tests/test-setenv.c (main): Relax test.
21088         * tests/test-unsetenv.c (main): Likewise.
21089         * doc/posix-functions/setenv.texi (setenv): Document this.
21090         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21091
21092 2009-12-11  Bruno Haible  <bruno@clisp.org>
21093
21094         New module 'fd-safer-flag'.
21095         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21096         * lib/dup-safer.c (dup_safer_flag): Remove function.
21097         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21098         * lib/fd-safer.c (fd_safer_flag): Remove function.
21099         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21100         * modules/cloexec (configure.ac): Drop indicator macro.
21101         * modules/fd-safer-flag: New file.
21102         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21103         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21104         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21105
21106 2009-12-11  Bruno Haible  <bruno@clisp.org>
21107
21108         Tests for module 'nl_langinfo'.
21109         * modules/nl_langinfo-tests: New file.
21110         * tests/test-nl_langinfo.sh: New file.
21111         * tests/test-nl_langinfo.c: New file.
21112
21113         New module 'nl_langinfo'.
21114         * lib/nl_langinfo.c: New file.
21115         * m4/nl_langinfo.m4: New file.
21116         * modules/nl_langinfo: New file.
21117         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21118
21119 2009-12-11  Bruno Haible  <bruno@clisp.org>
21120
21121         Tests for module 'langinfo'.
21122         * modules/langinfo-tests: New file.
21123         * tests/test-langinfo.c: New file.
21124
21125         New module 'langinfo'.
21126         * lib/langinfo.in.h: New file.
21127         * m4/langinfo_h.m4: New file.
21128         * modules/langinfo: New file.
21129         * doc/posix-headers/langinfo.texi: Mention the new module.
21130
21131 2009-12-11  Bruno Haible  <bruno@clisp.org>
21132
21133         * lib/config.charset: Untabify.
21134
21135 2009-12-11  Bruno Haible  <bruno@clisp.org>
21136
21137         * modules/unistd-safer (configure.ac): Drop indicator macro.
21138
21139 2009-12-11  Bruno Haible  <bruno@clisp.org>
21140
21141         Move pipe2-safer code to its own file.
21142         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21143         * lib/pipe-safer.c (pipe2_safer): Remove function.
21144         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21145         (Makefile.am): Add it to lib_SOURCES.
21146
21147 2009-12-10  Bruno Haible  <bruno@clisp.org>
21148
21149         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21150
21151 2009-12-10  Bruno Haible  <bruno@clisp.org>
21152
21153         Declare which arguments expect non-NULL values, for GCC and clang.
21154         * build-aux/arg-nonnull.h: New file.
21155         * modules/arg-nonnull: New file.
21156         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21157         (inet_ntop, inet_pton): Use it.
21158         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21159         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21160         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21161         (open, openat): Use it.
21162         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21163         (fnmatch): Use it.
21164         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21165         (getopt, getopt_long, getopt_long_only): Use it.
21166         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21167         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21168         Use it.
21169         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21170         (iconv_open): Use it.
21171         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21172         (strtoimax, strtoumax): Use it.
21173         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21174         (duplocale): Use it.
21175         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21176         (frexp, frexpl): Use it.
21177         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21178         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21179         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21180         (tsearch, tfind, tdelete, twalk): Use it.
21181         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21182         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21183         sigpending): Use it.
21184         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21185         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21186         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21187         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21188         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21189         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21190         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21191         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21192         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21193         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21194         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21195         Use it.
21196         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21197         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21198         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21199         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21200         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21201         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21202         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21203         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21204         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21205         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21206         strtoull, unsetenv): Use it.
21207         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21208         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21209         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21210         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21211         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21212         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21213         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21214         (strcasecmp, strncasecmp): Use it.
21215         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21216         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21217         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21218         rpl_setsockopt): Use it.
21219         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21220         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21221         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21222         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21223         (gettimeofday): Use it.
21224         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21225         (times): Use it.
21226         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21227         (uname): Use it.
21228         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21229         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21230         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21231         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21232         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21233         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21234         unlinkat, write): Use it.
21235         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21236         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21237         * lib/argv-iter.h: Include arg-nonnull.h.
21238         (_ATTRIBUTE_NONNULL_): Remove macro.
21239         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21240         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21241         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21242         optimization.
21243         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21244         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21245         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21246         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21247         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21248         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21249         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21250         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21251         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21252         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21253         * modules/dirent (Depends-on): Add arg-nonnull.
21254         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21255         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21256         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21257         * modules/fnmatch (Depends-on): Add arg-nonnull.
21258         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21259         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21260         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21261         * modules/glob (Depends-on): Add arg-nonnull.
21262         (Makefile.am): Insert arg-nonnull.h into glob.h.
21263         * modules/iconv_open (Depends-on): Add arg-nonnull.
21264         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21265         * modules/inttypes (Depends-on): Add arg-nonnull.
21266         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21267         * modules/locale (Depends-on): Add arg-nonnull.
21268         (Makefile.am): Insert arg-nonnull.h into locale.h.
21269         * modules/math (Depends-on): Add arg-nonnull.
21270         (Makefile.am): Insert arg-nonnull.h into math.h.
21271         * modules/netdb (Depends-on): Add arg-nonnull.
21272         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21273         * modules/search (Depends-on): Add arg-nonnull.
21274         (Makefile.am): Insert arg-nonnull.h into search.h.
21275         * modules/signal (Depends-on): Add arg-nonnull.
21276         (Makefile.am): Insert arg-nonnull.h into signal.h.
21277         * modules/spawn (Depends-on): Add arg-nonnull.
21278         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21279         * modules/stdio (Depends-on): Add arg-nonnull.
21280         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21281         * modules/stdlib (Depends-on): Add arg-nonnull.
21282         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21283         * modules/string (Depends-on): Add arg-nonnull.
21284         (Makefile.am): Insert arg-nonnull.h into string.h.
21285         * modules/strings (Depends-on): Add arg-nonnull.
21286         (Makefile.am): Insert arg-nonnull.h into strings.h.
21287         * modules/sys_socket (Depends-on): Add arg-nonnull.
21288         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21289         * modules/sys_stat (Depends-on): Add arg-nonnull.
21290         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21291         * modules/sys_time (Depends-on): Add arg-nonnull.
21292         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21293         * modules/sys_times (Depends-on): Add arg-nonnull.
21294         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21295         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21296         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21297         * modules/time (Depends-on): Add arg-nonnull.
21298         (Makefile.am): Insert arg-nonnull.h into time.h.
21299         * modules/unistd (Depends-on): Add arg-nonnull.
21300         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21301         * modules/wchar (Depends-on): Add arg-nonnull.
21302         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21303         * modules/argv-iter (Depends-on): Add arg-nonnull.
21304         * tests/test-canonicalize.c (null_ptr): New function.
21305         (main): Use it.
21306         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21307         (main): Use it.
21308         * tests/test-memmem.c (null_ptr): New function.
21309         (main): Use it.
21310         Reported by Jim Meyering.
21311
21312 2009-12-10  Bruno Haible  <bruno@clisp.org>
21313
21314         Use spaces for indentation, not tabs.
21315         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21316         * m4/*.m4: Untabify.
21317         * build-aux/*.h: Untabify.
21318         * tests/**/*.[hc]: Untabify.
21319         * README: New section "Indent with spaces, not TABs", based on
21320         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21321         * NEWS: Mention the change.
21322
21323 2009-12-10  Bruno Haible  <bruno@clisp.org>
21324
21325         pty test: Fix link error.
21326         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21327         test_pty_LDADD.
21328
21329 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21330
21331         * modules/pty: New file.
21332         * modules/pty-tests: New file.
21333         * m4/pty.m4: New file.
21334         * tests/test-pty.c: New file.
21335         * doc/glibc-headers/pty.texi: Modified.
21336         * doc/glibc-functions/forkpty.texi: Modified.
21337         * doc/glibc-functions/openpty.texi: Modified.
21338
21339 2009-12-10  Bruno Haible  <bruno@clisp.org>
21340
21341         Avoid syntax error in C++ mode.
21342         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21343
21344 2009-12-10  Bruno Haible  <bruno@clisp.org>
21345
21346         Use sed with option -e.
21347         * gnulib-tool (func_version, func_emit_copyright_notice,
21348         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21349         option -e to sed.
21350         * modules/link-warning (Makefile.am): Likewise.
21351
21352 2009-12-10  Jim Meyering  <meyering@redhat.com>
21353
21354         mgetgroups: do not write bytes beyond end of malloc'd buffer
21355         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21356         username, we call getgroups with a one-element-shorter buffer,
21357         but still told it the length was original, max_n_groups.
21358
21359 2009-12-09  Eric Blake  <ebb9@byu.net>
21360
21361         cloexec: relax license
21362         * modules/cloexec (Maintainer): Add myself.
21363         (License): Use LGPL, not GPL.
21364
21365         link-warning: optimize generation
21366         * modules/link-warning (Makefile.am): Reduce process usage.
21367
21368 2009-12-09  Bruno Haible  <bruno@clisp.org>
21369
21370         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21371         workaround was added on 2009-11-17.
21372
21373 2009-12-09  Jim Meyering  <meyering@redhat.com>
21374             Bruno Haible  <bruno@clisp.org>
21375
21376         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21377         * modules/link-warning (Makefile.am): Make the comment-removing sed
21378         command more robust in the face of bootstrap-prepended comment lines.
21379
21380 2009-12-09  Bruno Haible  <bruno@clisp.org>
21381
21382         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21383         most one group.
21384
21385 2009-12-09  Simon Josefsson <simon@josefsson.org>
21386             Bruno Haible  <bruno@clisp.org>
21387
21388         * build-aux/link-warning.h: Add copyright notice.
21389         * modules/link-warning (Makefile.am): Generate link-warning.h from
21390         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21391         * NEWS: Mention change in link-warning module.
21392         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21393         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21394         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21395         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21396         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21397         * modules/math (Makefile.am): Add dependency to math.h.
21398         * modules/search (Makefile.am): Add dependency to search.h.
21399         * modules/signal (Makefile.am): Add dependency to signal.h.
21400         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21401         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21402         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21403         * modules/string (Makefile.am): Add dependency to string.h.
21404         * modules/strings (Makefile.am): Add dependency to strings.h.
21405         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21406         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21407         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21408         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21409         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21410         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21411         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21412         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21413         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21414
21415 2009-12-09  Bruno Haible  <bruno@clisp.org>
21416
21417         fchdir: Optimize away rpl_fstat when possible.
21418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21419         REPLACE_OPEN_DIRECTORY.
21420         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21421
21422 2009-12-09  Bruno Haible  <bruno@clisp.org>
21423
21424         * lib/fchdir.c: Update comment.
21425
21426 2009-12-09  Bruno Haible  <bruno@clisp.org>
21427
21428         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21429
21430 2009-12-08  Eric Blake  <ebb9@byu.net>
21431
21432         fchdir: avoid memory leak on re-registration.
21433         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21434
21435 2009-12-08  Jim Meyering  <meyering@redhat.com>
21436
21437         init.sh: avoid Solaris 10 /bin/sh portability problem
21438         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21439         sourced script:
21440           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21441           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21442           bar
21443         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21444         and two tests used that idiom.
21445         * tests/init.sh: Update suggested usage comments.
21446         (path_prepend_): New function, to be used in place
21447         of the --src-path=DIR option.
21448         (setup_): Move PATH-prepending code into path_prepend_.
21449         * tests/test-pread.sh: Adapt to new usage.
21450         * tests/test-xalloc-die.sh: Likewise.
21451
21452 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21453
21454         * doc/gnulib.texi (Glibc pty.h): Add.
21455         * doc/glibc-functions/forkpty.texi: Add.
21456         * doc/glibc-functions/openpty.texi: Add.
21457         Suggested by Bruno Haible.
21458
21459 2009-12-08  Eric Blake  <ebb9@byu.net>
21460
21461         fchdir: fix logic bugs
21462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
21463         * tests/test-fchdir.c (main): Enhance test.
21464         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
21465         is in use.
21466
21467         dup2: fix logic bugs
21468         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
21469         REPLACE_DUP2 to decide when rpl_dup2 is needed.
21470         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
21471         exists.
21472         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
21473
21474 2009-12-07  Eric Blake  <ebb9@byu.net>
21475
21476         unlink: fix m4 detection
21477         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
21478
21479         unistd-safer: add unit test
21480         * modules/unistd-safer-tests: New file.
21481         * tests/test-dup-safer.c: Likewise.
21482         * tests/test-cloexec.c (setmode): Avoid compiler warning.
21483         * tests/test-dup2.c (setmode): Likewise.
21484         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
21485
21486         cloexec: preserve text vs. binary across dup_cloexec
21487         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
21488         mode.
21489         * modules/dup2-tests (Depends-on): Add binary-io.
21490         * modules/cloexec-tests (Depends-on): Likewise.
21491         * tests/test-dup2.c (setmode, is_mode): New helpers.
21492         (main): Add tests that translation mode is preserved.
21493         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
21494         Reported by Bruno Haible.
21495
21496         mgetgroups: reduce duplicate listings
21497         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
21498         resulting array.
21499         * tests/test-chown.h (test_chown): Simplify client.
21500         * tests/test-lchown.h (test_lchown): Likewise.
21501
21502 2009-12-06  Bruno Haible  <bruno@clisp.org>
21503
21504         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
21505         value.
21506
21507 2009-12-06  Bruno Haible  <bruno@clisp.org>
21508
21509         * lib/progname.c: Include stdio.h, stdlib.h.
21510         (set_program_name): Reject a NULL argument.
21511
21512 2009-12-05  Eric Blake  <ebb9@byu.net>
21513
21514         pipe2-safer: new module
21515         * modules/pipe2-safer: New file.
21516         * lib/unistd-safer.h (pipe2_safer): New prototype.
21517         * lib/unistd--.h (pipe2): New wrapper.
21518         * lib/pipe-safer.c (pipe2_safer): New function.
21519         * modules/pipe (Depends-on): Add pipe2-safer.
21520         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
21521
21522         stdlib-safer: preserve cloexec flag for mkostemp[s]
21523         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
21524         fd_safer_flag.
21525
21526         unistd-safer: allow preservation of cloexec status via flag
21527         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
21528         prototypes.
21529         * lib/dup-safer.c (dup_safer_flag): New function.
21530         * lib/fd-safer.c (fd_safer_flag): Likewise.
21531         * modules/cloexec (configure.ac): Set witness.
21532
21533         test-dup2: enhance test
21534         * modules/dup2-tests (Depends-on): Add cloexec.
21535         * tests/test-dup2.c (main): Enhance test.
21536
21537         cloexec: add dup_cloexec
21538         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
21539         header and comments.
21540         * lib/cloexec.c (set_cloexec_flag): Add comments.
21541         (dup_cloexec): New function, with mingw implementation borrowed
21542         from...
21543         * lib/w32spawn.h (dup_noinherit): ...here.
21544         * modules/execute (Depends-on): Add cloexec.
21545         * modules/pipe (Depends-on): Likewise.
21546         * modules/cloexec (Depends-on): Add dup2.
21547         * modules/cloexec-tests (Files): New file.
21548         * tests/test-cloexec.c: Likewise.
21549
21550         test-xalloc-die: fix test for mingw
21551         * modules/xalloc-die-tests (Files): Add tests/init.sh.
21552         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
21553         directory and .exe suffix off argv[0] output.
21554
21555         test-fseeko: fix test for mingw
21556         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
21557         than undefining fseek, so test will pass on mingw.
21558
21559 2009-12-05  Bruno Haible  <bruno@clisp.org>
21560
21561         * lib/progname.h (set_program_name): Clarify specification.
21562         * lib/progname.c (set_program_name): Likewise.
21563         Reported by Jim Meyering.
21564
21565 2009-12-05  Jim Meyering  <meyering@redhat.com>
21566
21567         maint.mk: backslash-escape parens in default regexp
21568         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
21569         backslash-escape the literal parentheses.
21570
21571         maint.mk: news-date-check: use grep -E
21572         * top/maint.mk (today): Define a Make variable, not a...
21573         (news-date-check): ...shell variable.
21574         (news-date-regexp): Use the Make variable.
21575         Use grep's -E option.  Change the failing diagnostic to mention
21576         the variable, $(news-date-regexp).
21577
21578 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
21579
21580         maintainer-makefile: allow customization of NEWS entry format
21581         * top/maint.mk (news-date-regexp): New overridable variable.
21582         (news-date-check): Use it.
21583
21584 2009-12-04  Eric Blake  <ebb9@byu.net>
21585
21586         mgetgroups: add xgetgroups, and avoid ENOSYS failures
21587         * lib/mgetgroups.h (xgetgroups): New prototype.
21588         * lib/mgetgroups.c (xgetgroups): New wrapper.
21589         (mgetgroups): Handle ENOSYS.
21590         * modules/mgetgroups (Depends-on): Add realloc.
21591         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
21592
21593         mgetgroups: avoid argument promotion issues with -1
21594         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
21595         for invalid gid_t.
21596         * tests/test-chown.h (getegid, test_chown): Likewise.
21597         * tests/test-lchown.h (getegid, test_lchown): Likewise.
21598
21599 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
21600
21601         exclude: Fix header file problems.
21602         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
21603
21604 2009-12-01  Jim Meyering  <meyering@redhat.com>
21605
21606         fts: fts_open: do not let an empty string cause immediate failure
21607         This is required in support of GNU rm, for which the command
21608         "rm A '' B" must process and remove both A and B, in spite of
21609         the empty string argument.
21610         * lib/fts.c (fts_open): Do not let the presence of an empty string
21611         cause fts_open to fail immediately.  Most fts-using tools must be
21612         able to process all arguments, in order, and can be expected to
21613         diagnose such arguments themselves.
21614
21615 2009-11-30  Eric Blake  <ebb9@byu.net>
21616
21617         utimens: fix compilation error
21618         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
21619         Declare variable at right scope.
21620
21621 2009-11-29  Jim Meyering  <meyering@redhat.com>
21622
21623         bootstrap: handle perl-5.11's changed --version output
21624         * build-aux/bootstrap (get_version): Handle perl separately,
21625         since perl-5.11's --version output is different.
21626
21627 2009-11-28  Jim Meyering  <meyering@redhat.com>
21628
21629         userspec: depend on the inttostr module, too
21630         * modules/userspec (Depends-on): Add inttostr.
21631
21632         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
21633         * lib/userspec.c (parse_with_separator): Do not accept a user ID
21634         number of MAXUID when it evaluates to (uid_t) -1.
21635         Likewise for group ID.  Reported by Matt McCutchen in
21636         <http://savannah.gnu.org/bugs/?28113>
21637
21638         userspec: reformat to use spaces, not TABs
21639         * lib/userspec.c: Expand TABs to spaces.
21640         Add Emacs' "indent-tabs-mode: nil" hint.
21641
21642 2009-11-27  Eric Blake  <ebb9@byu.net>
21643
21644         getopt-gnu: flush out another BSD bug
21645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
21646         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
21647         flush out BSD bug.
21648         * tests/test-getopt.h (test_getopt): End lists with NULL.
21649         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21650         (test_getopt_long_posix): Enhance test.
21651         * modules/getopt-posix-tests (Depends-on): Add stdbool.
21652         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
21653         getopt-gnu.
21654         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21655         Likewise.
21656
21657 2009-11-27  Simon Josefsson  <simon@josefsson.org>
21658
21659         * modules/idpriv-droptemp-tests (Notice): Fix text.
21660
21661 2009-11-27  Jim Meyering  <meyering@redhat.com>
21662
21663         test-xalloc-die: avoid spurious failure due to libtool argv difference
21664         In a libtool-enabled project, this test would fail due to a difference
21665         in the emitted program name, e.g.,
21666         -test-xalloc-die: memory exhausted
21667         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
21668         Use program to avoid that.
21669         * modules/xalloc-die-tests (Depends-on): Add progname.
21670         * tests/test-xalloc-die.c: Include progname.h".
21671         (program_name): Remove decl.
21672         (main): Call set_program_name.
21673         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
21674
21675 2009-11-26  Richard Jones  <rjones@redhat.com>
21676
21677         w32sock: leave win32 error in place.
21678         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
21679
21680 2009-11-26  Eric Blake  <ebb9@byu.net>
21681
21682         init.sh: suggest to use skip_ and fail_ functions in comments
21683         * tests/init.sh: Add a sentence.
21684
21685 2009-11-25  Bruno Haible  <bruno@clisp.org>
21686
21687         init.sh: add documentation in comments
21688         * tests/init.sh: Add some developer and user documentation.
21689
21690 2009-11-26  Jim Meyering  <meyering@redhat.com>
21691
21692         init.sh: accommodate even those who specify bogus srcdir manually
21693         * tests/init.sh: Normally, srcdir is guaranteed by automake and
21694         configure-time tests to be sanitized, so that there is no need to
21695         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
21696         (with no double quotes) suffices.  However, since tests may be
21697         invoked manually, and since you may explicitly set srcdir to the
21698         name of a directory containing spaces, do quote its uses here.
21699         * tests/test-pread.sh: Likewise.
21700         Suggested by Bruno Haible.
21701
21702         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
21703         * tests/test-pread.sh: Write no data into the pipe, because
21704         test-pread actually reads none.  This avoids a diagnostic,
21705         "bash: echo: write error: Broken pipe", that arises in the unusual
21706         event something is ignoring SIGPIPE, and might be interpreted
21707         as some sort of failure.  Reported by Bruno Haible.
21708
21709 2009-11-25  Jim Meyering  <meyering@redhat.com>
21710
21711         test-pread: cover failure with ESPIPE and EINVAL
21712         * tests/test-pread.c (main): Test for failure, too.
21713         * tests/test-pread.sh: Invoke with stdin on a pipe.
21714         Suggested by Eric Blake.
21715
21716         pread: improvement and fix
21717         * modules/pread (Depends-on): Depend on lseek, for portability to
21718         e.g., mingw.  Suggested by Eric Blake.
21719         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
21720
21721         unistd.in.h: correct declaration of pread
21722         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
21723         Reported by Richard W.M. Jones.
21724
21725         test-pread.sh: distribute the test script
21726         * modules/pread-tests (Files): Include test-pread.sh.
21727
21728         test-pread.sh: clean up
21729         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
21730         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
21731         That is unnecessary, since it's always ".".
21732         Suggestion from Eric Blake.
21733
21734         test-pread.sh: make executable
21735         * tests/test-pread.sh: Set executable bit.
21736         Reported by Eric Blake.
21737
21738         correct typo in test-pread.sh
21739         * tests/test-pread.sh: Add #! line.
21740
21741         test pread
21742         * tests/test-pread.c: New file.
21743         * tests/test-pread.sh: Likewise.
21744         * modules/pread-tests: Likewise.
21745
21746         pread: new module
21747         * modules/pread: New file.
21748         * lib/unistd.in.h (pread): Define/declare.
21749         * lib/pread.c (pread): New file.
21750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
21751         * modules/unistd (Makefile.am): Substitute witnesses.
21752         * doc/posix-functions/pread.texi (pread): Update.
21753         * MODULES.html.sh: Add pread.
21754
21755 2009-11-25  Jim Meyering  <meyering@redhat.com>
21756
21757         tests/init.sh: new file to be used via most *.sh tests
21758         * tests/init.sh: New file.
21759
21760 2009-11-25  Eric Blake  <ebb9@byu.net>
21761
21762         utimens: work around older Linux failure with symlinks
21763         * lib/utimens.c (lutimensat_works_really): New variable.
21764         (fdutimens, lutimens): Use it to manage kernels that support
21765         nanosecond times on files, but not on symlinks.
21766         Reported by Ondřej Vašík.
21767
21768         utimes: fix configure grammar
21769         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
21770
21771 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
21772
21773         regex: Fix fastmap for multibyte character ranges.
21774         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
21775         characters when a multibyte character range is included.
21776
21777 2009-11-22  Andy Wingo  <wingo@pobox.com>
21778
21779         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
21780         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
21781
21782 2009-11-24  Bruno Haible  <bruno@clisp.org>
21783
21784         doc: Most *_l functions exist in MacOS X 10.5.
21785         * doc/posix-functions/duplocale.texi: Update platforms list.
21786         * doc/posix-functions/freelocale.texi: Likewise.
21787         * doc/posix-functions/newlocale.texi: Likewise.
21788         * doc/posix-functions/uselocale.texi: Likewise.
21789         * doc/posix-functions/isalnum_l.texi: Likewise.
21790         * doc/posix-functions/isalpha_l.texi: Likewise.
21791         * doc/posix-functions/isblank_l.texi: Likewise.
21792         * doc/posix-functions/iscntrl_l.texi: Likewise.
21793         * doc/posix-functions/isdigit_l.texi: Likewise.
21794         * doc/posix-functions/isgraph_l.texi: Likewise.
21795         * doc/posix-functions/islower_l.texi: Likewise.
21796         * doc/posix-functions/isprint_l.texi: Likewise.
21797         * doc/posix-functions/ispunct_l.texi: Likewise.
21798         * doc/posix-functions/isspace_l.texi: Likewise.
21799         * doc/posix-functions/isupper_l.texi: Likewise.
21800         * doc/posix-functions/iswalnum_l.texi: Likewise.
21801         * doc/posix-functions/iswalpha_l.texi: Likewise.
21802         * doc/posix-functions/iswblank_l.texi: Likewise.
21803         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21804         * doc/posix-functions/iswctype_l.texi: Likewise.
21805         * doc/posix-functions/iswdigit_l.texi: Likewise.
21806         * doc/posix-functions/iswgraph_l.texi: Likewise.
21807         * doc/posix-functions/iswlower_l.texi: Likewise.
21808         * doc/posix-functions/iswprint_l.texi: Likewise.
21809         * doc/posix-functions/iswpunct_l.texi: Likewise.
21810         * doc/posix-functions/iswspace_l.texi: Likewise.
21811         * doc/posix-functions/iswupper_l.texi: Likewise.
21812         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21813         * doc/posix-functions/isxdigit_l.texi: Likewise.
21814         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21815         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21816         * doc/posix-functions/strcoll_l.texi: Likewise.
21817         * doc/posix-functions/strfmon_l.texi: Likewise.
21818         * doc/posix-functions/strftime_l.texi: Likewise.
21819         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21820         * doc/posix-functions/strxfrm_l.texi: Likewise.
21821         * doc/posix-functions/tolower_l.texi: Likewise.
21822         * doc/posix-functions/toupper_l.texi: Likewise.
21823         * doc/posix-functions/towctrans_l.texi: Likewise.
21824         * doc/posix-functions/towlower_l.texi: Likewise.
21825         * doc/posix-functions/towupper_l.texi: Likewise.
21826         * doc/posix-functions/wcscoll_l.texi: Likewise.
21827         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21828         * doc/posix-functions/wctrans_l.texi: Likewise.
21829         * doc/posix-functions/wctype_l.texi: Likewise.
21830         * doc/glibc-functions/strptime_l.texi: Likewise.
21831         * doc/glibc-functions/strtod_l.texi: Likewise.
21832         * doc/glibc-functions/strtof_l.texi: Likewise.
21833         * doc/glibc-functions/strtol_l.texi: Likewise.
21834         * doc/glibc-functions/strtold_l.texi: Likewise.
21835         * doc/glibc-functions/strtoll_l.texi: Likewise.
21836         * doc/glibc-functions/strtoul_l.texi: Likewise.
21837         * doc/glibc-functions/strtoull_l.texi: Likewise.
21838         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21839         * doc/glibc-functions/wcstod_l.texi: Likewise.
21840         * doc/glibc-functions/wcstof_l.texi: Likewise.
21841         * doc/glibc-functions/wcstol_l.texi: Likewise.
21842         * doc/glibc-functions/wcstold_l.texi: Likewise.
21843         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21844         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21845         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21846
21847 2009-11-24  Bruno Haible  <bruno@clisp.org>
21848
21849         duplocale: Fix logic bug.
21850         * lib/duplocale.c: Don't include <langinfo.h>.
21851         (_NL_LOCALE_NAME): Remove macro.
21852         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21853         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21854
21855 2009-11-23  Jim Meyering  <meyering@redhat.com>
21856
21857         test-update-copyright: don't hard-code /usr/bin/perl
21858         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21859         perl to print the current year.  Gilles Espinasse reported that
21860         the replaced use of perl was hard-coded as /usr/bin/perl.
21861
21862 2009-11-23  Bruno Haible  <bruno@clisp.org>
21863
21864         duplocale: Add support for glibc 2.3.x.
21865         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21866
21867 2009-11-22  Bruno Haible  <bruno@clisp.org>
21868
21869         vasnprintf: Tiny optimization.
21870         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21871         MacOS X.
21872
21873 2009-11-22  Bruno Haible  <bruno@clisp.org>
21874
21875         Tests for module 'duplocale'.
21876         * modules/duplocale-tests: New file.
21877         * tests/test-duplocale.c: New file.
21878
21879         New module 'duplocale'.
21880         * m4/duplocale.m4: New file.
21881         * lib/locale.in.h (duplocale): New declaration.
21882         * lib/duplocale.c: New file.
21883         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21884         gl_LOCALE_H_DEFAULTS): New macros.
21885         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21886         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21887         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21888         REPLACE_DUPLOCALE.
21889         * modules/duplocale: New file.
21890         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21891
21892 2009-11-22  Bruno Haible  <bruno@clisp.org>
21893
21894         * modules/locale-tests (configure.ac): Test for newlocale function.
21895         * tests/test-locale.c: When the system has extended locale functions,
21896         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21897
21898         locale: Make locale_t available when possible.
21899         * lib/locale.in.h: Include <xlocale.h> when it exists.
21900         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21901         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21902         * modules/locale (Depends-on): Add extensions.
21903         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21904         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21905
21906 2009-11-22  Bruno Haible  <bruno@clisp.org>
21907
21908         Add comments.
21909         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21910         invocation.
21911         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21912         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21913         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21914
21915 2009-11-22  Bruno Haible  <bruno@clisp.org>
21916
21917         error: account for the possibility of freopen (stdout).
21918         * lib/error.c: Include <unistd.h>.
21919         (flush_stdout): New function, extracted from error and error_at_line.
21920         Determine stdout's fd dynamically.
21921         (error, error_at_line): Invoke flush_stdout.
21922         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21923         * modules/error (Depends-on): Add unistd.
21924
21925 2009-11-22  Bruno Haible  <bruno@clisp.org>
21926
21927         diffseq: Add comment.
21928         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21929
21930 2009-11-22  Jim Meyering  <meyering@redhat.com>
21931
21932         c-stack: avoid defining an unused static function
21933         * lib/c-stack.c (find_stack_direction): Do not define this function
21934         when it will not be used.
21935
21936         diffseq: avoid spurious gcc warnings
21937         * lib/diffseq.h (IF_LINT2): Define.
21938         (compareseq): Use it to initialize two members of "part".
21939         This avoids two used-uninitialized warnings.
21940
21941 2009-11-21  Jim Meyering  <meyering@redhat.com>
21942
21943         c-stack: avoid "ignoring return value of `write'" warning
21944         * lib/c-stack.c: Include "ignore-value.h".
21945         (die): Explicitly ignore each write return value.
21946         * modules/c-stack (Depends-on): Add ignore-value.
21947
21948 2009-11-21  Bruno Haible  <bruno@clisp.org>
21949
21950         diffseq: reduce scope of variable 'best'.
21951         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21952         variable, earlier used for two different purposes.
21953
21954 2009-11-21  Jim Meyering  <meyering@redhat.com>
21955
21956         diffseq: remove useless assignment to "best"
21957         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21958         assignment.  At that point "best" is already guaranteed to be zero.
21959
21960 2009-11-20  Eric Blake  <ebb9@byu.net>
21961
21962         build: mention ftp redirector in release announcements
21963         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21964         values that used to come from cfg.mk; mention FTP redirect URL.
21965         * build-aux/announce-gen: Mention the mirror list.
21966         Suggested by Karl Berry.
21967
21968         nanosleep: improve port to mingw
21969         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21971         LIB_NANOSLEEP, but only when needed.
21972         * modules/select (Link): Document LIBSOCKET.
21973         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21974         enough.
21975
21976         nanosleep: work around cygwin bug
21977         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21978         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21979         bug.
21980         (getnow): Delete, not needed.
21981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21982         LIB_CLOCK_GETTIME.
21983         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21984         clock-time, gettime.
21985         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21986         bug.
21987         * modules/nanosleep-tests: New test.
21988         * tests/test-nanosleep.c: New file.
21989
21990         sleep: work around cygwin bug
21991         * lib/sleep.c (rpl_sleep): Work around the bug.
21992         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21993         (gl_PREREQ_SLEEP): Delete unused macro.
21994         * modules/sleep (Depends-on): Add verify.
21995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21996         * modules/unistd (Makefile.am): Substitute witness.
21997         * lib/unistd.in.h (sleep): Update prototype.
21998         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21999         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22000         * modules/sleep-tests (Depends-on): Check for alarm.
22001
22002 2009-11-20  Jim Meyering  <meyering@redhat.com>
22003
22004         maint.mk: improve sc_prohibit_magic_number_exit
22005         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22006         so it does not match uses like System.exit(1).
22007         Add comments showing how to correct all offenders.
22008
22009 2009-11-19  Eric Blake  <ebb9@byu.net>
22010
22011         xalloc-die-tests: add missing library
22012         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22013
22014         test-xvasprintf: silence compiler warnings
22015         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22016         empty string from gcc.
22017
22018 2009-11-19  Jim Meyering  <meyering@redhat.com>
22019
22020         xfreopen: new module, from coreutils
22021         * modules/xfreopen: New module.
22022         * lib/xfreopen.c: New file.
22023         * lib/xfreopen.h: New file.
22024         * MODULES.html.sh (File stream based Input/Output"): Add it.
22025
22026 2009-11-19  Eric Blake  <ebb9@byu.net>
22027
22028         manywarnings: depend on warnings
22029         * modules/manywarnings (Depends-on): Add warnings.
22030
22031         build: avoid compiler warnings
22032         * lib/select.c (rpl_select): Delete unused variable.
22033         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22034
22035 2009-11-18  Eric Blake  <ebb9@byu.net>
22036
22037         tests: avoid false negative with --with-packager
22038         * tests/test-version-etc.sh: Discard packager information.
22039         * tests/test-argp-version-etc-1.sh: Likewise.
22040         Reported by Mike Frysinger.
22041
22042         utimens: fix regression on Solaris
22043         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22044         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22045         can only change fd timestamps via futimesat.  Instead, use an
22046         additional witness macro to avoid BSD bug.
22047         Reported by Jim Meyering.
22048
22049 2009-11-17  Eric Blake  <ebb9@byu.net>
22050
22051         usleep: use it to simplify tests
22052         * modules/stat-time-tests (Depends-on): Add usleep.
22053         (configure.ac): Drop usleep check.
22054         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22055         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22056         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22057         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22058         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22059         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22060         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22061         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22062         Likewise.
22063         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22064         * tests/test-lchown.h (nap): Likewise.
22065         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22066         * tests/test-stat-time.c (nap): Likewise.
22067         * tests/test-utimens-common.h (nap): Update comments.
22068
22069         usleep: new module
22070         * modules/usleep: New file.
22071         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22072         * lib/usleep.c (usleep): Likewise.
22073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22074         * modules/unistd (Makefile.am): Substitute witnesses.
22075         * lib/unistd.in.h (usleep): Add declaration.
22076         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22077         * MODULES.html.sh (Date and time): Likewise.
22078         * modules/usleep-tests (Depends-on): New test.
22079         * tests/test-usleep.c: New file.
22080
22081         chown: work around OpenBSD bug
22082         * lib/chown.c (rpl_chown): Work around the bug.
22083         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22084         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22085         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22086         * modules/chown (Depends-on): Add stdbool.
22087         * modules/lchown (Depends-on): Likewise.
22088         * doc/posix-functions/chown.texi (chown): Document the bug.
22089         * doc/posix-functions/lchown.texi (lchown): Likewise.
22090         * tests/test-lchown.h (test_chown): Relax test.
22091
22092         mkstemp: avoid conflict with C++ keyword template
22093         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22094         * lib/mkostemp.c (mkostemp): Likewise.
22095         * lib/mkostemps.c (mkostemps): Likewise.
22096         * lib/mkstemp.c (mkstemp): Likewise.
22097         * lib/mkstemps.c (mkstemps): Likewise.
22098
22099         xalloc-die-tests: optimize
22100         * tests/test-xalloc-die.sh: Reduce number of processes.
22101
22102 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22103
22104         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22105         patch from ludo@gnu.org (Ludovic Courtès).
22106
22107 2009-11-17  Jim Meyering  <meyering@redhat.com>
22108
22109         version-etc: use proper license string
22110         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22111         * modules/version-etc-fsf: Likewise.
22112
22113 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22114
22115         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22116         printed to stdout.  Deal with EOL differences.
22117
22118 2009-11-17  Eric Blake  <ebb9@byu.net>
22119
22120         unsetenv: work around Solaris bug
22121         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22122         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22123         Reported by Jim Meyering.
22124
22125         vasnprintf: avoid compiler warnings
22126         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22127         variables.
22128         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22129
22130 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22131
22132         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22133         settings since xalloc-die is no longer the self test,
22134         xalloc-die.sh is.
22135
22136 2009-11-17  Jim Meyering  <meyering@redhat.com>
22137
22138         test-xalloc-die.sh: make the code agree with the commit log
22139         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22140         at the end, just in case you happen to have a test-xalloc-die
22141         program in some other PATH directory.
22142
22143         test-xalloc-die.sh: fix a portability bug
22144         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22145         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22146         Otherwise, argv[0] (as often seen in diagnostics) would be too
22147         system-dependent, sometimes with, and sometimes without the leading "./".
22148
22149         version-etc-fsf: relax license to LGPLv3+
22150         * modules/version-etc-fsf (License): Relax license.
22151
22152 2009-11-16  Eric Blake  <ebb9@byu.net>
22153
22154         xalloc-die-tests: avoid printing null pointer
22155         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22156         shell script.
22157         * tests/test-xalloc-die.c (program_name): Declare.
22158         * tests/test-xalloc-die.sh (tmpfiles): New file.
22159
22160         setenv, unsetenv: work around various bugs
22161         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22162         (setenv) [HAVE_SETENV]: Work around bugs.
22163         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22164         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22165         for bugs.
22166         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22167         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22169         * modules/stdlib (Makefile.am): Update substitutions.
22170         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22171         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22172         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22173         * modules/setenv-tests: New test.
22174         * modules/unsetenv-tests: Likewise.
22175         * tests/test-setenv.c: New file.
22176         * tests/test-unsetenv.c: Likewise.
22177
22178 2009-11-16  Jim Meyering  <meyering@redhat.com>
22179
22180         version-etc: relax license to LGPLv3+
22181         * modules/version-etc (License): Relax license.
22182
22183         better AC_REQUIRE expanded-before-required-warning avoidance
22184         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22185         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22186         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22187         which is no longer needed.
22188
22189 2009-11-16  Eric Blake  <ebb9@byu.net>
22190
22191         test-freading: clean up temporary file
22192         * tests/test-freading.c (main): Remove file on success, and use
22193         ASSERT more liberally.
22194         Reported by Jim Meyering.
22195
22196 2009-11-16  Jim Meyering  <meyering@redhat.com>
22197
22198         avoid new AC_REQUIRE expanded-before-required warnings
22199         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22200         merely using it.
22201         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22202         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22203
22204 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22205
22206         * tests/test-xalloc-die.c: New file.
22207         * modules/xalloc-die-tests: New file.
22208         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22209         XFAIL_TESTS so it can be appended by modules.
22210
22211 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22212
22213         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22214         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22215
22216 2009-11-14  Eric Blake  <ebb9@byu.net>
22217
22218         fnmatch: avoid compiler warning
22219         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22220         to silence compiler warning about mismatch signedness in ?:.
22221         Reported by Robert Millan.
22222
22223         intprops: add double-inclusion guard
22224         * lib/intprops.h: Allow idempotent includes.
22225         Suggested by Bruce Korb.
22226
22227         openat: detect Solaris fchownat bug
22228         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22229         penalizing glibc chownat when only lchownat is broken.
22230         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22231         trailing slash bugs.
22232         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22233         * modules/openat-tests (Files): Include more files.
22234         (Depends-on): Add mgetgroups, sleep, stat-time.
22235         (configure.ac): Add additional checks.
22236         (Makefile.am): Build new test.
22237         * tests/test-fchownat.c: New file.
22238
22239         lchown: detect Solaris and FreeBSD bug
22240         * lib/lchown.c (rpl_lchown): Work around bug.
22241         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22243         * modules/unistd (Makefile.am): Populate it.
22244         * lib/unistd.in.h (lchown): Update declaration.
22245         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22246         * modules/lchown-tests: New file.
22247         * tests/test-lchown.h (test_lchown): Likewise.
22248         * tests/test-lchown.c (main): Likewise.
22249
22250         chown: detect Solaris and FreeBSD bug
22251         * lib/chown.c (rpl_chown): Work around bug.
22252         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22253         (gl_PREREQ_CHOWN): Delete.
22254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22255         * modules/unistd (Makefile.am): Populate it.
22256         * lib/unistd.in.h (chown): Update declaration.
22257         * lib/lchown.c (chown): Update client.
22258         * modules/lchown (Depends-on): Add lstat.
22259         * doc/posix-functions/chown.texi (chown): Document the bug.
22260         * doc/posix-functions/getgroups.texi (getgroups): Document
22261         getgroups pitfall.
22262         * modules/chown-tests: New file.
22263         * tests/test-chown.h (test_chown): Likewise.
22264         * tests/test-chown.c (main): Likewise.
22265
22266 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22267
22268         gnulib-tool: correctly detect absence of m4 directories
22269         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22270
22271 2009-11-14  Jim Meyering  <meyering@redhat.com>
22272
22273         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22274         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22275
22276 2009-11-14  John W. Eaton  <jwe@gnu.org>
22277
22278         strftime.h: wrap funtion declaration in extern "C" block
22279         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22280
22281 2009-11-13  Eric Blake  <ebb9@byu.net>
22282
22283         getgroups: avoid compiler warning
22284         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22285
22286         getgroups: work around FreeBSD bug
22287         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22288         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22289         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22290         * tests/test-getgroups.c (main): Fix buffer overrun.
22291
22292         getgroups: avoid compilation failure
22293         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22294         * modules/getgroups (Depends-on): Add stdint.
22295
22296 2009-11-13  Jim Meyering  <meyering@redhat.com>
22297
22298         test-getgroups: avoid compilation failure
22299         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22300
22301 2009-11-13  Eric Blake  <ebb9@byu.net>
22302
22303         mgetgroups: new module, taken from coreutils
22304         * modules/mgetgroups: New file.
22305         * lib/mgetgroups.h: Likewise.
22306         * lib/mgetgroups.c (mgetgroups): Likewise.
22307         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22308         * MODULES.html.sh (Users and groups): Mention it.
22309
22310         getgroups: don't expose GETGROUPS_T to user
22311         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22312         an element at a time if GETGROUPS_T is wrong size.
22313         * lib/getugroups.h (getugroups): Change signature.
22314         * lib/unistd.in.h (getgroups): Likewise.
22315         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22316         signature needs fixing.
22317         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22318         AC_TYPE_GETGROUPS.
22319         * modules/group-member (Depends-on): Add getgroups.
22320         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22321         (group_member): Rely on getgroups replacement.
22322         * lib/getugroups.c (getugroups): Use gid_t.
22323         * tests/test-getgroups.c (main): Likewise.
22324         * NEWS: Mention the signature change.
22325         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22326         problem with signature.
22327         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22328         GETGROUPS_T is still useful for setgroups.
22329
22330         getgroups, getugroups: provide stubs for mingw
22331         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22332         * lib/getugroups.c (getugroups): Likewise.
22333         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22334         function.  Modernize replacement scheme.
22335         (gl_PREREQ_GETGROUPS): Delete.
22336         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22337         * modules/getgroups (configure.ac): Declare witness.
22338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22339         * modules/unistd (Depends-on): Substitute witness.
22340         * lib/unistd.in.h (getgroups): Declare replacement.
22341
22342         getgroups: avoid calling exit
22343         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22344         drop xalloc.
22345         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22346         dependencies.
22347         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22348         exiting, in the rare case of malloc failure.
22349
22350         getgroups: fix logic error
22351         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22352         has more than 20 groups.
22353         * modules/getgroups-tests: New test.
22354         * tests/test-getgroups.c: New file.
22355
22356 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22357
22358         * tests/test-base64.c: Improve.
22359
22360 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22361
22362         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22363         Blake <ebb9@byu.net>.
22364
22365 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22366
22367         * tests/test-xvasprintf.c: Add %s%s related checks.
22368
22369 2009-11-12  Eric Blake  <ebb9@byu.net>
22370
22371         version-etc: match standards.texi style
22372         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22373         and use <> only for URLs.
22374
22375 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22376
22377         fts: do not fail on a submount during traversal
22378         * lib/fts.c (fts_build): Read the stat info again after opening
22379         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22380         Original report at http://bugzilla.redhat.com/501848.
22381
22382 2009-11-12  Jim Meyering  <meyering@redhat.com>
22383
22384         bootstrap: sync from coreutils
22385         * build-aux/bootstrap (bootstrap_epilogue): New function.
22386         Use git_modules_config in one more place.  This make bootstrap's
22387         --gnulib-srcdir option more useful for testing.
22388
22389         bootstrap: generalize autoheader check
22390         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22391         AC_CONFIG_HEADERS.
22392
22393 2009-11-11  Eric Blake  <ebb9@byu.net>
22394
22395         mkfifoat: use new modules for Solaris and BSD bugs
22396         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22397         * lib/mkfifoat.c (mknodat): Split...
22398         * lib/mknodat.c (mknodat): ...into new file.
22399         * modules/mkfifoat (Files): Ship new file.
22400         (Depends-on): Add mkfifo, mknod.
22401         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22402         (Depends-on): Add symlink.
22403         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22404         redundant with test_mkfifo.h.
22405         (do_mkfifoat, do_mknodat): New helpers.
22406
22407         mknod: new module
22408         * modules/mknod: New file.
22409         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22410         * lib/mknod.c (mknod): Likewise.
22411         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22412         defaults.
22413         * modules/sys_stat (Makefile.am): Substitute them.
22414         * lib/sys_stat.in.h (mknod): Declare replacement.
22415         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22416         Document it.
22417         * doc/posix-functions/mknod.texi (mknod): Likewise.
22418         * modules/mknod-tests: New test.
22419         * tests/test-mknod.c: Likewise.
22420
22421         mkfifo: new module
22422         * modules/mkfifo: New file.
22423         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22424         * lib/mkfifo.c (mkfifo): Likewise.
22425         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22426         defaults.
22427         * modules/sys_stat (Makefile.am): Substitute them.
22428         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22429         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22430         Document it.
22431         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22432         * modules/mkfifo-tests: New test.
22433         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22434         from test-mkfifoat.c.
22435         * tests/test-mkfifo.c: New file.
22436
22437         readlink: detect FreeBSD bug
22438         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22439         slash on symlink.
22440         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22441         * tests/test-readlink.h (test_readlink): Enhance test.
22442
22443         symlink: detect FreeBSD bug
22444         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22445         slash on symlink.
22446         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22447         * tests/test-symlink.h (test_symlink): Enhance test.
22448
22449 2009-11-10  Eric Blake  <ebb9@byu.net>
22450
22451         link: detect FreeBSD bug
22452         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22453         symlink.
22454         * doc/posix-functions/link.texi (link): Document the bug.
22455         * tests/test-link.h (test_link): Enhance test.
22456         * tests/test-linkat.c (main): Update caller.
22457
22458         unlink, remove: detect FreeBSD bug
22459         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22460         slash on symlink.
22461         * doc/posix-functions/unlink.texi (unlink): Document the bug.
22462         * doc/posix-functions/remove.texi (remove): Likewise.
22463         * tests/test-unlink.h (test_unlink): Enhance test.
22464         * tests/test-remove.c (main): Likewise.
22465
22466 2009-11-09  Eric Blake  <ebb9@byu.net>
22467
22468         rename: detect FreeBSD bug
22469         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
22470         slash on symlink.
22471         * modules/renameat-tests (Depends-on): Add filenamecat.
22472         * tests/test-rename.h (test_rename): Allow one more errno.
22473         * tests/test-renameat.c (main): Likewise.
22474         * doc/posix-functions/rename.texi (rename): Document the bug.
22475
22476         open: detect FreeBSD bug
22477         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
22478         symlink.
22479         * doc/posix-functions/open.texi (open): Document the bug.
22480         * doc/posix-functions/utimes.texi (utimes): Likewise.
22481         * tests/test-open.h (test_open): Add parameters, and test symlink
22482         handling.
22483         * tests/test-open.c (main): Adjust caller.
22484         * tests/test-fcntl-safer.c (main): Likewise.
22485         * modules/open-tests (Depends-on): Add stdbool, symlink.
22486         * modules/fcntl-safer-tests (Depends-on): Likewise.
22487         * tests/test-openat.c (main): Add test-open tests.
22488
22489         stat: detect FreeBSD bug
22490         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
22491         symlink.
22492         * doc/posix-functions/stat.texi (stat): Document the bug.
22493         * tests/test-stat.h (test_stat_func): Add argument.
22494         * tests/test-stat.c (main): Adjust caller.
22495         * tests/test-fstatat.c (main): Likewise.
22496         * modules/stat-tests (Depends-on): Add stdbool, symlink.
22497         Reported by Jim Meyering.
22498
22499 2009-11-09  James Youngman  <jay@gnu.org>
22500
22501         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
22502         * lib/strftime.c: Correct placement of #include "ignore-value.h".
22503
22504 2009-11-08  Jim Meyering  <meyering@redhat.com>
22505
22506         utimens: remove invalid futimesat call
22507         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
22508         It used the file descriptor of the target file as the DIR_FD
22509         parameter and NULL as the file name.  That caused failure with
22510         errno == EFAULT on FreeBSD-8.0-rc2
22511
22512 2009-11-07  Eric Blake  <ebb9@byu.net>
22513
22514         fflush, freadseek: use fseeko, not fseek
22515         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
22516         (clear_ungetc_buffer): Avoid potential problems on large files.
22517         * lib/freadseek.c (freadseek): Likewise.
22518         * modules/freadseek (Depends-on): Add fseeko.
22519         * modules/fseek (configure.ac): Set a witness.
22520         * tests/test-fflush.c (main): Use fseeko.
22521         * tests/test-fpurge.c (fseek): Disable link warning.
22522         * tests/test-freadable.c (fseek): Likewise.
22523         * tests/test-freading.c (fseek): Likewise.
22524         * tests/test-fseeko.c (fseek): Likewise.
22525         * tests/test-ftell.c (fseek): Likewise.
22526         * tests/test-ftello.c (fseek): Likewise.
22527         * tests/test-fwritable.c (fseek): Likewise.
22528         * tests/test-fwriting.c (fseek): Likewise.
22529
22530 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22531
22532         * modules/memchr (Depends-on): Drop getpagesize dependency.
22533
22534 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22535
22536         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
22537         Reported by Ludovic Courtès.
22538         * build-aux/pmccabe2html: Improve example usage.
22539         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
22540
22541 2009-11-06  Jim Meyering  <meyering@redhat.com>
22542
22543         do-release-commit-and-tag: New module.
22544         Automate the release-commit and tag process.
22545         * build-aux/do-release-commit-and-tag: New script, from coreutils.
22546         * modules/do-release-commit-and-tag: New file.
22547         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22548
22549 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22550
22551         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
22552         because test-select.c uses inet_pton.
22553
22554 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22555
22556         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
22557         GETADDRINFO_LIB.  Bump serial number.
22558         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
22559         Suggested by Eric Blake <ebb9@byu.net>.
22560
22561 2009-11-05  Eric Blake  <ebb9@byu.net>
22562
22563         strtod: detect darwin bug
22564         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
22565         Reported by Leo Davis.
22566
22567         freopen-safer: new module
22568         * modules/freopen-safer: New module.
22569         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
22570         * lib/freopen-safer.c (freopen_safer): New file.
22571         * lib/stdio-safer.h (freopen_safer): New declaration.
22572         * lib/stdio--.h (freopen): New override.
22573         * MODULES.html.sh (File stream based Input/Output): Mention it.
22574         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
22575         freopen-safer module.
22576         * doc/posix-functions/stderr.texi (stderr): Likewise.
22577         * doc/posix-functions/stdin.texi (stdin): Likewise.
22578         * doc/posix-functions/stdout.texi (stdout): Likewise.
22579         * modules/freopen-safer-tests: New test.
22580         * tests/test-reopen-safer.c: New file.
22581
22582 2009-11-05  Jim Meyering  <meyering@redhat.com>
22583
22584         maint.mk: Prohibit inclusion of "close-stream.h" without use.
22585         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22586
22587 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22588
22589         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
22590
22591 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22592
22593         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
22594
22595 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22596
22597         Fix link error.
22598         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22599         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22600
22601 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22602
22603         * tests/test-func.c: Also test value of __func__.
22604
22605 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22606
22607         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
22608         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
22609
22610 2009-11-05  Bruno Haible  <bruno@clisp.org>
22611
22612         Fix link error.
22613         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22614         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22615         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
22616
22617 2009-11-05  Bruno Haible  <bruno@clisp.org>
22618
22619         Tests for module 'inet_pton'.
22620         * modules/inet_pton-tests: New file.
22621         * tests/test-inet_pton.c: New file.
22622
22623 2009-11-05  Bruno Haible  <bruno@clisp.org>
22624
22625         Tests for module 'inet_ntop'.
22626         * modules/inet_ntop-tests: New file.
22627         * tests/test-inet_ntop.c: New file.
22628
22629 2009-11-04  Eric Blake  <ebb9@byu.net>
22630
22631         stdlib-safer: wrap all mkstemp variants
22632         * modules/mkostemp (configure.ac): Set witness.
22633         * modules/mkostemps (configure.ac): Likewise.
22634         * modules/mkstemps (configure.ac): Likewise.
22635         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
22636         (mkstemps_safer): Wrap more functions.
22637         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
22638         wrapping.
22639         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
22640         (mkstemps_safer): Implement the wrappers.
22641
22642         mkstemps, mkostemps: new modules
22643         * modules/mkostemps: New module.
22644         * modules/mkstemps: Likewise.
22645         * lib/mkostemps.c (mkostemps): New file.
22646         * lib/mkstemps.c (mkstemps): Likewise.
22647         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
22648         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
22649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
22650         * modules/stdlib (Makefile.am): Substitute them.
22651         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
22652         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
22653         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22654         * doc/gnulib.texi (Glibc stdlib.h): Include them.
22655         * MODULES.html.sh (File system functions): Mention them.
22656
22657         tempname: resync from glibc
22658         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
22659         same values for __GT_FILE as glibc.  Abort even when assertions
22660         are disabled.
22661         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
22662         match its value otherwise.  Allow idempotent inclusion.
22663         * lib/mkdtemp.c (mkdtemp): Adjust caller.
22664         * lib/mkostemp.c (mkostemp): Likewise.
22665         * lib/mkstemp.c (mkstemp): Likewise.
22666         * lib/tmpfile.c (tmpfile): Likewise.
22667         * NEWS: Document this.
22668
22669         utimens: fix use of futimens on older Linux
22670         * lib/utimens.c (fdutimens): Use updated, rather than original,
22671         timespec to avoid bug in older Linux kernel.
22672         Reported by Simon Josefsson.
22673
22674 2009-11-04  Bruno Haible  <bruno@clisp.org>
22675
22676         Make num_processors more flexible and consistent.
22677         * lib/nproc.h (enum nproc_query): New type.
22678         (num_processors): Add a 'query' argument.
22679         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
22680         (num_processors): Add a 'query' argument. Test the value of the
22681         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
22682         mingw, count the number of CPUs available for the current process.
22683         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
22684         Check for sched_getaffinity and sched_getaffinity_np.
22685         * modules/nproc (Depends-on): Add c-ctype, extensions.
22686         * NEWS: Mention the change.
22687
22688 2009-11-03  Bruno Haible  <bruno@clisp.org>
22689
22690         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
22691
22692 2009-11-03  Jim Meyering  <meyering@redhat.com>
22693
22694         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
22695         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
22696         if it is defined.
22697
22698 2009-11-02  Eric Blake  <ebb9@byu.net>
22699
22700         mktime, timegm: share common declaration
22701         * lib/mktime-internal.h: New file.
22702         * lib/mktime.c: Use it rather than open-coding a declaration.
22703         * lib/timegm.c: Likewise.
22704         * modules/mktime (Files): Ship it.
22705         * modules/timegm (Files): Likewise.
22706         Suggested by Bruno Haible.
22707
22708         test-update-copyright: update test to match script changes
22709         * tests/test-update-copyright.sh: Avoid hard-coding perl
22710         location.  Don't update *.bak created by earlier runs.
22711
22712 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22713             Simon Josefsson  <simon@josefsson.org>
22714             Bruno Haible  <bruno@clisp.org>
22715
22716         Fix link error on Solaris 8.
22717         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
22718         also in libnsl. Define also INET_PTON_LIB.
22719         * modules/inet_pton (Link): New section.
22720
22721 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22722             Bruno Haible  <bruno@clisp.org>
22723
22724         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
22725         * modules/inet_ntop (Link): New section.
22726         Reported by Boyan Kasarov <bkasarov@gmail.com>.
22727
22728 2009-11-02  Eric Blake  <ebb9@byu.net>
22729
22730         maint: avoid compiler warnings in m4 macros
22731         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
22732         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
22733
22734 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22735
22736         * m4/pmccabe2html.m4: Remove file.
22737         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
22738         function.  Change maintainer.
22739         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
22740         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
22741         Courtès).
22742
22743 2009-10-31  Eric Blake  <ebb9@byu.net>
22744
22745         fseeko: fix m4 regression
22746         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
22747         regression from 2009-10-27.
22748         Reported by Ralf Wildenhues.
22749
22750 2009-10-31  Jim Meyering  <meyering@redhat.com>
22751
22752         inttostr: aesthetics and improved (compile-time) safety
22753         Define inttype_is_signed rather than inttype_is_unsigned,
22754         since the sole use is via "#if inttype_is_signed".
22755         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
22756         inttype_is_unsigned.
22757         * lib/offtostr.c (inttype_is_signed): Likewise.
22758         * lib/uinttostr.c (inttype_is_signed): Likewise.
22759         * lib/umaxtostr.c (inttype_is_signed): Likewise.
22760         * lib/inttostr.c (inttostr): Use verify to cross-check the
22761         inttype_is_signed value and the signedness of the actual type.
22762         * modules/inttostr (Depends-on): Add verify.
22763
22764 2009-10-30  Eric Blake  <ebb9@byu.net>
22765
22766         build: avoid compiler warnings
22767         * lib/fchmodat.c (lchmod): Mark unused variables.
22768         * lib/getopt.c (_getopt_initialize): Likewise.
22769         * lib/mktime.c (__mktime_internal): Provide prototype.
22770         * lib/inttostr.c (inttostr): Avoid compiler warning even with
22771         older gcc that do not understand #pragma GCC diagnostic.
22772         * lib/uinttostr.c (inttype_is_unsigned): Define.
22773         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
22774
22775 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22776
22777         stat: fix compilation on AIX
22778         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
22779         only see struct stat64.
22780
22781 2009-10-30  Eric Blake  <ebb9@byu.net>
22782
22783         exclude: make more robust
22784         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
22785         rather than masking a coding bug.
22786         Suggested by Bruno Haible.
22787
22788 2009-10-30  Jim Meyering  <meyering@redhat.com>
22789
22790         perl scripts: remove #!/usr/bin/perl in favor of more portable...
22791         Rather than putting #!/usr/bin/perl on the first line,
22792         start with a variant of what's recommended by "man perlrun" that
22793         invokes the first "perl" program from your shell's search path.
22794         * build-aux/gitlog-to-changelog: Replace #!... as above.
22795         Add a "Local Variables" perl mode setting.
22796         Prompted by a patch from Ludovic Courtès.
22797         Improved by Eric Blake.
22798         * build-aux/useless-if-before-free: Likewise.
22799         * build-aux/announce-gen: Likewise.
22800         * build-aux/update-copyright: Likewise.
22801
22802 2009-10-29  Eric Blake  <ebb9@byu.net>
22803
22804         filenamecat-lgpl: adjust clients
22805         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22806         filenamecat.
22807         * modules/renameat (Depends-on): Likewise.
22808
22809         filenamecat: split into filenamecat-lgpl
22810         * modules/filenamecat-lgpl: New module.
22811         * modules/filenamecat (Files): Move library-safe files into
22812         filenamecat-lgpl.
22813         (Depends-on): Add filenamecat-lgpl.
22814         (configure.ac): Declare witness.
22815         * lib/filenamecat.h (file_name_concat): Only declare when using
22816         GPL module.
22817         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22818         Move...
22819         * lib/filenamecat-lgpl.c: ...into new file.
22820         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22821         (gl_FILE_NAME_CONCAT): Use it.
22822         * MODULES.html.sh (File system functions): Mention new module.
22823
22824         argp: avoid memory leak
22825         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22826         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22827         base_name, since the latter malloc()s and can call exit().
22828         Leak introduced 2006-07-03.
22829
22830         dirname-lgpl: adjust clients that don't need full dirname
22831         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22832         * modules/filenamecat (Depends-on): Likewise.
22833         * modules/linkat (Depends-on): Likewise.
22834         * modules/mkancesdirs (Depends-on): Likewise.
22835         * modules/mkdir (Depends-on): Likewise.
22836         * modules/openat (Depends-on): Likewise.
22837         * modules/savewd (Depends-on): Likewise.
22838         * modules/rename (Depends-on): Likewise.
22839         (License): Relax license.
22840         * modules/mkdir-tests (Depends-on): Drop progname.
22841         (Makefile.am): Delete unneeded LDADD.
22842         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22843
22844         dirname: split into dirname-lgpl
22845         * modules/dirname-lgpl: New module.
22846         * modules/dirname (Files): Move library-safe files into
22847         dirname-lgpl.
22848         (Depends-on): Add dirname-lgpl.
22849         (configure.ac): Declare witness.
22850         * modules/double-slash-root (License): Relax license.
22851         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22852         module.
22853         * lib/dirname.c (dir_len, mdir_name): Move...
22854         * lib/dirname-lgpl.c: ...into new file.
22855         * lib/basename.c (last_component, base_len): Move...
22856         * lib/basename-lgpl.c: ...into new file.
22857         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22858         (gl_DIRNAME): Use it.
22859         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22860         Mention new module.
22861         * modules/dirname-tests (Depends-on): Add progname.
22862         * tests/test-dirname.c (program_name): Delete.
22863
22864         mkdir: make safe for libraries
22865         * modules/mkdir (Depends-on): Drop xalloc.
22866         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22867         exit.
22868
22869         tests: avoid some compiler warnings
22870         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22871         literals.
22872         * tests/test-memchr.c (main): Avoid type mismatch.
22873         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22874         * tests/test-base64.c (main): Likewise.
22875         * tests/test-getdelim.c (main): Likewise.
22876         * tests/test-gethostname.c (main): Likewise.
22877         * tests/test-getline.c (main): Likewise.
22878         * tests/test-netinet_in.c (main): Likewise.
22879         * tests/test-select.c (open_server_socket, main): Likewise.
22880         * tests/test-select-stdin.c (main): Likewise.
22881         * tests/test-sockets.c (main): Likewise.
22882         * tests/test-strsignal.c (main): Likewise.
22883         * tests/test-sys_select.c (main): Likewise.
22884         * tests/test-sys_socket.c (main): Likewise.
22885         * tests/test-u64.c (main): Likewise.
22886         * tests/test-xfprintf-posix.c (main): Likewise.
22887         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22888
22889         sockets: avoid compiler warning
22890         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22891
22892         maint: detect usage(1) and other suspicious exits
22893         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22894
22895 2009-10-29  Jim Meyering  <meyering@redhat.com>
22896
22897         timespec: long-to-int truncation could make timespec_cmp malfunction
22898         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22899         a multiple of 2^32 nanoseconds as no difference.
22900
22901 2009-10-28  Jim Meyering  <meyering@redhat.com>
22902
22903         fprintftime: wrap macro code argument in "do {...} while(0)"
22904         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22905         cpy macro must be a statement that can be followed by a semicolon.
22906         Now that the else clause contains a comment and is hence longer
22907         than one line, I require curly braces.  That in turn requires
22908         that we wrap this code block in the standard do...while(0).
22909
22910         fprintftime: remove stray semicolon from previous change
22911         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22912
22913         fprintftime: avoid a warning about ignored fwrite return value
22914         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22915         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22916         that is unsafe.
22917         * modules/fprintftime (Depends-on): Add ignore-value.
22918
22919         exclude: avoid an unwarranted warning
22920         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22921
22922 2009-10-27  Eric Blake  <ebb9@byu.net>
22923
22924         fseek: avoid compilation failure when fflush is replaced
22925         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22926         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22927         module is in use.
22928         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22929         module is not in use; since REPLACE_FSEEK worked otherwise.
22930         (GNULIB_FTELLO): Likewise for ftell.
22931         Reported by Ian Beckwith and others.
22932
22933 2009-10-27  Bruno Haible  <bruno@clisp.org>
22934
22935         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22936         Reported by Jim Meyering.
22937
22938 2009-10-27  Jim Meyering  <jim@meyering.net>
22939             Bruno Haible  <bruno@clisp.org>
22940
22941         Avoid warning despite dropping the return value of fwrite.
22942         * lib/unicodeio.c: Include ignore-value.h.
22943         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22944         * modules/unicodeio (Depends-on): Add ignore-value.
22945
22946 2009-10-26  Eric Blake  <ebb9@byu.net>
22947
22948         areadlinkat: fix fallback path
22949         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22950         pointer and zero.
22951
22952 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22953
22954         Use a better IO block size for modern systems
22955         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22956         * lib/md2.c: Likewise.
22957         * lib/md4.c: Likewise.
22958         * lib/md5.c: Likewise.
22959         * lib/sha1.c: Likewise.
22960         * lib/sha256.c: Likewise.
22961         * lib/sha512.c: Likewise.
22962
22963 2009-10-22  Eric Blake  <ebb9@byu.net>
22964
22965         tests: avoid several compiler warnings
22966         * tests/test-getcwd.c (main): Avoid buffer underflow.
22967         * tests/test-getdate.c (main): String literals are not safe with
22968         putenv, so use setenv.  Declare unused argument.
22969         * modules/getdate-tests (Depends-on): Add setenv.
22970         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22971         problems with string literals in char *.
22972         * tests/test-hash.c (main): Avoid shadowing declaration.
22973         (insert_new): Treat string literals as char const *.
22974         * tests/test-getopt.h (test_getopt): Likewise.
22975         (getopt_loop): Alter types to minimize casting elsewhere.
22976         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22977         (test_getopt_long_posix): Likewise.
22978         (do_getopt_long): Add wrapper to minimize casting.
22979         * tests/test-atexit.c (clear_temp_file): Use void.
22980         * tests/test-areadlink-with-size.c (main): Declare unused
22981         arguments.
22982         * tests/test-areadlink.c (main): Likewise.
22983         * tests/test-areadlinkat-with-size.c (main): Likewise.
22984         * tests/test-areadlinkat.c (main): Likewise.
22985         * tests/test-canonicalize-lgpl.c (main): Likewise.
22986         * tests/test-canonicalize.c (main): Likewise.
22987         * tests/test-dirent-safer.c (main): Likewise.
22988         * tests/test-dirname.c (main): Likewise.
22989         * tests/test-dup2.c (main): Likewise.
22990         * tests/test-fchdir.c (main): Likewise.
22991         * tests/test-fcntl-h.c (main): Likewise.
22992         * tests/test-fcntl-safer.c (main): Likewise.
22993         * tests/test-fdopendir.c (main): Likewise.
22994         * tests/test-fdutimensat.c (main): Likewise.
22995         * tests/test-fflush.c (main): Likewise.
22996         * tests/test-filenamecat.c (main): Likewise.
22997         * tests/test-filevercmp.c (main): Likewise.
22998         * tests/test-fopen-safer.c (main): Likewise.
22999         * tests/test-fopen.c (main): Likewise.
23000         * tests/test-fpending.c (main): Likewise.
23001         * tests/test-fpurge.c (main): Likewise.
23002         * tests/test-freading.c (main): Likewise.
23003         * tests/test-fstatat.c (main): Likewise.
23004         * tests/test-fsync.c (main): Likewise.
23005         * tests/test-futimens.c (main): Likewise.
23006         * tests/test-getndelim2.c (main): Likewise.
23007         * tests/test-gettimeofday.c (main): Likewise.
23008         * tests/test-getopt.c (main): Likewise.
23009         * tests/test-i-ring.c (main): Likewise.
23010         * tests/test-inttypes.c (main): Likewise.
23011         * tests/test-link.c (main): Likewise.
23012         * tests/test-lstat.c (main): Likewise.
23013         * tests/test-math.c (main): Likewise.
23014         * tests/test-md5.c (main): Likewise.
23015         * tests/test-memchr2.c (main): Likewise.
23016         * tests/test-memrchr.c (main): Likewise.
23017         * tests/test-mkdir.c (main): Likewise.
23018         * tests/test-mkdirat.c (main): Likewise.
23019         * tests/test-mkfifoat.c (main): Likewise.
23020         * tests/test-open.c (main): Likewise.
23021         * tests/test-openat-safer.c (main): Likewise.
23022         * tests/test-openat.c (main): Likewise.
23023         * tests/test-quotearg.c (main): Likewise.
23024         * tests/test-rawmemchr.c (main): Likewise.
23025         * tests/test-readlink.c (main): Likewise.
23026         * tests/test-remove.c (main): Likewise.
23027         * tests/test-rename.c (main): Likewise.
23028         * tests/test-renameat.c (main): Likewise.
23029         * tests/test-rmdir.c (main): Likewise.
23030         * tests/test-sha1.c (main): Likewise.
23031         * tests/test-signal.c (main): Likewise.
23032         * tests/test-sigaction.c (main): Likewise.
23033         * tests/test-stat.c (main): Likewise.
23034         * tests/test-stat-time.c (main): Likewise.
23035         * tests/test-stddef.c (main): Likewise.
23036         * tests/test-stdint.c (main): Likewise.
23037         * tests/test-stdio.c (main): Likewise.
23038         * tests/test-stdlib.c (main): Likewise.
23039         * tests/test-strchrnul.c (main): Likewise.
23040         * tests/test-strerror.c (main): Likewise.
23041         * tests/test-string.c (main): Likewise.
23042         * tests/test-strtod.c (main): Likewise.
23043         * tests/test-strverscmp.c (main): Likewise.
23044         * tests/test-symlink.c (main): Likewise.
23045         * tests/test-symlinkat.c (main): Likewise.
23046         * tests/test-sys_stat.c (main): Likewise.
23047         * tests/test-sys_time.c (main): Likewise.
23048         * tests/test-time.c (main): Likewise.
23049         * tests/test-unistd.c (main): Likewise.
23050         * tests/test-unlink.c (main): Likewise.
23051         * tests/test-unlinkat.c (main): Likewise.
23052         * tests/test-utimens.c (main): Likewise.
23053         * tests/test-utimensat.c (main): Likewise.
23054         * tests/test-version-etc.c (main): Likewise.
23055         * tests/test-wchar.c (main): Likewise.
23056         * tests/test-wctype.c (main): Likewise.
23057         * tests/test-xprintf-posix.c (main): Likewise.
23058         * tests/test-posixtm.c (main): Likewise.
23059         (STREQ): Delete unused macro.
23060         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23061         shadowed variables.
23062         * tests/test-memchr.c (main): Likewise.
23063
23064 2009-10-21  Eric Blake  <ebb9@byu.net>
23065
23066         areadlinkat: avoid failure on older glibc
23067         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23068         rather than mis-comparing 0 against FUNC_RESULT of char*.
23069
23070 2009-10-21  Bruno Haible  <bruno@clisp.org>
23071
23072         * modules/stpncpy (License): Relicense under LGPLv2+.
23073         Reported by David Lutterkort <lutter@redhat.com>.
23074
23075 2009-10-20  Eric Blake  <ebb9@byu.net>
23076
23077         utimensat: work around Solaris 9 bug
23078         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23079         has trailing slash bugs.
23080         * tests/test-lutimens.h (test_lutimens): Enhance test.
23081         * tests/test-utimens.h (test_utimens): Likewise.
23082         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23083         * doc/posix-functions/utimes.texi (utimes): Likewise.
23084         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23085         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23086         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23087         * doc/posix-functions/futimens.texi (futimens): Likewise.
23088
23089         fdutimensat: new module
23090         * modules/fdutimensat: New file.
23091         * lib/fdutimensat.c (fdutimensat): Likewise.
23092         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23093         * MODULES.html.sh (File system functions): Mention module.
23094         * modules/fdutimensat-tests: New test.
23095         * tests/test-fdutimensat.c: Likewise.
23096
23097         doc: regenerate INSTALL
23098         * doc/INSTALL: Reflect recent autoconf update.
23099         * doc/INSTALL.ISO: Likewise.
23100         * doc/INSTALL.UTF-8: Likewise.
23101
23102 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23103
23104         acl: warn if ACL support is not detected
23105         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23106
23107 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23108
23109         * lib/nproc.h: Add extern "C" block for C++.
23110
23111 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23112             Bruno Haible  <bruno@clisp.org>
23113
23114         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23115         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23116         * doc/posix-functions/isalpha.texi: Likewise.
23117         * doc/posix-functions/isblank.texi: Likewise.
23118         * doc/posix-functions/iscntrl.texi: Likewise.
23119         * doc/posix-functions/isdigit.texi: Likewise.
23120         * doc/posix-functions/isgraph.texi: Likewise.
23121         * doc/posix-functions/islower.texi: Likewise.
23122         * doc/posix-functions/isprint.texi: Likewise.
23123         * doc/posix-functions/ispunct.texi: Likewise.
23124         * doc/posix-functions/isspace.texi: Likewise.
23125         * doc/posix-functions/isupper.texi: Likewise.
23126         * doc/posix-functions/isxdigit.texi: Likewise.
23127
23128 2009-10-18  Bruno Haible  <bruno@clisp.org>
23129
23130         Tests for module 'isblank'.
23131         * modules/isblank-tests: New file.
23132         * tests/test-isblank.c: New file.
23133
23134         New module 'isblank'.
23135         * lib/isblank.c: New file.
23136         * m4/isblank.m4: New file.
23137         * modules/isblank: New file.
23138         * doc/posix-functions/isblank.texi: Mention the new module.
23139
23140 2009-10-18  Bruno Haible  <bruno@clisp.org>
23141
23142         New module 'ctype'.
23143         * lib/ctype.in.h: New file.
23144         * m4/ctype.m4: New file.
23145         * modules/ctype: New file.
23146         * doc/posix-headers/ctype.texi: Mention the new module.
23147
23148 2009-10-18  Jim Meyering  <meyering@redhat.com>
23149
23150         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23151         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23152         right after its initialization, rather than farther down.
23153         Keeping these in close proximity makes it easier to ensure
23154         that each such variable is initialized.  E.g.,
23155
23156             LIB_CLOCK_GETTIME=
23157             AC_SUBST([LIB_CLOCK_GETTIME])
23158
23159         This change also increments these serial numbers.
23160         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23161         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23163
23164 2009-10-18  Bruno Haible  <bruno@clisp.org>
23165
23166         Don't let environment variables perturb build.
23167         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23168         (gl_PREREQ_GETHRXTIME): ... not here.
23169
23170 2009-10-18  Bruno Haible  <bruno@clisp.org>
23171
23172         Avoid symlink attack in localcharset module.
23173         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23174         (O_NOFOLLOW): Define fallback.
23175         (get_charset_aliases): Don't open the file if it is a symbolic link.
23176         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23177         gl_FCNTL_H.
23178         (gl_FCNTL_H): Require it.
23179         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23180         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23181         Reported by Fergal Glynn <fglynn@veracode.com>.
23182
23183 2009-10-18  Bruno Haible  <bruno@clisp.org>
23184
23185         Implement nproc for mingw.
23186         * lib/nproc.c: Include <windows.h>
23187         (num_processors): On native Windows platforms, try GetSystemInfo.
23188
23189 2009-10-18  Bruno Haible  <bruno@clisp.org>
23190
23191         Implement nproc for IRIX.
23192         * lib/nproc.c: Include <sys/sysmp.h>.
23193         (num_processors): On IRIX systems, try sysmp.
23194         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23195
23196 2009-10-18  Bruno Haible  <bruno@clisp.org>
23197
23198         Implement nproc for HP-UX.
23199         * lib/nproc.c: Include <sys/pstat.h>
23200         (num_processors): On HP-UX systems, try pstat_getdynamic.
23201         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23202         pstat_getdynamic.
23203
23204 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23205             Bruno Haible  <bruno@clisp.org>
23206
23207         Implement nproc for NetBSD, OpenBSD.
23208         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23209         (ARRAY_SIZE): New macro.
23210         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23211         * m4/nproc.m4: New file.
23212         * modules/nproc (Files): Add m4/nproc.m4.
23213         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23214         (Makefile.am): Instead, augment lib_SOURCES.
23215
23216 2009-10-18  Bruno Haible  <bruno@clisp.org>
23217
23218         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23219         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23220         sys/param.h.
23221
23222 2009-10-16  Eric Blake  <ebb9@byu.net>
23223
23224         utimensat: new module
23225         * modules/utimensat: New file.
23226         * lib/utimensat.c (utimensat): Likewise.
23227         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23228         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23229         so we can work around Linux bugs.
23230         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23231         * modules/sys_stat (Makefile.am): Substitute them.
23232         * lib/sys_stat.in.h (utimensat): Declare it.
23233         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23234         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23235         * modules/utimensat-tests: New test.
23236         * tests/test-utimensat.c: Likewise.
23237
23238         utimens: let lutimens work on non-symlinks
23239         * lib/utimens.c (lutimens): Fall back to utimens rather than
23240         failing with ENOSYS, when file is not a symlink.
23241         (utimens): Reduce redirection.
23242         * tests/test-lutimens.h (test_lutimens): Update test to cover
23243         non-symlinks.
23244         * tests/test-utimens.h (test_utimens): Update test to cover
23245         symlinks.
23246         * tests/test-utimens.c (main): Update caller.
23247
23248         utimens: cache whether utimensat syscall works
23249         * lib/utimens.c (utimensat_works_really): New cache variable.
23250         (fdutimens, lutimens): Use it to avoid failing syscall.
23251
23252         test-stat-time, test-utimens: improve portability
23253         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23254         ext4 on alpha, and for cygwin.
23255         * tests/test-utimens-common.h: New file.
23256         (nap): Factor delays into single function.
23257         * tests/test-lutimens.h (test_lutimens): Use new header.
23258         * tests/test-futimens.h (test_futimens): Likewise.
23259         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23260         timestamps to occur from same machine, as was done previously for
23261         test_utimens.
23262         * modules/utimens-tests (Files): Ship new file.
23263         * modules/futimens-tests (Files): Likewise.
23264         Reported in part by Jim Meyering.
23265
23266         sys_stat: sort replacement declarations
23267         * lib/sys_stat.in.h: Sort declarations.
23268         * lib/futimens.c (futimens): Fix typo.
23269
23270 2009-10-15  Jim Meyering  <meyering@redhat.com>
23271
23272         don't let environment settings perturb build
23273         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23274         could cause a configure-time and/or build-time malfunction.
23275         Typically, a configure-time function-in-library test is performed
23276         via code like this:
23277
23278           LIB_VAR=
23279           AC_SUBST([LIB_VAR])
23280           prefix_saved_LIBS=$LIBS
23281             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23282                        [test "$ac_cv_search_FUNC" = "none required" ||
23283                         LIB_VAR=$ac_cv_search_FUNC])
23284           LIBS=$prefix_saved_LIBS
23285
23286         However, in each of the files affected by this change, the LIB_VAR=
23287         initialization was omitted.  Thus, when set in the environment, its
23288         value would propagate into generated Makefiles when FUNC is not found
23289         in LIB_NAME.
23290         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23291         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23293
23294 2009-10-14  Eric Blake  <ebb9@byu.net>
23295
23296         fchdir: avoid infinite recursion in mingw
23297         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23298         recursing.
23299
23300         test-stat-time: port to mingw
23301         * tests/test-stat-time.c (force_unlink): Return a value.
23302         (test_ctime) [W32]: Fix compilation error.
23303         (nap): Don't call usleep with too large an argument.  Use
23304         force_unlink.
23305         * doc/pastposix-functions/usleep.texi (usleep): Document the
23306         portability issue.
23307
23308 2009-10-13  Jim Meyering  <meyering@redhat.com>
23309
23310         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23311         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23312         * modules/pipe-filter-ii: Likewise.
23313         * modules/sys_socket-tests: Likewise.
23314         * modules/tsearch-tests: Likewise.
23315         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23316         (check): Depend on it.
23317
23318 2009-10-12  Eric Blake  <ebb9@byu.net>
23319
23320         utimens-tests: port to NFS file systems
23321         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23322         comparisons to avoid spurious failures from timestamp drift
23323         between NFS machines.
23324
23325 2009-10-12  Eric Blake  <ebb9@byu.net>
23326
23327         stat-time-tests: minor cleanups
23328         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23329         * tests/test-stat-time.c (nap): Separate assignment from call.
23330         Suggested by Paolo Bonzini and Bruno Haible.
23331
23332         sys_stat: guarantee struct timespec
23333         * lib/sys_stat.in.h (includes): Always include <time.h>
23334         * modules/sys_stat (Depends-on): Add time.
23335         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23336         mode_t permission values.
23337         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23338         get at subsecond timestamps.
23339
23340 2009-10-10  Eric Blake  <ebb9@byu.net>
23341
23342         futimens: new module
23343         * modules/futimens: New file.
23344         * lib/futimens.c (futimens): Likewise.
23345         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23346         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23347         we can work around Linux bugs.
23348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23349         * modules/sys_stat (Makefile.am): Substitute them.
23350         * lib/sys_stat.in.h (futimens): Declare it.
23351         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23352         * doc/posix-functions/futimens.texi (futimens): Likewise.
23353         * modules/futimens-tests: New test.
23354         * tests/test-futimens.c: Likewise.
23355
23356         utimens: introduce fdutimens
23357         * lib/utimens.h (fdutimens): New prototype.
23358         * lib/utimens.c (gl_futimens): Move guts...
23359         (fdutimens): ...to new interface.
23360         * tests/test-utimens.c (do_fdutimens): Use it.
23361
23362         utimens: add UTIME_NOW and UTIME_OMIT support
23363         * lib/utimens.c (validate_timespec, update_timespec): New helper
23364         functions.
23365         (gl_futimens, lutimens): Use them.
23366         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23367         stdbool, sys_stat.
23368         (Link): Mention resulting library dependency.
23369         * modules/utimecmp (Link): Likewise.
23370         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23371         (Makefile.am): Pick up library dependency.
23372         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23373         definition.
23374         * tests/test-sys_stat.c: Test the definitions.
23375         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23376         * NEWS: Document library dependency.
23377
23378         utimecmp: support symlink timestamps
23379         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23380         hashing when possible.  Use pathconf when available.
23381         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23382         * modules/utimecmp (Depends-on): Add lstat.
23383
23384         utimens: add lutimens interface
23385         * lib/utimens.c (lutimens): New function.
23386         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23387         * lib/utimens.h (lutimens): Declare new interface.
23388         * tests/test-utimens.c (main): Enhance test.
23389         * tests/test-lutimens.h (test_lutimens): New file.
23390         * modules/utimens-tests (Files): Distribute it.
23391         (Depends-on): Add symlink.
23392         (configure.ac): Check for usleep.
23393
23394         utimens: validate futimens usage
23395         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23396         fewer syscalls on failure later on.  Avoid compiler warning on
23397         mingw.
23398         * modules/utimens (Depends-on): Add dup2.
23399
23400         utimens: add test
23401         * modules/utimens-tests: New test.
23402         * tests/test-utimens.h: New file.
23403         * tests/test-futimens.h: Likewise.
23404         * tests/test-utimens.c: Likewise.
23405
23406         doc: mention timestamp portability issues
23407         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23408         instead.
23409         * doc/posix-functions/utime.texi (utime): Likewise.
23410         * doc/posix-functions/utimes.texi (utimes): Likewise.
23411         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23412         instead.
23413         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23414         module.
23415         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23416         Mention weakness with symlink timestamps.
23417         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23418         to utimensat/futimens instead.
23419         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23420
23421         test-dup2: enhance test
23422         * tests/test-dup2.c (main): Also check AT_FDCWD.
23423
23424         test-stat-time: avoid more spurious failures
23425         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23426         xfs; and avoid race if the two timestamps cross quantization edge.
23427
23428         relocatable: prefer 'file system' over 'filesystem'
23429         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23430         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23431         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23432         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23433         * lib/relocatable.c (compute_curr_prefix): Likewise.
23434
23435 2009-10-10  Jim Meyering  <meyering@redhat.com>
23436
23437         stat-time-tests: check for the usleep function
23438         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23439
23440 2009-10-10  Bruno Haible  <bruno@clisp.org>
23441
23442         * modules/xnanosleep: Put the Link section after the Include section.
23443
23444 2009-10-09  Eric Blake  <ebb9@byu.net>
23445
23446         dup2: work around FreeBSD 6.1 bug
23447         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23448         * doc/posix-functions/dup2.texi (dup2): Document it.
23449         Reported by Nelson H. F. Beebe and Jim Meyering.
23450
23451         test-stat-time: port to buggy NFS clients
23452         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23453         (test_ctime): Also skip test if mtime and ctime are skewed.
23454
23455         maint: prefer 'file system' over 'filesystem'
23456         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23457         * doc/posix-functions/lstat.texi (lstat): Likewise.
23458         * lib/file-has-acl.c (file_has_acl): Likewise.
23459         * lib/fwriteerror.c [TEST]: Likewise.
23460         * tests/test-areadlink.h (test_areadlink): Likewise.
23461         * tests/test-areadlinkat-with-size.c (main): Likewise.
23462         * tests/test-areadlinkat.c (main): Likewise.
23463         * tests/test-canonicalize-lgpl.c (main): Likewise.
23464         * tests/test-canonicalize.c (main): Likewise.
23465         * tests/test-fstatat.c (main): Likewise.
23466         * tests/test-linkat.c (main): Likewise.
23467         * tests/test-lstat.h (test_lstat_func): Likewise.
23468         * tests/test-mkdir.h (test_mkdir): Likewise.
23469         * tests/test-readlink.h (test_readlink): Likewise.
23470         * tests/test-remove.c (main): Likewise.
23471         * tests/test-rename.h (test_rename): Likewise.
23472         * tests/test-renameat.c (main): Likewise.
23473         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23474         * tests/test-symlink.h (test_symlink): Likewise.
23475         * tests/test-symlinkat.c (main): Likewise.
23476         * tests/test-unlink.h (test_unlink_func): Likewise.
23477         * tests/test-unlinkat.c (main): Likewise.
23478
23479         maint: make realtime library usage explicit
23480         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
23481         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
23482         * modules/settime (Link): Likewise.
23483         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
23484
23485         test-stat-time: speed up execution
23486         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
23487         warning on mingw.
23488         (nap): New helper function.
23489         (prepare_test): Use it to reduce sleep time.
23490         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
23491         execution.
23492         * modules/stat-time-tests (configure.ac): Check for usleep.
23493
23494 2009-10-09  Jim Meyering  <meyering@redhat.com>
23495
23496         selinux-h: always use getfilecon wrappers
23497         * lib/getfilecon.c: New file.
23498         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
23499         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
23500         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
23501         (fgetfilecon): Provide a stub.
23502         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
23503         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
23504         file unconditionally.
23505         When <selinux/selinux.h> is found, arrange to use wrappers.
23506         * modules/selinux-h (Files): Add getfilecon.c.
23507         (Makefile.am): Substitute include-next-related bits
23508         into the now-always-generated selinux/selinux.h file.
23509         * doc/glibc-functions/lgetfilecon.texi: New file.
23510         * doc/glibc-functions/fgetfilecon.texi: New file.
23511         * doc/glibc-functions/getfilecon.texi: New file.
23512         * doc/glibc-functions/getfilecon-desc.texi: New file.
23513         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
23514         which to pull in the new files.
23515         * MODULES.html.sh (Misc): Add selinux-h.
23516
23517 2009-10-08  Jim Meyering  <meyering@redhat.com>
23518
23519         unistd: fix comment typo
23520         * lib/unistd.in.h (euidaccess): Fix a comment typo.
23521
23522 2009-10-08  Eric Blake  <ebb9@byu.net>
23523
23524         areadlink: use SIZE_MAX consistently
23525         * modules/areadlink (Depends-on): Add stdint.
23526         * modules/areadlink-with-size (Depends-on): Likewise.
23527         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
23528         gives NULL; drop sys/types, since unistd gives size_t; and add
23529         stdint for SIZE_MAX.
23530         (SIZE_MAX): Rely on headers.
23531         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
23532         and add stdint.
23533         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
23534         (SIZE_MAX): Likewise.
23535         (INITIAL_BUF_SIZE): Turn into enum.
23536         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
23537
23538 2009-10-08  Jim Meyering  <meyering@redhat.com>
23539
23540         areadlinkat: avoid compilation failure
23541         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
23542         Fix typo in comment.
23543
23544 2009-10-07  Eric Blake  <ebb9@byu.net>
23545
23546         areadlinkat-with-size: new module
23547         * modules/areadlinkat-with-size: New module.
23548         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
23549         * lib/areadlink.h (areadlinkat): Declare it.
23550         * MODULES.html.sh (File system functions): Mention it.
23551         * modules/areadlinkat-with-size-tests: New test.
23552         * tests/test-areadlinkat-with-size.c: New file.
23553
23554         xreadlinkat: new module
23555         * modules/xreadlinkat: New module.
23556         * lib/xreadlinkat.c (xreadlinkat): New file.
23557         * lib/xreadlink.h (xreadlinkat): Declare it.
23558         * MODULES.html.sh (File system functions): Mention it.
23559
23560         areadlinkat: new module
23561         * lib/at-func.c (FUNC_FAIL): New define.
23562         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
23563         * modules/areadlinkat: New module.
23564         * lib/linkat.c (areadlinkat): Move...
23565         * lib/areadlinkat.c (areadlinkat): ...to new file.
23566         * lib/areadlink.h (areadlinkat): Declare it.
23567         * modules/linkat (Depends-on): Add areadlinkat.
23568         * MODULES.html.sh (File system functions): Mention it.
23569         * modules/areadlinkat-tests: New test.
23570         * tests/test-areadlinkat.c: New file.
23571
23572         areadlink, areadlink-with-size: add tests
23573         * modules/areadlink-tests: New test.
23574         * modules/areadlink-with-size-tests: Likewise.
23575         * tests/test-areadlink.h: New file.
23576         * tests/test-areadlink.c: Likewise.
23577         * tests/test-areadlink-with-size.c: Likewise.
23578
23579         maint: minor cleanups
23580         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
23581         _UNUSED_PARAMETER_ instead.
23582         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
23583         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
23584         * modules/linkat-tests (Files): Distribute test-link.h.
23585
23586         openat, utimens: whitespace cleanup
23587         * lib/openat.c: Prefer space throughout, rather than mix of 8
23588         spaces vs. tabs.
23589         * lib/at-func.c: Likewise.
23590         * lib/utimens.c: Likewise.
23591
23592         openat: avoid using wrong fd
23593         * lib/openat.c (openat_permissive): Reject user's fd if saving the
23594         working directory chooses same fd.
23595         * lib/at-func.c (AT_FUNC_NAME): Likewise.
23596
23597         mkdir, mkdirat: fix cygwin 1.5.x bug
23598         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
23599         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
23600         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
23601         bug.
23602         (gl_PREREQ_MKDIR): Delete unused macro.
23603         * modules/mkdir (Files): Track file rename.
23604         (configure.ac): Update macro name.
23605         * modules/openat (Depends-on): Add mkdir.
23606         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
23607
23608         mkdir, mkdirat: add tests
23609         * modules/mkdir-tests: New test.
23610         * tests/test-mkdir.h: New file.
23611         * tests/test-mkdir.c: Likewise.
23612         * tests/test-mkdirat.c: Likewise.
23613         * modules/openat-tests (Files): Add new files.
23614         (Makefile.am): Run new test.
23615
23616 2009-10-06  Eric Blake  <ebb9@byu.net>
23617
23618         doc: tweak *at function documentation
23619         * doc/posix-functions/faccessat.texi (faccessat): Mention
23620         known issue with replacement.
23621         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
23622         * doc/posix-functions/linkat.texi (linkat): Likewise.
23623         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23624         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23625         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23626         * doc/posix-functions/renameat.texi (renameat): Likewise.
23627         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23628
23629         openat: fix GNU/Hurd bug in unlinkat
23630         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
23631         broken.
23632         * doc/posix-functions/unlink.texi (unlink): Document this.
23633         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
23634
23635         fdopendir: fix GNU/Hurd bug
23636         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
23637         allowing non-directory fds.
23638         * lib/fdopendir.c (rpl_fdopendir): Work around it.
23639         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23640         * modules/dirent (Makefile.am): Substitute it.
23641         * lib/dirent.in.h (fdopendir): Declare replacement.
23642         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
23643         * tests/test-fdopendir.c (main): Test something other than
23644         /dev/null, since on Hurd that behaves like a directory.
23645
23646         test-symlink: port to GNU/Hurd
23647         * tests/test-symlink.h (test_symlink): Relax expected errno.
23648
23649         doc: tweak more cygwin information
23650         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
23651         now compatible with glibc.
23652         * doc/posix-functions/getopt.texi (getopt): Likewise.
23653
23654         getopt-gnu: add another test
23655         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
23656         guarantee behavior relied on by m4.
23657         * tests/test-getopt.c (main): Use it.
23658         * modules/getopt-posix-tests (Depends-on): Add setenv.
23659         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
23660
23661         getopt: fix compilation on darwin
23662         * lib/getopt.in.h (includes): Leave breadcrumbs during system
23663         include.
23664         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
23665         Reported by Ludovic Courtès.
23666
23667 2009-10-06  Bruno Haible  <bruno@clisp.org>
23668
23669         * modules/size_max (Description): Discourage its use.
23670         Reported by Simon Josefsson.
23671
23672 2009-10-06  Jim Meyering  <meyering@redhat.com>
23673
23674         linkat: avoid compilation failure
23675         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
23676
23677 2009-10-05  Eric Blake  <ebb9@byu.net>
23678
23679         linkat: support Linux 2.6.17
23680         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
23681         linkat on Linux, but allow cache variable override.
23682         * lib/linkat.c (rpl_linkat): Define override.
23683         * modules/linkat (Depends-on): Add symlinkat.
23684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
23685         * modules/unistd (Makefile.am): Substitute it.
23686         * lib/unistd.in.h (linkat): Declare replacement.
23687         Reported by Pádraig Brady.
23688
23689         quotearg: port test to systems with C.UTF-8 locale
23690         * tests/test-quotearg.c (struct result_strings): Add another
23691         member, differentiating between C.ASCII and C.UTF-8 handling.
23692         (compare_strings): Add parameter.
23693         (main): Adjust all callers.
23694
23695         getopt: avoid clash with FreeBSD _getopt_internal
23696         * lib/getopt.in.h (_getopt_internal): Override the name.
23697         * lib/getopt_int.h (includes): Pick up any overrides.
23698         Reported by Reuben Thomas.
23699
23700         hash: allow C89 compilation
23701         * lib/hash.c (check_tuning): Move declaration before statement.
23702         Reported by Reuben Thomas.
23703
23704 2009-10-05  Karl Berry  <karl@gnu.org>
23705
23706         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
23707
23708 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
23709             Bruno Haible  <bruno@clisp.org>
23710
23711         * lib/uname.c (uname): Use a table-driven algorithm to compute
23712         Windows NT versions.
23713
23714 2009-10-04  Bruno Haible  <bruno@clisp.org>
23715
23716         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
23717         program_invocation_short_name.
23718         * modules/progname (configure.ac): Test for presence of
23719         program_invocation_short_name.
23720         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23721
23722 2009-10-04  Bruno Haible  <bruno@clisp.org>
23723
23724         * lib/progname.c (set_program_name): Fix comment.
23725         Reported by Jim Meyering.
23726
23727 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23728             Bruno Haible  <bruno@clisp.org>
23729
23730         * lib/uname.c: Include <string.h>.
23731         (uname): Do only one call to GetVersionEx in the common case.
23732
23733 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23734             Bruno Haible  <bruno@clisp.org>
23735
23736         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
23737         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
23738         (uname): Add support for Windows CE and various non-x86 CPU types.
23739
23740 2009-10-03  Bruno Haible  <bruno@clisp.org>
23741
23742         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
23743         invocation to tests/configure.ac.
23744         Reported by Ian Beckwith <ianb@erislabs.net>.
23745
23746 2009-10-02  Eric Blake  <ebb9@byu.net>
23747
23748         fchdir: avoid compiler warning
23749         * lib/fchdir.c (canonicalize_file_name)
23750         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
23751
23752         test-open: support mingw errno values
23753         * tests/test-open.h (test_open): Relax test.
23754         * tests/test-fopen.h (test_fopen): Likewise.
23755         * tests/test-openat-safer.c (main): Likewise.
23756
23757         open: fix opening directory on mingw
23758         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
23759
23760         test-open: on GNU/Hurd, /dev/null is a directory
23761         * tests/test-fopen.h (main): Rename...
23762         (test_fopen): ...to this.  Use a guaranteed non-directory when
23763         confirming open behavior on trailing slash.
23764         * tests/test-openat-safer.c (main): Likewise.
23765         * tests/test-open.h (main): Likewise....
23766         (test_open): ...to this.
23767         * tests/test-fopen.c (main): Adjust caller.
23768         * tests/test-fopen-safer.c (main): Likewise.
23769         * tests/test-open.c (main): Likewise.
23770         * tests/test-fcntl-safer.c (main): Likewise.
23771         Reported by Samuel Thibault.
23772
23773         rename, fchdir: don't ignore chdir failure
23774         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
23775         * lib/rename.c (rpl_rename) [W32]: Likewise.
23776         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
23777         an empty destination directory if source cannot be renamed,
23778         although there is still possibility for failure.
23779         * doc/posix-functions/rename.texi (rename): Document the race.
23780         Reported by Jim Meyering.
23781
23782         maint: cleanup whitespace in recent commits
23783         * lib/rename.c (rpl_rename): Remove tabs.
23784         * tests/test-link.h (test_link): Likewise.
23785         * lib/fchdir.c (get_name): Likewise.
23786         Reported by Jim Meyering.
23787
23788 2009-10-02  Ben Pfaff  <blp@gnu.org>
23789
23790         relocatable-prog-wrapper: Add missing dependency on
23791         double-slash-root.
23792         * modules/relocatable-prog-wrapper: Add dependency.
23793         Reported by Ian Beckwith <ianb@erislabs.net>.
23794
23795 2009-10-02  Eric Blake  <ebb9@byu.net>
23796
23797         renameat: fix Solaris bugs
23798         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23799         needed fixing.
23800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23801         * modules/stdio (Makefile.am): Substitute it.
23802         * lib/stdio.in.h (renameat): Declare replacement.
23803         * lib/renameat.c (rpl_renameat): Implement fix.
23804
23805         renameat: new module
23806         * modules/renameat: New file.
23807         * lib/renameat.c (renameat): Likewise.
23808         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23810         * modules/stdio (Makefile.am): Substitute them.
23811         * lib/stdio.in.h (renameat): Declare it.
23812         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23813         * doc/posix-functions/renameat.texi (renameat): Likewise.
23814         * modules/renameat-tests: New test.
23815         * tests/test-renameat.c: Likewise.
23816
23817         rename: fix mingw bugs
23818         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23819         directory overwrite bugs.
23820
23821         rename: fix another cygwin 1.5 bug
23822         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23823         checks.
23824         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23825         unnecessary cygwin workarounds.  Also work around bug with moving
23826         full directory onto an empty one.
23827         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23828
23829         rename-dest-slash: merge into rename module
23830         * modules/rename-dest-slash (Status): Mark obsolete.
23831         (Depends-on): Add rename.
23832         (Files): Let rename do it all.
23833         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23834         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23835         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23836         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23837         * lib/rename.c (rpl_rename): Update comments.
23838
23839         rename: fix cygwin 1.5.x bugs
23840         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23841         * lib/rename.c (rpl_rename): Work around them.
23842         * modules/rename (Depends-on): Add same-inode.
23843
23844         rename: fix Solaris 10 bug
23845         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23846         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23847         was the only bug.
23848
23849         rename: fix Solaris 9 bug
23850         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23851         on non-directory.  Avoid calling exit.
23852         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23853         strdup.
23854         * modules/rename-tests (Depends-on): Drop lstat.
23855         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23856         (gl_PREREQ_RENAME): Delete unused macro.
23857
23858         rename-dest-slash: fix NetBSD bug
23859         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23860         links.
23861         * modules/rename-dest-slash (Depends-on): Add same-inode.
23862
23863         rename-tests: new test, exposes several platform bugs
23864         * modules/rename-tests: New file.
23865         * tests/test-rename.h: Likewise.
23866         * tests/test-rename.c: Likewise.
23867         * doc/posix-functions/rename.texi (rename): Improve documentation,
23868         including bugs that will eventually be fixed in gnulib.
23869
23870 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23871
23872         * lib/uname.c: Include <stdlib.h>
23873         (uname): Assume version info is available.
23874
23875 2009-10-02  Jim Meyering  <meyering@redhat.com>
23876
23877         gnu-web-doc-update: correct --help output
23878         * build-aux/gnu-web-doc-update: Make --help output relevant.
23879
23880         gnu-web-doc-update: add standard options
23881         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23882
23883         gnu-web-doc-update: New module.
23884         Use this script to automatically update the on-line web documentation
23885         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23886         * modules/gnu-web-doc-update: New file, from coreutils.
23887         * build-aux/gnu-web-doc-update: New script.
23888
23889 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23890
23891         link: LoadLibrary is not needed.
23892         * lib/link.c: Use GetModuleHandle.
23893
23894 2009-10-01  Eric Blake  <ebb9@byu.net>
23895
23896         getopt: bump serial number
23897         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23898         change.
23899
23900         tests: tighten link, rmdir, and remove tests
23901         * tests/test-link.h (includes): No need to use <config.h> here.
23902         Clean up if directory hard link was created, otherwise test for
23903         trailing '.'.
23904         * tests/test-linkat.c (main): Simplify.
23905         * tests/test-remove.c (main): Enhance test for trailing '.'.
23906         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23907
23908 2009-10-01  Jim Meyering  <meyering@redhat.com>
23909
23910         maint.mk: requiring "make major" was annoying, for a "minor" release.
23911         What is intended is "stable", to contrast with alpha and beta,
23912         so require "make stable", not "make major".
23913         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23914         (get_tool_versions): Likewise.
23915         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23916
23917 2009-09-30  Ben Pfaff  <blp@gnu.org>
23918
23919         Fix broken build of replacement for Windows tmpfile().
23920         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23921         flags argument added along with the 'mkostemp' module.
23922
23923 2009-09-28  Bruno Haible  <bruno@clisp.org>
23924
23925         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23926         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23927         to 'remove_elt'.
23928         (gl_list_remove): Update.
23929         * lib/gl_list.c (gl_list_remove): Update.
23930         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23931         to 'remove_elt'.
23932         (gl_oset_remove): Update.
23933         * lib/gl_list.c (gl_oset_remove): Update.
23934         Reported by Eric Blake.
23935
23936 2009-09-28  Eric Blake  <ebb9@byu.net>
23937
23938         doc: mention yet more cygwin 1.7 status
23939         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23940         cygwin.
23941         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23942         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23943
23944         argp: fix test failure
23945         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23946         that are not upper-case.  Pass correct range to tolower.
23947
23948 2009-09-27  Jim Meyering  <meyering@redhat.com>
23949
23950         test-yesno: work around sparc-dash here-document infelicity
23951         Without this change, the literal \177 byte in a here document
23952         would make dash 0.5.5.1-3 access uninitialized memory.
23953         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23954         Instead, use a marker, "@", and filter through tr to create the desired
23955         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23956
23957 2009-09-27  Bruno Haible  <bruno@clisp.org>
23958
23959         Disable untested support for new flavours of ACLs on AIX.
23960         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23961         progress.
23962         * lib/set-mode-acl.c (qset_acl): Likewise.
23963
23964 2008-12-07  Bruno Haible  <bruno@clisp.org>
23965
23966         Add support for new flavours of ACLs on AIX. (Untested.)
23967         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23968         (file_has_acl): Add support for newer AIX.
23969         * lib/set-mode-acl.c (qset_acl): Likewise.
23970         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23971         Rainer Tammer <tammer@tammer.net>.
23972
23973 2009-09-26  Eric Blake  <ebb9@byu.net>
23974
23975         argp: fix compilation of getopt
23976         * lib/getopt.in.h (includes): Use different guard than glibc.
23977         Reported by Sergey Poznyakoff.
23978
23979         doc: mention more cygwin 1.7 status
23980         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23981         bug.
23982         * doc/posix-functions/execl.texi (execl): Likewise.
23983         * doc/posix-functions/execle.texi (execle): Likewise.
23984         * doc/posix-functions/execlp.texi (execlp): Likewise.
23985         * doc/posix-functions/execv.texi (execv): Likewise.
23986         * doc/posix-functions/execve.texi (execve): Likewise.
23987         * doc/posix-functions/execvp.texi (execvp): Likewise.
23988         * doc/glibc-functions/canonicalize_file_name.texi
23989         (canonicalize_file_name): Cygwin 1.7 now provides this.
23990         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23991         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23992         on AT_SYMLINK_NOFOLLOW.
23993
23994 2009-09-24  Eric Blake  <ebb9@byu.net>
23995
23996         test-linkat: make test more robust
23997         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23998
23999         getopt: fix inclusion guards for cygwin
24000         * modules/getopt-posix (Depends-on): Add include-next.
24001         (Makefile.am): Substitute more items in replacement header.
24002         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24003         <getopt.h>.
24004         * lib/getopt.in.h (includes): Use split inclusion guard, and
24005         prefer <getopt.h> over include <unistd.h> when one is present.
24006         (option): Also override name of 'struct option'.
24007
24008         same-inode: revert prior change; it is not yet ready
24009         * NEWS: Undo mention of this change.
24010         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24011         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24012         * lib/cycle-check.c (cycle_check): Likewise.
24013         * lib/same.c (same_name): Likewise.
24014         * lib/at-func2.c (at_func2): Likewise.
24015
24016 2009-09-23  Eric Blake  <ebb9@byu.net>
24017
24018         linkat: new module
24019         * modules/linkat: New file.
24020         * lib/at-func2.c (at_func2): Likewise.
24021         * lib/linkat.c (linkat): Likewise.
24022         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24023         * lib/openat-priv.h (at_func2): Add declaration.
24024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24025         * modules/unistd (Makefile.am): Substitute them.
24026         * lib/unistd.in.h (linkat): Declare it.
24027         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24028         * doc/posix-functions/linkat.texi (linkat): Likewise.
24029         * doc/posix-functions/link.texi (link): Tweak wording.
24030         * tests/test-link.c (main): Move guts...
24031         * tests/test-link.h (test_link): ...into new file.
24032         * modules/linkat-tests: New test.
24033         * tests/test-linkat.c: Likewise.
24034         * modules/link-tests (Files): Ship new file.
24035         (Depends-on): Add stdbool.
24036
24037         dirname: add library-safe mdir_name
24038         * lib/dirname.h (mdir_name): New prototype.
24039         * lib/dirname.c (dir_name): Move guts...
24040         (mdir_name): ...to new function that avoids xalloc_die.
24041
24042         fchdir: another mingw fix
24043         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24044         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24045         on mingw (where it has not yet been ported), and make it optional
24046         elsewhere.
24047         (_gl_register_fd): Use it.
24048
24049         same-inode: make SAME_INODE tri-state, to port to mingw
24050         * NEWS: Mention this change.
24051         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24052         st_ino always being 0.
24053         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24054         * lib/cycle-check.c (cycle_check): Likewise.
24055         * lib/same.c (same_name): Likewise.
24056
24057         lstat: avoid mingw compilation error
24058         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24059         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24060         lstat ourselves.
24061         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24062         was adequate.
24063         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24064         the checks for lstat.
24065         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24066
24067         link: fix test failure on Solaris 9
24068         * lib/link.c (rpl_link): Don't assume link will catch bogus
24069         trailing slash on source.
24070
24071         test-symlinkat: enhance test
24072         * tests/test-readlink.c (main): Move guts...
24073         * tests/test-readlink.h (test_readlink): ...into new file.
24074         * tests/test-symlink.c (main): Move guts...
24075         * tests/test-symlink.h (test_symlink): ...into new file.
24076         * tests/test-symlinkat.c (main): Use new files for further
24077         coverage.
24078         (do_symlink, do_readlink): New helper functions.
24079         * modules/symlink-tests (Files): Ship new file.
24080         (Depends-on): Add stdbool.
24081         * modules/readlink-tests (Files): Ship new file.
24082         (Depends-on): Add stdbool.
24083         * modules/symlinkat-tests (Files): Use new files.
24084
24085 2009-09-23  Eric Blake  <ebb9@byu.net>
24086
24087         readlink: document portability issue with symlink length
24088         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24089         systems have bogus st_size on symlinks, and mention the
24090         areadlink-with-size module.
24091         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24092         * doc/posix-functions/readlink.texi (readlink): Mention the
24093         areadlink module, and ERANGE failure.
24094         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24095         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24096
24097         readlink: fix Solaris 9 bug with trailing slash
24098         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24099         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24100         * doc/posix-functions/readlink.texi (readlink): Document this.
24101         * modules/readlink-tests: New test.
24102         * tests/test-readlink.c: Likewise.
24103
24104         readlink: fix cygwin 1.5.x bug with return type
24105         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24106         * lib/unistd.in.h (readlink): Use ssize_t.
24107         * lib/readlink.c (readlink): Likewise.
24108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24109         * modules/unistd (Makefile.am): Substitute it.
24110         * lib/unistd.in.h (readlink): Declare replacement.
24111         * doc/posix-functions/readlink.texi (readlink): Document this.
24112
24113         symlink: use throughout gnulib
24114         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24115         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24116         symlink is not used.
24117         * modules/symlinkat (Depends-on): Add symlink.
24118         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24119         * modules/canonicalize-tests (Depends-on): Likewise.
24120         * modules/lstat-tests (Depends-on): Likewise.
24121         * modules/openat-tests (Depends-on): Likewise.
24122         * modules/remove-tests (Depends-on): Likewise.
24123         * modules/rmdir-tests (Depends-on): Likewise.
24124         * modules/unlink-tests (Depends-on): Likewise.
24125         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24126         * tests/test-canonicalize.c (symlink): Likewise.
24127         * tests/test-fstatat.c (symlink): Likewise.
24128         * tests/test-lstat.c (symlink): Likewise.
24129         * tests/test-remove.c (symlink): Likewise.
24130         * tests/test-rmdir.c (symlink): Likewise.
24131         * tests/test-unlink.c (symlink): Likewise.
24132         * tests/test-unlinkat.c (symlink): Likewise.
24133
24134         symlink: new module, for Solaris 9 bug
24135         * modules/symlink: New file.
24136         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24137         * lib/symlink.c: Likewise.
24138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24139         * modules/unistd (Makefile.am): Substitute them.
24140         * lib/unistd.in.h (symlink): Declare replacement.
24141         * MODULES.html.sh (File system functions): Mention it.
24142         * doc/posix-functions/symlink.texi (symlink): Likewise.
24143         * modules/symlink-tests: New test.
24144         * tests/test-symlink.c: Likewise.
24145
24146 2009-09-23  Bruno Haible  <bruno@clisp.org>
24147
24148         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24149         when needed.
24150         Test case: gnulib-tool --import --with-tests atexit inttypes.
24151         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24152
24153 2009-09-23  Bruno Haible  <bruno@clisp.org>
24154
24155         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24156         subcommand, not in a subshell.
24157
24158 2009-09-22  Eric Blake  <ebb9@byu.net>
24159
24160         unistd: sort replacement declarations
24161         * lib/unistd.in.h: Sort declarations.
24162
24163         open, openat: minor optimization
24164         * lib/open.c (open): If open succeeded, len is non-zero.
24165         * lib/openat.c (rpl_openat): Likewise.
24166
24167         link-follow: ensure correct result
24168         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24169         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24170         distinguish between possible failures.
24171
24172 2009-09-21  Eric Blake  <ebb9@byu.net>
24173
24174         fts: avoid compiler warning
24175         * lib/fts.c (dirent_inode_sort_may_be_useful)
24176         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24177
24178 2009-09-19  Bruno Haible  <bruno@clisp.org>
24179
24180         * lib/progreloc.c (canonicalize_file_name): New declaration.
24181
24182 2009-09-19  Eric Blake  <ebb9@byu.net>
24183
24184         link: fix quoting
24185         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24186
24187         openat: fix openat bugs on Solaris 9
24188         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24189         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24190         * modules/openat (Depends-on): Add open.
24191         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24192         * modules/fcntl-h (Makefile.am): Substitute it.
24193         * lib/fcntl.in.h (openat): Declare replacement.
24194         * doc/posix-functions/openat.texi (openat): Document this.
24195
24196         openat: move fstatat and unlinkat into correct files
24197         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24198         compiled.
24199         * lib/openat.c (fstatat, unlinkat): Move...
24200         * lib/fstatat.c (fstatat): ...into correct files.
24201         * lib/unlinkat.c (unlinkat): Likewise.
24202
24203         openat: fix unlinkat bugs on Solaris 9
24204         * lib/unlinkat.c (unlinkat): New file.
24205         * modules/openat (Depends-on): Add unlink.
24206         (Files): Distribute it.
24207         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24208         trailing slash behavior is broken.
24209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24210         * modules/unistd (Makefile.am): Substitute it.
24211         * lib/unistd.in.h (unlinkat): Declare replacement.
24212         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24213
24214         openat: fix fstatat bugs on Solaris 9
24215         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24216         stat.
24217         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24218
24219         test-unlinkat: enhance test, to expose Solaris 9 bug
24220         * tests/test-unlink.c (main): Factor guts...
24221         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24222         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24223         * tests/test-rmdir.c (main): Adjust caller.
24224         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24225         (unlinker): New helper function.
24226         (rmdirat): Enhance check.
24227         * modules/rmdir-tests (Depends-on): Add stdbool.
24228         * modules/unlink-tests (Depends-on): Likewise.
24229         (Files): Add test-unlink.h.
24230         * modules/openat-tests (Files): Likewise.
24231         (Depends-on): Add unlinkdir.
24232
24233         test-fstatat: new test, to expose Solaris 9 bugs
24234         * tests/test-stat.c (main): Factor guts...
24235         * tests/test-stat.h (test_stat_func): ...into new file.
24236         * tests/test-lstat.c (main): Factor guts...
24237         * tests/test-lstat.h (test_lstat_func): ...into new file.
24238         * tests/test-fstatat.c: New file.
24239         * modules/stat-tests (Files): Add test-stat.h.
24240         * modules/lstat-tests (Files): Add test-lstat.h.
24241         (Depends-on): Add stdbool.
24242         * modules/openat-tests (Depends-on): Add pathmax.
24243         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24244         (Makefile.am): Run new test.
24245
24246         remove: new module, for mingw and Solaris 9 bugs
24247         * modules/remove: New file.
24248         * lib/remove.c: Likewise.
24249         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24251         * modules/stdio (Makefile.am): Use them.
24252         * lib/stdio.in.h (remove): Declare replacement.
24253         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24254         * doc/posix-functions/remove.texi (remove): Likewise.
24255         * modules/remove-tests: New test.
24256         * tests/test-remove.c: Likewise.
24257
24258         unlink: new module, for Solaris 9 bug
24259         * modules/unlink: New file.
24260         * lib/unlink.c: Likewise.
24261         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24263         * modules/unistd (Makefile.am): Use them.
24264         * lib/unistd.in.h (stat): Declare replacement.
24265         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24266         * doc/posix-functions/unlink.texi (unlink): Likewise.
24267         * modules/unlink-tests: New test.
24268         * tests/test-unlink.c: Likewise.
24269
24270         lstat: fix Solaris 9 bug
24271         * lib/lstat.c (lstat): Also check for trailing slash on
24272         non-symlink, non-directories.  Use stat module to simplify logic.
24273         * doc/posix-functions/lstat.texi (lstat): Document it.
24274         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24275         (configure.ac): Check for symlink.
24276         * tests/test-lstat.c (main): Add more tests.
24277
24278         stat: add as dependency to other modules
24279         * modules/chown (Depends-on): Add stat.
24280         * modules/euidaccess (Depends-on): Likewise.
24281         * modules/fchdir (Depends-on): Likewise.
24282         * modules/isdir (Depends-on): Likewise.
24283         * modules/link (Depends-on): Likewise.
24284         * modules/lstat (Depends-on): Likewise.
24285         * modules/mkdir-p (Depends-on): Likewise.
24286         * modules/modechange (Depends-on): Likewise.
24287         * modules/open (Depends-on): Likewise.
24288         * modules/readlink (Depends-on): Likewise.
24289         * modules/same (Depends-on): Likewise.
24290
24291         stat: fix Solaris 9 bug
24292         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24293         slash.
24294         * lib/stat.c (rpl_stat): Work around it.
24295         * doc/posix-functions/stat.texi (stat): Update documentation.
24296
24297         stat: new module, for mingw bug
24298         * modules/stat: New file.
24299         * lib/stat.c: Likewise.
24300         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24301         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24302         * modules/sys_stat (Makefile.am): Use them.
24303         * lib/sys_stat.in.h (stat): Declare replacement.
24304         * lib/openat.c (fstatat): Deal with lstat and stat being function
24305         macros.
24306         * modules/openat (Depends-on): Add inline.
24307         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24308         * doc/posix-functions/stat.texi (stat): Likewise.
24309         * modules/stat-tests: New test.
24310         * tests/test-stat.c: Likewise.
24311
24312 2009-09-19  Jim Meyering  <meyering@redhat.com>
24313
24314         syntax-check: detect unnecessary inclusion of canonicalize.h
24315         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24316
24317 2009-09-19  Eric Blake  <ebb9@byu.net>
24318
24319         canonicalize-lgpl: adjust clients to use correct header
24320         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24321         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24322         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24323         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24324         * lib/progreloc.c (includes): Likewise.
24325
24326 2009-09-19  Jim Meyering  <meyering@redhat.com>
24327
24328         test-posixtm.c: correct a comment
24329         * tests/test-posixtm.c: Correct first-line comment.
24330         Spotted by Eric Blake.
24331
24332 2009-09-16  Jim Meyering  <meyering@redhat.com>
24333
24334         posixtm-tests: make T const-correct; add a test case
24335         * tests/test-posixtm.c (T): Declare const.
24336         Add a test for -(2^31+1).
24337         Remove useless can-succeed-only-in-2002 test.
24338
24339         posixtm-tests: adjust the sole failing test
24340         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24341         expected output matches what mktime now produces.  Cross-checked via
24342         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24343
24344         posixtm: move #ifdef'd tests into a new module
24345         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24346         * tests/test-posixtm.c: ... this new file.
24347         * modules/posixtm-tests: New module.
24348
24349 2009-09-19  Eric Blake  <ebb9@byu.net>
24350
24351         openat: simplify use of at-func.c
24352         * lib/at-func.c (includes): Include prerequisites here, to
24353         simplify requirements on client files.
24354         * lib/openat-priv.h: Add double-inclusion guard.
24355         * lib/faccessat.c (includes): Simplify.
24356         * lib/fchmodat.c (includes): Likewise.
24357         * lib/fchownat.c (includes): Likewise.
24358         * lib/mkdirat.c (includes): Likewise.
24359         * lib/mkfifoat.c (includes): Likewise.
24360         * lib/symlinkat.c (includes): Likewise.
24361
24362         openat: allow return of fd 0
24363         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24364         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24365         unistd-safer.
24366         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24367         <fcntl.h>; this module does not leak fds.
24368         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24369         must be allowed to return 0, leaving openat_safer to add the
24370         safety.
24371         (openat_permissive): Avoid writing to just-opened fd 2 if
24372         restoring the current directory fails.
24373         * lib/openat-die.c (openat_restore_fail): Add comment.
24374         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24375         (save_cwd): Guarantee safe fd, but without use of open_safer.
24376         * tests/test-openat.c: New test.
24377         * modules/openat-tests (Files, Makefile.am): Distribute and build
24378         new file.
24379
24380         relocatable-prog-wrapper: fix build
24381         * modules/relocatable-prog-wrapper (Files): Update name of
24382         canonicalize m4 file, broken on 2009-09-17.
24383         Reported by emad hajjar <aleppos@hotmail.com>.
24384
24385 2009-09-19  Bruno Haible  <bruno@clisp.org>
24386
24387         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24388         * lib/safe-alloc.c: Likewise.
24389         Reported by Ian Beckwith <ianb@erislabs.net>.
24390
24391 2009-09-18  Bruno Haible  <bruno@clisp.org>
24392
24393         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24394         Reported by <erobles@sensacd.com.mx>.
24395
24396 2009-09-17  Eric Blake  <ebb9@byu.net>
24397
24398         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24399         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24400         slashes when checking if last component is missing.
24401         * tests/test-canonicalize.c (main): Test this.
24402
24403         canonicalize, canonicalize-lgpl: honor // if distinct from /
24404         * modules/canonicalize (Files): Add double-slash-root.m4.
24405         * modules/canonicalize-lgpl (Files): Likewise.
24406         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24407         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24408         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24409         fallback definition.
24410         (canonicalize_filename_mode): Use it to protect //.
24411         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24412         (__realpath): Likewise.
24413         * tests/test-canonicalize.c (main): Test this.
24414         * tests/test-canonicalize-lgpl.c (main): Likewise.
24415         * modules/canonicalize-tests (Depends-on): Add same-inode.
24416         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24417
24418         canonicalize-lgpl: fix glibc bug with trailing slash
24419         * m4/canonicalize-lgpl.m4: Move contents...
24420         * m4/canonicalize.m4: ...here.
24421         (gl_CANONICALIZE_LGPL): Factor realpath check...
24422         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24423         glibc 2.3.5 bug, fixed 2005-04-27.
24424         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24425         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24426         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24427         * modules/canonicalize-lgpl (Files): Manage file rename.
24428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24429         * modules/stdlib (Makefile.am): Substitute witness.
24430         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24431         is needed.
24432         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24433         replacement is required.
24434         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24435         * doc/glibc-functions/canonicalize_file_name.texi
24436         (canonicalize_file_name): Document this.
24437         * doc/posix-functions/realpath.texi (realpath): Likewise.
24438
24439         canonicalize-lgpl: reject non-directory with trailing slash
24440         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24441         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24442         catches failures in glibc 2.3.5.
24443         * tests/test-canonicalize.c (main): Likewise.
24444
24445         canonicalize-lgpl: use native realpath if it works
24446         * lib/canonicalize-lgpl.c (realpath): Guard with
24447         FUNC_REALPATH_WORKS.
24448         * lib/stdlib.in.h (realpath): Make declaration optional based on
24449         HAVE_REALPATH.
24450         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24451         native realpath works.
24452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24453         * modules/stdlib (Makefile.am): Substitute witness.
24454
24455         canonicalize, canonicalize-lgpl: use <stdlib.h>
24456         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24457         (Include): Mention <stdlib.h>.
24458         (configure.ac): Mention functions we provide.
24459         * modules/canonicalize (configure.ac): Likewise.
24460         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
24461         realpath if canonicalize_file_name is missing.
24462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
24463         * modules/stdlib (Makefile.am): Substitute witnesses.
24464         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
24465         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
24466         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
24467         * NEWS: Document this.
24468         * doc/glibc-functions/canonicalize_file_name.texi
24469         (canonicalize_file_name): Likewise.
24470         * doc/posix-functions/realpath.texi (realpath): Likewise.
24471         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
24472
24473         test-canonicalize: consolidate into single C program
24474         * tests/test-canonicalize.sh: Delete; move setup into...
24475         * tests/test-canonicalize.c (main): ...the program, making it
24476         easier to run in debugger.  Add some tests.
24477         * modules/canonicalize-tests (Files): Remove unused file.
24478         (Depends-on): Add progname.
24479         (configure.ac, Makefile.am): Simplify.
24480
24481         test-canonicalize-lgpl: consolidate into single C program
24482         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
24483         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
24484         easier to run in debugger.  Add some tests.
24485         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
24486         (configure.ac, Makefile.am): Simplify.
24487
24488         canonicalize: avoid resolvepath
24489         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
24490         unnecessary checks.
24491         * lib/canonicalize.c (includes): Simplify.
24492         (canonicalize_file_name): Drop resolvepath implementation.
24493         * modules/canonicalize (Depends-on): Drop filenamecat.
24494
24495         canonicalize: don't lose errno
24496         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
24497         over calls to free.
24498
24499         canonicalize: simplify errno handling
24500         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
24501         assignment.
24502
24503         canonicalize, canonicalize-lgpl: update module dependencies
24504         * modules/canonicalize (Depends-on): Add extensions, lstat,
24505         pathmax, stdlib.
24506         (Files): Drop pathmax.h.
24507         (configure.ac): Adjust macro name.
24508         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
24509         lstat, stdlib, sys_stat.
24510         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
24511         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
24512         extensions.
24513         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
24514         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
24515         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
24516         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
24517         declaration, if available.
24518         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
24519         we can rely on the readlink module.
24520         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
24521         (includes): Use <unistd.h> unconditionally.
24522
24523 2009-09-17  Eric Blake  <ebb9@byu.net>
24524
24525         maint: make Include sections of modules consistent
24526         * modules/alloca: Use only header name; no need to list #include.
24527         * modules/alloca-opt: Likewise.
24528         * modules/arpa_inet: Likewise.
24529         * modules/canon-host: Likewise.
24530         * modules/configmake: Likewise.
24531         * modules/dirent: Likewise.
24532         * modules/eealloc: Likewise.
24533         * modules/environ: Likewise.
24534         * modules/fchdir: Likewise.
24535         * modules/fcntl: Likewise.
24536         * modules/fcntl-h: Likewise.
24537         * modules/gethrxtime: Likewise.
24538         * modules/gettime: Likewise.
24539         * modules/ignore-value: Likewise.
24540         * modules/inet_ntop: Likewise.
24541         * modules/inet_pton: Likewise.
24542         * modules/inttypes: Likewise.
24543         * modules/isnand-nolibm: Likewise.
24544         * modules/isnanf-nolibm: Likewise.
24545         * modules/mbchar: Likewise.
24546         * modules/mbfile: Likewise.
24547         * modules/mbiter: Likewise.
24548         * modules/mbuiter: Likewise.
24549         * modules/netdb: Likewise.
24550         * modules/netinet_in: Likewise.
24551         * modules/nproc: Likewise.
24552         * modules/pagealign_alloc: Likewise.
24553         * modules/poll: Likewise.
24554         * modules/printf-frexp: Likewise.
24555         * modules/pthread: Likewise.
24556         * modules/putenv: Likewise.
24557         * modules/random_r: Likewise.
24558         * modules/relocatable-prog: Likewise.
24559         * modules/search: Likewise.
24560         * modules/select: Likewise.
24561         * modules/selinux-h: Likewise.
24562         * modules/settime: Likewise.
24563         * modules/signal: Likewise.
24564         * modules/size_max: Likewise.
24565         * modules/socklen: Likewise.
24566         * modules/ssize_t: Likewise.
24567         * modules/stdarg: Likewise.
24568         * modules/stdbool: Likewise.
24569         * modules/stddef: Likewise.
24570         * modules/stdint: Likewise.
24571         * modules/stdio: Likewise.
24572         * modules/stdlib: Likewise.
24573         * modules/string: Likewise.
24574         * modules/strings: Likewise.
24575         * modules/sys_file: Likewise.
24576         * modules/sys_ioctl: Likewise.
24577         * modules/sys_select: Likewise.
24578         * modules/sys_socket: Likewise.
24579         * modules/sys_stat: Likewise.
24580         * modules/sys_time: Likewise.
24581         * modules/sys_times: Likewise.
24582         * modules/sys_utsname: Likewise.
24583         * modules/sys_wait: Likewise.
24584         * modules/sysexits: Likewise.
24585         * modules/time: Likewise.
24586         * modules/times: Likewise.
24587         * modules/tmpfile: Likewise.
24588         * modules/trim: Likewise.
24589         * modules/unistd: Likewise.
24590         * modules/wchar: Likewise.
24591         * modules/wctype: Likewise.
24592
24593 2009-09-17  Bruno Haible  <bruno@clisp.org>
24594
24595         Make getdate.y compile on QNX and NetBSD 5 / i386.
24596         * m4/getdate.m4 (gl_GETDATE): Conditionally define
24597         TIME_T_FITS_IN_LONG_INT.
24598         * lib/getdate.y (long_time_t): New type.
24599         (relative_time): Change type of 'seconds' field to long_time_t.
24600         (get_date): Update types of local variables. Check against overflow
24601         during conversion from long_time_t to time_t.
24602         Reported by Matt Kraai <kraai@ftbfs.org>
24603         and Hasso Tepper <hasso@netbsd.org>.
24604
24605 2009-09-17  Bruno Haible  <bruno@clisp.org>
24606
24607         * modules/COPYING: Update copyright years.
24608         * modules/README: Likeiwse.
24609         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
24610         Reported by Ian Beckwith <ianb@erislabs.net>.
24611
24612 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24613
24614         * users.txt: Update references for gnuit package.
24615
24616 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24617
24618         * m4/getdelim.m4: Fix typo in copyright line.
24619
24620 2009-09-17  Bruno Haible  <bruno@clisp.org>
24621
24622         * lib/atoll.c: Use the standard header with GPL copyright.
24623         * lib/argz.in.h: Likewise.
24624         * lib/glob.c: Likewise.
24625         * lib/glob-libc.h: Likewise.
24626         * lib/random_r.c: Likewise.
24627         * lib/siglist.h: Likewise.
24628         * lib/strsignal.c: Likewise.
24629         Reported by Ian Beckwith <ianb@erislabs.net>.
24630
24631 2009-09-17  Eric Blake  <ebb9@byu.net>
24632
24633         rmdir: ensure correct dependency order
24634         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
24635
24636 2009-09-17  Bruno Haible  <bruno@clisp.org>
24637
24638         Disable assertion that fails on NetBSD 5 / i386.
24639         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
24640         Reported by Sam Steingold <sds@gnu.org>
24641         and Hasso Tepper <hasso@netbsd.org>.
24642
24643 2009-09-16  Eric Blake  <ebb9@byu.net>
24644
24645         unlinkdir: port to mingw
24646         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
24647         on which no one can unlink a directory.
24648
24649         stdlib: sort witness names
24650         * modules/stdlib (Makefile.am): Sort replacements.
24651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24652         * lib/stdlib.in.h: Likewise.
24653
24654         parse-duration-tests: avoid link failure
24655         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
24656         LIBINTL.
24657         Reported by Tom G. Christensen.
24658
24659         openat-tests: ensure unlinkat behaves like rmdir
24660         * tests/test-rmdir.c (main): Factor guts...
24661         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
24662         * modules/rmdir-tests (Files): Ship new file.
24663         * modules/openat-tests: New test.
24664         * tests/test-unlinkat.c: Likewise.
24665
24666         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
24667         * modules/rmdir-errno (Status, Notice): Now obsolete.
24668
24669         rmdir: work around cygwin 1.5.x and mingw bugs
24670         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
24671         * lib/rmdir.c (rmdir): Work around it.
24672         * modules/rmdir (Status, Notice): No longer obsolete.
24673         (Files): Add dos.m4.
24674         (Depends-on): Add unistd.
24675         (configure.ac): Set witnesses.
24676         (License): Relax to LGPLv2+.
24677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
24678         * modules/unistd (Makefile.am): Substitute witnesses.
24679         * lib/unistd.in.h (rmdir): Declare replacement.
24680         * doc/posix-functions/rmdir.texi (rmdir): Document this.
24681         * modules/rmdir-tests: New tests.
24682         * tests/test-rmdir.c: Likewise.
24683
24684 2009-09-15  Eric Blake  <ebb9@byu.net>
24685
24686         fchdir: improve use of replacement functions
24687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
24688         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
24689         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
24690         REPLACE_CLOSEDIR.
24691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
24692         * modules/sys_stat (Makefile.am): Substitute correct witness.
24693         * modules/dirent (Makefile.am): Likewise.
24694         * modules/unistd (Makefile.am): Likewise.
24695         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
24696         * lib/unistd.in.h (dup): Likewise.
24697         * lib/sys_stat.in.h (fstat): Likewise.
24698
24699         maint: ignore gnulib-tool temp files
24700         * .gitignore: Ignore files created during gnulib-tool --test.
24701
24702 2009-09-13  Jim Meyering  <meyering@redhat.com>
24703
24704         posixtm: don't reject a time that specify "60" as the number of seconds
24705         * lib/posixtm.c (posixtime): The code to reject invalid dates
24706         would also reject a time specified with the .60 suffix.
24707         But POSIX allows that, in order to accommodate leap seconds.
24708         So don't reject it.
24709         (main): Adjust tests accordingly.
24710         * modules/posixtm (Depends-on): Add stpcpy.
24711
24712 2009-09-11  Jim Meyering  <meyering@redhat.com>
24713
24714         announce-gen: include [$release_type] in emitted Subject:
24715         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
24716         e.g., [stable] in the emitted Subject: line.
24717
24718 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24719
24720         Remove obsolete macros from several modules.
24721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
24722         obsolete Autoconf macros with their modern counterparts.
24723         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
24724         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
24725         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24726         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24727         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
24728         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24730         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24731         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24732         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
24733         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24734         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24735         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
24736         * m4/sockets.m4 (gl_SOCKETS): Likewise.
24737         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
24738         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
24739         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24740         * m4/time_r.m4 (gl_TIME_R): Likewise.
24741         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24742         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
24743         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24744
24745         Fix copyright header in build-aux scripts.
24746         * build-aux/git-version-gen: Fix copyright header to match GPLv3
24747         recommendation.
24748         * build-aux/ncftpput-ftp: Likewise.
24749         * build-aux/update-copyright: Likewise.
24750
24751 2009-09-09  Eric Blake  <ebb9@byu.net>
24752
24753         test-link: allow Linux choice of errno
24754         * tests/test-link.c (main): Relax test for alternate error.
24755
24756         strndup: fix improper m4 caching
24757         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
24758         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
24759         (gl_PREREQ_STRNDUP): Delete.
24760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
24761         * modules/string (Makefile.am): Substitute it.
24762         * lib/string.in.h (strndup): Modernize prototype.
24763
24764         getcwd: port to mingw
24765         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
24766         different from the POSIX assumptions made throughout the getcwd
24767         module; fortunately, the mingw getcwd does not need replacement.
24768         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
24769         * modules/getcwd-tests: New test.
24770         * tests/test-getcwd.c: Likewise.
24771
24772         link: fix platform bugs
24773         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
24774         * lib/link.c (link): Work around them.  Fix related mingw bug.
24775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
24776         * modules/unistd (Makefile.am): Substitute it.
24777         * lib/unistd.in.h (link): Declare replacement.
24778         * doc/posix-functions/link.texi (link): Document this.
24779         * modules/link (Depends-on): Add strdup-posix, sys_stat.
24780
24781         test-link: consolidate into single C program, test more cases
24782         * tests/test-link.sh: Delete.
24783         * tests/test-link.c: Test more error conditions.  Exposes bugs on
24784         at least Cygwin and Solaris.
24785         * modules/link-tests (Files): Remove unused file.
24786         (Depends-on): Add errno, sys_stat.
24787         (Makefile.am): Simplify.
24788
24789 2009-09-08  Bruno Haible  <bruno@clisp.org>
24790
24791         Work around towlower, towupper bug on mingw.
24792         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
24793         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
24794         * doc/posix-functions/towlower.texi: Mention the mingw bug.
24795         * doc/posix-functions/towupper.texi: Likewise.
24796         Reported by Eric Blake.
24797
24798 2009-09-08  Jim Meyering  <meyering@redhat.com>
24799
24800         build: don't try to run autoheader if we don't use it
24801         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24802         is not used in configure.ac.
24803
24804 2009-09-08  Eric Blake  <ebb9@byu.net>
24805
24806         euidaccess: fix compilation error
24807         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24808
24809         rawmemchr: relax license
24810         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24811         okay.
24812         Reported by Jim Meyering.
24813
24814         mkfifoat: new module
24815         * modules/mkfifoat: New file.
24816         * lib/mkfifoat.c: Likewise.
24817         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24819         * modules/sys_stat (Makefile.am): Use them.
24820         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24821         * MODULES.html.sh (File system functions): Mention module.
24822         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24823         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24824         * modules/mkfifoat-tests: New test.
24825         * tests/test-mkfifoat.c: Likewise.
24826
24827         strchrnul: relax license
24828         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24829         okay.
24830         Reported by Jim Meyering.
24831
24832 2009-09-08  Eric Blake  <ebb9@byu.net>
24833
24834         fstatat: fix compilation on Solaris
24835         * lib/fstatat.c (includes): Add fcntl.h.
24836         Reported by Pádraig Brady.
24837
24838 2009-09-07  Eric Blake  <ebb9@byu.net>
24839
24840         rename: modernize replacement
24841         * modules/rename (Depends-on): Add stdio.
24842         (configure.ac): Declare witness.
24843         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24844         stdio take care of replacement.
24845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24846         * modules/stdio (Makefile.am): Substitute them.
24847         * lib/stdio.in.h (rename): Declare replacement.
24848         * lib/rename.c (includes): Allow cross-compilation to non-windows
24849         machines.
24850         * doc/posix-functions/rename.texi (rename): Improve
24851         documentation.
24852
24853         stdio: sort witness names
24854         * modules/stdio (Makefile.am): Sort replacements.
24855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24856         * lib/stdio.in.h: Likewise.
24857
24858         getcwd: minor cleanups
24859         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24860         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24861
24862         openat: provide more convenience names
24863         * modules/faccessat (configure.ac): Add C witness.
24864         * lib/unistd.in.h (readlinkat): Fix typo.
24865         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24866         convenience wrappers.
24867         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24868         wrappers in syntax checks.
24869
24870 2009-09-06  Eric Blake  <ebb9@byu.net>
24871
24872         doc: fix comments in recent patches
24873         * lib/faccessat.c: Mention correct function.
24874         * lib/fchmodat.c: Likewise.
24875         * lib/fchownat.c: Likewise.
24876         * lib/symlinkat.c: Likewise.
24877         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24878         constants.
24879
24880         faccessat, symlinkat: continue cleanup of previous patch
24881         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24882         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24883         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24885         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24886         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24887         set.
24888
24889 2009-09-06  Bruno Haible  <bruno@clisp.org>
24890
24891         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24892         (fstatat): Declare if GNULIB_FSTATAT is set.
24893         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24894         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24895         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24896         * modules/fcntl-h (Files): Remove m4/openat.m4.
24897         * modules/sys_stat (Files): Remove m4/openat.m4.
24898         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24899         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24900         * modules/unistd (Files): Remove m4/openat.m4.
24901         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24902         GNULIB_OPENAT.
24903         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24904         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24905         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24906         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24907         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24908         gl_OPENAT_DEFAULTS.
24909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24910         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24911         Don't require gl_OPENAT_DEFAULTS.
24912         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24913         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24914         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24915         (gl_OPENAT_DEFAULTS): Remove macro.
24916
24917 2009-09-06  Bruno Haible  <bruno@clisp.org>
24918
24919         * modules/openat (configure.ac): Remove unneeded witness.
24920
24921 2009-09-06  Bruno Haible  <bruno@clisp.org>
24922
24923         Set errno to ENOSYS when a function is entirely unsupported.
24924         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24925         EOPNOTSUPP.
24926         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24927         * modules/chown (Depends-on): Remove errno.
24928
24929 2009-09-06  Bruno Haible  <bruno@clisp.org>
24930
24931         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24932
24933 2009-09-06  Bruno Haible  <bruno@clisp.org>
24934
24935         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24936
24937 2009-09-06  Ben Pfaff  <blp@gnu.org>
24938             Bruno Haible  <bruno@clisp.org>
24939
24940         Work around a glibc bug in strtok_r.
24941         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24942         Undefine if UNDEFINE_STRTOK_R is set.
24943         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24945         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24946         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24947         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24948         UNDEFINE_STRTOK_R.
24949         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24950
24951 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24952
24953         exclude: minor fix
24954         * lib/exclude.c: Include wctype.h
24955
24956 2009-09-06  Akim Demaille  <demaille@gostai.com>
24957
24958         bootstrap: improve error message
24959         * build-aux/bootstrap (find_tool): Upon failure, report the list
24960         of candidates.
24961         Honor the initial value of the envvar.
24962
24963 2009-09-05  Eric Blake  <ebb9@byu.net>
24964
24965         symlinkat: new module
24966         * modules/symlinkat: New file.
24967         * lib/symlinkat.c: Likewise.
24968         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24970         * modules/unistd (Makefile.am): Use them.
24971         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24972         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24973         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24974         * MODULES.html.sh (File system functions): Mention module.
24975         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24976         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24977         * modules/symlinkat-tests: New test.
24978         * tests/test-symlinkat.c: Likewise.
24979
24980         test-openat-safer: add more checks
24981         * tests/test-openat-safer.c (main): Check more code paths.
24982
24983 2009-09-05  Jim Meyering  <meyering@redhat.com>
24984
24985         syntax-check: detect unnecessary inclusion of openat.h
24986         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24987
24988 2009-09-05  Bruno Haible  <bruno@clisp.org>
24989
24990         Support towlower, towupper.
24991         * doc/posix-functions/towlower.texi: Mention module wctype.
24992         * doc/posix-functions/towupper.texi: Likewise.
24993         * lib/wctype.in.h (towlower, towupper): New functions.
24994         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24995         (ASSERT): New macro.
24996         (e): New variable.
24997         (main): Test also towlower, towupper. Test WEOF argument.
24998         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24999
25000 2009-09-05  Bruno Haible  <bruno@clisp.org>
25001
25002         Fix conversion behaviour when the input is invalid.
25003         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25004         mark occurring in first pass of indirect conversion.
25005         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25006         input.
25007         Found by clang's static analyzer.
25008
25009 2009-09-05  Bruno Haible  <bruno@clisp.org>
25010
25011         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25012         where direct conversion is possible.
25013
25014 2009-09-04  Eric Blake  <ebb9@byu.net>
25015
25016         openat: fail with ENOENT on empty name
25017         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25018         buffer.
25019
25020         link-follow: fix logic bug in prior patch
25021         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25022         reversed sense of yes and no in prior patch.  Avoid confusing
25023         compilation failure with desired semantics.
25024
25025         link-follow: accomodate mingw and cross-compilation
25026         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25027         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25028         cross-compilation results to -1, to make linkat easier to
25029         implement when cross-compiling.  Trivially support mingw.
25030         * modules/link-follow (configure.ac): Call new name.
25031         * NEWS: Mention this.
25032
25033 2009-09-03  Eric Blake  <ebb9@byu.net>
25034
25035         faccessat: compile replacement
25036         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25037         needed.
25038
25039         fts: fix compilation error
25040         * lib/fts.c (includes): Re-add "openat.h", for
25041         openat_needs_fchdir.
25042
25043         faccessat: new module
25044         * modules/faccessat: New file.
25045         * lib/faccessat.c: Likewise.
25046         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25048         * modules/unistd (Makefile.am): Use it.
25049         * lib/unistd.in.h (faccessat): Declare it.
25050         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25051         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25052         * MODULES.html.sh (File system functions): Mention it.
25053         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25054         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25055
25056         euidaccess: prefer POSIX over non-standard implementation
25057         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25058         * lib/euidaccess.c (euidaccess): Use it if available.
25059
25060         openat: make template easier to use
25061         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25062         AT_FUNC_F2 to be undefined.
25063         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25064         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25065         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25066         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25067         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25068         Likewise.
25069         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25070         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25071         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25072         Likewise.
25073
25074         openat: declare in POSIX headers
25075         * NEWS: Mention this.
25076         * modules/openat (configure.ac): Declare witnesses.
25077         (Depends-on): Add fcntl-h, sys_stat, unistd.
25078         (Include): Mention correct headers.
25079         * modules/fcntl-h (Depends-on): Add link-warning.
25080         (Files): Add openat.m4.
25081         (Makefile.am): Substitute witnesses.
25082         * modules/sys_stat (Files, Makefile.am): Likewise.
25083         * modules/unistd (Files, Makefile.am): Likewise.
25084         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25085         (gl_OPENAT_DEFAULTS): New macro.
25086         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25089         (SYS_STAT_H): Remove unused variable.
25090         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25091         * lib/fcntl--.h (includes): Remove unneeded header.
25092         * lib/openat-safer.c (includes): Likewise.
25093         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25094         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25095         appropriate headers.
25096         (__OPENAT_PREFIX): Delete.
25097         * lib/fcntl.in.h (openat): Provide declaration.
25098         (AT_FDCWD): Fix Solaris bug.
25099         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25100         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25101         * lib/fchmodat.c (includes):  Adjust to find declaration.
25102         * lib/fchownat.c (includes): Likewise.
25103         * lib/mkdirat.c (includes): Likewise.
25104         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25105         still visible.
25106
25107 2009-09-02  Eric Blake  <ebb9@byu.net>
25108
25109         errno: use consistently
25110         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25111         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25112         * lib/canonicalize.c (ELOOP): Likewise.
25113         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25114         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25115         * lib/lchown.c (EOPNOTSUPP): Likewise.
25116         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25117         * lib/savewd.c (ESTALE): Likewise.
25118         * lib/settime.c (ENOSYS): Likewise.
25119         * lib/utimens.c (ENOSYS): Likewise.
25120         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25121         * lib/chdir-safer.c (ELOOP): Likewise.
25122         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25123         * modules/c-stack (Depends-on): Add errno.
25124         * modules/canonicalize (Depends-on): Likewise.
25125         * modules/chdir-safer (Depends-on): Likewise.
25126         * modules/fdopendir (Depends-on): Likewise.
25127         * modules/inet_ntop (Depends-on): Likewise.
25128         * modules/inet_pton (Depends-on): Likewise.
25129         * modules/lchown (Depends-on): Likewise.
25130         * modules/openat (Depends-on): Likewise.
25131         * modules/savewd (Depends-on): Likewise.
25132         * modules/settime (Depends-on): Likewise.
25133         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25134
25135         fts: avoid leaking fds
25136         * modules/fts (Depends-on): Add cloexec.
25137         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25138         flag.
25139
25140         fts: make directory fds more robust
25141         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25142         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25143
25144         backupfile, chdir-long, fts, savedir: make safer
25145         * lib/backupfile.c (includes): Use "dirent--.h", since
25146         numbered_backup can write to stderr during readdir.
25147         * lib/savedir.c (includes): Likewise.
25148         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25149         emulation can write to stderr on failure.
25150         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25151         * lib/getcwd.c: Document why opendir_safer is unused.
25152         * lib/glob.c: Likewise.
25153         * lib/scandir.c: Likewise.
25154         * lib/openat-proc.c: Likewise, for open_safer.
25155         * modules/backupfile (Depends-on): Add dirent-safer.
25156         * modules/savedir (Depends-on): Likewise.
25157         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25158         * modules/chdir-long (Depends-on): Add openat-safer.
25159
25160         openat-safer: new module
25161         * modules/openat-safer: New file.
25162         * lib/openat-safer.c: Likewise.
25163         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25164         * lib/fcntl-safer.h (openat_safer): Declare.
25165         * lib/fcntl--.h (openat): Override.
25166         * MODULES.html.sh (File descriptor based I/O): Mention it.
25167         * lib/openat.h: Add double-inclusion guards.
25168         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25169         "fcntl--.h", so we can implement openat.
25170         * modules/openat-safer-tests: New test.
25171         * tests/test-openat-safer.c: New file.
25172
25173         dirent-safer: new module
25174         * modules/dirent-safer: New file.
25175         * lib/dirent--.h: Likewise.
25176         * lib/dirent-safer.h: Likewise.
25177         * lib/opendir-safer.c: Likewise.
25178         * m4/dirent-safer.m4: Likewise.
25179         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25180         * modules/dirent-safer-tests: New test.
25181         * tests/test-dirent-safer.c: New file.
25182         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25183
25184         fdopendir: optimize on mingw
25185         * lib/unistd.in.h (_gl_directory_name): New prototype.
25186         * lib/fchdir.c (_gl_directory_name): Implement it.
25187         (fchdir): Use it to simplify implementation.
25188         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25189         fchdir, when available, to avoid calling [f]chdir().
25190
25191         fdopendir: split into its own module
25192         * lib/openat.c (fdopendir): Move...
25193         * lib/fdopendir.c: ...into new file.
25194         * modules/fdopendir: New module.
25195         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25196         * modules/openat (Depends-on): Add fdopendir.
25197         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25198         fdopendir here.
25199         * modules/savedir (Depends-on): Only need fdopendir, not full
25200         openat.
25201         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25202         * lib/openat.h (fdopendir): Drop prototype.
25203         * lib/dirent.in.h (fdopendir): Provide prototype.
25204         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25205         * modules/dirent (Makefile.am): Substitute them.
25206         * MODULES.html.sh (File system functions): Mention it.
25207         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25208         * modules/fdopendir-tests: New file.
25209         * tests/test-fdopendir.c: Likewise.
25210
25211         fchdir: use more consistent macro convention
25212         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25213         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25214         REPLACE_FCHDIR, rather than relying on config.h macros.
25215         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25216         inside a single make-time REPLACE_FCHDIR block, rather than using
25217         the config.h FCHDIR_REPLACEMENT.
25218         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25219         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25220         Manage fstat replacement.
25221         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25222         REPLACE_FCHDIR.
25223         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25224         (Makefile.am): Substitute REPLACE_FCHDIR.
25225         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25226         FCHDIR_REPLACEMENT.
25227         * lib/dup-safer.c (dup_safer): Likewise.
25228         * lib/dup2.c (rpl_dup2): Likewise.
25229         * lib/dup3.c (rpl_dup3): Likewise.
25230         * lib/open.c (rpl_open): Likewise.
25231
25232         fchdir: simplify error handling, and support dup3
25233         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25234         stdbool, malloc-posix, realloc-posix.
25235         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25236         (ensure_dirs_slot): Return false on allocation failure.
25237         (rpl_dup2): Delete.
25238         (_gl_register_dup): New function.
25239         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25240         (_gl_register_fd): Close fd on allocation failure.
25241         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25242         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25243         prototype.
25244         (rpl_dup2_fchdir): Delete prototype.
25245         * lib/open.c (open): Update caller.
25246         * lib/dup2.c (dup2): Track fchdir metadata.
25247         * lib/dup3.c (dup3): Likewise.
25248         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25249         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25250
25251 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25252
25253         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25254         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25255         don't pass arguments to AC_OUTPUT.
25256
25257 2009-09-02  Bruno Haible  <bruno@clisp.org>
25258
25259         * modules/mkdtemp (License): Relicense under LGPLv2+.
25260         Reported by Paolo Bonzini.
25261
25262 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25263
25264         Replace uses of obsolete autoconf macros in Jim's modules.
25265         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25266         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25267         can evoke a warning from autoconf when run with -Wobsolete
25268         enabled.  They were declared obsolete for good reasons (see
25269         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25270         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25271         should not continue using the deprecated macros.
25272         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25273         obsolete Autoconf macros with modern counterparts.
25274         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25275         * m4/dos.m4 (gl_AC_DOS): Likewise.
25276         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25278         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25279         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25280         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25282         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25283         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25284         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25285         Likewise.
25286         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25287         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25288         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25289         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25290         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25291         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25292
25293 2009-09-01  Eric Blake  <ebb9@byu.net>
25294
25295         fchdir: fix off-by-one bug in previous patch
25296         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25297         (_gl_unregister_fd): Delete useless if.
25298
25299 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25300
25301         maint.mk: sort the list of syntax-check rules
25302         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25303         easier to get a sense of progress when the rules are run sequentially
25304         and take a long time.
25305
25306 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25307
25308         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25309         * modules/netinet_in: Likewise.
25310         * modules/sys_file: Likewise.
25311         * modules/sys_ioctl: Likewise.
25312         * modules/sys_select: Likewise.
25313         * modules/sys_socket: Likewise.
25314         * modules/sys_stat: Likewise.
25315         * modules/sys_time: Likewise.
25316         * modules/sys_times: Likewise.
25317         * modules/sys_utsname: Likewise.
25318         * modules/sys_wait: Likewise.
25319
25320 2009-09-01  Jim Meyering  <meyering@redhat.com>
25321
25322         fts: help ensure that return values are not ignored
25323         * lib/fts_.h (__GNUC_PREREQ): Define.
25324         (__attribute_warn_unused_result__): Define.
25325         (fts_children, fts_close, fts_open, fts_read): Declare with
25326         __attribute_warn_unused_result__.
25327
25328         fts: fts_close now fails also when closing a dir file descriptor fails
25329         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25330         and propagate to caller, along with errno.
25331
25332         announce-gen: correct formatting in --help output
25333         * build-aux/announce-gen (usage): Move the one-line description in
25334         --help output "up", to where it belongs, just after Usage:.
25335
25336 2009-08-31  Eric Blake  <ebb9@byu.net>
25337
25338         fchdir: port to mingw
25339         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25340         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25341         opened, then use a substitute.
25342         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25343         replacement.
25344         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25345         (_gl_register_fd): No need to check stat if open already filters
25346         all directories.
25347         (fchdir): Fix error condition to match POSIX.
25348         * modules/fchdir (Depends-on): Add sys_stat.
25349         * doc/posix-functions/open.texi (open): Document the limitation.
25350         * modules/fchdir-tests: New file.
25351         * tests/test-fchdir.c: Likewise.
25352
25353         canonicalize: allow cross-testing from cygwin to mingw
25354         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25355         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25356         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25357         Likewise.
25358         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25359         target does not support symlinks.
25360         * tests/test-canonicalize-lgpl.sh: Likewise.
25361
25362         chown: avoid compilation warning on mingw
25363         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25364         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25365         mingw.
25366         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25367         * modules/chown (Depends-on): Add errno.
25368
25369 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25370
25371         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25372         command.
25373
25374 2009-08-31  Jim Meyering  <meyering@redhat.com>
25375
25376         canonicalize: remove useless initialization
25377         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25378         initialization of local, "end".
25379
25380 2009-08-30  Bruno Haible  <bruno@clisp.org>
25381
25382         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25383         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25384         ENOSYS.
25385
25386 2009-08-30  Bruno Haible  <bruno@clisp.org>
25387
25388         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25389         /usr/xpg4/bin/tr when it exists.
25390         * tests/test-pipe-filter-gi1.sh: Likewise.
25391
25392 2009-08-30  Bruno Haible  <bruno@clisp.org>
25393
25394         Work around deficient /usr/bin/id program on Solaris.
25395         * tests/test-file-has-acl.sh (ID): New variable.
25396         * tests/test-set-mode-acl.sh (ID): Likewise.
25397         * tests/test-copy-acl.sh (ID): Likewise.
25398         * tests/test-copy-file.sh (ID): Likewise.
25399
25400 2009-08-30  Bruno Haible  <bruno@clisp.org>
25401
25402         New module 'xstriconveh'.
25403         * lib/xstriconveh.h: New file.
25404         * lib/xstriconveh.c: New file.
25405         * modules/xstriconveh: New file.
25406
25407 2009-08-30  Bruno Haible  <bruno@clisp.org>
25408
25409         Make it easier to use mem_cd_iconveh.
25410         * lib/striconveh.h (iconveh_t): New type.
25411         (iconveh_open, iconveh_close): New declarations.
25412         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25413         with a single 'const iconveh_t *' argument.
25414         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25415         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25416         with a single 'const iconveh_t *' argument.
25417         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25418         * tests/test-striconveh.c (main): Update.
25419         * NEWS: Mention the change.
25420
25421 2009-08-30  Bruno Haible  <bruno@clisp.org>
25422
25423         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25424         problem.
25425
25426 2009-08-30  Bruno Haible  <bruno@clisp.org>
25427
25428         Work around iconv_open problem on Solaris.
25429         * lib/iconv_open-solaris.gperf: New file.
25430         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25431         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25432         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25433         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25434         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25435         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25436
25437 2009-08-29  Jim Meyering  <meyering@redhat.com>
25438
25439         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25440         * top/maint.mk (cvs-check): Remove target; it was just an alias
25441         to the better-named vc-diff-check.
25442         (maintainer-distcheck): Remove rule.  It was used only from
25443         the (alpha/beta/major) target, and all of its commands but one
25444         were coreutils-specific.
25445         (vc-dist): Remove rule.
25446         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25447         Run vc-diff-check, not vc-dist.
25448         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25449
25450 2009-08-27  Bruno Haible  <bruno@clisp.org>
25451
25452         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25453         of 0.
25454
25455 2009-08-27  Bruno Haible  <bruno@clisp.org>
25456
25457         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25458         compilers.
25459         * doc/func.texi: Document the SunPRO C bug.
25460
25461 2009-08-27  Bruno Haible  <bruno@clisp.org>
25462
25463         Fix link error on Solaris.
25464         * tests/test-parse-duration.c (xstrdup): Remove function.
25465
25466 2009-08-26  Pádraig Brady  <P@draigbrady.com>
25467
25468         ignore-value: handle pointer types, too
25469         * lib/ignore-value.h (__attribute__): Remove definition.
25470         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
25471         of a more concise and more-often effective "(void) i" statement.
25472         (ignore_ptr): New function to suppress warnings from functions that
25473         return pointers, and to make it explicit that one function doesn't
25474         handle all cases.
25475
25476 2009-08-25  Bruno Haible  <bruno@clisp.org>
25477
25478         dup2: work around a Linux bug.
25479         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
25480         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
25481         * doc/posix-functions/dup2.texi: Mention the Linux bug.
25482         Reported by Simon Josefsson.
25483
25484 2009-08-25  Jim Meyering  <meyering@redhat.com>
25485
25486         libguestfs uses gnulib
25487         * users.txt: Add libguestfs.
25488
25489 2009-08-24  Eric Blake  <ebb9@byu.net>
25490
25491         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
25492         * lib/pipe2.c (includes): Add binary-io.h.
25493         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
25494
25495 2009-08-24  Bruno Haible  <bruno@clisp.org>
25496
25497         Tolerate declared but missing accept4 syscall.
25498         * lib/accept4.c (accept4): Invoke original accept4 function first, if
25499         available.
25500         * lib/sys_socket.in.h (accept4): If the function is already present,
25501         override it.
25502         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
25503         * modules/accept4 (Makefile.am): Compile accept4.c always.
25504         Reported by Paolo Bonzini and Eric Blake.
25505
25506 2009-08-23  Bruno Haible  <bruno@clisp.org>
25507
25508         New module 'accept4'.
25509         * lib/sys_socket.in.h (accept4): New declaration.
25510         * lib/accept4.c: New file.
25511         * m4/accept4.m4: New file.
25512         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25513         GNULIB_ACCEPT4, HAVE_ACCEPT4.
25514         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
25515         HAVE_ACCEPT4.
25516         * modules/accept4: New file.
25517         * doc/glibc-functions/accept4.texi: Mention the new module.
25518
25519 2009-08-24  Jim Meyering  <meyering@redhat.com>
25520
25521         progname: also set global program_invocation_name, when possible
25522         Before this change, a libtool-enabled program that calls glibc's
25523         error function would report the program name as
25524         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
25525         * modules/progname (configure.ac): Check for a declaration of
25526         program_invocation_name.
25527         * lib/progname.c:  Include <errno.h>.
25528         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
25529         Set program_invocation_name.
25530
25531 2009-08-23  Bruno Haible  <bruno@clisp.org>
25532
25533         * lib/dup3.c: Include <string.h>.
25534
25535 2009-08-23  Bruno Haible  <bruno@clisp.org>
25536
25537         * lib/dup3.c (dup3): Test only once whether the system actually exists.
25538         * lib/pipe2.c (pipe2): Likewise.
25539         Suggested by Eric Blake.
25540
25541 2009-08-23  Bruno Haible  <bruno@clisp.org>
25542
25543         Tolerate declared but missing dup3 syscall.
25544         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
25545         * lib/unistd.in.h (dup3): If the function is already present,
25546         override it.
25547         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
25548         * modules/dup3 (Makefile.am): Compile dup3.c always.
25549         Reported by Paolo Bonzini.
25550
25551 2009-08-23  Bruno Haible  <bruno@clisp.org>
25552
25553         Tolerate declared but missing pipe2 syscall.
25554         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
25555         available.
25556         * lib/unistd.in.h (pipe2): If the function is already present,
25557         override it.
25558         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
25559         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
25560         Reported by Paolo Bonzini.
25561
25562 2009-08-23  Bruno Haible  <bruno@clisp.org>
25563
25564         * lib/pipe2.c (pipe2): Move #ifs inside function.
25565
25566 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25567
25568         quotearg: document limitations of quote_these_too
25569         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
25570         those limitations are created.
25571         * lib/quotearg.h (set_char_quoting): Document that digits and
25572         letters that are special after backslash are not permitted.
25573         (quotearg_char): Cross-reference set_char_quoting documentation.
25574
25575 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
25576
25577         quotearg: implement custom_quoting_style
25578         * lib/quotearg.c: (struct quoting_options): Add left_quote and
25579         right_quote fields.
25580         (set_custom_quoting): New public function.
25581         (quotearg_buffer_restyled): Add left_quote and right_quote
25582         arguments, handle them very much like locale quoting, and update
25583         all uses.
25584         (quotearg_n_custom): New public function.
25585         (quotearg_n_custom_mem): New public function.
25586         (quotearg_custom): New public function.
25587         (quotearg_custom_mem): New public function.
25588         * lib/quotearg.h: Prototype and document new public functions.
25589         (enum quoting_style): For escape_quoting_style and
25590         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
25591         ignored even though they're otherwise like c_quoting_style.
25592         Add custom_quoting_style member and document with comparison to
25593         clocale_quoting_style.
25594         * tests/test-quotearg.c (custom_quotes): New array.
25595         (custom_results): New array.
25596         (main): Extend to test custom quoting.
25597
25598 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25599
25600         quotearg: fix right quote escaping when it's in quote_these_too
25601         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
25602         quote, be sure to prepend only one backslash.
25603         * tests/test-quotearg.c (use_quote_double_quotes): New function.
25604         (main): Test it.
25605
25606 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25607
25608         quotearg-tests: test escaping of embedded locale quotes
25609         * tests/test-quotearg.c (struct result_strings): Add member for
25610         new input.
25611         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
25612         (inputs): Add new input.
25613         (results_g): Add expected results.
25614         (flag_results): Likewise.
25615         (locale_results): Likewise.
25616         (compare_strings): Check those.
25617
25618 2009-08-23  Bruno Haible  <bruno@clisp.org>
25619
25620         Tests for module 'dup3'.
25621         * modules/dup3-tests: New file.
25622         * tests/test-dup3.c: New file.
25623
25624         New module 'dup3'.
25625         * lib/unistd.in.h (dup3): New declaration.
25626         * lib/dup3.c: New file.
25627         * m4/dup3.m4: New file.
25628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
25629         HAVE_DUP3.
25630         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
25631         * modules/dup3: New file.
25632         * doc/glibc-functions/dup3.texi: Mention the new module.
25633
25634 2009-08-23  Bruno Haible  <bruno@clisp.org>
25635
25636         Tweak the dup2 test.
25637         * tests/test-dup2.c (main): Create the test file empty. Verify that an
25638         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
25639         the test file is still empty. Fix argument order of lseek.
25640
25641 2009-08-23  Bruno Haible  <bruno@clisp.org>
25642
25643         Avoid test link errors when the modules getopt-gnu, gettext are used.
25644         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
25645         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25646
25647 2009-08-23  Bruno Haible  <bruno@clisp.org>
25648
25649         Fix getdtablesize() on mingw.
25650         * lib/getdtablesize.c (getdtablesize): Implement differently.
25651         * lib/unistd.in.h (getdtablesize): Improve comment.
25652
25653 2009-08-23  Bruno Haible  <bruno@clisp.org>
25654
25655         New module 'mkostemp'.
25656         Based on Ulrich Drepper's 2007-08-10 change in glibc.
25657         * lib/stdlib.in.h (mksotemp): New declaration.
25658         * lib/mkostemp.c: New file, from glibc with modifications.
25659         * lib/tempname.h (GT_FILE): Remove outdated comment.
25660         (gen_tempname): Add flags argument.
25661         * lib/tempname.c (__GT_BIGFILE): Remove macro.
25662         (__GT_FILE): Map to 1.
25663         (small_open, large_open): Remove macros.
25664         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
25665         * lib/mkstemp.c (mkstemp): Update.
25666         * lib/mkdtemp.c (mkdtemp): Likewise.
25667         * m4/mkostemp.m4: New file.
25668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
25669         HAVE_MKOSTEMP.
25670         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
25671         HAVE_MKOSTEMP.
25672         * modules/mkostemp: New file, based on modules/mkstemp.
25673         * doc/glibc-functions/mkostemp.texi: Mention the new module.
25674         * NEWS: Mention the change.
25675
25676 2009-08-23  Bruno Haible  <bruno@clisp.org>
25677
25678         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
25679         Reported by Eric Blake.
25680
25681 2009-08-23  Bruno Haible  <bruno@clisp.org>
25682
25683         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
25684         Reported by Eric Blake.
25685
25686 2009-08-23  Bruno Haible  <bruno@clisp.org>
25687
25688         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
25689         * modules/pipe2 (Depends-on): Likewise.
25690
25691 2009-08-23  Eric Blake  <ebb9@byu.net>
25692
25693         fcntl-h: add O_TTY_INIT support
25694         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
25695         * tests/test-fcntl-h.c (o): Test it.
25696         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25697
25698         fcntl-h: rename from fcntl, in preparation for fcntl(2)
25699         * modules/fcntl: Move <fcntl.h> header replacement...
25700         * modules/fcntl-h: ...to new name, so as not to collide with
25701         like-named function.
25702         * tests/test-fcntl.c: Rename...
25703         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
25704         * modules/fcntl-tests: Rename...
25705         * modules/fcntl-h-tests: ...to this.  Update test file name.
25706         * modules/chdir-long (Depends-on): Update clients.
25707         * modules/chdir-safer (Depends-on): Likewise.
25708         * modules/fcntl-safer (Depends-on): Likewise.
25709         * modules/fts (Depends-on): Likewise.
25710         * modules/mkancesdirs (Depends-on): Likewise.
25711         * modules/mkdir-p (Depends-on): Likewise.
25712         * modules/open (Depends-on): Likewise.
25713         * modules/savewd (Depends-on): Likewise.
25714         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
25715         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25716
25717 2009-08-22  Bruno Haible  <bruno@clisp.org>
25718
25719         * modules/binary-io (License): Relicense under LGPL.
25720         * modules/pipe2 (License): Likewise.
25721
25722 2009-08-22  Bruno Haible  <bruno@clisp.org>
25723
25724         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
25725         return value.
25726         * lib/pipe-filter-gi.c (filter_init): Likewise.
25727         Reported by Eric Blake.
25728
25729 2009-08-22  Bruno Haible  <bruno@clisp.org>
25730
25731         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
25732         * modules/pipe (Depends-on): Add pipe2.
25733
25734 2009-08-22  Bruno Haible  <bruno@clisp.org>
25735
25736         Tests for module 'pipe2'.
25737         * modules/pipe2-tests: New file.
25738         * tests/test-pipe2.c: New file.
25739
25740         New module 'pipe2'.
25741         * lib/unistd.in.h (pipe2): New declaration.
25742         * lib/pipe2.c: New file.
25743         * m4/pipe2.m4: New file.
25744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
25745         HAVE_PIPE2.
25746         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
25747         * modules/pipe2: New file.
25748         * doc/glibc-functions/pipe2.texi: Mention the new module.
25749
25750 2009-08-22  Bruno Haible  <bruno@clisp.org>
25751
25752         Reference some new glibc functions.
25753         * doc/glibc-functions/accept4.texi: New file.
25754         * doc/glibc-functions/dup3.texi: New file.
25755         * doc/glibc-functions/mkostemp.texi: New file.
25756         * doc/glibc-functions/pipe2.texi: New file.
25757         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
25758         (Glibc sys/socket.h): Refer to accept4.
25759         (Glibc unistd.h): Refer to dup3, pipe2.
25760         Reported by Eric Blake.
25761
25762 2009-08-22  Jim Meyering  <meyering@redhat.com>
25763             Bruno Haible  <bruno@clisp.org>
25764
25765         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
25766         This makes it so packages using automake-1.11's silent-rules option
25767         can print e.g., a single "GEN    configmake.h" line, rather than
25768         the 30+ statements that perform the job.  If you want to see the
25769         actual commands, you can still run "make V=1".
25770         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
25771         so that make output is abbreviated when those variables are defined
25772         appropriately.
25773         * modules/argz: Likewise.
25774         * modules/arpa_inet: Likewise.
25775         * modules/byteswap: Likewise.
25776         * modules/configmake: Likewise.
25777         * modules/dirent: Likewise.
25778         * modules/errno: Likewise.
25779         * modules/fcntl: Likewise.
25780         * modules/float: Likewise.
25781         * modules/fnmatch: Likewise.
25782         * modules/getopt-posix: Likewise.
25783         * modules/glob: Likewise.
25784         * modules/iconv_open: Likewise.
25785         * modules/inttypes: Likewise.
25786         * modules/localcharset: Likewise.
25787         * modules/locale: Likewise.
25788         * modules/math: Likewise.
25789         * modules/netdb: Likewise.
25790         * modules/netinet_in: Likewise.
25791         * modules/poll: Likewise.
25792         * modules/posix_spawnp-tests: Likewise.
25793         * modules/sched: Likewise.
25794         * modules/search: Likewise.
25795         * modules/selinux-h: Likewise.
25796         * modules/signal: Likewise.
25797         * modules/spawn: Likewise.
25798         * modules/stdarg: Likewise.
25799         * modules/stdbool: Likewise.
25800         * modules/stddef: Likewise.
25801         * modules/stdint: Likewise.
25802         * modules/stdio: Likewise.
25803         * modules/stdlib: Likewise.
25804         * modules/string: Likewise.
25805         * modules/strings: Likewise.
25806         * modules/sys_file: Likewise.
25807         * modules/sys_ioctl: Likewise.
25808         * modules/sys_select: Likewise.
25809         * modules/sys_socket: Likewise.
25810         * modules/sys_stat: Likewise.
25811         * modules/sys_time: Likewise.
25812         * modules/sys_times: Likewise.
25813         * modules/sys_utsname: Likewise.
25814         * modules/sys_wait: Likewise.
25815         * modules/sysexits: Likewise.
25816         * modules/time: Likewise.
25817         * modules/unistd: Likewise.
25818         * modules/wchar: Likewise.
25819         * modules/wctype: Likewise.
25820
25821 2009-08-22  Jim Meyering  <meyering@redhat.com>
25822
25823         announce-gen: detect write failure
25824         * build-aux/announce-gen: Add Coda at end.
25825         Remove equivalent-but-more-verbose block at top.
25826
25827 2009-08-19  Akim Demaille  <demaille@gostai.com>
25828
25829         bootstrap: --help to stdout.
25830         * bootstrap (usage): Don't send --help to stderr.
25831         Use a here doc instead of a long string.
25832
25833 2009-08-21  Eric Blake  <ebb9@byu.net>
25834
25835         test-popen-safer: split from test-popen
25836         * tests/test-popen.c (main): Move...
25837         * tests/test-popen.h: ...into new file.
25838         * tests/test-popen-safer2.c: New file.
25839         * modules/popen-tests (Files): Add test-popen.h.
25840         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25841         Suggested by Bruno Haible.
25842
25843         test-fcntl-safer: split from test-open
25844         * tests/test-open.c (main): Move...
25845         * tests/test-open.h: ...into new file.
25846         * tests/test-fcntl-safer.c: New file.
25847         * modules/open-tests (Files): Add test-open.h.
25848         * modules/fcntl-safer-tests: New file.
25849         Suggested by Bruno Haible.
25850
25851         test-fopen-safer: split from test-fopen
25852         * tests/test-fopen.c (main): Move...
25853         * tests/test-fopen.h: ...into new file.
25854         * tests/test-fopen-safer.c: New file.
25855         * modules/fopen-tests (Files): Add test-fopen.h.
25856         * modules/fopen-safer-tests: New file.
25857         Suggested by Bruno Haible.
25858
25859 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25860
25861         popen-safer: test O_CLOEXEC at run-time.
25862         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25863
25864 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25865
25866         fcntl: move more flags to the header
25867         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25868         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25869         * lib/fcntl.in.h: Do both things here.
25870
25871 2009-08-21  Jim Meyering  <meyering@redhat.com>
25872
25873         consistently remove $@-t before redirecting to it
25874         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25875         * modules/alloca-opt: Likewise.
25876         * modules/byteswap: Likewise.
25877         * modules/fnmatch: Likewise.
25878         * modules/getopt-posix: Likewise.
25879         * modules/glob: Likewise.
25880         * modules/poll: Likewise.
25881         * modules/posix_spawnp-tests: Likewise.
25882         * modules/sys_socket: Likewise.
25883         * modules/sysexits: Likewise.
25884
25885 2009-08-21  Eric Blake  <ebb9@byu.net>
25886
25887         popen: simplify access to original popen
25888         * lib/popen.c (rpl_popen): No need to worry about popen being a
25889         macro.
25890         Reported by Bruno Haible.
25891
25892 2009-08-20  Eric Blake  <ebb9@byu.net>
25893
25894         build: avoid some compiler warnings
25895         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25896         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25897         type.
25898         (new_exclude_segment, excluded_file_pattern_p)
25899         (excluded_file_name_p): Reduce scope.
25900         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25901         old-style declaration.
25902
25903 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25904
25905         * tests/test-exclude1.sh: Handle Windows EOL.
25906         * tests/test-exclude2.sh: Likewise.
25907         * tests/test-exclude3.sh: Likewise.
25908         * tests/test-exclude4.sh: Likewise.
25909         * tests/test-exclude5.sh: Likewise.
25910         * tests/test-exclude6.sh: Likewise.
25911         * tests/test-exclude7.sh: Likewise.
25912
25913 2009-08-19  Akim Demaille  <demaille@gostai.com>
25914
25915         bootstrap: find sha1sum when named gsha1sum.
25916         * bootstrap (find_tool): New.
25917         ($SHA1SUM): New.
25918         Use it.
25919
25920 2009-08-20  Jim Meyering  <meyering@redhat.com>
25921
25922         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25923         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25924         expression that converts "." in a file name to "\." in the resulting
25925         regexp.  Start with a dummy statement, so that prior shell variable
25926         definitions are expanded portably.  Reported by Simon Josefsson.
25927
25928 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25929
25930         Fix polling for writeability of a screen buffer.
25931         * lib/poll.c: Distinguish input and screen buffers for the
25932         Win32 implementation.
25933         * lib/select.c: Likewise.
25934
25935 2009-08-19  Eric Blake  <ebb9@byu.net>
25936
25937         popen-safer: prevent popen from clobbering std descriptors
25938         * modules/popen-safer: New file.
25939         * lib/popen-safer.c: Likewise.
25940         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25941         * lib/stdio--.h (popen): Provide override.
25942         * lib/stdio-safer.h (popen_safer): Provide declaration.
25943         * tests/test-popen.c (includes): Partially test this.
25944         * modules/popen-safer-tests: New file, for more tests.
25945         * tests/test-popen-safer.c: Likewise.
25946         * MODULES.html.sh (file stream based Input/Output): Mention it.
25947
25948         tests: test some of the *-safer modules
25949         * modules/fopen-safer (Depends-on): Add fopen.
25950         * modules/fcntl-safer (Depends-on): Add fcntl.
25951         * modules/stdlib-safer (Depends-on): Add stdlib.
25952         (configure.ac): Set indicator.
25953         * modules/unistd-safer (configure.ac): Likewise.
25954         * modules/tmpfile-safer (configure.ac): Likewise.
25955         (Depends-on): Add tmpfile.
25956         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25957         active.
25958         * tests/test-fopen.c (includes): Test safer versions when they are
25959         in use.
25960         * tests/test-open.c (includes): Likewise.
25961
25962         popen: fix cygwin 1.5 bug when stdin closed
25963         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25964         * modules/popen: New file.
25965         * modules/popen-tests: Likewise.
25966         * tests/test-popen.c: Likewise.
25967         * m4/popen.m4: Likewise.
25968         * lib/popen.c: Likewise.
25969         * lib/stdio.in.h (popen): New declaration.
25970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25971         * modules/stdio (Makefile.am): Likewise.
25972         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25973
25974 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25975
25976         maint.mk: give full control over update-copyright exclusions
25977         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25978         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25979         (update-copyright): Don't force inclusion of top-level
25980         ChangeLog.  Don't force exclusion of all COPYING files, but make
25981         them the default exclusion instead.
25982
25983 2009-08-16  Bruno Haible  <bruno@clisp.org>
25984
25985         Fix test failures on Solaris 10.
25986         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25987         tests when Solaris iconv() is used.
25988         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25989         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25990         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25991         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25992         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25993
25994 2009-08-16  Bruno Haible  <bruno@clisp.org>
25995
25996         Fix test failures on Solaris 10.
25997         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25998         'tr' program and pass it as first argument.
25999         * tests/test-pipe-filter-gi1.sh: Likewise.
26000         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26001         program as first argument.
26002         * tests/test-pipe-filter-gi1.c (main): Likewise.
26003
26004 2009-08-16  Eric Blake  <ebb9@byu.net>
26005
26006         fpurge: fix previous commits
26007         * modules/fpurge (Makefile.am): Make replacement conditional,
26008         partially reverting 2007-04-29 change; missed in previous
26009         attempt.
26010         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26011         is missing.
26012
26013 2009-08-16  Bruno Haible  <bruno@clisp.org>
26014
26015         Clarify fpurge's effect on the file position.
26016         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26017         * tests/test-fpurge.c (main): Make a second pass for checking the file
26018         position.
26019
26020 2009-08-16  Bruno Haible  <bruno@clisp.org>
26021
26022         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26023         declaration of fpurge is missing.
26024         * tests/test-fpurge.c (main): Check that the file has not more contents
26025         than expected. Close the file before removing it.
26026
26027 2009-08-15  Eric Blake  <ebb9@byu.net>
26028
26029         fpurge: don't wrap working cygwin implementation
26030         * lib/fpurge.c (fpurge): Fix comment typo.
26031         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26032         1.7 to avoid replacement.
26033         * tests/test-fpurge.c (main): Enhance test.
26034
26035 2009-08-15  Eric Blake  <ebb9@byu.net>
26036         and Jim Meyering  <meyering@redhat.com>
26037
26038         test-update-copyright: skip if perl is insufficient
26039         * tests/test-update-copyright.sh: Failure to run maintainer tool
26040         should not cause testsuite failure on cygwin 1.5.
26041
26042 2009-08-14  Eric Blake  <ebb9@byu.net>
26043
26044         doc: mention more functions added in cygwin 1.7.0
26045         * doc/posix-headers/limits.texi (limits.h): Update for recent
26046         cygwin additions.
26047         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26048         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26049         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26050         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26051         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26052
26053 2009-08-14  Eric Blake  <ebb9@byu.net>
26054
26055         maint.mk: simplify update-copyright rule
26056         * top/maint.mk (update-copyright-local): Delete, and document how
26057         to do it in cfg.mk instead.
26058         (update-copyright-exclude-regexp): Delete, and document how to do
26059         it in .x-update-copyright instead.
26060         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26061         exclude ChangeLog.
26062
26063 2009-08-14  Bruno Haible  <bruno@clisp.org>
26064
26065         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26066
26067 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26068
26069         maint.mk: support update-copyright-env
26070         * top/maint.mk (update-copyright-env): Define place-holder.
26071         (update-copyright): Expand $(update-copyright-env) before
26072         invoking update-copyright.
26073
26074 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26075
26076         update-copyright: implement forced reformatting
26077         * build-aux/update-copyright: Implement and document
26078         UPDATE_COPYRIGHT_FORCE.
26079         * tests/test-update-copyright.sh: Test it.
26080
26081 2009-08-14  Eric Blake  <ebb9@byu.net>
26082         and Bruno Haible  <bruno@clisp.org>
26083
26084         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26085         * tests/test-locale.c: Revert previous patch related to NULL.
26086         * tests/test-stdio.c: Likewise.
26087         * tests/test-stdlib.c: Likewise.
26088         * tests/test-string.c: Likewise.
26089         * tests/test-unistd.c: Likewise.
26090         * modules/time-tests (Depends-on): Add verify.
26091         * modules/wchar-tests (Depends-on): Likewise.
26092         * tests/test-time.c: Test for NULL compliance.
26093         * tests/test-wchar.c: Likewise.
26094         * modules/locale (Depends-on): Add stddef.
26095         * modules/stdio (Depends-on): Likewise.
26096         * modules/stdlib (Depends-on): Likewise.
26097         * modules/string (Depends-on): Likewise.
26098         * modules/time (Depends-on): Likewise.
26099         * modules/unistd (Depends-on): Likewise.
26100         * modules/wchar (Depends-on): Likewise.
26101         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26102         * lib/stdlib.in.h (includes): Likewise.
26103         * lib/string.in.h (includes): Likewise.
26104         * lib/time.in.h (includes): Likewise.
26105         * lib/unistd.in.h (includes): Likewise.
26106         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26107         replaced.
26108         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26109         * m4/stddef_h.m4: New file.
26110         * modules/stddef: Likewise.
26111         * lib/stddef.in.h: Likewise.
26112         * modules/stddef-tests: Likewise.
26113         * tests/test-stddef.c: Likewise.
26114         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26115         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26116         * doc/posix-headers/locale.texi (locale.h): Likewise.
26117         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26118         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26119         * doc/posix-headers/string.texi (string.h): Likewise.
26120         * doc/posix-headers/time.texi (time.h): Likewise.
26121         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26122         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26123
26124 2009-08-14  Eric Blake  <ebb9@byu.net>
26125
26126         doc: improve git diff of texinfo files
26127         * .gitattributes: Add rule for *.texi files, with hint on how to
26128         use it.
26129         Copied from m4, and based on a report by Bruno Haible.
26130
26131 2009-08-14  Bruno Haible  <bruno@clisp.org>
26132
26133         Disable multithread support by default on Cygwin 1.5.x for real.
26134         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26135
26136 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26137
26138         update-copyright: much ado about intervals
26139         * build-aux/update-copyright: Implement and document
26140         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26141         of copyright year intervals.
26142         Also, document UPDATE_COPYRIGHT_YEAR.
26143         * tests/test-update-copyright.sh: Test it.
26144
26145         update-copyright: convert 2-digit to 4-digit years
26146         * build-aux/update-copyright: Implement and document.
26147         * tests/test-update-copyright.sh: Update.
26148
26149 2009-08-14  Jim Meyering  <meyering@redhat.com>
26150
26151         test-exclude: avoid coreutils "make check" failure
26152         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26153         just as in test-argmatch.c.
26154
26155 2009-08-13  Eric Blake  <ebb9@byu.net>
26156
26157         test-dup2: fix bad assumption
26158         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26159         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26160
26161         test-version-etc: fix CRLF portability issue
26162         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26163         recognize \r.
26164         * tests/test-argp-version-etc-1.sh: Likewise.
26165
26166         getopt: update client modules
26167         * modules/argp (Depends-on): Use getopt-gnu.
26168         * modules/git-merge-changelog (Depends-on): Likewise.
26169         * modules/long-options (Depends-on): Likewise.
26170         * modules/xstrtol (Depends-on): Likewise.
26171
26172 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26173
26174         * tests/test-version-etc.sh: Don't fail on different
26175         project/version.  Don't fail on CRLF differences.  Rewrite to use
26176         multiple -e instead of multiple sed forks, suggested by Eric Blake
26177         <ebb9@byu.net>.
26178         * tests/test-argp-version-etc-1.sh: Likewise.
26179
26180 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26181
26182         * tests/test-version-etc.sh: Don't fail on different
26183         project/version.
26184
26185 2009-08-12  Bruno Haible  <bruno@clisp.org>
26186
26187         Tests for modules 'getopt-posix', 'getopt-gnu'.
26188         * modules/getopt-posix-tests: New file.
26189         * tests/test-getopt.c: New file.
26190         * tests/test-getopt.h: New file.
26191         * tests/test-getopt_long.h: New file.
26192
26193         New modules 'getopt-posix', 'getopt-gnu'.
26194         * modules/getopt-gnu: New file, renamed from modules/getopt.
26195         * modules/getopt-posix: New file.
26196         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26197         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26198         (gl_GETOPT): Remove macro.
26199         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26200         Disable the test against BSD systems that declare optreset. Test
26201         against mingw bug. Test against lack of support of optional arguments
26202         on many platforms.
26203         * doc/glibc-headers/getopt.texi: Update module name and list of
26204         relevant platforms.
26205         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26206         'getopt-gnu' and more portability problems.
26207         * NEWS: Mention the changes.
26208
26209 2009-08-12  Bruno Haible  <bruno@clisp.org>
26210
26211         Ensure that optarg etc. get declared by <unistd.h>.
26212         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26213         AC_USE_SYSTEM_EXTENSIONS.
26214         * modules/getopt (Depends-on): Add 'extensions'.
26215
26216 2009-08-12  Bruno Haible  <bruno@clisp.org>
26217
26218         Avoid test link errors.
26219         * modules/pipe-filter-ii-tests (Makefile.am): Define
26220         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26221         * modules/pipe-filter-gi-tests (Makefile.am): Define
26222         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26223         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26224
26225 2009-08-12  Bruno Haible  <bruno@clisp.org>
26226
26227         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26228         gl_GETOPT_SUBSTITUTE before.
26229         (gl_GETOPT): Use it.
26230         * m4/argp.m4 (gl_ARGP): Update.
26231         Reported by Sergey Poznyakoff.
26232
26233         * m4/getopt.m4: Reorder macros.
26234         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26235         (gl_GETOPT_SUBSTITUTE): Remove macro.
26236
26237 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26238
26239         Minor improvement in gitlog-to-changelog
26240
26241         * build-aux/gitlog-to-changelog: New option `--format' makes
26242         output format string configurable.
26243
26244 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26245
26246         Optimize exclude: use hash tables for non-wildcard patterns.
26247
26248         * lib/exclude.c: Include hash.h and mbuiter.h
26249         (struct exclude_pattern, exclude_segment): New data types.
26250         (struct exclude): Rewrite.
26251         (fnmatch_pattern_has_wildcards): New function.
26252         (new_exclude_segment, free_exclude_segment): New functions.
26253         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26254         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26255         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26256         * modules/exclude: Depend on hash and mbuiter.
26257
26258         * modules/exclude-tests: New file.
26259         * tests/test-exclude.c: New file.
26260         * tests/test-exclude1.sh: New file.
26261         * tests/test-exclude2.sh: New file.
26262         * tests/test-exclude3.sh: New file.
26263         * tests/test-exclude4.sh: New file.
26264         * tests/test-exclude5.sh: New file.
26265         * tests/test-exclude6.sh: New file.
26266         * tests/test-exclude7.sh: New file.
26267
26268 2009-08-12  Bruno Haible  <bruno@clisp.org>
26269
26270         Ensure that getopt() gets declared by <unistd.h>.
26271         * lib/unistd.in.h: Conditionally include getopt.h.
26272         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26273         Set GNULIB_UNISTD_H_GETOPT.
26274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26275         GNULIB_UNISTD_H_GETOPT.
26276         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26277
26278 2009-08-12  Bruno Haible  <bruno@clisp.org>
26279
26280         Clarify logic.
26281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26282         gl_replace_getopt instead of GETOPT_H.
26283
26284 2009-08-12  Bruno Haible  <bruno@clisp.org>
26285
26286         * m4/getopt.m4: Add comments.
26287
26288 2009-08-12  Bruno Haible  <bruno@clisp.org>
26289
26290         Disable multithread support by default on Cygwin 1.5.x.
26291         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26292         set gl_use_threads=no if not specified otherwise.
26293
26294 2009-08-11  Bruno Haible  <bruno@clisp.org>
26295
26296         Avoid compilation error on NetBSD 5.0.
26297         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26298         * tests/test-stdio.c: Likewise.
26299         * tests/test-stdlib.c: Likewise.
26300         * tests/test-string.c: Likewise.
26301         * tests/test-unistd.c: Likewise.
26302         Reported by Greg Troxel <gdt@ir.bbn.com>
26303         at <https://savannah.gnu.org/support/?106973>.
26304
26305 2009-08-11  Bruno Haible  <bruno@clisp.org>
26306
26307         * modules/dup2-tests (Depends-on): Remove close.
26308
26309         Undo 2009-07-19 commit.
26310         * modules/acl-tests (Depends-on): Remove close.
26311         * modules/binary-io-tests (Depends-on): Likewise.
26312         * modules/closein-tests (Depends-on): Likewise.
26313         * modules/flock-tests (Depends-on): Likewise.
26314         * modules/fsync-tests (Depends-on): Likewise.
26315         * modules/lseek-tests (Depends-on): Likewise.
26316         * modules/pipe-tests (Depends-on): Likewise.
26317         * modules/posix_spawn-tests (Depends-on): Likewise.
26318         * modules/posix_spawnp-tests (Depends-on): Likewise.
26319         * modules/stat-time-tests (Depends-on): Likewise.
26320         * modules/yesno-tests (Depends-on): Likewise.
26321
26322 2009-08-10  Bruno Haible  <bruno@clisp.org>
26323
26324         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26325
26326 2009-08-10  Bruno Haible  <bruno@clisp.org>
26327
26328         Fix a gcc warning.
26329         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26330
26331 2009-08-10  Bruno Haible  <bruno@clisp.org>
26332
26333         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26334         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26335         not only the first time.
26336         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26337         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26338         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26339         is 1, not only the the first time.
26340
26341 2009-08-10  Bruno Haible  <bruno@clisp.org>
26342
26343         Make it possible to use module 'gethostname' without module 'close'.
26344         * lib/unistd.in.h (close): Evoke a link error only if
26345         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26347         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26348         * modules/unistd (Makefile.am): Substitute
26349         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26350         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26351         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26352         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26353         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26354         * modules/sys_ioctl (Makefile.am): Substitute
26355         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26356         * modules/socket (configure.ac): On native Windows, set
26357         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26358         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26359         Reported by Sam Steingold <sds@gnu.org>.
26360
26361 2009-08-10  Bruno Haible  <bruno@clisp.org>
26362
26363         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26364         * modules/ioctl (configure.ac): Likewise.
26365
26366 2009-08-10  Bruno Haible  <bruno@clisp.org>
26367
26368         Avoid collision between gnulib wrapper and libintl wrapper.
26369         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26370         already defined in intl/printf.c.
26371         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26372         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26373
26374 2009-08-09  Bruno Haible  <bruno@clisp.org>
26375
26376         Make <sys/select.h> really self-contained, also on Solaris 10.
26377         * lib/sys_select.in.h: Include <string.h>.
26378         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26379         Solaris 10 problem.
26380         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26381         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26382         Reported by Jim Meyering.
26383
26384 2009-08-09  Bruno Haible  <bruno@clisp.org>
26385
26386         Avoid warnings from 'aclocal' that are due to a use of macro name
26387         AM_XGETTEXT_OPTION that is not defined in automake.
26388         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26389         automake.
26390         * modules/error (configure.ac): Likewise.
26391         * modules/propername (configure.ac): Likewise.
26392         * modules/vasprintf (configure.ac): Likewise.
26393         * modules/verror (configure.ac): Likewise.
26394         * modules/xprintf (configure.ac): Likewise.
26395         * modules/xvasprintf (configure.ac): Likewise.
26396
26397 2009-08-08  Bruno Haible  <bruno@clisp.org>
26398
26399         Avoid compilation error in C++ mode.
26400         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26401         Reported by Sam Steingold <sds@gnu.org>.
26402
26403 2009-08-08  Bruno Haible  <bruno@clisp.org>
26404
26405         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26406         for the various Unix platforms.
26407         * doc/posix-headers/limits.texi: Update platforms list regarding
26408         HOST_NAME_MAX.
26409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26410
26411 2009-08-07  Jim Meyering  <meyering@redhat.com>
26412
26413         selinux-at: fix typo in a comment
26414         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26415         Spotted by Paolo Bonzini.
26416
26417         selinux-at: remove redundant m4 code, add documentation
26418         * modules/selinux-at (configure.ac): Remove redundant code.
26419         LIB_SELINUX is already set via the dependent module, selinux-h.
26420         (Include): Add quotes around selinux-at.h.
26421         * lib/selinux-at.h: Add documentation.
26422         Reported by Bruno Haible in
26423         http://marc.info/?l=gnulib-bug&m=124958988300749
26424
26425 2009-08-07  Bruno Haible  <bruno@clisp.org>
26426
26427         Avoid link error on MacOS X 10.3 and 10.4.
26428         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26429         on non-ELF systems.
26430         * lib/argp-pv.c (argp_program_version): Likewise.
26431         Reported by Simon Josefsson.
26432
26433 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26434
26435         * tests/test-version-etc.sh: Use $EXEEXT.
26436
26437 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26438
26439         update-copyright: update documentation to point to maint.mk
26440         * build-aux/update-copyright: Here.
26441
26442 2009-08-06  Jim Meyering  <meyering@redhat.com>
26443
26444         maint.mk: support update-copyright-local
26445         * top/maint.mk (update-copyright-local): Define place-holder.
26446         (update-copyright): Depend on $(update-copyright-local).
26447
26448 2009-08-06  Jim Meyering  <meyering@redhat.com>
26449
26450         selinux-at: new module
26451         Initially written for coreutils, this module will soon be
26452         used by findutils, too.
26453         * MODULES.html.sh [Misc]: Add selinux-at.
26454         * lib/selinux-at.h: New file, from coreutils.
26455         * lib/selinux-at.c: Likewise.
26456         * modules/selinux-at: Likewise.
26457         (License): Change from LGPL to GPL, since it depends
26458         on the GPL'd openat module.
26459
26460         doc: update README
26461         * README: Remove references to cogito.
26462         Remove cvs-repo-updating instructions from 2007.
26463         Don't imply that CVS is better if you have limited disk space.
26464
26465 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26466
26467         update-copyright: support C-style comments
26468         * build-aux/update-copyright: Implement and document.
26469         * tests/test-update-copyright.sh: Test.
26470
26471 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26472
26473         update-copyright: support omitted "(C)"
26474         * build-aux/update-copyright: Implement and document.  Also,
26475         allow variable whitespace before "(C)".
26476         * tests/test-update-copyright.sh: Test.
26477
26478 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26479
26480         update-copyright: don't trip on non-FSF copyright statements
26481         * build-aux/update-copyright: Fix so that the first correctly
26482         formatted FSF copyright statement is recognized no matter what
26483         appears before it.  Update documentation.
26484         * tests/test-update-copyright.sh: Test that.
26485
26486 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26487
26488         update-copyright: clean up code a little
26489         * build-aux/update-copyright: Append "_re" to the name of any
26490         variable holding a regular expression.
26491         Replace "old" and "new" with "stmt" in variable names.
26492         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
26493         handled correctly.
26494         Format code more consistently.
26495
26496 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26497
26498         update-copyright-tests: improve portability
26499         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
26500         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
26501
26502 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26503
26504         update-copyright: support @copyright{} and &copy;
26505         * build-aux/update-copyright: Implement and document.
26506         * tests/test-update-copyright.sh: Test.
26507
26508 2009-08-04  Jim Meyering  <meyering@redhat.com>
26509
26510         update-copyright-tests: correctly test EOL=\r\n handling
26511         * tests/test-update-copyright.sh: Put \r at the end of some lines
26512         for the dos-eol tests.  Based on a patch by Joel E. Denny.
26513
26514         maint.mk: make update-copyright exclusion list more configurable
26515         * top/maint.mk (update-copyright): Default to excluding COPYING,
26516         but allow an override, in case someone does want to update that file.
26517
26518         maint.mk: don't update copyright date in COPYING
26519         * top/maint.mk (update-copyright): Exclude COPYING.
26520
26521         maint.mk: add a copyright-updating rule
26522         * top/maint.mk (update-copyright): New rule.
26523         Derived from coreutils/Makefile.am.
26524
26525         update-copyright: rename some variables
26526         * build-aux/update-copyright: Rename a few variables for clarity.
26527         Tweak syntax.  List Joel E. Denny as coauthor.
26528
26529 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26530
26531         update-copyright: fix bug for 2-digit last year and add tests
26532         * build-aux/update-copyright: Fix bug.
26533         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
26534         specified.
26535         * modules/update-copyright-tests: New
26536         * tests/test-update-copyright.sh: New.
26537
26538 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26539
26540         update-copyright: handle leading tabs in line prefix
26541         * build-aux/update-copyright: Count leading tabs as 8 spaces
26542         when computing margin.  This helps with the formatting of
26543         ChangeLogs, for example.
26544         Fix documentation a little.
26545
26546 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26547
26548         update-copyright: support EOL=\r\n
26549         * build-aux/update-copyright: Implement that.
26550
26551 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26552
26553         update-copyright: automatically format copyright statements
26554         * build-aux/update-copyright: Implement that.
26555         Also, be a little more predictable and safer by always failing
26556         when the full copyright format is not perfectly recognized as an
26557         unbroken whole.  Discussed at
26558         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
26559         Rewrite documentation.
26560
26561 2009-08-03  Bruno Haible  <bruno@clisp.org>
26562
26563         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
26564
26565 2009-08-02  Bruno Haible  <bruno@clisp.org>
26566
26567         Tests for module 'uname'.
26568         * modules/uname-tests: New file.
26569         * tests/test-uname.c: New file.
26570
26571         New module 'uname'.
26572         * lib/uname.c: New file.
26573         * m4/uname.m4: New file.
26574         * modules/uname: New file.
26575         * doc/posix-functions/uname.texi: Mention the new module.
26576
26577 2009-08-02  Bruno Haible  <bruno@clisp.org>
26578
26579         Tests for module 'sys_utsname'.
26580         * modules/sys_utsname-tests: New file.
26581         * tests/test-sys_utsname.c: New file.
26582
26583         New module 'sys_utsname'.
26584         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
26585         * m4/sys_utsname_h.m4: New file.
26586         * modules/sys_utsname: New file.
26587         * doc/posix-headers/sys_utsname.texi: Mention the new module.
26588
26589 2009-08-02  Bruno Haible  <bruno@clisp.org>
26590
26591         Implicitly initialize the sockets library.
26592         * lib/gethostname.c: Include sockets.h.
26593         (rpl_gethostname): Invoke gl_sockets_startup.
26594         * lib/socket.c: Include sockets.h.
26595         (rpl_socket): Invoke gl_sockets_startup.
26596         * modules/gethostname (Depends-on): Add sockets.
26597         * modules/socket (Depends-on): Likewise.
26598         * tests/test-poll.c: Don't include sockets.h.
26599         (main): Don't invoke gl_sockets_startup.
26600         * tests/test-select.c: Don't include sockets.h.
26601         (main): Don't invoke gl_sockets_startup.
26602
26603 2009-08-02  Bruno Haible  <bruno@clisp.org>
26604
26605         Allow multiple calls to gl_sockets_startup.
26606         * lib/sockets.c (initialized_sockets_version): New variable.
26607         (gl_sockets_startup): Do nothing if already called for this or a higher
26608         version.
26609         (gl_sockets_cleanup): Reset initialized_sockets_version.
26610
26611 2009-08-03  Simon Josefsson  <simon@josefsson.org>
26612
26613         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
26614         different project/version.
26615
26616 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
26617             Bruno Haible  <bruno@clisp.org>
26618
26619         Tests for module 'pipe-filter-gi'.
26620         * modules/pipe-filter-gi-tests: New file.
26621         * tests/test-pipe-filter-gi1.sh: New file.
26622         * tests/test-pipe-filter-gi1.c: New file.
26623         * tests/test-pipe-filter-gi2.sh: New file.
26624         * tests/test-pipe-filter-gi2-main.c: New file.
26625         * tests/test-pipe-filter-gi2-child.c: New file.
26626
26627         New module 'pipe-filter-gi'.
26628         * lib/pipe-filter-gi.c: New file.
26629         * modules/pipe-filter-gi: New file.
26630
26631 2009-08-02  Bruno Haible  <bruno@clisp.org>
26632             Paolo Bonzini  <bonzini@gnu.org>
26633
26634         Tests for module 'pipe-filter-ii'.
26635         * modules/pipe-filter-ii-tests: New file.
26636         * tests/test-pipe-filter-ii1.sh: New file.
26637         * tests/test-pipe-filter-ii1.c: New file.
26638         * tests/test-pipe-filter-ii2.sh: New file.
26639         * tests/test-pipe-filter-ii2-main.c: New file.
26640         * tests/test-pipe-filter-ii2-child.c: New file.
26641
26642         New module 'pipe-filter-ii'.
26643         * lib/pipe-filter.h: New file.
26644         * lib/pipe-filter-ii.c: New file.
26645         * lib/pipe-filter-aux.h: New file.
26646         * modules/pipe-filter-ii: New file.
26647
26648 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26649
26650         * lib/gc-libgcrypt.c: Change copyright to FSF.
26651         * lib/gc-gnulib.c: Likewise.
26652
26653 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
26654
26655         * lib/gethostname.c: Include limits.h.
26656
26657 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26658             Bruno Haible  <bruno@clisp.org>
26659
26660         Ensure HOST_NAME_MAX as part of the gethostname module.
26661         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
26662         define also HOST_NAME_MAX.
26663         * tests/test-gethostname.c: Include <limits.h>.
26664         (main): Check also HOST_NAME_MAX.
26665         * doc/posix-headers/limits.texi: Document the mingw problem.
26666
26667 2009-08-02  Bruno Haible  <bruno@clisp.org>
26668
26669         * lib/gethostname.c (gethostname): Fix handling of large len argument.
26670         Add comments.
26671
26672 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26673
26674         * lib/gethostname.c: Add Windows wrapper.
26675         * m4/gethostname.m4: Look for gethostname in -lws2_32.
26676         * modules/gethostname: Depend on sys_socket & errno, for also
26677         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
26678         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
26679
26680 2009-07-31  Jim Meyering  <meyering@redhat.com>
26681
26682         getloadavg: fix symbol name in comment
26683         * lib/getloadavg.c: Correct a typo I introduced when adding
26684         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
26685         Matt Kraai spotted the problem.
26686
26687 2009-07-29  Matt Kraai  <mkraai@beckman.com>
26688
26689         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
26690         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
26691         code also if ! defined N_NAME_POINTER.
26692         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
26693         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
26694         but the n_name member is a 12-byte array.
26695
26696 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
26697
26698         update-copyright: generalize comment handling
26699         * build-aux/update-copyright: Handle copyright statements
26700         within more comment styles.
26701         Document usage.
26702         Report any file with an external copyright holder or parse failure.
26703
26704 2009-07-29  Jim Meyering  <meyering@redhat.com>
26705
26706         mktime: correct setting of REPLACE_MKTIME
26707         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
26708
26709         update-copyright: new module
26710         * modules/update-copyright: New file.
26711         * build-aux/update-copyright: New file.
26712         * MODULES.html.sh (maint+release support): Add update-copyright.
26713
26714 2009-07-27  Bruno Haible  <bruno@clisp.org>
26715
26716         Fix compilation error when <ctime> is used and mktime is replaced.
26717         * lib/time.in.h (mktime): New declaration.
26718         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
26719         REPLACE_MKTIME instead of defining mktime in config.h.
26720         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
26721         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
26722         Reported by Ross McFarland <rwmcfa1@neces.com>.
26723
26724 2009-07-27  Bruno Haible  <bruno@clisp.org>
26725
26726         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
26727         Reported by Matt Kraai <mkraai@beckman.com>.
26728
26729 2009-07-25  Jim Meyering  <meyering@redhat.com>
26730
26731         maint.mk: avoid warnings about missing files
26732         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
26733         diagnostic when .prev-version does not exist.
26734         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
26735         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
26736         nonexistent cfg.mk.
26737         Suggestions from Simon Josefsson.
26738
26739 2009-07-25  Bruno Haible  <bruno@clisp.org>
26740
26741         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
26742         defined as macros. Needed on QNX 6.4.1.
26743         Reported by Matt Kraai <mkraai@beckman.com>.
26744
26745 2009-07-23  Jim Meyering  <meyering@redhat.com>
26746
26747         maint.mk: invoke "make dist" with a working value of XZ_OPT
26748         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
26749
26750 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
26751
26752         Make fseeko.c compile on QNX.
26753         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
26754
26755 2009-07-22  Peter Simons  <simons@cryp.to>
26756
26757         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
26758         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
26759         * lib/md4.h: Likewise.
26760         * lib/md5.h: Likewise.
26761         * lib/sha1.h: Likewise.
26762         * lib/sha256.h: Likewise.
26763         * lib/sha512.h: Likewise.
26764
26765         tests-sha1: don't assign literal string to 'char *' variable
26766         * tests/test-sha1.c (main): Declare locals with "const" to match
26767         attributes of the right hand side.
26768
26769 2009-07-21  Eric Blake  <ebb9@byu.net>
26770
26771         dup2: fix more mingw problems
26772         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
26773         fd to itself.
26774         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26775         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
26776         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
26777         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
26778         care of mingw bugs.
26779
26780 2009-07-21  Jim Meyering  <meyering@redhat.com>
26781
26782         vc-list-files: avoid failure when /bin/sh is dash
26783         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
26784         On some Debian based systems, /bin/sh is a symlink to dash, and running
26785         this command would omit the "/" following each 'tests' prefix:
26786           dash -x build-aux/vc-list-files -C . tests
26787         That is because bash and dash work differently:
26788           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
26789           bash ok
26790           dash odd
26791
26792 2009-07-21  Eric Blake  <ebb9@byu.net>
26793
26794         dup2-tests: test previous patch
26795         * modules/dup2-tests: New file.
26796         * tests/test-dup2.c: Likewise.
26797         * tests/test-open.c (main): Avoid unspecified behavior.
26798         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26799         test.
26800
26801         dup2: work around mingw and cygwin 1.5 bug
26802         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26804         * modules/unistd (Makefile.am): Substitute it.
26805         * lib/unistd.in.h (dup2): Declare the replacement.
26806         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26807         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26808         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26809         * modules/execute (Depends-on): Add dup2.
26810         * modules/fseterr (Depends-on): Likewise.
26811         * modules/pipe (Depends-on): Likewise.
26812         * modules/posix_spawn-internal (Depends-on): Likewise.
26813
26814 2009-07-21  Bruno Haible  <bruno@clisp.org>
26815
26816         * modules/.gitattributes: New file.
26817
26818 2009-07-20  Bruno Haible  <bruno@clisp.org>
26819
26820         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26821         (main): Use it.
26822
26823 2009-07-20  Eric Blake  <ebb9@byu.net>
26824
26825         test-pipe: make a bit more robust.
26826         * tests/test-pipe.c (myerr): Allow error messages regardless of
26827         what we do to stderr.
26828         (test_pipe): Rearrange to avoid deadlock.
26829         (child_main): Try a larger read, to ensure we avoided deadlock.
26830         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26831         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26832         if misused.
26833
26834 2009-07-19  Jim Meyering  <meyering@redhat.com>
26835
26836         fts: avoid false-positive cycle-detection
26837         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26838         for each new command line argument.
26839
26840 2009-07-19  Bruno Haible  <bruno@clisp.org>
26841
26842         Fix build error on mingw with the modules sys_select and unistd.
26843         * modules/acl-tests (Depends-on): Add close.
26844         * modules/binary-io-tests (Depends-on): Likewise.
26845         * modules/closein-tests (Depends-on): Likewise.
26846         * modules/flock-tests (Depends-on): Likewise.
26847         * modules/fsync-tests (Depends-on): Likewise.
26848         * modules/lseek-tests (Depends-on): Likewise.
26849         * modules/pipe-tests (Depends-on): Likewise.
26850         * modules/posix_spawn-tests (Depends-on): Likewise.
26851         * modules/posix_spawnp-tests (Depends-on): Likewise.
26852         * modules/stat-time-tests (Depends-on): Likewise.
26853         * modules/yesno-tests (Depends-on): Likewise.
26854
26855 2009-07-19  Bruno Haible  <bruno@clisp.org>
26856
26857         Unify conditionals.
26858         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26859         macros, not at the compiler macros.
26860         * lib/pipe.c: Likewise.
26861         * lib/execute.c: Likewise.
26862         * lib/spawni.c: Likewise.
26863
26864 2009-07-19  Bruno Haible  <bruno@clisp.org>
26865
26866         Fix handling of closed stdin/stdout/stderr on mingw.
26867         * lib/w32spawn.h: Include unistd.h.
26868         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26869         file descriptor with O_NOINHERIT flag.
26870         (fd_safer_noinherit): New function, based on fd-safer.c.
26871         (dup_safer_noinherit): New function, based on dup-safer.c.
26872         (undup_safer_noinherit): New function.
26873         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26874         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26875         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26876         instead of fd_safer.
26877         * tests/test-pipe.c: Include <windows.h>.
26878         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26879
26880         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26881         from main.
26882         (test_pipe): Pass an extra argument for disambiguation.
26883         (main): Invoke parent_main or child_main.
26884
26885         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26886         consistently.
26887
26888 2009-07-18  Eric Blake  <ebb9@byu.net>
26889
26890         test-pipe: fix mingw build
26891         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26892
26893 2009-07-18  Bruno Haible  <bruno@clisp.org>
26894
26895         * modules/pipe-tests (Makefile.am): Fix typo.
26896
26897 2009-07-18  Eric Blake  <ebb9@byu.net>
26898
26899         error: fix mingw build
26900         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26901         Reported by Bruno Haible.
26902
26903         error: avoid undefined use of stdout
26904         * lib/error.c (error, error_at_line): Check that fd 1 is open
26905         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26906         is handling faults and the close_stdout module wants to report the
26907         detection of closed stdout as an error.
26908
26909 2009-07-17  Eric Blake  <ebb9@byu.net>
26910
26911         pipe: be robust in face of closed fds
26912         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26913         should cause child to misbehave.
26914         * modules/pipe-tests: New module.
26915         * tests/test-pipe.c: New file.
26916         * tests/test-pipe.sh: New file.
26917         Reported by Akim Demaille.
26918
26919 2009-07-14  Bruno Haible  <bruno@clisp.org>
26920
26921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26922         Reported by anonymous kc.
26923
26924 2009-07-07  Jim Meyering  <meyering@redhat.com>
26925
26926         maint.mk: don't look for translatable strings in *.m4 or *.mk
26927         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26928         when searching for translatable strings.
26929
26930 2009-07-05  Jim Meyering  <meyering@redhat.com>
26931
26932         remove superfluous parentheses in STREQ definition
26933         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26934         * lib/getugroups.c (STREQ): Likewise.
26935         * lib/fnmatch.c (STREQ): Likewise.
26936         Spotted by Bruno Haible.
26937
26938 2009-07-04  Jim Meyering  <meyering@redhat.com>
26939
26940         argv-iter: new module
26941         * MODULES.html.sh: Add argv-iter.
26942         * lib/argv-iter.c, lib/argv-iter.h: New files.
26943         * modules/argv-iter: New file.
26944         * modules/argv-iter-tests: New file.
26945         * tests/test-argv-iter.c: Test it.
26946
26947 2009-07-04  Bruno Haible  <bruno@clisp.org>
26948
26949         Fix assertion.
26950         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26951         contains more exact copies of a given entry than file2, leave the extra
26952         copies unpaired rather than aborting.
26953         Reported by Eric Blake.
26954
26955 2009-07-02  Bruno Haible  <bruno@clisp.org>
26956
26957         Speedup git-merge-changelog for git cherry-pick.
26958         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26959         (entries_mapping_get): New function, extracted from compute_mapping.
26960         (entries_mapping_reverse_get): New function.
26961         (compute_mapping): Add a 'full' argument. Return the result in a
26962         'struct entries_mapping'.
26963         (main): Update. Access the mappings through entries_mapping_get.
26964         Reported by Eric Blake.
26965
26966 2009-07-02  Bruno Haible  <bruno@clisp.org>
26967
26968         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26969         best_i.
26970
26971 2009-07-02  Bruno Haible  <bruno@clisp.org>
26972
26973         Speed up approximate search for matching ChangeLog entries.
26974         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26975         argument. Call fstrcmp_bounded instead of fstrcmp.
26976         (compute_mapping, try_split_merged_entry, main): Update callers.
26977
26978 2009-07-02  Bruno Haible  <bruno@clisp.org>
26979
26980         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26981
26982 2009-06-30  Bruno Haible  <bruno@clisp.org>
26983
26984         Reduce the number of uc_is_cased calls.
26985         * lib/unicase.h (casing_suffix_context_t): Add
26986         'first_char_except_ignorable' field.
26987         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26988         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26989         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26990         Update initializer.
26991         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26992         case-ignorable characters.
26993         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26994         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26995         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26996         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26997         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26998
26999 2009-06-30  Bruno Haible  <bruno@clisp.org>
27000
27001         Tests for module 'unicase/ignorable'.
27002         * modules/unicase/ignorable-tests: New file.
27003         * tests/unicase/test-ignorable.c: New file, generated by
27004         gen-uni-tables.
27005
27006         Tests for module 'unicase/cased'.
27007         * modules/unicase/cased-tests: New file.
27008         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27009         * tests/unicase/test-predicate-part1.h: New file, derived from
27010         tests/unictype/test-predicate-part1.h.
27011         * tests/unicase/test-predicate-part2.h: New file, same as
27012         tests/unictype/test-predicate-part2.h.
27013
27014         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27015         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27016         (output_casing_properties): New function.
27017         (main): Call it.
27018         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27019         * lib/unicase/cased.c: Include unictype/bitmap.h.
27020         (uc_is_cased): Define through a bitmap lookup.
27021         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27022         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27023         (uc_is_case_ignorable): Define through a bitmap lookup.
27024         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27025         lib/unictype/bitmap.h.
27026         (Depends-on): Add inline. Clean up.
27027         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27028         lib/unictype/bitmap.h.
27029         (Depends-on): Add inline. Clean up.
27030         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27031         recognition.
27032         * tests/unicase/test-u16-tolower.c (main): Likewise.
27033         * tests/unicase/test-u32-tolower.c (main): Likewise.
27034
27035 2009-06-30  Bruno Haible  <bruno@clisp.org>
27036
27037         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27038         * lib/unicase/u16-casemap.c: Likewise.
27039         * lib/unicase/u32-casemap.c: Likewise.
27040
27041 2009-06-29  Bruno Haible  <bruno@clisp.org>
27042
27043         Define u32_casefold as a wrapper around u32_ct_casefold.
27044         * lib/unicase/u32-casefold.c: Update.
27045         * modules/unicase/u32-casefold (Depends-on): Add
27046         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27047         unicase/empty-suffix-context. Clean up.
27048
27049         Define u16_casefold as a wrapper around u16_ct_casefold.
27050         * lib/unicase/u16-casefold.c: Update.
27051         * modules/unicase/u16-casefold (Depends-on): Add
27052         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27053         unicase/empty-suffix-context. Clean up.
27054
27055         Define u8_casefold as a wrapper around u8_ct_casefold.
27056         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27057         * lib/unicase/u8-casefold.c: Update.
27058         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27059         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27060
27061         Define u32_totitle as a wrapper around u32_ct_totitle.
27062         * lib/unicase/u32-totitle.c: Update.
27063         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27064         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27065
27066         Define u16_totitle as a wrapper around u16_ct_totitle.
27067         * lib/unicase/u16-totitle.c: Update.
27068         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27069         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27070
27071         Define u8_totitle as a wrapper around u8_ct_totitle.
27072         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27073         functions.
27074         (FUNC): Delegate to U_CT_TOTITLE.
27075         * lib/unicase/u8-totitle.c: Update.
27076         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27077         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27078
27079         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27080         invocation.
27081         * modules/unicase/u32-tolower (Depends-on): Add
27082         unicase/empty-prefix-context, unicase/empty-suffix-context.
27083
27084         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27085         invocation.
27086         * modules/unicase/u16-tolower (Depends-on): Add
27087         unicase/empty-prefix-context, unicase/empty-suffix-context.
27088
27089         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27090         * modules/unicase/u8-tolower (Depends-on): Add
27091         unicase/empty-prefix-context, unicase/empty-suffix-context.
27092
27093         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27094         invocation.
27095         * modules/unicase/u32-toupper (Depends-on): Add
27096         unicase/empty-prefix-context, unicase/empty-suffix-context.
27097
27098         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27099         invocation.
27100         * modules/unicase/u16-toupper (Depends-on): Add
27101         unicase/empty-prefix-context, unicase/empty-suffix-context.
27102
27103         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27104         * modules/unicase/u8-toupper (Depends-on): Add
27105         unicase/empty-prefix-context, unicase/empty-suffix-context.
27106
27107         New module 'unicase/u32-ct-casefold'.
27108         * lib/unicase/u32-ct-casefold.c: New file.
27109         * modules/unicase/u32-ct-casefold: New file.
27110
27111         New module 'unicase/u16-ct-casefold'.
27112         * lib/unicase/u16-ct-casefold.c: New file.
27113         * modules/unicase/u16-ct-casefold: New file.
27114
27115         New module 'unicase/u8-ct-casefold'.
27116         * lib/unicase/u8-ct-casefold.c: New file.
27117         * lib/unicase/u-ct-casefold.h: New file, derived from
27118         lib/unicase/u-casefold.h.
27119         * modules/unicase/u8-ct-casefold: New file.
27120
27121         New module 'unicase/u32-ct-totitle'.
27122         * lib/unicase/u32-ct-totitle.c: New file.
27123         * modules/unicase/u32-ct-totitle: New file.
27124
27125         New module 'unicase/u16-ct-totitle'.
27126         * lib/unicase/u16-ct-totitle.c: New file.
27127         * modules/unicase/u16-ct-totitle: New file.
27128
27129         New module 'unicase/u8-ct-totitle'.
27130         * lib/unicase/u8-ct-totitle.c: New file.
27131         * lib/unicase/u-ct-totitle.h: New file, derived from
27132         lib/unicase/u-totitle.h.
27133         * modules/unicase/u8-ct-totitle: New file.
27134
27135         New module 'unicase/u32-ct-tolower'.
27136         * lib/unicase/u32-ct-tolower.c: New file.
27137         * modules/unicase/u32-ct-tolower: New file.
27138
27139         New module 'unicase/u16-ct-tolower'.
27140         * lib/unicase/u16-ct-tolower.c: New file.
27141         * modules/unicase/u16-ct-tolower: New file.
27142
27143         New module 'unicase/u8-ct-tolower'.
27144         * lib/unicase/u8-ct-tolower.c: New file.
27145         * modules/unicase/u8-ct-tolower: New file.
27146
27147         New module 'unicase/u32-ct-toupper'.
27148         * lib/unicase/u32-ct-toupper.c: New file.
27149         * modules/unicase/u32-ct-toupper: New file.
27150
27151         New module 'unicase/u16-ct-toupper'.
27152         * lib/unicase/u16-ct-toupper.c: New file.
27153         * modules/unicase/u16-ct-toupper: New file.
27154
27155         New module 'unicase/u8-ct-toupper'.
27156         * lib/unicase/u8-ct-toupper.c: New file.
27157         * modules/unicase/u8-ct-toupper: New file.
27158
27159         Add context arguments to u*_casemap functions.
27160         * lib/unicase/unicasemap.h: Include unicase.h.
27161         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27162         suffix_context arguments.
27163         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27164         functions.
27165         (FUNC): Add prefix_context and suffix_context arguments. Use
27166         uc_is_cased and uc_is_case_ignorable.
27167         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27168         * lib/unicase/u16-casemap.c: Likewise.
27169         * lib/unicase/u32-casemap.c: Likewise.
27170         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27171         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27172         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27173         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27174         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27175         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27176
27177         New module 'unicase/u32-suffix-context'.
27178         * lib/unicase/u32-suffix-context.c: New file.
27179         * modules/unicase/u32-suffix-context: New file.
27180
27181         New module 'unicase/u16-suffix-context'.
27182         * lib/unicase/u16-suffix-context.c: New file.
27183         * modules/unicase/u16-suffix-context: New file.
27184
27185         New module 'unicase/u8-suffix-context'.
27186         * lib/unicase/u8-suffix-context.c: New file.
27187         * lib/unicase/u-suffix-context.h: New file.
27188         * modules/unicase/u8-suffix-context: New file.
27189
27190         New module 'unicase/empty-suffix-context'.
27191         * lib/unicase/empty-suffix-context.c: New file.
27192         * modules/unicase/empty-suffix-context: New file.
27193
27194         New module 'unicase/u32-prefix-context'.
27195         * lib/unicase/u32-prefix-context.c: New file.
27196         * modules/unicase/u32-prefix-context: New file.
27197
27198         New module 'unicase/u16-prefix-context'.
27199         * lib/unicase/u16-prefix-context.c: New file.
27200         * modules/unicase/u16-prefix-context: New file.
27201
27202         New module 'unicase/u8-prefix-context'.
27203         * lib/unicase/u8-prefix-context.c: New file.
27204         * lib/unicase/u-prefix-context.h: New file.
27205         * lib/unicase/context.h: New file.
27206         * modules/unicase/u8-prefix-context: New file.
27207
27208         New module 'unicase/empty-prefix-context'.
27209         * lib/unicase/empty-prefix-context.c: New file.
27210         * modules/unicase/empty-prefix-context: New file.
27211
27212         New module 'unicase/ignorable'.
27213         * lib/unicase/ignorable.c: New file.
27214         * modules/unicase/ignorable: New file.
27215
27216         New module 'unicase/cased'.
27217         * lib/unicase/caseprop.h: New file.
27218         * lib/unicase/cased.c: New file.
27219         * modules/unicase/cased: New file.
27220
27221         New functions for case mapping of substrings.
27222         * lib/unicase.h (casing_prefix_context_t): New type.
27223         (unicase_empty_prefix_context): New variable.
27224         (u8_casing_prefix_context, u16_casing_prefix_context,
27225         u32_casing_prefix_context, u8_casing_prefixes_context,
27226         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27227         declarations.
27228         (casing_suffix_context_t): New type.
27229         (unicase_empty_suffix_context): New variable.
27230         (u8_casing_suffix_context, u16_casing_suffix_context,
27231         u32_casing_suffix_context, u8_casing_suffixes_context,
27232         u16_casing_suffixes_context, u32_casing_suffixes_context,
27233         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27234         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27235         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27236         declarations.
27237
27238 2009-06-28  Jim Meyering  <meyering@redhat.com>
27239
27240         boostrap: indent only with spaces
27241         * build-aux/bootstrap: Indent only with spaces, never TABs.
27242
27243         bootstrap: split long lines
27244         * build-aux/bootstrap: Keep line length < 80.
27245
27246         bootstrap: sync from coreutils
27247         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27248         just as autoreconf does.  Verify a list of prerequisite
27249         package-name,version-number pairs if defined in bootstrap.conf.
27250         Refer to README-prereq, if prerequisites are not satisfied.
27251
27252 2009-06-27  Eric Blake  <ebb9@byu.net>
27253
27254         tests: add test for bogus NULL definition
27255         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27256         * tests/test-stdlib.c: Likewise.
27257         * tests/test-string.c: Likewise.
27258         * tests/test-locale.c: Likewise.
27259         * tests/test-unistd.c: Likewise.
27260         * modules/stdio-tests (Depends-on): Add verify.
27261         * modules/stdlib-tests (Depends-on): Likewise.
27262         * modules/string-tests (Depends-on): Likewise.
27263         * modules/locale-tests (Depends-on): Likewise.
27264         * modules/unistd-tests (Depends-on): Likewise.
27265
27266 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27267
27268         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27269         self-explaining comment.
27270         * m4/selinux-selinux-h: Update serial.
27271         (gl_LIBSELINUX): New macro, adding a warning for missing development
27272         packages to code extracted from...
27273         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27274         Add warning for missing development packages here, too.
27275
27276 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27277
27278         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27279
27280 2009-06-25  Eric Blake  <ebb9@byu.net>
27281
27282         version-etc: fix regression
27283         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27284         gcc.
27285         (version_etc): Use it, to catch bugs with trailing NULL.
27286         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27287         (version_etc_va): Fix logic bug.
27288         * modules/version-etc-tests: Add test.
27289         * tests/test-version-etc.c: New file.
27290         * tests/test-version-etc.sh: Likewise.
27291
27292 2009-06-25  Sam Steingold  <sds@gnu.org>
27293
27294         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27295         mbtowc declaration.
27296
27297 2009-06-25  Eric Blake  <ebb9@byu.net>
27298
27299         fpurge: migrate into <stdio.h>
27300         * lib/fpurge.h: Delete...
27301         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27302         * lib/fpurge.c (fpurge): Change declaring header.
27303         * modules/fpurge (Files): Drop deleted file.
27304         (Depends-on): Add stdio.
27305         (configure.ac): Set witness.
27306         * modules/stdio (Makefile.am): Support fpurge macros.
27307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27308         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27309         * lib/fflush.c: Update client.
27310         * tests/test-fpurge.c: Likewise.
27311         * NEWS: Mention the change.
27312
27313 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27314
27315         * lib/argp-version-etc.c (program_authors): Add const
27316         qualifier.
27317         * lib/version-etc.c: Fix typos in the comments.
27318         * modules/argp-version-etc: Depends on version-etc.
27319
27320 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27321
27322         argp-version-etc: new module.
27323
27324         * lib/argp-version-etc.c: New file.
27325         * lib/argp-version-etc.h: New file.
27326         * modules/argp-version-etc: New file.
27327         * modules/argp-version-etc-tests: New file.
27328         * tests/test-argp-version-etc.c: New test.
27329         * tests/test-argp-version-etc-1.sh: New test.
27330
27331 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27332
27333         Provide additional interfaces and documentation for version-etc
27334         module.
27335
27336         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27337         interfaces.
27338         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27339         prototypes.
27340
27341 2009-06-24  Bruno Haible  <bruno@clisp.org>
27342
27343         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27344         HAVE_LIB${NAME} macro.
27345         Reported by Sam Steingold <sds@gnu.org>.
27346
27347 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27348
27349         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27350         needed.
27351
27352 2009-06-21  Bruno Haible  <bruno@clisp.org>
27353
27354         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27355         work.
27356         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27357         together with LIB${NAME}, LTLIB${NAME}.
27358         Reported by Sam Steingold <sds@gnu.org>.
27359
27360 2009-06-20  Jim Meyering  <meyering@redhat.com>
27361
27362         tests: make sc_require_test_exit_idiom more generic
27363         * top/maint.mk (Exit_witness_file): New overridable variable.
27364         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27365         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27366
27367 2009-06-19  Jim Meyering  <meyering@redhat.com>
27368
27369         hash: reverse order of src/dst parameters in an internal interface
27370         * lib/hash.c (transfer_entries): Reverse order of parameters to
27371         put DST before SRC.  Adjust callers.
27372
27373         tests: test-hash: avoid wholesale duplication
27374         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27375         Instead, use a loop and add a single conditional.
27376
27377         tests: test-hash: allow seed selection via a command line argument
27378         * tests/test-hash.c (get_seed): New function.
27379         (main): Use it.
27380
27381 2009-06-19  Eric Blake  <ebb9@byu.net>
27382
27383         hash: avoid memory leak on allocation failure
27384         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27385         failure.  Factor repeated algorithm...
27386         (transfer_entries): ...into new helper routine.
27387         (hash_delete): React to hash_rehash return value.
27388
27389         hash: reduce memory pressure in hash_rehash no-op case
27390         * lib/hash.c (next_prime): Avoid overflow.
27391         (hash_initialize): Factor bucket size computation...
27392         (compute_bucket_size): ...into new helper function.
27393         (hash_rehash): Use new function and open coding to reduce memory
27394         pressure, and avoid a memory leak in USE_OBSTACK code.
27395         Reported by Jim Meyering.
27396
27397 2009-06-18  Eric Blake  <ebb9@byu.net>
27398
27399         hash: make rotation more obvious
27400         * modules/hash (Depends-on): Add bitrotate and stdint.
27401         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27402         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27403         (SIZE_MAX): Rely on headers for definition.
27404         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27405         (raw_hasher): Use rotr_sz.
27406         Suggested by Jim Meyering.
27407
27408         hash: fix memory leak in last patch
27409         * lib/hash.c (hash_rehash): Avoid memory leak.
27410
27411         hash: avoid no-op rehashing
27412         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27413
27414         hash: provide default callback functions
27415         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27416         (hash_initialize): Use them as defaults.
27417         * tests/test-hash.c (main): Test this.
27418
27419         hash: minor optimization
27420         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27421         when possible.
27422         (hash_initialize): Document this promise.
27423         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27424         * tests/test-hash.c (hash_compare_strings): Test this.
27425
27426 2009-06-18  Bruno Haible  <bruno@clisp.org>
27427
27428         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27429         going to be replaced anyway.
27430
27431 2009-06-18  Bruno Haible  <bruno@clisp.org>
27432
27433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27434         in one place.
27435         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27436         be replaced anyway.
27437
27438 2009-06-18  Eric Blake  <ebb9@byu.net>
27439
27440         hash: check for resize before insertion
27441         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27442         threshold before insertion, so that a pathological hash_rehash
27443         that fills every bucket can still trigger another rehash.
27444
27445 2009-06-18  Jim Meyering  <meyering@redhat.com>
27446
27447         hash-tests: add a loop around the small tests
27448         * tests/test-hash.c (main): Repeat small tests with selected
27449         small initial table sizes.
27450
27451 2009-06-17  Eric Blake  <ebb9@byu.net>
27452
27453         hash: minor cleanups
27454         * lib/hash.h (hash_entry): Make opaque, by moving...
27455         * lib/hash.c (hash_entry): ...here.
27456         (hash_insert): Clarify restrictions on what can be inserted.
27457         (hash_get_next): Clarify when it is safe to remove an element
27458         during traversal.
27459         (check_tuning): Skip verification when tuning is known safe.
27460         (hash_initialize): Clarify restrictions on tuning.
27461
27462 2009-06-17  Jim Meyering  <jim@meyering.net>
27463         and Eric Blake  <ebb9@byu.net>
27464
27465         hash-tests: new module
27466         * modules/hash-tests: New file.
27467         * tests/test-hash.c: New file.
27468
27469 2009-06-17  Eric Blake  <ebb9@byu.net>
27470
27471         strstr-simple: document new module
27472         * MODULES.html.sh: Document new module.
27473
27474         strstr, strcasestr: replace on platforms with broken memchr
27475         * modules/strstr: Split into...
27476         * modules/strstr-simple: ...new module that does not care about
27477         performance, but does care about glibc bug.
27478         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
27479         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
27480         if platform memchr is broken, per Debian bug 521737.
27481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
27482         memchr.
27483         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
27484         * doc/posix-functions/strstr.texi (strstr): Document the fix.
27485         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27486         * modules/mountlist (Depends-on): Add strstr-simple.
27487         * modules/gen-uni-tables (Depends-on): Likewise.
27488         * modules/argz (Depends-on): Add strstr.
27489
27490 2009-06-17  Bruno Haible  <bruno@clisp.org>
27491
27492         * modules/posix_spawn-internal (Depends-on): Add errno.
27493
27494 2009-06-17  Bruno Haible  <bruno@clisp.org>
27495
27496         Define missing ESTALE on Interix 3.5.
27497         * lib/errno.in.h (ESTALE): Assign a value if missing.
27498         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
27499         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
27500         missing.
27501         * doc/posix-headers/errno.texi: Mention the Interix bug.
27502         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
27503
27504 2009-06-15  Eric Blake  <ebb9@byu.net>
27505
27506         memchr, memchr2: add valgrind exception
27507         * lib/memchr.valgrind: New file.
27508         * lib/memchr2.valgrind: New file.
27509         * modules/memchr (Files): Distribute valgrind file.
27510         * modules/memchr2 (Files): Likewise.
27511
27512         docs: memchr is no longer obsolete
27513         * MODULES.html.sh: Move memchr from obsolete to string.h section.
27514         * lib/string.in.h (memchr): Simplify logic.
27515
27516 2009-06-14  Jim Meyering  <meyering@redhat.com>
27517
27518         link-follow: fix the "checking..." message to not mention trailing slash
27519         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
27520         never considered trailing slashes.
27521
27522 2009-06-14  Bruno Haible  <bruno@clisp.org>
27523
27524         * m4/memchr.m4: Mention also the bug on IA-64.
27525         * doc/posix-functions/memchr.texi: Likewise.
27526
27527 2009-06-12  Eric Blake  <ebb9@byu.net>
27528
27529         memchr: detect broken x86_64 and alpha implementations
27530         * modules/memchr-tests (Depends-on): Move mmap detection...
27531         * modules/memchr (Depends-on): ...here.
27532         (configure.ac): Set indicator.
27533         * lib/string.in.h (memchr): Declare replacement.
27534         * modules/string (Makefile.am): Trigger replacement.
27535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27536         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
27537         bugs.
27538         * doc/posix-functions/memchr.texi (memchr): Document the bug.
27539         * modules/getpagesize (License): Relax license.
27540
27541 2009-06-11  Bruno Haible  <bruno@clisp.org>
27542
27543         * lib/idpriv.h: Add more references.
27544
27545 2009-06-08  Bruno Haible  <bruno@clisp.org>
27546
27547         Tests for module 'idpriv-droptemp'.
27548         * modules/idpriv-droptemp-tests: New file.
27549         * tests/test-idpriv-droptemp.sh: New file.
27550         * tests/test-idpriv-droptemp.su.sh: New file.
27551         * tests/test-idpriv-droptemp.c: New file.
27552
27553         New module 'idpriv-droptemp'.
27554         * lib/idpriv-droptemp.c: New file.
27555         * modules/idpriv-droptemp: New file.
27556
27557 2009-06-08  Bruno Haible  <bruno@clisp.org>
27558
27559         Tests for module 'idpriv-drop'.
27560         * modules/idpriv-drop-tests: New file.
27561         * tests/test-idpriv-drop.sh: New file.
27562         * tests/test-idpriv-drop.su.sh: New file.
27563         * tests/test-idpriv-drop.c: New file.
27564
27565         New module 'idpriv-drop'.
27566         * lib/idpriv.h: New file.
27567         * lib-idpriv-drop.c: New file.
27568         * m4/idpriv.m4: New file.
27569         * modules/idpriv-drop: New file.
27570
27571 2009-06-08  Bruno Haible  <bruno@clisp.org>
27572
27573         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
27574         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27575         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27576         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27577         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27578         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27579         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27580
27581 2009-06-08  Eric Blake  <ebb9@byu.net>
27582
27583         test-strstr: use memory fence, when possible
27584         * tests/test-strstr.c (main): Use memory fence, in order to be
27585         more likely to trigger Debian bug 521737.
27586         * modules/strstr-tests (Files): Pull in additional files.
27587
27588         memchr: no longer obsolete, for wider field testing
27589         * modules/memchr (Status, Notice): Delete, this module is no
27590         longer obsolete.
27591         * modules/vasnprintf (Depends-on): Add memchr.
27592
27593 2009-06-07  Jim Meyering  <meyering@redhat.com>
27594
27595         hash: declare some functions with the warn_unused_result attribute
27596         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
27597
27598 2009-06-07  Bruno Haible  <bruno@clisp.org>
27599
27600         * tests/test-alignof.c: Don't test int64_t if it does not exist.
27601         Reported by Eric Blake.
27602
27603 2009-06-06  Eric Blake  <ebb9@byu.net>
27604
27605         test-alignof: fix typo with long double
27606         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
27607         compiler error.
27608
27609 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
27610
27611         Escape non-texinfo { and }s.
27612         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
27613         markup error.
27614
27615 2009-06-04  Jim Meyering  <meyering@redhat.com>
27616
27617         gitlog-to-changelog: don't infloop on an empty commit log
27618         * build-aux/gitlog-to-changelog: Warn about an empty log message.
27619         Reported by Boris Petersen <transacid@centerim.org>.
27620
27621 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
27622
27623         version-etc: extend for packagers
27624         Add three new configure options, intended for packagers:
27625           --with-packager="packager name"
27626           --with-packager-version="packager-specific version"
27627           --with-packager-bug-reports="packager bug reporting"
27628         An example with coreutils:
27629           $ ./configure \
27630             --with-packager=Gentoo \
27631             --with-packager-bug-report=http://bugs.gentoo.org/ \
27632             --with-packager-version="patchset 1.6"
27633           $ ./src/ls --version | head -n2
27634           ls (GNU coreutils) 7.1-dirty
27635           Packaged by Gentoo (patchset 1.6)
27636         Note that the bug reporting info via --help doesn't show up because
27637         coreutils uses its own custom emit_bug_reporting_address() implementation
27638         in src/system.h.  If it didn't, it'd look like:
27639           $ ./src/ls --help | tail -n4
27640           Report bugs to <bug-coreutils@gnu.org>.
27641           Report Gentoo bugs to <http://bugs.gentoo.org/>.
27642           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
27643           General help using GNU software: <http://www.gnu.org/gethelp/>.
27644         * lib/version-etc.c: Print new information, if provided.
27645         * m4/version-etc.m4: New file.
27646         * modules/version-etc (Files): Add m4/version-etc.m4.
27647         (configure.ac): Add gl_VERSION_ETC.
27648
27649 2009-05-31  Bruno Haible  <bruno@clisp.org>
27650
27651         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
27652         and 'int64_t'.
27653         * modules/alignof-tests (Dependencies): Add stdint.
27654         Reported by Eric Blake.
27655
27656 2009-05-31  Bruno Haible  <bruno@clisp.org>
27657
27658         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
27659         restriction due to compiler bugs.
27660         Reported by Eric Blake.
27661
27662 2009-05-31  Simon Josefsson  <simon@josefsson.org>
27663             Bruno Haible  <bruno@clisp.org>
27664
27665         Fix test-alignof failure.
27666         * lib/alignof.h (alignof_slot): New macro.
27667         (alignof_type): New macro, with the same semantics as the previous
27668         'alignof'.
27669         (alignof): Alias to alignof_slot.
27670         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
27671         check that the results are usable as constant expressions.
27672
27673 2009-05-31  Bruno Haible  <bruno@clisp.org>
27674
27675         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
27676         * tests/test-memchr.c (main): Check that memchr does not read past the
27677         first occurrence of the byte.
27678         * tests/test-strstr.c (main): Update comment.
27679         Suggested by Eric Blake.
27680
27681 2009-05-30  Bruno Haible  <bruno@clisp.org>
27682
27683         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
27684         detail how to use dumpbin.
27685         Reported by David Byron <dbyron@dbyron.com>.
27686
27687 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27688
27689         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
27690
27691 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27692
27693         * m4/manywarnings.m4: Add GCC 4.4 warnings.
27694
27695 2009-05-28  Bruno Haible  <bruno@clisp.org>
27696
27697         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
27698         build-aux/ files.
27699
27700 2009-05-28  Simon Josefsson  <simon@josefsson.org>
27701
27702         * gnulib-tool (func_import): Transform license on build-aux/ files too.
27703
27704 2009-05-27  Simon Josefsson  <simon@josefsson.org>
27705
27706         * gnulib-tool (sed_transform_main_lib_file)
27707         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
27708         regexps.
27709
27710 2009-05-26  Simon Josefsson  <simon@josefsson.org>
27711
27712         * tests/test-strstr.c: Add another self-test.
27713         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
27714         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
27715
27716 2009-05-23  Bruno Haible  <bruno@clisp.org>
27717
27718         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
27719         change.
27720
27721 2009-05-21  Bruno Haible  <bruno@clisp.org>
27722
27723         Simplify use of mode_t varargs.
27724         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
27725         uses 'mode_t' or 'int'.
27726         * lib/openat.c (openat): Likewise.
27727         * lib/open-safer.c (open_safer): Likewise.
27728         * m4/mode_t.m4: New file.
27729         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
27730         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
27731         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
27732         * modules/open (Files): Add m4/mode_t.m4.
27733         * modules/openat (Files): Likewise.
27734         * modules/fcntl-safer (Files): Likewise.
27735         Suggested by Eric Blake.
27736
27737 2009-05-21  Pádraig Brady  <P@draigbrady.com>
27738
27739         * doc/glibc-functions/fallocate.texi: New file.
27740         * doc/gnulib.texi: Include it.
27741
27742 2009-05-21  Eric Blake  <ebb9@byu.net>
27743             Bruno Haible  <bruno@clisp.org>
27744
27745         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
27746         invocations.
27747         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27748
27749 2009-05-21  Eric Blake  <ebb9@byu.net>
27750             Bruno Haible  <bruno@clisp.org>
27751
27752         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
27753         include_next. Fix of 2008-11-20 commit.
27754         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
27755         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
27756         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
27757         NEXT_MATH_H.
27758         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
27759         instead of NEXT_MATH_H.
27760
27761 2009-05-21  Bruno Haible  <bruno@clisp.org>
27762
27763         Avoid redefinition warnings for SIZE_MAX.
27764         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
27765         Reported by Simon Josefsson.
27766
27767 2009-05-21  Bruno Haible  <bruno@clisp.org>
27768
27769         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
27770         AC_CACHE_VAL.
27771
27772 2009-05-20  Bruno Haible  <bruno@clisp.org>
27773
27774         Make zeroptr.h work on mingw.
27775         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
27776         mprotect.
27777         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
27778         * modules/memchr2-tests (configure.ac): Likewise.
27779         * modules/memcmp-tests (configure.ac): Likewise.
27780         * modules/memmem-tests (configure.ac): Likewise.
27781         * modules/memrchr-tests (configure.ac): Likewise.
27782         Reported by Simon Josefsson.
27783
27784 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27785
27786         * tests/test-glob.c: Include string.h for strcmp prototype.
27787
27788 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27789
27790         * modules/getdelim (Depends-on): Add explicit stdint, although it
27791         was implicitly already pulled in via realloc-posix.
27792         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
27793
27794 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27795
27796         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27797         G. Christensen" <tgc@jupiterrise.com>.
27798         * m4/sys_socket_h.m4: Check for sa_family_t.
27799         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27800         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27801         * tests/test-sys_socket.c: Check that sa_family_t works.
27802
27803 2009-05-18  Eric Blake  <ebb9@byu.net>
27804
27805         maint.mk: allow gnulib_dir in VPATH build
27806         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27807
27808 2009-05-15  Jim Meyering  <meyering@redhat.com>
27809
27810         maint.mk: Give gnulib_dir a default definition.
27811         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27812         Thus, most packages no longer need to specify this variable in cfg.mk
27813
27814 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27815
27816         rename.m4: fix typos that would make non-mingw cross-configure fail
27817         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27818
27819 2009-05-13  Eric Blake  <ebb9@byu.net>
27820
27821         mmap-anon: avoid out-of-order autoconf expansion
27822         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27823         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27824         * modules/memchr-tests (Depends-on): Add extensions.
27825         * modules/memchr2-tests (Depends-on): Add extensions.
27826         * modules/memcmp-tests (Depends-on): Add extensions.
27827         * modules/memmem-tests (Depends-on): Add extensions.
27828         * modules/memrchr-tests (Depends-on): Add extensions.
27829
27830 2009-05-13  Bruno Haible  <bruno@clisp.org>
27831
27832         Make some tests ISO C 99 compliant.
27833         * tests/zerosize-ptr.h: New file.
27834         * tests/test-memchr.c: Include zerosize-ptr.h.
27835         (main): Use a zero-size object pointer instead of NULL.
27836         * tests/test-memchr2.c: Include zerosize-ptr.h.
27837         (main): Use a zero-size object pointer instead of NULL.
27838         * tests/test-memcmp.c: Include zerosize-ptr.h.
27839         (main): Use a zero-size object pointer instead of NULL.
27840         * tests/test-memmem.c: Include zerosize-ptr.h.
27841         (main): Use a zero-size object pointer instead of NULL.
27842         * tests/test-memrchr.c: Include zerosize-ptr.h.
27843         (main): Use a zero-size object pointer instead of NULL.
27844         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27845         m4/mmap-anon.m4.
27846         (Depends-on): Add getpagesize.
27847         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27848         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27849         m4/mmap-anon.m4.
27850         (Depends-on): Add getpagesize.
27851         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27852         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27853         m4/mmap-anon.m4.
27854         (Depends-on): Add getpagesize.
27855         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27856         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27857         m4/mmap-anon.m4.
27858         (Depends-on): Add getpagesize.
27859         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27860         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27861         m4/mmap-anon.m4.
27862         (Depends-on): Add getpagesize.
27863         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27864
27865 2009-05-12  Bruno Haible  <bruno@clisp.org>
27866
27867         Tests for module 'alignof'.
27868         * modules/alignof-tests: New file.
27869         * tests/test-alignof.c: New file.
27870
27871 2009-05-12  Bruno Haible  <bruno@clisp.org>
27872
27873         Fix alignof macro.
27874         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27875         vendor compilers that are always correct.
27876
27877 2009-05-12  Bruno Haible  <bruno@clisp.org>
27878
27879         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27880         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27881         not whether its fully works.
27882
27883 2009-05-12  Bruno Haible  <bruno@clisp.org>
27884
27885         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27886
27887 2009-05-12  Jim Meyering  <meyering@redhat.com>
27888
27889         * top/maint.mk: Adjust backslash alignment.
27890
27891 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27892
27893         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27894
27895 2009-05-11  Eric Blake  <ebb9@byu.net>
27896
27897         argp: avoid undefined behavior
27898         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27899         macros.
27900
27901 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27902
27903         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27904         user.name to prevent git commit from complaining.
27905
27906 2009-05-10  Bruno Haible  <bruno@clisp.org>
27907
27908         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27909         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27910         it rewrites every file name only once.
27911         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27912
27913 2009-05-08  Bruno Haible  <bruno@clisp.org>
27914
27915         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27916         instead of 'max'.
27917
27918 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27919
27920         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27921         sockaddr_storage test.
27922
27923 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27924
27925         * modules/sys_socket (Makefile.am): Substitute
27926         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27927         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27928         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27929         * tests/test-sys_socket.c: Check sockaddr_storage.
27930
27931 2009-05-08  Bruno Haible  <bruno@clisp.org>
27932
27933         New module 'alignof'.
27934         * lib/alignof.h: New file.
27935         * modules/alignof: New file.
27936
27937 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27938             Bruno Haible  <bruno@clisp.org>
27939
27940         Fix test-file-has-acl on FreeBSD.
27941         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27942         mask is implicitly added.
27943         * tests/test-file-has-acl.c: Include <signal.h>.
27944         (main): Terminate the test after 5 seconds.
27945         * modules/acl-tests (configure.ac): Check for alarm function.
27946
27947 2009-05-04  Bruno Haible  <bruno@clisp.org>
27948
27949         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27950         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27951         * modules/errno (configure.ac): Drop AC_REQUIRE.
27952         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27953         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27954
27955 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27956
27957         * modules/glob-tests: New module.
27958         * tests/test-glob.c: Add.
27959
27960 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27961
27962         * modules/fnmatch-tests: New module.
27963         * tests/test-fnmatch.c: Add.
27964
27965 2009-05-04  Eric Blake  <ebb9@byu.net>
27966
27967         maint: make the new no-submodule-changes rule VPATH-safe
27968         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27969
27970 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27971             Bruno Haible  <bruno@clisp.org>
27972
27973         acl: Fix infinite loop on FreeBSD.
27974         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27975         of return value from acl_get_entry.
27976         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27977         Likewise.
27978
27979 2009-05-03  Bruno Haible  <bruno@clisp.org>
27980
27981         * lib/acl-internal.h (acl_entries): Clarify return value.
27982         * lib/acl_entries.c (acl_entries): Likewise.
27983
27984 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27985
27986         Bug fix in acl module.
27987         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27988
27989 2009-05-03  Bruno Haible  <bruno@clisp.org>
27990
27991         Create gperf-generated file in the source dir, not in the build dir.
27992         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27993         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27994         * modules/unicase/locale-language (unicase/locale-languages.h):
27995         Likewise.
27996         * modules/unicase/special-casing (unicase/special-casing-table.h):
27997         Likewise.
27998         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27999         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28000         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28001         Reported by Ralf Wildenhues.
28002
28003 2009-05-03  Bruno Haible  <bruno@clisp.org>
28004
28005         * modules/fnmatch (Description, configure.ac): Taken from
28006         fnmatch-posix.
28007         * modules/fnmatch-posix: Turn into a symbolic reference to the
28008         'fnmatch' module, and deprecate.
28009         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28010
28011 2009-05-03  Bruno Haible  <bruno@clisp.org>
28012
28013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28014         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28015         Reported by Ralf Wildenhues.
28016
28017 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28018
28019         * m4/fnmatch.m4: Fix fnmatch re-define.
28020
28021 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28022
28023         priv-set: new module and tests; adapt write-any-file
28024         * lib/priv-set.c: New file.
28025         * lib/priv-set.h: New file.
28026         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28027         * lib/write-any-file.c: Simplify by using priv-set module.
28028         * m4/priv-set.m4: New file.
28029         * modules/priv-set: New file.
28030         * modules/unlinkdir: Add dependency on priv-set module.
28031         * modules/write-any-file: Likewise.
28032
28033         Tests for module 'priv-set'.
28034         * modules/priv-set-tests: New file.
28035         * tests/test-priv-set.c: New file.
28036
28037 2009-05-03  Jim Meyering  <meyering@redhat.com>
28038             Bruno Haible  <bruno@clisp.org>
28039
28040         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28041         use the converted UTF-8 variant of the name instead.
28042
28043 2009-05-03  Jim Meyering  <meyering@redhat.com>
28044
28045         tests: tighten some getdate tests
28046         * tests/test-getdate.c (main): Tighten tests: require equality,
28047         not just greater than.  Set TZ envvar to UTC0.
28048
28049 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28050
28051         getdate: correctly interpret "next monday" when run on a Monday
28052         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28053         that e.g., "next tues" (when run on a tuesday) results in a date
28054         that is one week in the future, and not today's date.
28055         I.e., add a week when the wday is the same as the current one.
28056         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28057         and earlier by Martin Bernreuther and Jan Minář.
28058         * tests/test-getdate.c (main): Check that "next DAY" is always in
28059         the future and that "last DAY" is always in the past.
28060
28061 2009-05-02  Jim Meyering  <meyering@redhat.com>
28062
28063         build: ensure that a release build fails when a submodule is unclean
28064         * top/maint.mk (no-submodule-changes): New rule.
28065         (alpha beta major): Depend on it.
28066
28067 2009-05-02  Bruno Haible  <bruno@clisp.org>
28068
28069         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28070         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28071         shell variable gl_fnmatch_required to detect which variant is
28072         requested.
28073         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28074         gl_FUNC_FNMATCH_POSIX.
28075         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28076         exclude fnmatch-posix.
28077
28078 2009-05-02  Bruno Haible  <bruno@clisp.org>
28079
28080         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28081         * modules/mbsrtowcs (License): Change to LGPLv2+.
28082         * modules/strnlen1 (License): Likewise.
28083         Reported by Simon Josefsson.
28084
28085 2009-05-02  Bruno Haible  <bruno@clisp.org>
28086
28087         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28088         "cross".
28089         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28090         gnulib-tool was called with option --source-base=lib.
28091
28092 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28093
28094         Use automake *-local hooks without commands, for extensibility.
28095         * modules/localcharset (Makefile.am): Rename install-exec-local
28096         rule to install-exec-localcharset, and make it a prerequisite of
28097         install-exec-local.  Likewise, rename the uninstall-local rule to
28098         uninstall-localcharset, and make it a prerequisite of the former.
28099
28100 2009-05-01  Bruno Haible  <bruno@clisp.org>
28101
28102         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28103         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28104         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28106         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28107         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28108         m4/locale-zh.m4, m4/codeset.m4.
28109
28110         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28111         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28112         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28113         m4/locale-zh.m4.
28114
28115         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28116         REPLACE_WCRTOMB if mbstate_t must be replaced.
28117         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28118         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28119
28120 2009-05-01  Bruno Haible  <bruno@clisp.org>
28121
28122         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28123         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28124         dngettext, dcngettext, textdomain, bindtextdomain,
28125         bind_textdomain_codeset): Undefine before redefining.
28126
28127 2009-04-30  Bruno Haible  <bruno@clisp.org>
28128
28129         Fix bug introduced on 2009-04-25.
28130         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28131         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28132         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28133         is defined.
28134         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28135         is defined.
28136         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28137         is defined.
28138         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28139
28140 2009-04-28  Bruno Haible  <bruno@clisp.org>
28141
28142         Comment tweaks.
28143         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28144         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28145         * lib/unicase.h (u*_casexfrm): Likewise.
28146         Reported by Paolo Bonzini.
28147
28148 2009-04-28  Bruno Haible  <bruno@clisp.org>
28149
28150         Fix a compilation error.
28151         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28152         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28153         Reported by Jim Meyering.
28154
28155 2009-04-27  Bruno Haible  <bruno@clisp.org>
28156
28157         New module 'libunistring'.
28158         * modules/libunistring: New file.
28159         * m4/libunistring.m4: New file.
28160         * MODULES.html.sh (Unicode string functions): Add it.
28161
28162 2009-04-27  Eric Blake  <ebb9@byu.net>
28163
28164         maint.mk: allow package-specific header to provide <config.h>
28165         * top/maint.mk (sc_require_config_h): New variable.
28166         (sc_require_config_h, sc_require_config_h_first): Use it.
28167
28168 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28169
28170         * top/maint.mk (sc_avoid_if_before_free): Except
28171         useless-if-before-free script.
28172
28173 2009-04-27  Eric Blake  <ebb9@byu.net>
28174
28175         maintainer-makefile: depend on all required helper scripts
28176         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28177         useless-if-before-free.
28178         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28179         version, rather than assuming gnulib checkout is available.
28180         Reported by Simen Josefsson.
28181
28182 2009-04-26  Bruno Haible  <bruno@clisp.org>
28183
28184         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28185         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28186         "../" or "..".
28187
28188 2009-04-26  Bruno Haible  <bruno@clisp.org>
28189
28190         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28191         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28192         AC_LIB_HAVE_LINKFLAGS.
28193
28194 2009-04-26  Bruno Haible  <bruno@clisp.org>
28195
28196         Simplify calling convention of u*_conv_from_encoding.
28197         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28198         u32_conv_from_encoding): Expect a resultbuf argument and return the
28199         result directly as a pointer.
28200         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28201         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28202         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28203         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28204         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28205         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28206         Update.
28207         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28208         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28209         * lib/vasnprintf.c (VASNPRINTF): Update.
28210         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28211         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28212         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28213         * NEWS: Mention the change.
28214
28215 2009-04-26  Bruno Haible  <bruno@clisp.org>
28216
28217         Simplify calling convention of u*_conv_to_encoding.
28218         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28219         u32_conv_to_encoding): Expect a resultbuf argument and return the
28220         result directly as a pointer.
28221         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28222         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28223         freeing scaled_offsets if mem_iconveha failed.
28224         * lib/unicase/u-casexfrm.h (FUNC): Update.
28225         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28226         * lib/vasnprintf.c (VASNPRINTF): Update.
28227         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28228         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28229         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28230         * NEWS: Mention the change.
28231
28232 2009-04-26  Bruno Haible  <bruno@clisp.org>
28233
28234         Avoid test failures on AIX and OSF/1.
28235         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28236         malloc(0).
28237         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28238         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28239         Likewise.
28240         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28241         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28242         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28243         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28244         * doc/posix-functions/malloc.texi: Document the portability problem
28245         related to malloc(0).
28246
28247 2009-04-26  Bruno Haible  <bruno@clisp.org>
28248
28249         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28250         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28251         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28252
28253 2009-04-25  Bruno Haible  <bruno@clisp.org>
28254
28255         Avoid link error when creating a namespace clean library.
28256         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28257         as macro with arguments if already defined as an alias.
28258         * lib/signbitf.c (gl_signbitf): Don't undefine.
28259         * lib/signbitd.c (gl_signbitd): Don't undefine.
28260         * lib/signbitl.c (gl_signbitl): Don't undefine.
28261
28262 2009-04-25  Jim Meyering  <meyering@redhat.com>
28263
28264         vc-list-files: fix another quoting bug
28265         * build-aux/vc-list-files: Avoid sed backslash expansion
28266         of pathological directory names.
28267
28268 2009-04-25  Eric Blake  <ebb9@byu.net>
28269
28270         vc-list-files: fix shell quoting error
28271         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28272         timestamp.
28273
28274 2009-04-25  Jim Meyering  <meyering@redhat.com>
28275
28276         vc-list-files: restore lost functionality with subdir argument
28277         * build-aux/vc-list-files: When given a non-"." sub-directory
28278         argument, substitute the $dir/ prefix back onto each resulting name.
28279         Otherwise, coreutils' root_tests check would fail.
28280
28281 2009-04-24  Eric Blake  <ebb9@byu.net>
28282
28283         vc-list-files: ignore git symlinks
28284         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28285         than ls-files, to ignore git symlinks.
28286
28287         maint.mk: import improvements from m4
28288         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28289         (move_if_change): Delete unused macro.
28290         (news-date-check, vc-diff-check): Support VPATH builds.
28291         (announcement): Likewise.  Split --bootstrap-tools list...
28292         (boostrap-tools): ...into separate list, which can be overridden
28293         in cfg.mk.
28294         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28295         requiring dependency on useless-if-before-free module.
28296         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28297         Support VPATH builds.
28298
28299 2009-04-24  Jim Meyering  <meyering@redhat.com>
28300
28301         maint.mk: remove coreutils-specific rules and variables
28302         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28303         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28304         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28305
28306         maint.mk: remove obsolete rule
28307         * top/maint.mk (rel-check): Remove rule.
28308         (WGET, WGETFLAGS): Remove now-unused variables.
28309
28310 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28311
28312         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28313         consistency.
28314
28315         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28316         '$(PATH_SEPARATOR)' instead of ':'.
28317
28318 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28319
28320         * lib/getopt1.c (main): Use 'const' for static array.
28321
28322 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28323
28324         * top/maint.mk: Sync with coreutils.
28325         * NEWS: Explain incompatibilities.
28326
28327 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28328             Bruno Haible  <bruno@clisp.org>
28329
28330         Fix cross-compilation results.
28331         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28332         statement, as third argument of AC_TRY_RUN.
28333         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28334         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28335         Likewise.
28336         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28337         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28338         Likewise.
28339         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28340         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28341         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28342
28343 2009-04-20  Bruno Haible  <bruno@clisp.org>
28344
28345         Avoid test failure on mingw.
28346         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28347
28348 2009-04-20  Bruno Haible  <bruno@clisp.org>
28349
28350         Avoid compilation error on mingw.
28351         * modules/localename-tests (Depends-on): Add locale.
28352
28353 2009-04-19  Bruno Haible  <bruno@clisp.org>
28354
28355         Support for building a shared library on Windows platforms.
28356         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28357         (main): Test the presence of UNINORM_NFC here.
28358         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28359         (main): Test the presence of UNINORM_NFD here.
28360         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28361         (main): Test the presence of UNINORM_NFKC here.
28362         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28363         (main): Test the presence of UNINORM_NFKD here.
28364
28365 2009-04-19  Bruno Haible  <bruno@clisp.org>
28366
28367         Avoid a compiler warning.
28368         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28369         Change type of variable 'sequence'.
28370
28371 2009-04-19  Bruno Haible  <bruno@clisp.org>
28372
28373         * modules/configmake (Makefile.am): When the contents of configmake.h
28374         does not change, arrange to preserve its modification time.
28375
28376 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28377
28378         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28379         gettext domain.
28380
28381 2009-04-16  Jim Meyering  <meyering@redhat.com>
28382
28383         useless-if-before-free: improve conversion code
28384         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28385         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28386
28387 2009-04-14  Bruno Haible  <bruno@clisp.org>
28388
28389         * modules/fcntl (Depends-on): Add extensions.
28390         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28391
28392 2009-04-12  Ben Pfaff  <blp@gnu.org>
28393
28394         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28395         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28396
28397 2009-03-20  Ben Pfaff  <blp@gnu.org>
28398
28399         Make rename replace existing destinations on Windows.
28400         * m4/rename.m4: Add test for Mingw.
28401         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28402         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28403         * doc/posix-functions/rename.texi: Document.
28404
28405 2009-04-10  Bruno Haible  <bruno@clisp.org>
28406
28407         New include file "iconveh.h".
28408         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28409         * lib/striconveh.h: Include it.
28410         (enum iconv_ilseq_handler): Remove definition.
28411         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28412         striconveh.h.
28413         * lib/striconveha.c: Include striconveh.h.
28414         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28415         * modules/striconveh (Files): Add lib/iconveh.h.
28416         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28417         lib/striconveh.h.
28418
28419 2009-04-10  Bruno Haible  <bruno@clisp.org>
28420
28421         * lib/uniconv.h: Update comment.
28422
28423 2009-04-10  Bruno Haible  <bruno@clisp.org>
28424
28425         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28426         always.
28427         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28428         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28429         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28430         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28431         "unistring-notinline.h", so that the function gets defined always.
28432         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28433         * lib/unistr/u8-uctomb.c: Likewise.
28434         * lib/unistr/u16-mbtouc.c: Likewise.
28435         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28436         * lib/unistr/u16-uctomb.c: Likewise.
28437         * lib/unistr/u32-mbtouc.c: Likewise.
28438         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28439         * lib/unistr/u32-uctomb.c: Likewise.
28440
28441 2009-04-10  Bruno Haible  <bruno@clisp.org>
28442
28443         Mark 'utime' obsolete.
28444         * modules/utime (Status, Notice): New sections.
28445         Suggested by Jim Meyering.
28446
28447         Fix cross-compile guess for utime test.
28448         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28449         autoconf.
28450         * doc/posix-functions/utime.texi: Give more precisions.
28451         Reported by Jan <ipif@ymail.com>.
28452
28453 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28454
28455         filevercmp: correct today's change
28456         * lib/filevercmp.c: Also handle coreutils' test inputs.
28457         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28458
28459         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28460         for reporting it.
28461         * lib/filevercmp.c: Special handle for "", "." and "..".
28462         * tests/test-filevercmp.c: Enlarge the set suite.
28463
28464 2009-04-07  Jim Meyering  <meyering@redhat.com>
28465
28466         useless-if-before-free: show how to remove braced useless free, too
28467         * build-aux/useless-if-before-free: still only in a comment, though.
28468
28469 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
28470
28471         maint.mk: import changes to syntax-check macros from coreutils
28472         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
28473         Use them in the relevant macros.
28474
28475 2009-04-06  Bruno Haible  <bruno@clisp.org>
28476
28477         Fix unportable use of bit-fields.
28478         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
28479         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
28480         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
28481
28482 2009-04-06  Bruno Haible  <bruno@clisp.org>
28483
28484         Avoid test failures on AIX and OSF/1.
28485         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
28486         that malloc(0) = NULL.
28487         * tests/unicase/test-u8-tolower.c (check): Likewise.
28488         * tests/unicase/test-u8-totitle.c (check): Likewise.
28489         * tests/unicase/test-u8-toupper.c (check): Likewise.
28490         * tests/unicase/test-u16-casefold.c (check): Likewise.
28491         * tests/unicase/test-u16-tolower.c (check): Likewise.
28492         * tests/unicase/test-u16-totitle.c (check): Likewise.
28493         * tests/unicase/test-u16-toupper.c (check): Likewise.
28494         * tests/unicase/test-u32-casefold.c (check): Likewise.
28495         * tests/unicase/test-u32-tolower.c (check): Likewise.
28496         * tests/unicase/test-u32-totitle.c (check): Likewise.
28497         * tests/unicase/test-u32-toupper.c (check): Likewise.
28498         * tests/uninorm/test-u8-nfc.c (check): Likewise.
28499         * tests/uninorm/test-u8-nfd.c (check): Likewise.
28500         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
28501         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
28502         * tests/uninorm/test-u16-nfc.c (check): Likewise.
28503         * tests/uninorm/test-u16-nfd.c (check): Likewise.
28504         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
28505         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
28506         * tests/uninorm/test-u32-nfc.c (check): Likewise.
28507         * tests/uninorm/test-u32-nfd.c (check): Likewise.
28508         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
28509         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
28510
28511 2009-04-05  Bruno Haible  <bruno@clisp.org>
28512
28513         Work around an autoconf limitation.
28514         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
28515         comment line if it would be longer than 3 KB.
28516
28517 2009-04-05  Bruno Haible  <bruno@clisp.org>
28518
28519         Avoid test failure with libiconv-1.13.
28520         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
28521         of the expected test results.
28522
28523 2009-04-05  Bruno Haible  <bruno@clisp.org>
28524
28525         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
28526         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
28527         that it should be installed.
28528
28529 2009-04-05  Bruno Haible  <bruno@clisp.org>
28530
28531         * gnulib-tool: New option --copy-file.
28532         (func_usage): Document it.
28533         (func_dest_tmpfilename): Moved out of func_import.
28534         (func_add_file, func_update_file): New functions, extracted from
28535         func_import.
28536         (func_import): Update.
28537
28538 2009-04-05  Karl Berry  <karl@gnu.org>
28539
28540         * README: prominently mention gnulib-tool.
28541         Rearrange sections so getting the code is near the top.
28542
28543 2009-04-05  Bruno Haible  <bruno@clisp.org>
28544
28545         * lib/unicase.h: Mention u*_cmp2.
28546         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28547         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
28548         * lib/unicase/ulc-casecmp.c: Likewise.
28549         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
28550         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
28551         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
28552         unistr/u8-cmp.
28553         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
28554         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
28555         unistr/u16-cmp.
28556         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
28557         unistr/u32-cmp.
28558
28559         * lib/uninorm.h: Mention u*_cmp2.
28560         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28561         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
28562         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
28563         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
28564         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
28565         unistr/u8-cmp.
28566         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
28567         unistr/u16-cmp.
28568         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
28569         unistr/u32-cmp.
28570
28571         New module 'unistr/u32-cmp2'.
28572         * lib/unistr/u32-cmp2.c: New file.
28573         * modules/unistr/u32-cmp2: New file.
28574
28575         New module 'unistr/u16-cmp2'.
28576         * lib/unistr/u16-cmp2.c: New file.
28577         * modules/unistr/u16-cmp2: New file.
28578
28579         New module 'unistr/u8-cmp2'.
28580         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
28581         * lib/unistr/u8-cmp2.c: New file.
28582         * lib/unistr/u-cmp2.h: New file.
28583         * modules/unistr/u8-cmp2: New file.
28584
28585 2009-04-05  Bruno Haible  <bruno@clisp.org>
28586
28587         * lib/unictype.h (uc_property_is_valid): New macro.
28588         * tests/unictype/test-pr_byname.c (main): Use it.
28589
28590         * lib/unistr.h: Doc fixes.
28591         * lib/uniconv.h: Doc fixes.
28592         * lib/unictype.h: Doc fixes.
28593
28594 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28595
28596         Port coreutils 7.2 to Solaris 8.
28597
28598         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
28599         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
28600         for Solaris 8.  This is a bit of a hack, as it means it's the
28601         caller's responsibility to add -lnsl if needed, but most likely it
28602         won't be needed since only getaddrinfo uses this and getaddrinfo
28603         isn't needed on Solaris 8.
28604
28605         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
28606         problem to Solaris 8 encountered with coreutils 7.2, which
28607         resulted in a message "fnmatch.c:292: warning: passing argument 4
28608         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
28609         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
28610
28611 2009-04-03  Simon Josefsson  <simon@josefsson.org>
28612
28613         * m4/ld-version-script.m4: Add FIXME comment.
28614
28615 2009-04-02  Simon Josefsson  <simon@josefsson.org>
28616
28617         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
28618         SOVERSION variable.
28619
28620 2009-04-02  Bruno Haible  <bruno@clisp.org>
28621
28622         * Makefile (info, html, dvi, pdf): Combine the rules.
28623         Suggested by Jim Meyering.
28624
28625 2009-04-01  Bruno Haible  <bruno@clisp.org>
28626
28627         * Makefile (info, html, dvi, pdf): New targets.
28628         Reported by Reuben Thomas <rrt@sc3d.org>.
28629
28630 2009-04-01  Bruno Haible  <bruno@clisp.org>
28631
28632         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
28633         can be put into PATH.
28634         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
28635
28636 2009-04-01  Bruno Haible  <bruno@clisp.org>
28637
28638         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
28639
28640 2009-04-01  Bruno Haible  <bruno@clisp.org>
28641
28642         Rename module 'visibility'.
28643         * modules/lib-symbol-visibility: Renamed from modules/visibility.
28644         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
28645         * doc/gnulib.texi: Update.
28646         * MODULES.html.sh (Misc): Update.
28647         * NEWS: Mention the change.
28648
28649 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28650
28651         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
28652         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
28653         Eric Blake <ebb9@byu.net> for review.
28654         * MODULES.html.sh: Add lib-msvc-compat.
28655         * doc/gnulib.texi: Link to new section.
28656         * m4/ld-output-def.m4: New file.
28657         * doc/ld-output-def.texi: New file.
28658
28659 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28660
28661         Rename ld-version-script to lib-symbol-versions.  Suggested by
28662         Bruno Haible <bruno@clisp.org>.
28663         * modules/ld-version-script: Renamed to lib-symbol-versions.
28664         * doc/ld-version-script.texi: Fix module name.
28665         * MODULES.html.sh: Add lib-symbol-versions.
28666
28667 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28668
28669         * modules/u64-tests: New file.
28670         * tests/test-u64.c: New file.
28671
28672 2009-03-04  Simon Josefsson  <simon@josefsson.org>
28673
28674         * MODULES.html.sh: Mention u64.
28675         * modules/u64: New module.
28676         * modules/crypto/sha512: Depend on u64 module instead of providing
28677         u64.h.
28678
28679 2009-03-27  Eric Blake  <ebb9@byu.net>
28680
28681         test-strerror: make debugging EAI_SYSTEM easier
28682         * modules/getaddrinfo-tests (Depends-on): Add strerror.
28683         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
28684         failure was EAI_SYSTEM.
28685
28686 2009-03-25  Bruno Haible  <bruno@clisp.org>
28687
28688         Fix a problem with --enable-relocatable on Solaris 7.
28689         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
28690         since 2008-02-24.
28691
28692 2009-03-25  Eric Blake  <ebb9@byu.net>
28693
28694         test-sockets: avoid gcc warning
28695         * tests/test-sockets.c (main): Silence compiler warning.
28696
28697 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28698
28699         New modules nproc, pthread, contributed by Glen Lenker.
28700
28701         * MODULES.html.sh: Add pthread, nproc.
28702         * lib/nproc.c: New file.
28703         * lib/nproc.h: New file.
28704         * lib/pthread.in.h: New file.
28705         * m4/pthread.m4: New file.
28706         * modules/nproc: New file.
28707         * modules/pthread: New file.
28708
28709 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28710
28711         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
28712         New variable.
28713
28714 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
28715
28716         filevercmp: handle simple~ and numbered.~3~ backup suffixes
28717         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
28718         * tests/test-filevercmp.c: Add tests for backup suffixes.
28719
28720 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28721
28722         * modules/stdlib (Depends-on): Add stdint, needed when defining
28723         struct random_data on, for example, HP-UX 10.20.  Reported by
28724         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28725
28726 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28727
28728         * lib/readline.c (readline): Call fflush on stdout after printing
28729         prompt.
28730
28731 2009-03-20  Bruno Haible  <bruno@clisp.org>
28732
28733         Remove dependency from 'close' module to -lws2_32 on native Windows.
28734         * lib/close-hook.h: New file.
28735         * lib/close-hook.c: New file.
28736         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
28737         w32sock.h.
28738         (_gl_close_fd_maybe_socket): Remove function.
28739         (rpl_close): Invoke execute_all_close_hooks instead of
28740         _gl_close_fd_maybe_socket.
28741         * lib/sockets.c: Include close-hook.h, w32sock.h.
28742         (close_fd_maybe_socket): New function, essentially from lib/close.c.
28743         (close_sockets_hook): New variable.
28744         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
28745         (gl_sockets_cleanup): Unregister it.
28746         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
28747         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
28748         * modules/close-hook: New file.
28749         * modules/close (Files): Remove lib/w32sock.h.
28750         (Depends-on): Add close-hook.
28751         (Link): Remove section.
28752         * modules/sockets (Files): Add lib/w32sock.h.
28753         (Depends-on): Add close-hook.
28754         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
28755         invocation.
28756         * NEWS: Mention that LIB_CLOSE is gone.
28757
28758 2009-03-23  Eric Blake  <ebb9@byu.net>
28759
28760         signal-tests: test previous patch
28761         * tests/test-signal.c: New file.
28762         * modules/signal-tests: Likewise.
28763
28764         signal.h: always support 'volatile sig_atomic_t'
28765         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
28766         (gl_SIGNAL_H_DEFAULTS): Add a default.
28767         * modules/signal (Makefile.am): Substitute if needed.
28768         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
28769         users can blindly add volatile.
28770         * doc/posix-headers/signal.texi (signal.h): Document it.
28771         Reported by Matthew Woehlke.
28772
28773 2009-03-23  Jim Meyering  <meyering@redhat.com>
28774
28775         pathmax: PATH_MAX: use pathconf only when available
28776         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
28777         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
28778         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
28779         This avoids a link failure in a PSP cross-compilation environment
28780         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
28781
28782         * lib/vasnprintf.c (divide): Fix typo in comment.
28783
28784 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28785
28786         * gnulib-tool (func_filter_filelist): Fix comment.
28787
28788 2009-03-20  Bruno Haible  <bruno@clisp.org>
28789
28790         Make sockets.h self-contained.
28791         * lib/sockets.c: Include sockets.h first.
28792         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
28793
28794 2009-03-19  Eric Blake  <ebb9@byu.net>
28795
28796         doc: mention more functions added in cygwin 1.7.0
28797         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28798         addition.
28799         * doc/posix-functions/log2f.texi: Likewise.
28800
28801 2009-03-19  Jim Meyering  <meyering@redhat.com>
28802
28803         fsusage: avoid syntax error due to statement-before-declaration
28804         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28805         after all declarations.  Reported by Matthew Woehlke in
28806         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28807
28808 2009-03-18  Eric Blake  <ebb9@byu.net>
28809
28810         build-aux/compile: sync from automake
28811         * build-aux/compile: New file, from automake.
28812         * config/srclist.txt: Mention build-aux/compile.
28813
28814 2009-03-17  Bruno Haible  <bruno@clisp.org>
28815
28816         * lib/git-merge-changelog.c: Fix typo in comment.
28817         Reported by Reuben Thomas <rrt@sc3d.org>.
28818
28819 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28820
28821         * m4/regex.m4: update and improve help for
28822         --without-included-regex.
28823
28824 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28825
28826         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28827         failure on missing include files.
28828
28829 2009-03-17  Eric Blake  <ebb9@byu.net>
28830
28831         doc: mention more functions added in cygwin 1.7.0
28832         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28833         addition.
28834         * doc/posix-functions/fwscanf.texi: Likewise.
28835         * doc/posix-functions/swprintf.texi: Likewise.
28836         * doc/posix-functions/swscanf.texi: Likewise.
28837         * doc/posix-functions/vfwprintf.texi: Likewise.
28838         * doc/posix-functions/vfwscanf.texi: Likewise.
28839         * doc/posix-functions/vswprintf.texi: Likewise.
28840         * doc/posix-functions/vswscanf.texi: Likewise.
28841         * doc/posix-functions/vwprintf.texi: Likewise.
28842         * doc/posix-functions/vwscanf.texi: Likewise.
28843         * doc/posix-functions/wcscasecmp.texi: Likewise.
28844         * doc/posix-functions/wcsdup.texi: Likewise.
28845         * doc/posix-functions/wcsftime.texi: Likewise.
28846         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28847         * doc/posix-functions/wprintf.texi: Likewise.
28848         * doc/posix-functions/wscanf.texi: Likewise.
28849         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28850
28851 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28852
28853         maint.mk: really add $(AM_MAKEFLAGS)
28854         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28855         was inadvertently omitted in the last commit.
28856         Spotted by Bruno Haible.
28857
28858         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28859         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28860         $(AM_MAKEFLAGS)' rather than plain `make'.
28861
28862         gnulib-tool: execute $MAKE not make
28863         * gnulib-tool: Default $MAKE to 'make'.
28864         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28865         than make.  Initialize $MAKE in the do-autobuild script.
28866
28867         gnulib-tool: use $MAKE not make in generated files
28868         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28869         make, in generated files.  Initialize $MAKE in the do-autobuild
28870         script.
28871
28872         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28873
28874         GNUmakefile: disable parallelism only for multiple, recursive targets
28875         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28876         additions in the Makefile.
28877         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28878         by Automake.
28879         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28880         are listed on the command line and at least one of them is
28881         listed in $(ALL_RECURSIVE_TARGETS).
28882
28883 2009-03-14  Bruno Haible  <bruno@clisp.org>
28884
28885         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28886         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28887         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28888         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28889         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28890         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28891         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28892         unistr/u8-uctomb.
28893         * modules/unistr/u8-strchr (Depends-on): Likewise.
28894         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28895         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28896         unistr/u16-uctomb.
28897         * modules/unistr/u16-strchr (Depends-on): Likewise.
28898         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28899
28900 2009-03-12  Bruno Haible  <bruno@clisp.org>
28901
28902         Work around select() bug on Interix 3.5.
28903         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28904         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28905         * m4/select.m4: New file.
28906         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28907         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28908         * modules/select (Files): Add m4/select.m4.
28909         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28910         * modules/nanosleep (Depends-on): Add select.
28911         * modules/poll (Depends-on): Likewise.
28912         * doc/posix-functions/select.texi: Mention the Interix bug.
28913         Reported by Markus Duft <mduft@gentoo.org>.
28914
28915         * lib/select.c: Renamed from lib/winsock-select.c.
28916         * modules/select (Files): Add lib/select.c, remove
28917         lib/winsock-select.c.
28918         (configure.ac): Update.
28919
28920 2009-03-12  Jim Meyering  <meyering@redhat.com>
28921
28922         avoid gcc warnings about unused macro definitions
28923         * lib/readtokens.c (STREQ): Remove unused definition.
28924         * lib/xmalloc.c (SIZE_MAX): Likewise.
28925         * lib/openat-die.c (N_): Likewise.
28926         * lib/mountlist.c (SIZE_MAX): Remove definition.
28927         Instead, include <stdint.h>.
28928         * lib/readutmp.c: Likewise.
28929         * modules/readutmp (Depends-on): Add stdint.
28930         * modules/mountlist (Depends-on): Add stdint.
28931         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28932
28933 2009-03-10  Bruno Haible  <bruno@clisp.org>
28934
28935         Tests for module 'mbmemcasecoll'.
28936         * modules/mbmemcasecoll-tests: New file.
28937         * tests/test-mbmemcasecoll1.sh: New file.
28938         * tests/test-mbmemcasecoll2.sh: New file.
28939         * tests/test-mbmemcasecoll3.sh: New file.
28940         * tests/test-mbmemcasecoll.c: New file.
28941
28942         New module 'mbmemcasecoll'.
28943         * lib/mbmemcasecoll.h: New file.
28944         * lib/mbmemcasecoll.c: New file.
28945         * modules/mbmemcasecoll: New file.
28946
28947         * tests/test-mbmemcasecmp.h: New file, extracted from
28948         tests/test-mbmemcasecmp.c.
28949         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28950         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28951         (main): Update.
28952         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28953
28954 2009-03-09  Bruno Haible  <bruno@clisp.org>
28955
28956         Tests for module 'mbmemcasecmp'.
28957         * modules/mbmemcasecmp-tests: New file.
28958         * tests/test-mbmemcasecmp1.sh: New file.
28959         * tests/test-mbmemcasecmp2.sh: New file.
28960         * tests/test-mbmemcasecmp3.sh: New file.
28961         * tests/test-mbmemcasecmp.c: New file.
28962
28963         New module 'mbmemcasecmp'.
28964         * lib/mbmemcasecmp.h: New file.
28965         * lib/mbmemcasecmp.c: New file.
28966         * modules/mbmemcasecmp: New file.
28967
28968 2009-03-09  Bruno Haible  <bruno@clisp.org>
28969
28970         Tests for module 'unicase/ulc-casecoll'.
28971         * modules/unicase/ulc-casecoll-tests: New file.
28972         * tests/unicase/test-ulc-casecoll1.sh: New file.
28973         * tests/unicase/test-ulc-casecoll2.sh: New file.
28974         * tests/unicase/test-ulc-casecoll.c: New file.
28975
28976         New module 'unicase/ulc-casecoll'.
28977         * lib/unicase.h (ulc_casecoll): New declaration.
28978         * lib/unicase/ulc-casecoll.c: New file.
28979         * modules/unicase/ulc-casecoll: New file.
28980
28981         New module 'unicase/ulc-casexfrm'.
28982         * lib/unicase.h (ulc_casexfrm): New declaration.
28983         * lib/unicase/ulc-casexfrm.c: New file.
28984         * modules/unicase/ulc-casexfrm: New file.
28985
28986 2009-03-09  Bruno Haible  <bruno@clisp.org>
28987
28988         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28989         invocations.
28990
28991         * m4/mbscasecmp.m4: Remove file.
28992         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28993         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28994
28995         * m4/mbscasestr.m4: Remove file.
28996         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28997         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28998
28999         * m4/mbschr.m4: Remove file.
29000         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29001         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29002
29003         * m4/mbscspn.m4: Remove file.
29004         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29005         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29006
29007         * m4/mbslen.m4: Remove file.
29008         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29009         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29010
29011         * m4/mbsncasecmp.m4: Remove file.
29012         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29013         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29014
29015         * m4/mbsnlen.m4: Remove file.
29016         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29017         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29018
29019         * m4/mbspbrk.m4: Remove file.
29020         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29021         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29022
29023         * m4/mbspcasecmp.m4: Remove file.
29024         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29025         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29026
29027         * m4/mbsrchr.m4: Remove file.
29028         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29029         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29030
29031         * m4/mbssep.m4: Remove file.
29032         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29033         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29034
29035         * m4/mbsspn.m4: Remove file.
29036         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29037         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29038
29039         * m4/mbsstr.m4: Remove file.
29040         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29041         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29042
29043         * m4/mbstok_r.m4: Remove file.
29044         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29045         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29046
29047         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29048
29049         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29050         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29051
29052         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29053
29054 2009-03-08  Bruno Haible  <bruno@clisp.org>
29055
29056         Tests for module 'unicase/ulc-casecmp'.
29057         * modules/unicase/ulc-casecmp-tests: New file.
29058         * tests/unicase/test-ulc-casecmp1.sh: New file.
29059         * tests/unicase/test-ulc-casecmp2.sh: New file.
29060         * tests/unicase/test-ulc-casecmp.c: New file.
29061
29062         New module 'unicase/ulc-casecmp'.
29063         * lib/unicase.h (ulc_casecmp): New declaration.
29064         * lib/unicase/ulc-casecmp.c: New file.
29065         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29066         'const SRC_UNIT *'.
29067         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29068         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29069         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29070         * modules/unicase/ulc-casecmp: New file.
29071
29072         Tests for module 'unicase/u32-is-cased'.
29073         * modules/unicase/u32-is-cased-tests: New file.
29074         * tests/unicase/test-u32-is-cased.c: New file.
29075
29076         Tests for module 'unicase/u16-is-cased'.
29077         * modules/unicase/u16-is-cased-tests: New file.
29078         * tests/unicase/test-u16-is-cased.c: New file.
29079
29080         Tests for module 'unicase/u8-is-cased'.
29081         * modules/unicase/u8-is-cased-tests: New file.
29082         * tests/unicase/test-u8-is-cased.c: New file.
29083         * tests/unicase/test-is-cased.h: New file.
29084
29085         New module 'unicase/u32-is-cased'.
29086         * lib/unicase/u32-is-cased.c: New file.
29087         * modules/unicase/u32-is-cased: New file.
29088
29089         New module 'unicase/u16-is-cased'.
29090         * lib/unicase/u16-is-cased.c: New file.
29091         * modules/unicase/u16-is-cased: New file.
29092
29093         New module 'unicase/u8-is-cased'.
29094         * lib/unicase/u8-is-cased.c: New file.
29095         * lib/unicase/u-is-cased.h: New file.
29096         * modules/unicase/u8-is-cased: New file.
29097
29098         Tests for module 'unicase/u32-is-casefolded'.
29099         * modules/unicase/u32-is-casefolded-tests: New file.
29100         * tests/unicase/test-u32-is-casefolded.c: New file.
29101
29102         Tests for module 'unicase/u16-is-casefolded'.
29103         * modules/unicase/u16-is-casefolded-tests: New file.
29104         * tests/unicase/test-u16-is-casefolded.c: New file.
29105
29106         Tests for module 'unicase/u8-is-casefolded'.
29107         * modules/unicase/u8-is-casefolded-tests: New file.
29108         * tests/unicase/test-u8-is-casefolded.c: New file.
29109         * tests/unicase/test-is-casefolded.h: New file.
29110
29111         New module 'unicase/u32-is-casefolded'.
29112         * lib/unicase/u32-is-casefolded.c: New file.
29113         * modules/unicase/u32-is-casefolded: New file.
29114
29115         New module 'unicase/u16-is-casefolded'.
29116         * lib/unicase/u16-is-casefolded.c: New file.
29117         * modules/unicase/u16-is-casefolded: New file.
29118
29119         New module 'unicase/u8-is-casefolded'.
29120         * lib/unicase/u8-is-casefolded.c: New file.
29121         * modules/unicase/u8-is-casefolded: New file.
29122
29123         Tests for module 'unicase/u32-is-titlecase'.
29124         * modules/unicase/u32-is-titlecase-tests: New file.
29125         * tests/unicase/test-u32-is-titlecase.c: New file.
29126
29127         Tests for module 'unicase/u16-is-titlecase'.
29128         * modules/unicase/u16-is-titlecase-tests: New file.
29129         * tests/unicase/test-u16-is-titlecase.c: New file.
29130
29131         Tests for module 'unicase/u8-is-titlecase'.
29132         * modules/unicase/u8-is-titlecase-tests: New file.
29133         * tests/unicase/test-u8-is-titlecase.c: New file.
29134         * tests/unicase/test-is-titlecase.h: New file.
29135
29136         New module 'unicase/u32-is-titlecase'.
29137         * lib/unicase/u32-is-titlecase.c: New file.
29138         * modules/unicase/u32-is-titlecase: New file.
29139
29140         New module 'unicase/u16-is-titlecase'.
29141         * lib/unicase/u16-is-titlecase.c: New file.
29142         * modules/unicase/u16-is-titlecase: New file.
29143
29144         New module 'unicase/u8-is-titlecase'.
29145         * lib/unicase/u8-is-titlecase.c: New file.
29146         * modules/unicase/u8-is-titlecase: New file.
29147
29148         Tests for module 'unicase/u32-is-lowercase'.
29149         * modules/unicase/u32-is-lowercase-tests: New file.
29150         * tests/unicase/test-u32-is-lowercase.c: New file.
29151
29152         Tests for module 'unicase/u16-is-lowercase'.
29153         * modules/unicase/u16-is-lowercase-tests: New file.
29154         * tests/unicase/test-u16-is-lowercase.c: New file.
29155
29156         Tests for module 'unicase/u8-is-lowercase'.
29157         * modules/unicase/u8-is-lowercase-tests: New file.
29158         * tests/unicase/test-u8-is-lowercase.c: New file.
29159         * tests/unicase/test-is-lowercase.h: New file.
29160
29161         New module 'unicase/u32-is-lowercase'.
29162         * lib/unicase/u32-is-lowercase.c: New file.
29163         * modules/unicase/u32-is-lowercase: New file.
29164
29165         New module 'unicase/u16-is-lowercase'.
29166         * lib/unicase/u16-is-lowercase.c: New file.
29167         * modules/unicase/u16-is-lowercase: New file.
29168
29169         New module 'unicase/u8-is-lowercase'.
29170         * lib/unicase/u8-is-lowercase.c: New file.
29171         * modules/unicase/u8-is-lowercase: New file.
29172
29173         Tests for module 'unicase/u32-is-uppercase'.
29174         * modules/unicase/u32-is-uppercase-tests: New file.
29175         * tests/unicase/test-u32-is-uppercase.c: New file.
29176
29177         Tests for module 'unicase/u16-is-uppercase'.
29178         * modules/unicase/u16-is-uppercase-tests: New file.
29179         * tests/unicase/test-u16-is-uppercase.c: New file.
29180
29181         Tests for module 'unicase/u8-is-uppercase'.
29182         * modules/unicase/u8-is-uppercase-tests: New file.
29183         * tests/unicase/test-u8-is-uppercase.c: New file.
29184         * tests/unicase/test-is-uppercase.h: New file.
29185
29186         New module 'unicase/u32-is-uppercase'.
29187         * lib/unicase/u32-is-uppercase.c: New file.
29188         * modules/unicase/u32-is-uppercase: New file.
29189
29190         New module 'unicase/u16-is-uppercase'.
29191         * lib/unicase/u16-is-uppercase.c: New file.
29192         * modules/unicase/u16-is-uppercase: New file.
29193
29194         New module 'unicase/u8-is-uppercase'.
29195         * lib/unicase/u8-is-uppercase.c: New file.
29196         * modules/unicase/u8-is-uppercase: New file.
29197
29198         New module 'unicase/u32-is-invariant'.
29199         * lib/unicase/u32-is-invariant.c: New file.
29200         * modules/unicase/u32-is-invariant: New file.
29201
29202         New module 'unicase/u16-is-invariant'.
29203         * lib/unicase/u16-is-invariant.c: New file.
29204         * modules/unicase/u16-is-invariant: New file.
29205
29206         New module 'unicase/u8-is-invariant'.
29207         * lib/unicase/u8-is-invariant.c: New file.
29208         * lib/unicase/invariant.h: New file.
29209         * lib/unicase/u-is-invariant.h: New file.
29210         * modules/unicase/u8-is-invariant: New file.
29211
29212         Tests for module 'unicase/u32-casecoll'.
29213         * modules/unicase/u32-casecoll-tests: New file.
29214         * tests/unicase/test-u32-casecoll.c: New file.
29215
29216         Tests for module 'unicase/u16-casecoll'.
29217         * modules/unicase/u16-casecoll-tests: New file.
29218         * tests/unicase/test-u16-casecoll.c: New file.
29219
29220         Tests for module 'unicase/u8-casecoll'.
29221         * modules/unicase/u8-casecoll-tests: New file.
29222         * tests/unicase/test-u8-casecoll.c: New file.
29223
29224         New module 'unicase/u32-casecoll'.
29225         * lib/unicase/u32-casecoll.c: New file.
29226         * modules/unicase/u32-casecoll: New file.
29227
29228         New module 'unicase/u16-casecoll'.
29229         * lib/unicase/u16-casecoll.c: New file.
29230         * modules/unicase/u16-casecoll: New file.
29231
29232         New module 'unicase/u8-casecoll'.
29233         * lib/unicase/u8-casecoll.c: New file.
29234         * lib/unicase/u-casecoll.h: New file.
29235         * modules/unicase/u8-casecoll: New file.
29236
29237         New module 'unicase/u32-casexfrm'.
29238         * lib/unicase/u32-casexfrm.c: New file.
29239         * modules/unicase/u32-casexfrm: New file.
29240
29241         New module 'unicase/u16-casexfrm'.
29242         * lib/unicase/u16-casexfrm.c: New file.
29243         * modules/unicase/u16-casexfrm: New file.
29244
29245         New module 'unicase/u8-casexfrm'.
29246         * lib/unicase/u8-casexfrm.c: New file.
29247         * lib/unicase/u-casexfrm.h: New file.
29248         * modules/unicase/u8-casexfrm: New file.
29249
29250         Tests for module 'unicase/u32-casecmp'.
29251         * modules/unicase/u32-casecmp-tests: New file.
29252         * tests/unicase/test-u32-casecmp.c: New file.
29253
29254         Tests for module 'unicase/u16-casecmp'.
29255         * modules/unicase/u16-casecmp-tests: New file.
29256         * tests/unicase/test-u16-casecmp.c: New file.
29257
29258         Tests for module 'unicase/u8-casecmp'.
29259         * modules/unicase/u8-casecmp-tests: New file.
29260         * tests/unicase/test-u8-casecmp.c: New file.
29261         * tests/unicase/test-casecmp.h: New file.
29262
29263         New module 'unicase/u32-casecmp'.
29264         * lib/unicase/u32-casecmp.c: New file.
29265         * modules/unicase/u32-casecmp: New file.
29266
29267         New module 'unicase/u16-casecmp'.
29268         * lib/unicase/u16-casecmp.c: New file.
29269         * modules/unicase/u16-casecmp: New file.
29270
29271         New module 'unicase/u8-casecmp'.
29272         * lib/unicase/u8-casecmp.c: New file.
29273         * lib/unicase/u-casecmp.h: New file.
29274         * modules/unicase/u8-casecmp: New file.
29275
29276         Tests for module 'unicase/u32-casefold'.
29277         * modules/unicase/u32-casefold-tests: New file.
29278         * tests/unicase/test-u32-casefold.c: New file.
29279
29280         Tests for module 'unicase/u16-casefold'.
29281         * modules/unicase/u16-casefold-tests: New file.
29282         * tests/unicase/test-u16-casefold.c: New file.
29283
29284         Tests for module 'unicase/u8-casefold'.
29285         * modules/unicase/u8-casefold-tests: New file.
29286         * tests/unicase/test-u8-casefold.c: New file.
29287
29288         New module 'unicase/u32-casefold'.
29289         * lib/unicase/u32-casefold.c: New file.
29290         * modules/unicase/u32-casefold: New file.
29291
29292         New module 'unicase/u16-casefold'.
29293         * lib/unicase/u16-casefold.c: New file.
29294         * modules/unicase/u16-casefold: New file.
29295
29296         New module 'unicase/u8-casefold'.
29297         * lib/unicase/u8-casefold.c: New file.
29298         * lib/unicase/u-casefold.h: New file.
29299         * modules/unicase/u8-casefold: New file.
29300
29301         New module 'unicase/tocasefold'.
29302         * lib/unicase/casefold.h: New file.
29303         * lib/unicase/tocasefold.c: New file.
29304         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29305         * modules/unicase/tocasefold: New file.
29306
29307         Tests for module 'unicase/u32-totitle'.
29308         * modules/unicase/u32-totitle-tests: New file.
29309         * tests/unicase/test-u32-totitle.c: New file.
29310
29311         Tests for module 'unicase/u16-totitle'.
29312         * modules/unicase/u16-totitle-tests: New file.
29313         * tests/unicase/test-u16-totitle.c: New file.
29314
29315         Tests for module 'unicase/u8-totitle'.
29316         * modules/unicase/u8-totitle-tests: New file.
29317         * tests/unicase/test-u8-totitle.c: New file.
29318
29319         New module 'unicase/u32-totitle'.
29320         * lib/unicase/u32-totitle.c: New file.
29321         * modules/unicase/u32-totitle: New file.
29322
29323         New module 'unicase/u16-totitle'.
29324         * lib/unicase/u16-totitle.c: New file.
29325         * modules/unicase/u16-totitle: New file.
29326
29327         New module 'unicase/u8-totitle'.
29328         * lib/unicase/u8-totitle.c: New file.
29329         * lib/unicase/u-totitle.h: New file.
29330         * modules/unicase/u8-totitle: New file.
29331
29332         Tests for module 'unicase/u32-tolower'.
29333         * modules/unicase/u32-tolower-tests: New file.
29334         * tests/unicase/test-u32-tolower.c: New file.
29335
29336         Tests for module 'unicase/u16-tolower'.
29337         * modules/unicase/u16-tolower-tests: New file.
29338         * tests/unicase/test-u16-tolower.c: New file.
29339
29340         Tests for module 'unicase/u8-tolower'.
29341         * modules/unicase/u8-tolower-tests: New file.
29342         * tests/unicase/test-u8-tolower.c: New file.
29343
29344         New module 'unicase/u32-tolower'.
29345         * lib/unicase/u32-tolower.c: New file.
29346         * modules/unicase/u32-tolower: New file.
29347
29348         New module 'unicase/u16-tolower'.
29349         * lib/unicase/u16-tolower.c: New file.
29350         * modules/unicase/u16-tolower: New file.
29351
29352         New module 'unicase/u8-tolower'.
29353         * lib/unicase/u8-tolower.c: New file.
29354         * modules/unicase/u8-tolower: New file.
29355
29356         Tests for module 'unicase/u32-toupper'.
29357         * modules/unicase/u32-toupper-tests: New file.
29358         * tests/unicase/test-u32-toupper.c: New file.
29359
29360         Tests for module 'unicase/u16-toupper'.
29361         * modules/unicase/u16-toupper-tests: New file.
29362         * tests/unicase/test-u16-toupper.c: New file.
29363
29364         Tests for module 'unicase/u8-toupper'.
29365         * modules/unicase/u8-toupper-tests: New file.
29366         * tests/unicase/test-u8-toupper.c: New file.
29367
29368         New module 'unicase/u32-toupper'.
29369         * lib/unicase/u32-toupper.c: New file.
29370         * modules/unicase/u32-toupper: New file.
29371
29372         New module 'unicase/u16-toupper'.
29373         * lib/unicase/u16-toupper.c: New file.
29374         * modules/unicase/u16-toupper: New file.
29375
29376         New module 'unicase/u8-toupper'.
29377         * lib/unicase/u8-toupper.c: New file.
29378         * modules/unicase/u8-toupper: New file.
29379
29380         New module 'unicase/u32-casemap'.
29381         * lib/unicase/u32-casemap.c: New file.
29382         * modules/unicase/u32-casemap: New file.
29383
29384         New module 'unicase/u16-casemap'.
29385         * lib/unicase/u16-casemap.c: New file.
29386         * modules/unicase/u16-casemap: New file.
29387
29388         New module 'unicase/u8-casemap'.
29389         * lib/unicase/unicasemap.h: New file.
29390         * lib/unicase/u8-casemap.c: New file.
29391         * lib/unicase/u-casemap.h: New file.
29392         * modules/unicase/u8-casemap: New file.
29393
29394         New module 'unicase/special-casing'.
29395         * lib/unicase/special-casing.h: New file.
29396         * lib/unicase/special-casing.c: New file.
29397         * lib/unicase/special-casing-table.gperf: New file, generated by
29398         gen-uni-tables.c.
29399         * modules/unicase/special-casing: New file.
29400
29401         Tests for module 'unicase/locale-language'.
29402         * modules/unicase/locale-language-tests: New file.
29403         * tests/unicase/test-locale-language.sh: New file.
29404         * tests/unicase/test-locale-language.c: New file.
29405
29406         New module 'unicase/locale-language'.
29407         * lib/unicase/locale-language.c: New file.
29408         * lib/unicase/locale-languages.gperf: New file.
29409         * modules/unicase/locale-language: New file.
29410
29411         Generate more tables for case conversion and case folding.
29412         * lib/gen-uni-tables.c (SCC_*): New enum items.
29413         (struct special_casing_rule): New type.
29414         (casing_rules, num_casing_rules, allocated_casing_rules): New
29415         variables.
29416         (add_casing_rule, fill_casing_rules): New functions.
29417         (struct casefold_rule): New type.
29418         (casefolding_rules, num_casefolding_rules,
29419         allocated_casefolding_rules): New variables.
29420         (fill_casefolding_rules): New function.
29421         (unicode_casefold): New variable.
29422         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29423         sort_casing_rules, output_casing_rules): New functions.
29424         (main): Accept to more arguments: SpecialCasing.txt and
29425         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29426         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29427         Output mapping for casefolding.
29428
29429         * lib/unicase.h: Include stdbool.h, uninorm.h.
29430         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29431         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29432         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29433         arguments.
29434         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29435         resultp arguments.
29436         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29437         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29438         resultp arguments.
29439         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29440         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29441         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29442         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29443         declarations.
29444         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29445
29446 2009-03-08  Bruno Haible  <bruno@clisp.org>
29447
29448         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29449         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29450         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29451         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29452
29453 2009-03-07  Bruno Haible  <bruno@clisp.org>
29454
29455         Adjust u*_normcmp, u*_normcoll API.
29456         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29457         u16_normcoll, u32_normcoll): Change failure conventions.
29458         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29459         errno and return -1.
29460         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29461
29462 2009-03-07  Bruno Haible  <bruno@clisp.org>
29463
29464         Tests for module 'uninorm/u32-normcoll'.
29465         * modules/uninorm/u32-normcoll-tests: New file.
29466         * tests/uninorm/test-u32-normcoll.c: New file.
29467
29468         Tests for module 'uninorm/u16-normcoll'.
29469         * modules/uninorm/u16-normcoll-tests: New file.
29470         * tests/uninorm/test-u16-normcoll.c: New file.
29471
29472         Tests for module 'uninorm/u8-normcoll'.
29473         * modules/uninorm/u8-normcoll-tests: New file.
29474         * tests/uninorm/test-u8-normcoll.c: New file.
29475
29476 2009-03-07  Bruno Haible  <bruno@clisp.org>
29477
29478         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
29479         tests/uninorm/test-u32-normcmp.c.
29480         * tests/uninorm/test-u32-normcmp.c: Include it.
29481         (test_nonascii): New function, extracted from main. Add some more
29482         tests.
29483         (main): Invoke test_ascii and test_nonascii.
29484         * modules/uninorm/u32-normcmp-tests (Files): Add
29485         tests/uninorm/test-u32-normcmp.h.
29486         (Depends-on): Remove uninorm/u32-normcmp.
29487
29488         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
29489         tests/uninorm/test-u16-normcmp.c.
29490         * tests/uninorm/test-u16-normcmp.c: Include it.
29491         (test_nonascii): New function, extracted from main. Add some more
29492         tests.
29493         (main): Invoke test_ascii and test_nonascii.
29494         * modules/uninorm/u16-normcmp-tests (Files): Add
29495         tests/uninorm/test-u16-normcmp.h.
29496         (Depends-on): Remove uninorm/u16-normcmp.
29497
29498         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
29499         tests/uninorm/test-u8-normcmp.c.
29500         * tests/uninorm/test-u8-normcmp.c: Include it.
29501         (test_nonascii): New function, extracted from main. Add some more
29502         tests.
29503         (main): Invoke test_ascii and test_nonascii.
29504         * modules/uninorm/u8-normcmp-tests (Files): Add
29505         tests/uninorm/test-u8-normcmp.h.
29506         (Depends-on): Remove uninorm/u8-normcmp.
29507
29508 2009-03-07  Bruno Haible  <bruno@clisp.org>
29509
29510         New module 'uninorm/u32-normcoll'.
29511         * lib/uninorm/u32-normcoll.c: New file.
29512         * modules/uninorm/u32-normcoll: New file.
29513
29514         New module 'uninorm/u16-normcoll'.
29515         * lib/uninorm/u16-normcoll.c: New file.
29516         * modules/uninorm/u16-normcoll: New file.
29517
29518         New module 'uninorm/u8-normcoll'.
29519         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
29520         declarations.
29521         * lib/uninorm/u8-normcoll.c: New file.
29522         * lib/uninorm/u-normcoll.h: New file.
29523         * modules/uninorm/u8-normcoll: New file.
29524
29525         New module 'uninorm/u32-normxfrm'.
29526         * lib/uninorm/u32-normxfrm.c: New file.
29527         * modules/uninorm/u32-normxfrm: New file.
29528
29529         New module 'uninorm/u16-normxfrm'.
29530         * lib/uninorm/u16-normxfrm.c: New file.
29531         * modules/uninorm/u16-normxfrm: New file.
29532
29533         New module 'uninorm/u8-normxfrm'.
29534         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
29535         declarations.
29536         * lib/uninorm/u8-normxfrm.c: New file.
29537         * lib/uninorm/u-normxfrm.h: New file.
29538         * modules/uninorm/u8-normxfrm: New file.
29539
29540 2009-03-07  Bruno Haible  <bruno@clisp.org>
29541
29542         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
29543         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
29544         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
29545
29546 2009-03-07  Bruno Haible  <bruno@clisp.org>
29547
29548         New module 'memxfrm'.
29549         * lib/memxfrm.h: New file.
29550         * lib/memxfrm.c: New file.
29551         * modules/memxfrm: New file.
29552
29553 2009-03-07  Bruno Haible  <bruno@clisp.org>
29554
29555         New module 'memcmp2'.
29556         * lib/memcmp2.h: New file.
29557         * lib/memcmp2.c: New file.
29558         * modules/memcmp2: New file.
29559
29560 2009-03-07  Bruno Haible  <bruno@clisp.org>
29561
29562         Tests for module 'uninorm/decomposing-form'.
29563         * modules/uninorm/decomposing-form-tests: New file.
29564         * tests/uninorm/test-decomposing-form.c: New file.
29565
29566         New module 'uninorm/decomposing-form'.
29567         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
29568         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
29569         Add 'decomposing_variant' field.
29570         * lib/uninorm/decomposing-form.c: New file.
29571         * lib/uninorm/nfc.c (uninorm_nfc): Update.
29572         * lib/uninorm/nfd.c (uninorm_nfd): Update.
29573         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
29574         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
29575         * modules/uninorm/decomposing-form: New file.
29576         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
29577         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
29578
29579 2009-03-07  Bruno Haible  <bruno@clisp.org>
29580
29581         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
29582         strings.
29583
29584 2009-03-06  Bruno Haible  <bruno@clisp.org>
29585
29586         Tests for module 'uninorm/u32-normcmp'.
29587         * tests/uninorm/test-u32-normcmp.c: New file.
29588         * modules/uninorm/u32-normcmp-tests: New file.
29589
29590         Tests for module 'uninorm/u16-normcmp'.
29591         * tests/uninorm/test-u16-normcmp.c: New file.
29592         * modules/uninorm/u16-normcmp-tests: New file.
29593
29594         Tests for module 'uninorm/u8-normcmp'.
29595         * tests/uninorm/test-u8-normcmp.c: New file.
29596         * modules/uninorm/u8-normcmp-tests: New file.
29597
29598         New module 'uninorm/u32-normcmp'.
29599         * lib/uninorm/u32-normcmp.c: New file.
29600         * modules/uninorm/u32-normcmp: New file.
29601
29602         New module 'uninorm/u16-normcmp'.
29603         * lib/uninorm/u16-normcmp.c: New file.
29604         * modules/uninorm/u16-normcmp: New file.
29605
29606         New module 'uninorm/u8-normcmp'.
29607         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
29608         declarations.
29609         * lib/uninorm/u8-normcmp.c: New file.
29610         * lib/uninorm/u-normcmp.h: New file.
29611         * modules/uninorm/u8-normcmp: New file.
29612
29613 2009-03-06  Bruno Haible  <bruno@clisp.org>
29614
29615         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
29616         Reported by Eric Blake.
29617
29618 2009-03-06  Eric Blake  <ebb9@byu.net>
29619             Bruno Haible  <bruno@clisp.org>
29620
29621         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
29622         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
29623         condition.
29624         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29625         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
29626         condition.
29627         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29628
29629 2009-03-06  Eric Blake  <ebb9@byu.net>
29630
29631         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
29632         to avoid compiler warnings.
29633         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
29634
29635 2009-03-05  Bruno Haible  <bruno@clisp.org>
29636
29637         * tests/test-ftell.c (main): Disable test beyond end of file on
29638         FreeMiNT.
29639         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29640
29641 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
29642
29643         * lib/filevercmp.c: Move hidden files up in ordering.
29644         * tests/test-filevercmp.c: Add tests for hidden files.
29645
29646 2009-03-04  Bruno Haible  <bruno@clisp.org>
29647
29648         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
29649         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
29650         AM_CFLAGS.
29651         Reported by Simon Josefsson.
29652
29653 2009-03-03  Bruno Haible  <bruno@clisp.org>
29654
29655         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
29656         Reported by Simon Josefsson.
29657
29658         * doc/ld-version-script.texi: Update node reference.
29659
29660 2009-03-03  Bruno Haible  <bruno@clisp.org>
29661
29662         * modules/visibility (License): Change to 'unlimited'.
29663         Suggested by Simon Josefsson.
29664
29665 2009-03-03  Jim Meyering  <meyering@redhat.com>
29666
29667         unlinkdir: cannot_unlink_dir may modify process state
29668         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
29669         it's neither thread-safe nor appropriate for use in a library.
29670
29671 2009-03-03  Eric Blake  <ebb9@byu.net>
29672
29673         test-closein: silence test under Darwin
29674         * tests/test-closein.sh: Ignore stderr from cat, since we don't
29675         care if it dies from EPIPE or EBADF.
29676
29677 2009-03-03  Bruno Haible  <bruno@clisp.org>
29678
29679         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
29680         earlier.
29681         * doc/visibility.texi: Fix @node and @section.
29682
29683 2009-03-03  Simon Josefsson  <simon@josefsson.org>
29684
29685         * doc/gnulib.texi: Link to sections for ld version script and
29686         visibility.
29687         * doc/visibility.texi: Add @node and @section.
29688         * modules/ld-version-script: New module.
29689         * m4/ld-version-script.m4: New file.
29690         * doc/ld-version-script.texi: New file.
29691
29692 2009-03-02  David Lutterkort  <lutter@redhat.com>
29693
29694         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
29695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29696
29697 2009-03-02  Bruno Haible  <bruno@clisp.org>
29698
29699         * doc/visibility.texi: Mention libtool's -export-symbols option.
29700
29701 2009-03-02  Jim Meyering  <meyering@redhat.com>
29702
29703         announce-gen: new option: --no-print-checksums
29704         * build-aux/announce-gen (usage): Describe it.
29705         (print_checksums): Print a newline here, not in the [*] footnote.
29706         (main): Honor it.
29707
29708 2009-03-01  Bruno Haible  <bruno@clisp.org>
29709
29710         Use socklen_t in the native Windows replacements prototypes.
29711         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
29712         instead of 'int'.
29713         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29714         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29715         * modules/getsockopt (Depends-on): Add socklen.
29716         * modules/setsockopt (Depends-on): Add socklen.
29717
29718 2009-03-01  Bruno Haible  <bruno@clisp.org>
29719
29720         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
29721         least 4.2.
29722
29723 2009-03-01  Eric Blake  <ebb9@byu.net>
29724             Bruno Haible  <bruno@clisp.org>
29725
29726         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
29727         error messages.
29728         * lib/wait-process.c (wait_subprocess): Omit error message about
29729         deadly signal sent to the child of termsigp != NULL.
29730
29731 2009-03-01  Eric Blake  <ebb9@byu.net>
29732
29733         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
29734
29735 2009-03-01  Bruno Haible  <bruno@clisp.org>
29736
29737         Avoid a gcc warning.
29738         * tests/test-sched.c (b): Make global.
29739         Reported by Eric Blake.
29740
29741 2009-01-19  Martin Lambers  <marlam@marlam.de>
29742
29743         Provide POSIX semantics for socket timeout options on W32.
29744         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
29745         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
29746         * modules/setsockopt: Depend on sys_time module for struct timeval.
29747         * modules/getsockopt: Depend on sys_time module for struct timeval.
29748
29749 2009-03-01  Simon Josefsson  <simon@josefsson.org>
29750
29751         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
29752         __USE_GNU, for consistency with netdb.in.h.
29753         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29754
29755 2009-03-01  Bruno Haible  <bruno@clisp.org>
29756
29757         More support for FreeMiNT.
29758         * lib/fseeko.c (rpl_fseeko): Complete last commit.
29759         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29760
29761 2009-03-01  Bruno Haible  <bruno@clisp.org>
29762
29763         More support for FreeMiNT.
29764         * lib/fpurge.c (fpurge): Correct last commit.
29765         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29766
29767 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29768
29769         Fix unportable awk script in vc-list-files.
29770         * build-aux/vc-list-files: In the replacement awk script, use
29771         substr with a second argument of 1, not zero.
29772         Report by Simon Josefsson.
29773
29774 2009-02-28  Bruno Haible  <bruno@clisp.org>
29775
29776         More support for FreeMiNT.
29777         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
29778         to FreeMiNT today.
29779         * lib/fwriting.c (fwriting): Likewise.
29780         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
29781
29782 2009-02-28  Bruno Haible  <bruno@clisp.org>
29783
29784         * tests/test-freadseek.c (main): Disable test beyond end of file on
29785         FreeMiNT.
29786         * tests/test-ftello.c (main): Likewise.
29787         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29788
29789 2009-02-28  Bruno Haible  <bruno@clisp.org>
29790
29791         Add tentative support for FreeMiNT.
29792         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
29793         * lib/fpurge.c (fpurge): Likewise.
29794         * lib/freadable.c (freadable): Likewise.
29795         * lib/freading.c (freading): Likewise.
29796         * lib/freadptr.c (freadptr): Likewise.
29797         * lib/freadseek.c (freadptrinc): Likewise.
29798         * lib/fseeko.c (rpl_fseeko): Likewise.
29799         * lib/fseterr.c (fseterr): Likewise.
29800         * lib/fwritable.c (fwritable): Likewise.
29801         * lib/fwriting.c (fwriting): Likewise.
29802         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29803         Hourihane.
29804         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29805
29806 2009-02-28  Bruno Haible  <bruno@clisp.org>
29807
29808         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29809         SIGCHLD.
29810         Reported by Jim Meyering.
29811
29812 2009-02-28  Bruno Haible  <bruno@clisp.org>
29813
29814         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29815         Mention the results of these tests on various platforms.
29816         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29817         order.
29818         * doc/posix-functions/printf.texi: Likewise.
29819         * doc/posix-functions/snprintf.texi: Likewise.
29820         * doc/posix-functions/sprintf.texi: Likewise.
29821         * doc/posix-functions/vfprintf.texi: Likewise.
29822         * doc/posix-functions/vprintf.texi: Likewise.
29823         * doc/posix-functions/vsnprintf.texi: Likewise.
29824         * doc/posix-functions/vsprintf.texi: Likewise.
29825         * doc/glibc-functions/obstack_printf.texi: Likewise.
29826         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29827
29828 2009-02-28  Bruno Haible  <bruno@clisp.org>
29829
29830         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29831         Reported by Loïc Minier <lool@dooz.org>.
29832
29833 2009-02-27  Bruno Haible  <bruno@clisp.org>
29834
29835         * gnulib-tool (func_import): Make the sed expression used to create the
29836         sed script for updating the .gitignore file POSIX compliant.
29837         Reported by Eric Blake.
29838
29839 2009-02-27  Bruno Haible  <bruno@clisp.org>
29840
29841         * gnulib-tool (sed): Don't alias as "sed --posix".
29842         Reported by Eric Blake.
29843
29844 2009-02-27  Bruno Haible  <bruno@clisp.org>
29845
29846         Avoid test link errors.
29847         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29848         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29849         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29850         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29852
29853 2009-02-27  Bruno Haible  <bruno@clisp.org>
29854
29855         Avoid spurious "(cached)" in configure output.
29856         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29857         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29858         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29859         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29860         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29861         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29862         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29863         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29864         Reported by Eric Blake.
29865
29866 2009-02-27  Eric Blake  <ebb9@byu.net>
29867
29868         printf: fix regression in previous patch
29869         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29870
29871 2009-02-27  Bruno Haible  <bruno@clisp.org>
29872
29873         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29874         value.
29875         * lib/stdint.in.h: Likewise.
29876         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29877
29878 2009-02-27  Eric Blake  <ebb9@byu.net>
29879
29880         doc: mention more functions added in cygwin 1.7.0
29881         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29882         addition.
29883         * doc/posix-functions/open_wmemstream.texi: Likewise.
29884         * doc/posix-functions/wcsnlen.texi: Likewise.
29885         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29886         * doc/posix-functions/wcstod.texi: Likewise.
29887         * doc/posix-functions/wcstof.texi: Likewise.
29888         * doc/posix-functions/wcstoimax.texi: Likewise.
29889         * doc/posix-functions/wcstok.texi: Likewise.
29890         * doc/posix-functions/wcstoumax.texi: Likewise.
29891
29892         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29894         * doc/posix-functions/fprintf.texi: Update.
29895         * doc/posix-functions/printf.texi: Update.
29896         * doc/posix-functions/snprintf.texi: Update.
29897         * doc/posix-functions/sprintf.texi: Update.
29898         * doc/posix-functions/vfprintf.texi: Update.
29899         * doc/posix-functions/vprintf.texi: Update.
29900         * doc/posix-functions/vsnprintf.texi: Update.
29901         * doc/posix-functions/vsprintf.texi: Update.
29902         * doc/glibc-functions/obstack_printf.texi: Update.
29903         * doc/glibc-functions/obstack_vprintf.texi: Update.
29904
29905 2009-02-26  Eric Blake  <ebb9@byu.net>
29906
29907         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29908         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29909         compilation bug by using runtime conversion.
29910         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29911         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29912         * modules/ceill-tests (Files): Use nan.h.
29913         * modules/floorl-tests (Files): Likewise.
29914         * modules/frexpl-tests (Files): Likewise.
29915         * modules/isnanl-tests (Files): Likewise.
29916         * modules/ldexpl-tests (Files): Likewise.
29917         * modules/roundl-tests (Files): Likewise.
29918         * modules/truncl-tests (Files): Likewise.
29919         * tests/test-ceill.c (main): Use a working NaN.
29920         * tests/test-floorl.c (main): Likewise.
29921         * tests/test-frexpl.c (main): Likewise.
29922         * tests/test-isnan.c (test_long_double): Likewise.
29923         * tests/test-isnanl.h (main): Likewise.
29924         * tests/test-ldexpl.h (main): Likewise.
29925         * tests/test-roundl.h (main): Likewise.
29926         * tests/test-truncl.h (main): Likewise.
29927         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29928
29929 2009-02-26  Eric Blake  <ebb9@byu.net>
29930             Bruno Haible  <bruno@clisp.org>
29931
29932         Work around a *printf bug with %ls on Solaris.
29933         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29934         precision is specified, sprintf stops converting the wide string
29935         argument when the number of bytes that have been produced by this
29936         conversion equals or exceeds the precision.
29937         * doc/posix-functions/fprintf.texi: Update.
29938         * doc/posix-functions/printf.texi: Update.
29939         * doc/posix-functions/snprintf.texi: Update.
29940         * doc/posix-functions/sprintf.texi: Update.
29941         * doc/posix-functions/vfprintf.texi: Update.
29942         * doc/posix-functions/vprintf.texi: Update.
29943         * doc/posix-functions/vsnprintf.texi: Update.
29944         * doc/posix-functions/vsprintf.texi: Update.
29945         * doc/glibc-functions/obstack_printf.texi: Update.
29946         * doc/glibc-functions/obstack_vprintf.texi: Update.
29947
29948 2009-02-26  Eric Blake  <ebb9@byu.net>
29949
29950         stdlib: favor compiler check of random.h
29951         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29952         to avoid an ObjC random.h installed by Swarm.
29953
29954 2009-02-26  Bruno Haible  <bruno@clisp.org>
29955
29956         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29957         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29958         Reported by Gary V. Vaughan <gary@gnu.org>.
29959
29960 2009-02-26  Bruno Haible  <bruno@clisp.org>
29961
29962         Fix *printf behaviour regarding the %ls directive.
29963         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29964         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29965         NEED_PRINTF_DIRECTIVE_LS.
29966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29967         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29968         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29969         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29970         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29971         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29972         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29973         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29974         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29975         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29976         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29977         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29978         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29979         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29980         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29981         * doc/posix-functions/fprintf.texi: Update.
29982         * doc/posix-functions/printf.texi: Update.
29983         * doc/posix-functions/snprintf.texi: Update.
29984         * doc/posix-functions/sprintf.texi: Update.
29985         * doc/posix-functions/vfprintf.texi: Update.
29986         * doc/posix-functions/vprintf.texi: Update.
29987         * doc/posix-functions/vsnprintf.texi: Update.
29988         * doc/posix-functions/vsprintf.texi: Update.
29989         * doc/glibc-functions/obstack_printf.texi: Update.
29990         * doc/glibc-functions/obstack_vprintf.texi: Update.
29991         Reported by Eric Blake.
29992
29993 2009-02-25  Bruno Haible  <bruno@clisp.org>
29994
29995         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29996         with known value.
29997         Reported by Gary V. Vaughan <gary@gnu.org>.
29998
29999 2009-02-25  Bruno Haible  <bruno@clisp.org>
30000
30001         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30002         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30003         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30004         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30005         Reported by Gary V. Vaughan <gary@gnu.org>.
30006
30007 2009-02-25  Bruno Haible  <bruno@clisp.org>
30008
30009         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30010         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30011         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30012         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30013         Reported by Gary V. Vaughan <gary@gnu.org>.
30014
30015 2009-02-25  Eric Blake  <ebb9@byu.net>
30016
30017         tests: skip fseek/ftell tests if ungetc is broken
30018         * m4/ungetc.m4: New file.
30019         * modules/fseek-tests: Split test, so ungetc dependency is
30020         separate from rest of test.
30021         * modules/fseeko-tests: Likewise.
30022         * modules/ftell-tests: Likewise.
30023         * modules/ftello-tests: Likewise.
30024         * tests/test-fseek.c (main): Isolate ungetc dependency.
30025         * tests/test-fseeko.c (main): Likewise.
30026         * tests/test-ftell.c (main): Likewise.
30027         * tests/test-ftello.c (main): Likewise.
30028         * tests/test-fseek2.sh: New file.
30029         * tests/test-fseeko2.sh: Likewise.
30030         * tests/test-ftell2.sh: Likewise.
30031         * tests/test-ftello2.sh: Likewise.
30032
30033 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
30034
30035         test-getaddrinfo: fix usage of skip return code 77
30036         * tests/test-gettaddrinfo.c: Return skip code 77 only
30037         for first occurance of skip (4x77 is not 77)
30038
30039 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30040
30041         strtod: avoid C99 decl-after-statement
30042         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30043
30044 2009-02-24  Eric Blake  <ebb9@byu.net>
30045
30046         strtod: detect HP-UX 11.31 bug
30047         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30048         Reported by Gary V. Vaughan.
30049
30050 2009-02-23  Bruno Haible  <bruno@clisp.org>
30051
30052         Fix invalid read past end of memory block.
30053         * lib/vasnprintf.c (DCHAR_SET): Define.
30054         (local_wcslen): Define only when needed.
30055         (local_strnlen, local_wcsnlen): New functions.
30056         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30057         directives that involve a conversion ourselves.
30058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30059         wcsnlen, mbrtowc, wcrtomb.
30060         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30061         * tests/test-vasprintf-posix.c (test_function): Likewise.
30062         * tests/test-snprintf-posix.h (test_function): Likewise.
30063         * tests/test-sprintf-posix.h (test_function): Likewise.
30064         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30065
30066 2009-02-22  Bruno Haible  <bruno@clisp.org>
30067
30068         Implement new clarified decomposition of Hangul syllables.
30069         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30070         of type LTV, return only a pairwise decomposition.
30071         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30072         Likewise.
30073         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30074         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30075         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30076
30077 2009-02-22  Bruno Haible  <bruno@clisp.org>
30078
30079         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30080         zero-length results and shrink excess allocated memory.
30081         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30082         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30083         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30084         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30085         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30086         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30087         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30088         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30089         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30090         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30091         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30092         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30093
30094 2009-02-21  Bruno Haible  <bruno@clisp.org>
30095
30096         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30097         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30098         spaces after a period. Put a space between a macro name and its
30099         argument list. Trivial rewordings.
30100         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30101         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30102         (main): Return 0 explicitly.
30103
30104 2009-02-21  Bruno Haible  <bruno@clisp.org>
30105
30106         Tests for module 'uninorm/filter'.
30107         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30108         * modules/uninorm/filter-tests: New file.
30109
30110         New module 'uninorm/filter'.
30111         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30112         uninorm_filter_flush, uninorm_filter_free): New declarations.
30113         * lib/uninorm/uninorm-filter.c: New file.
30114         * modules/uninorm/filter: New file.
30115
30116 2009-02-21  Bruno Haible  <bruno@clisp.org>
30117
30118         Tests for module 'uninorm/nfkc'.
30119         * tests/uninorm/test-nfkc.c: New file.
30120         * tests/uninorm/test-u8-nfkc.c: New file.
30121         * tests/uninorm/test-u16-nfkc.c: New file.
30122         * tests/uninorm/test-u32-nfkc.c: New file.
30123         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30124         * tests/uninorm/test-u32-nfkc-big.c: New file.
30125         * modules/uninorm/nfkc-tests: New file.
30126
30127         New module 'uninorm/nfkc'.
30128         * lib/uninorm/nfkc.c: New file.
30129         * modules/uninorm/nfkc: New file.
30130
30131         Tests for module 'uninorm/nfkd'.
30132         * tests/uninorm/test-nfkd.c: New file.
30133         * tests/uninorm/test-u8-nfkd.c: New file.
30134         * tests/uninorm/test-u16-nfkd.c: New file.
30135         * tests/uninorm/test-u32-nfkd.c: New file.
30136         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30137         * tests/uninorm/test-u32-nfkd-big.c: New file.
30138         * modules/uninorm/nfkd-tests: New file.
30139
30140         New module 'uninorm/nfkd'.
30141         * lib/uninorm/nfkd.c: New file.
30142         * modules/uninorm/nfkd: New file.
30143
30144         Tests for module 'uninorm/nfc'.
30145         * tests/uninorm/test-nfc.c: New file.
30146         * tests/uninorm/test-u8-nfc.c: New file.
30147         * tests/uninorm/test-u16-nfc.c: New file.
30148         * tests/uninorm/test-u32-nfc.c: New file.
30149         * tests/uninorm/test-u32-nfc-big.sh: New file.
30150         * tests/uninorm/test-u32-nfc-big.c: New file.
30151         * modules/uninorm/nfc-tests: New file.
30152
30153         New module 'uninorm/nfc'.
30154         * lib/uninorm/nfc.c: New file.
30155         * modules/uninorm/nfc: New file.
30156
30157         Tests for module 'uninorm/nfd'.
30158         * tests/uninorm/test-nfd.c: New file.
30159         * tests/uninorm/test-u8-nfd.c: New file.
30160         * tests/uninorm/test-u16-nfd.c: New file.
30161         * tests/uninorm/test-u32-nfd.c: New file.
30162         * tests/uninorm/test-u32-nfd-big.sh: New file.
30163         * tests/uninorm/test-u32-nfd-big.c: New file.
30164         * tests/uninorm/test-u32-normalize-big.h: New file.
30165         * tests/uninorm/test-u32-normalize-big.c: New file.
30166         * tests/uninorm/NormalizationTest.txt: New file, created from
30167         Unicode 5.1.0 NormalizationTest.txt.
30168         * modules/uninorm/nfd-tests: New file.
30169
30170         New module 'uninorm/nfd'.
30171         * lib/uninorm/nfd.c: New file.
30172         * modules/uninorm/nfd: New file.
30173
30174         New module 'uninorm/u32-normalize'.
30175         * lib/uninorm/u32-normalize.c: New file.
30176         * modules/uninorm/u32-normalize: New file.
30177
30178         New module 'uninorm/u16-normalize'.
30179         * lib/uninorm/u16-normalize.c: New file.
30180         * modules/uninorm/u16-normalize: New file.
30181
30182         New module 'uninorm/u8-normalize'.
30183         * lib/uninorm/u8-normalize.c: New file.
30184         * lib/uninorm/normalize-internal.h: New file.
30185         * lib/uninorm/u-normalize-internal.h: New file.
30186         * modules/uninorm/u8-normalize: New file.
30187
30188         New module 'uninorm/decompose-internal'.
30189         * lib/uninorm/decompose-internal.c: New file.
30190         * modules/uninorm/decompose-internal: New file.
30191
30192         Tests for module 'uninorm/composition'.
30193         * tests/uninorm/test-composition.c: New file.
30194         * modules/uninorm/composition-tests: New file.
30195
30196         New module 'uninorm/composition'.
30197         * lib/uninorm/composition.c: New file.
30198         * lib/uninorm/composition-table.gperf: New file, generated by
30199         gen-uni-tables.
30200         * modules/uninorm/composition: New file.
30201
30202         Tests for module 'uninorm/compat-decomposition'.
30203         * tests/uninorm/test-compat-decomposition.c: New file.
30204         * modules/uninorm/compat-decomposition-tests: New file.
30205
30206         New module 'uninorm/compat-decomposition'.
30207         * lib/uninorm/decompose-internal.h: New file.
30208         * lib/uninorm/compat-decomposition.c: New file.
30209         * modules/uninorm/compat-decomposition: New file.
30210
30211         Tests for module 'uninorm/canonical-decomposition'.
30212         * tests/uninorm/test-canonical-decomposition.c: New file.
30213         * modules/uninorm/canonical-decomposition-tests: New file.
30214
30215         New module 'uninorm/canonical-decomposition'.
30216         * lib/uninorm/canonical-decomposition.c: New file.
30217         * modules/uninorm/canonical-decomposition: New file.
30218
30219         Tests for module 'uninorm/decomposition'.
30220         * tests/uninorm/test-decomposition.c: New file.
30221         * modules/uninorm/decomposition-tests: New file.
30222
30223         New module 'uninorm/decomposition'.
30224         * lib/uninorm/decomposition.c: New file.
30225         * modules/uninorm/decomposition: New file.
30226
30227         New module 'uninorm/decomposition-table'.
30228         * lib/uninorm/decomposition-table.h: New file.
30229         * lib/uninorm/decomposition-table.c: New file.
30230         * lib/uninorm/decomposition-table1.h: New file, generated by
30231         gen-uni-tables.
30232         * lib/uninorm/decomposition-table2.h: New file, generated by
30233         gen-uni-tables.
30234         * modules/uninorm/decomposition-table: New file.
30235
30236         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30237         (UC_DECOMP_*): New enumeration items.
30238         (get_decomposition): New function.
30239         (struct decomp_table): New type.
30240         (output_decomposition, output_decomposition_tables): New functions.
30241         (unicode_composition_exclusions): New variable.
30242         (fill_composition_exclusions, debug_output_composition_tables): New
30243         functions.
30244         (main): Accept one more argument. Invoke fill_composition_exclusions.
30245         Output decomposition and composition tables.
30246
30247         New module 'uninorm/base'.
30248         * lib/uninorm.h: New file.
30249         * lib/unictype.h: Update comment.
30250         * modules/uninorm/base: New file.
30251
30252 2009-02-21  David Lutterkort  <lutter@redhat.com>
30253
30254         Tests for module 'safe-alloc'.
30255         * tests/test-safe-alloc.c: New file.
30256         * modules/safe-alloc-tests: New file.
30257
30258         New module 'safe-alloc'.
30259         * lib/safe-alloc.h: New file.
30260         * lib/safe-alloc.c: New file.
30261         * m4/safe-alloc.m4: New file.
30262         * modules/safe-alloc: New file.
30263         * doc/safe-alloc.texi: New file.
30264         * doc/gnulib.texi: Include it.
30265         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30266         safe-alloc.
30267
30268 2009-02-18  Bruno Haible  <bruno@clisp.org>
30269
30270         Fix link error on non-glibc systems.
30271         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30272         variable.
30273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30274
30275 2009-02-18  Jim Meyering  <meyering@redhat.com>
30276
30277         fts: avoid used-uninitialized error due to recent change
30278         * lib/fts.c (fts_read): Guard uses of the new member,
30279         parent->fts_n_dirs_remaining, since it's not relevant for
30280         the parent of a directory specified on the command-line.
30281
30282 2009-02-17  James Youngman  <jay@gnu.org>
30283             Bruno Haible  <bruno@clisp.org>
30284
30285         * m4/include_next.m4: Reformulate comment.
30286
30287 2009-02-16  Jim Meyering  <meyering@redhat.com>
30288
30289         fts: add #if guards so that the fts_lgpl module still builds
30290         * lib/fts.c: Guard just-added hash-table-using parts with
30291         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30292         Reported by Simon Josefsson.
30293
30294 2009-02-15  Bruno Haible  <bruno@clisp.org>
30295
30296         * modules/array-mergesort-tests: New file.
30297         * tests/test-array-mergesort.c: New file.
30298
30299         New module 'array-mergesort'.
30300         * modules/array-mergesort: New file.
30301         * lib/array-mergesort.h: New file.
30302
30303 2009-02-15  Bruno Haible  <bruno@clisp.org>
30304
30305         Fix 2009-02-07 commit.
30306         * lib/gen-uni-tables.c (output_predicate, output_category,
30307         output_combclass, output_bidi_category, output_decimal_digit,
30308         output_digit, output_numeric, output_mirror, output_scripts,
30309         output_ident_category, output_simple_mapping): Fix format directives.
30310         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30311
30312 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30313
30314         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30315         fixes are available from IBM.
30316
30317 2009-02-13  Jim Meyering  <meyering@redhat.com>
30318
30319         fts: arrange not to stat non-directories in more cases
30320         This makes GNU find (when it doesn't need to stat each file)
30321         *much* more efficient at traversing reiserfs file systems.
30322         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30323         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30324         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30325         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30326         (leaf_optimization_applies): New function.
30327         (LCO_hash, LCO_compare): New helper functions.
30328         (link_count_optimize_ok): New function.
30329         (fts_stat): Initialize new member (if dir).
30330         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30331         we've just stat'ed a directory.  Skip the stat call when possible.
30332         ---
30333         Note this AFS-related exchange:
30334         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30335         and note find's pioctl call in find/fstype.c.
30336         But that is necessary only if you want to enable the
30337         optimization for AFS, and for now, I don't.
30338
30339         fts: move a function definition "up" (no semantic change)
30340         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30341         "up" to precede upcoming use of a related function.
30342
30343 2009-02-11  Jim Meyering  <meyering@redhat.com>
30344
30345         fts: correct internal computation of nlinks (optimization-related)
30346         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30347         whether the current entry is a directory, so don't test it.
30348
30349 2009-02-10  Bruno Haible  <bruno@clisp.org>
30350
30351         Tests for module 'uniwbrk/ulc-wordbreaks'.
30352         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30353         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30354         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30355
30356         Tests for module 'uniwbrk/u32-wordbreaks'.
30357         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30358         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30359
30360         Tests for module 'uniwbrk/u16-wordbreaks'.
30361         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30362         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30363
30364         Tests for module 'uniwbrk/u8-wordbreaks'.
30365         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30366         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30367
30368 2009-02-10  Bruno Haible  <bruno@clisp.org>
30369
30370         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30371         property.
30372         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30373         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30374         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30375
30376 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30377
30378         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30379         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30380
30381 2009-02-10  Bruno Haible  <bruno@clisp.org>
30382
30383         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30384         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30385         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30386         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30387         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30388         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30389
30390 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30391
30392         * lib/sockets.h (gl_fd_to_handle): New function.
30393
30394         * tests/test-sockets.c: Call gl_fd_to_handle.
30395
30396 2009-02-09  Bruno Haible  <bruno@clisp.org>
30397
30398         * doc/havelib.texi: Document the conventions on bi-arch systems.
30399
30400 2009-02-08  Bruno Haible  <bruno@clisp.org>
30401
30402         Document the AC_LIB_LINKFLAGS macro.
30403         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30404         * doc/gnulib.texi: Include it.
30405
30406 2009-02-08  Bruno Haible  <bruno@clisp.org>
30407
30408         Fix wrong order of sections, compared to TOC.
30409         * doc/gnulib.texi: Include relocatable-maint.texi after the
30410         "Regular expressions" node, not before.
30411
30412 2009-02-08  Bruno Haible  <bruno@clisp.org>
30413
30414         Tests for module 'unicase/totitle'.
30415         * modules/unicase/totitle-tests: New file.
30416
30417         Tests for module 'unicase/tolower'.
30418         * modules/unicase/tolower-tests: New file.
30419
30420         Tests for module 'unicase/toupper'.
30421         * modules/unicase/toupper-tests: New file.
30422         * tests/unicase/test-mapping-part1.h: New file.
30423         * tests/unicase/test-mapping-part2.h: New file.
30424
30425         New module 'unicase/totitle'.
30426         * modules/unicase/totitle: New file.
30427         * lib/unicase/totitle.c: New file.
30428
30429         New module 'unicase/tolower'.
30430         * modules/unicase/tolower: New file.
30431         * lib/unicase/tolower.c: New file.
30432
30433         New module 'unicase/toupper'.
30434         * modules/unicase/toupper: New file.
30435         * lib/unicase/toupper.c: New file.
30436         * lib/unicase/simple-mapping.h: New file.
30437
30438         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30439         (mapping_table): New structure.
30440         (output_simple_mapping): New function.
30441         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30442         * modules/gen-uni-tables (Description): Update.
30443         * lib/unicase/toupper.h: New file, automatically generated by
30444         gen-uni-tables.
30445         * lib/unicase/tolower.h: New file, automatically generated by
30446         gen-uni-tables.
30447         * lib/unicase/totitle.h: New file, automatically generated by
30448         gen-uni-tables.
30449         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30450         gen-uni-tables.
30451         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30452         gen-uni-tables.
30453         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30454         gen-uni-tables.
30455
30456         New module 'unicase/base'.
30457         * modules/unicase/base: New file.
30458         * lib/unicase.h: New file.
30459
30460 2009-02-08  Bruno Haible  <bruno@clisp.org>
30461
30462         New module 'uniwbrk/ulc-wordbreaks'.
30463         * modules/uniwbrk/ulc-wordbreaks: New file.
30464         * lib/uniwbrk/ulc-wordbreaks.c: New file.
30465
30466         New module 'uniwbrk/u32-wordbreaks'.
30467         * modules/uniwbrk/u32-wordbreaks: New file.
30468         * lib/uniwbrk/u32-wordbreaks.c: New file.
30469
30470         New module 'uniwbrk/u16-wordbreaks'.
30471         * modules/uniwbrk/u16-wordbreaks: New file.
30472         * lib/uniwbrk/u16-wordbreaks.c: New file.
30473
30474         New module 'uniwbrk/u8-wordbreaks'.
30475         * modules/uniwbrk/u8-wordbreaks: New file.
30476         * lib/uniwbrk/u8-wordbreaks.c: New file.
30477         * lib/uniwbrk/u-wordbreaks.h: New file.
30478
30479         New module 'uniwbrk/table'.
30480         * modules/uniwbrk/table: New file.
30481         * lib/uniwbrk/wbrktable.h: New file.
30482         * lib/uniwbrk/wbrktable.c: New file.
30483
30484         New module 'uniwbrk/wordbreak-property'.
30485         * modules/uniwbrk/wordbreak-property: New file.
30486         * lib/uniwbrk/wordbreak-property.c: New file.
30487
30488         * lib/gen-uni-tables.c (WBP_*): New enum items.
30489         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
30490         (unicode_org_wbp): New variable.
30491         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
30492         New functions.
30493         (wbp_table): New structure.
30494         (output_wbp, output_wbrk_tables): New functions.
30495         (main): Accept additional argument. Invoke fill_org_wbp,
30496         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
30497         output_wbrk_tables.
30498         * modules/gen-uni-tables (Description): Update.
30499         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
30500         gen-uni-tables.
30501
30502         New module 'uniwbrk/base'.
30503         * modules/uniwbrk/base: New file.
30504         * lib/uniwbrk.h: New file.
30505
30506 2009-02-08  Bruno Haible  <bruno@clisp.org>
30507
30508         Update to Unicode 5.1.0.
30509         * lib/gen-uni-tables.c (is_property_alphabetic): Include
30510         U+2185..U+2188.
30511         (is_property_default_ignorable_code_point): Don't include characters
30512         of category Cc or Cs and not-a-characters.
30513         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
30514         U+0D79, U+109E, U+109F, U+A60C.
30515         * lib/unictype/bidi_of.h: Regenerated.
30516         * lib/unictype/blocks.h: Regenerated.
30517         * lib/unictype/categ_C.h: Regenerated.
30518         * lib/unictype/categ_Cf.h: Regenerated.
30519         * lib/unictype/categ_Cn.h: Regenerated.
30520         * lib/unictype/categ_L.h: Regenerated.
30521         * lib/unictype/categ_Ll.h: Regenerated.
30522         * lib/unictype/categ_Lm.h: Regenerated.
30523         * lib/unictype/categ_Lo.h: Regenerated.
30524         * lib/unictype/categ_Lu.h: Regenerated.
30525         * lib/unictype/categ_M.h: Regenerated.
30526         * lib/unictype/categ_Mc.h: Regenerated.
30527         * lib/unictype/categ_Me.h: Regenerated.
30528         * lib/unictype/categ_Mn.h: Regenerated.
30529         * lib/unictype/categ_N.h: Regenerated.
30530         * lib/unictype/categ_Nd.h: Regenerated.
30531         * lib/unictype/categ_Nl.h: Regenerated.
30532         * lib/unictype/categ_No.h: Regenerated.
30533         * lib/unictype/categ_P.h: Regenerated.
30534         * lib/unictype/categ_Pd.h: Regenerated.
30535         * lib/unictype/categ_Pe.h: Regenerated.
30536         * lib/unictype/categ_Pf.h: Regenerated.
30537         * lib/unictype/categ_Pi.h: Regenerated.
30538         * lib/unictype/categ_Po.h: Regenerated.
30539         * lib/unictype/categ_Ps.h: Regenerated.
30540         * lib/unictype/categ_S.h: Regenerated.
30541         * lib/unictype/categ_Sk.h: Regenerated.
30542         * lib/unictype/categ_Sm.h: Regenerated.
30543         * lib/unictype/categ_So.h: Regenerated.
30544         * lib/unictype/categ_of.h: Regenerated.
30545         * lib/unictype/combining.h: Regenerated.
30546         * lib/unictype/ctype_alnum.h: Regenerated.
30547         * lib/unictype/ctype_alpha.h: Regenerated.
30548         * lib/unictype/ctype_graph.h: Regenerated.
30549         * lib/unictype/ctype_lower.h: Regenerated.
30550         * lib/unictype/ctype_print.h: Regenerated.
30551         * lib/unictype/ctype_punct.h: Regenerated.
30552         * lib/unictype/ctype_upper.h: Regenerated.
30553         * lib/unictype/decdigit.h: Regenerated.
30554         * lib/unictype/digit.h: Regenerated.
30555         * lib/unictype/mirror.h: Regenerated.
30556         * lib/unictype/numeric.h: Regenerated.
30557         * lib/unictype/pr_alphabetic.h: Regenerated.
30558         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
30559         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
30560         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
30561         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
30562         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
30563         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
30564         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
30565         * lib/unictype/pr_combining.h: Regenerated.
30566         * lib/unictype/pr_dash.h: Regenerated.
30567         * lib/unictype/pr_decimal_digit.h: Regenerated.
30568         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
30569         * lib/unictype/pr_deprecated.h: Regenerated.
30570         * lib/unictype/pr_diacritic.h: Regenerated.
30571         * lib/unictype/pr_extender.h: Regenerated.
30572         * lib/unictype/pr_format_control.h: Regenerated.
30573         * lib/unictype/pr_grapheme_base.h: Regenerated.
30574         * lib/unictype/pr_grapheme_extend.h: Regenerated.
30575         * lib/unictype/pr_grapheme_link.h: Regenerated.
30576         * lib/unictype/pr_id_continue.h: Regenerated.
30577         * lib/unictype/pr_id_start.h: Regenerated.
30578         * lib/unictype/pr_ideographic.h: Regenerated.
30579         * lib/unictype/pr_ignorable_control.h: Regenerated.
30580         * lib/unictype/pr_lowercase.h: Regenerated.
30581         * lib/unictype/pr_math.h: Regenerated.
30582         * lib/unictype/pr_numeric.h: Regenerated.
30583         * lib/unictype/pr_other_alphabetic.h: Regenerated.
30584         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
30585         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
30586         * lib/unictype/pr_other_id_continue.h: Regenerated.
30587         * lib/unictype/pr_other_lowercase.h: Regenerated.
30588         * lib/unictype/pr_other_math.h: Regenerated.
30589         * lib/unictype/pr_punctuation.h: Regenerated.
30590         * lib/unictype/pr_sentence_terminal.h: Regenerated.
30591         * lib/unictype/pr_soft_dotted.h: Regenerated.
30592         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
30593         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
30594         * lib/unictype/pr_unified_ideograph.h: Regenerated.
30595         * lib/unictype/pr_uppercase.h: Regenerated.
30596         * lib/unictype/pr_xid_continue.h: Regenerated.
30597         * lib/unictype/pr_xid_start.h: Regenerated.
30598         * lib/unictype/pr_zero_width.h: Regenerated.
30599         * lib/unictype/scripts.h: Regenerated.
30600         * lib/unictype/scripts_byname.gperf: Regenerated.
30601         * lib/unictype/sy_java_ident.h: Regenerated.
30602         * lib/unilbrk/lbrkprop1.h: Regenerated.
30603         * lib/unilbrk/lbrkprop2.h: Regenerated.
30604         * tests/unictype/test-categ_C.c: Regenerated.
30605         * tests/unictype/test-categ_Cf.c: Regenerated.
30606         * tests/unictype/test-categ_Cn.c: Regenerated.
30607         * tests/unictype/test-categ_L.c: Regenerated.
30608         * tests/unictype/test-categ_Ll.c: Regenerated.
30609         * tests/unictype/test-categ_Lm.c: Regenerated.
30610         * tests/unictype/test-categ_Lo.c: Regenerated.
30611         * tests/unictype/test-categ_Lu.c: Regenerated.
30612         * tests/unictype/test-categ_M.c: Regenerated.
30613         * tests/unictype/test-categ_Mc.c: Regenerated.
30614         * tests/unictype/test-categ_Me.c: Regenerated.
30615         * tests/unictype/test-categ_Mn.c: Regenerated.
30616         * tests/unictype/test-categ_N.c: Regenerated.
30617         * tests/unictype/test-categ_Nd.c: Regenerated.
30618         * tests/unictype/test-categ_Nl.c: Regenerated.
30619         * tests/unictype/test-categ_No.c: Regenerated.
30620         * tests/unictype/test-categ_P.c: Regenerated.
30621         * tests/unictype/test-categ_Pd.c: Regenerated.
30622         * tests/unictype/test-categ_Pe.c: Regenerated.
30623         * tests/unictype/test-categ_Pf.c: Regenerated.
30624         * tests/unictype/test-categ_Pi.c: Regenerated.
30625         * tests/unictype/test-categ_Po.c: Regenerated.
30626         * tests/unictype/test-categ_Ps.c: Regenerated.
30627         * tests/unictype/test-categ_S.c: Regenerated.
30628         * tests/unictype/test-categ_Sk.c: Regenerated.
30629         * tests/unictype/test-categ_Sm.c: Regenerated.
30630         * tests/unictype/test-categ_So.c: Regenerated.
30631         * tests/unictype/test-ctype_alnum.c: Regenerated.
30632         * tests/unictype/test-ctype_alpha.c: Regenerated.
30633         * tests/unictype/test-ctype_graph.c: Regenerated.
30634         * tests/unictype/test-ctype_lower.c: Regenerated.
30635         * tests/unictype/test-ctype_print.c: Regenerated.
30636         * tests/unictype/test-ctype_punct.c: Regenerated.
30637         * tests/unictype/test-ctype_upper.c: Regenerated.
30638         * tests/unictype/test-decdigit.h: Regenerated.
30639         * tests/unictype/test-digit.h: Regenerated.
30640         * tests/unictype/test-numeric.h: Regenerated.
30641         * tests/unictype/test-pr_alphabetic.c: Regenerated.
30642         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
30643         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
30644         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
30645         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
30646         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
30647         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
30648         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
30649         * tests/unictype/test-pr_combining.c: Regenerated.
30650         * tests/unictype/test-pr_dash.c: Regenerated.
30651         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
30652         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
30653         * tests/unictype/test-pr_deprecated.c: Regenerated.
30654         * tests/unictype/test-pr_diacritic.c: Regenerated.
30655         * tests/unictype/test-pr_extender.c: Regenerated.
30656         * tests/unictype/test-pr_format_control.c: Regenerated.
30657         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
30658         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
30659         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
30660         * tests/unictype/test-pr_id_continue.c: Regenerated.
30661         * tests/unictype/test-pr_id_start.c: Regenerated.
30662         * tests/unictype/test-pr_ideographic.c: Regenerated.
30663         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
30664         * tests/unictype/test-pr_lowercase.c: Regenerated.
30665         * tests/unictype/test-pr_math.c: Regenerated.
30666         * tests/unictype/test-pr_numeric.c: Regenerated.
30667         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
30668         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
30669         Regenerated.
30670         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
30671         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
30672         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
30673         * tests/unictype/test-pr_other_math.c: Regenerated.
30674         * tests/unictype/test-pr_punctuation.c: Regenerated.
30675         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
30676         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
30677         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
30678         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
30679         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
30680         * tests/unictype/test-pr_uppercase.c: Regenerated.
30681         * tests/unictype/test-pr_xid_continue.c: Regenerated.
30682         * tests/unictype/test-pr_xid_start.c: Regenerated.
30683         * tests/unictype/test-pr_zero_width.c: Regenerated.
30684
30685         Update to Unicode 5.1.0.
30686         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
30687         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
30688         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
30689         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
30690         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
30691         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
30692         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
30693         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
30694         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
30695         (nonspacing_table_ind): Update.
30696         * tests/uniwidth/test-uc_width2.sh: Update expected result.
30697
30698         Update to Unicode 5.1.0.
30699         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
30700         code transform.
30701         * lib/uniname/uniname.c (unicode_character_name,
30702         unicode_name_character): Add the range 0x1Fxxx to the code transform.
30703         * lib/uniname/uninames.h: Regenerated.
30704         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
30705
30706 2009-02-07  Bruno Haible  <bruno@clisp.org>
30707
30708         Merge gen-ctype and gen-lbrk into a single program.
30709         * lib/gen-uni-tables.c: New file, incorporating
30710         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
30711         Add directory prefixes to the names of the generated files.
30712         * lib/unictype/gen-ctype.c: Remove file.
30713         * lib/unilbrk/gen-lbrk.c: Remove file.
30714         * modules/gen-uni-tables: New file.
30715         * modules/unictype/gen-ctype: Remove file.
30716         * modules/unilbrk/gen-lbrk: Remove file.
30717
30718 2009-02-07  Bruno Haible  <bruno@clisp.org>
30719
30720         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
30721
30722         New module 'unistr/u32-strcoll'.
30723         * modules/unistr/u32-strcoll: New file.
30724         * lib/unistr/u32-strcoll.c: New file.
30725
30726         New module 'unistr/u16-strcoll'.
30727         * modules/unistr/u16-strcoll: New file.
30728         * lib/unistr/u16-strcoll.c: New file.
30729
30730         New module 'unistr/u8-strcoll'.
30731         * modules/unistr/u8-strcoll: New file.
30732         * lib/unistr/u8-strcoll.c: New file.
30733         * lib/unistr/u-strcoll.h: New file.
30734
30735 2009-02-07  Bruno Haible  <bruno@clisp.org>
30736
30737         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
30738         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30739         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30740         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
30741         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
30742         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
30743
30744 2009-02-07  Bruno Haible  <bruno@clisp.org>
30745
30746         Make 64-bit clean.
30747         * lib/unictype/gen-ctype.c (output_predicate, output_category,
30748         output_combclass, output_bidi_category, output_decimal_digit,
30749         output_digit, output_numeric, output_mirror, output_scripts,
30750         output_ident_category): Use proper width specifier in format strings.
30751
30752 2009-02-07  Bruno Haible  <bruno@clisp.org>
30753
30754         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
30755         failure behaviour.
30756
30757 2009-02-07  Jim Meyering  <meyering@redhat.com>
30758
30759         regex: avoid compilation failure with upcoming gcc-4.4
30760         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
30761         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
30762         "... error: integer overflow in preprocessor expression".
30763
30764 2009-02-05  Ben Pfaff  <blp@gnu.org>
30765
30766         Fix link errors on Windows when close module is used.
30767         * modules/close: Add $(LIB_CLOSE) to Link section.
30768         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
30769         $(LIB_CLOSE) on Windows.
30770
30771 2009-02-05  Jim Meyering  <meyering@redhat.com>
30772
30773         still avoid unused-parameter warnings, but do it cleanly
30774         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
30775         (get_fs_usage): Cast to void instead.
30776         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
30777         (dev_from_mount_options, read_file_system_list): Cast to void.
30778         Prompted by Bruno Haible.
30779
30780 2009-02-04  Jim Meyering  <meyering@redhat.com>
30781
30782         fsusage.c: correct copyright year
30783         * lib/fsusage.c: Reflect year in which the change is pushed into
30784
30785         avoid misc. warnings
30786         * lib/fsusage.c (UNUSED_PARAM): Define.
30787         (get_fs_usage): Mark parameter "disk" as unused.
30788         * lib/getugroups.c (getgrent): Use "void" in prototype.
30789         * lib/mountlist.c: Mark unused parameters.
30790         (read_file_system_list): Declare a local with "const".
30791         * lib/nanosleep.c (getnow): Declare static.
30792         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
30793
30794         dirfd: set errno upon failure
30795         * lib/dirfd.c: Include <errno.h>.
30796         Set errno to ENOTSUP when returning -1.
30797         * modules/dirfd (Depends-on): Add errno.
30798         Suggested by John Kodis <kodis@comcast.net>.
30799
30800 2009-02-01  Bruno Haible  <bruno@clisp.org>
30801
30802         Don't assume sizeof (long) >= sizeof (void *).
30803         * lib/memcmp.c: Include stdint.h.
30804         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30805         srcp2 to 'const byte *'.
30806         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30807         types to uintptr_t.
30808         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30809         * modules/memcmp (Depends-on): Add stdint.
30810         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30811
30812 2009-01-30  Eric Blake  <ebb9@byu.net>
30813
30814         fix more require-before-expand issues
30815         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30816         expand, AC_PROG_AWK.
30817         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30818
30819 2009-01-28  Eric Blake  <ebb9@byu.net>
30820
30821         version-etc: use consistent URL formatting
30822         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30823         Improve formatting.  Use fputs for string without %.
30824
30825 2009-01-28  Jim Meyering  <meyering@redhat.com>
30826
30827         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30828         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30829         "underquoted definition of NAME" from autoconf-2.59.
30830
30831 2009-01-28  Bruno Haible  <bruno@clisp.org>
30832
30833         * doc/gnulib.texi: Add "Obsolete modules" to index.
30834
30835 2009-01-28  Jim Meyering  <meyering@redhat.com>
30836
30837         useless-if-before-free: recognize more variants
30838         * build-aux/useless-if-before-free: Also recognize e.g.,
30839         if (NULL != p) free (p);
30840
30841 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30842
30843         test-getaddrinfo: skip (don't fail) this test when there's no network
30844         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30845         on the presumption that it means you lack network access.
30846
30847 2009-01-26  Jim Meyering  <meyering@redhat.com>
30848
30849         fflush: avoid warnings on modern systems
30850         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30851         pos and result, into scopes where they're used.
30852
30853 2009-01-26  Eric Blake  <ebb9@byu.net>
30854
30855         Silence warning reintroduced by recent extensions patch.
30856         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30857         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30858         autoconf.
30859
30860         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30861         * m4/00gnulib.m4: New file.
30862         * gnulib-tool (func_get_filelist): Always use it.
30863         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30864         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30865
30866 2009-01-25  Bruno Haible  <bruno@clisp.org>
30867
30868         Make test-quotearg work on MacOS X and AIX.
30869         * tests/test-quotearg.sh: New file.
30870         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30871         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30872         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30873         include <libintl.h>.
30874         (fake_locale): Remove variable.
30875         (gettext, dgettext, dcgettext): Remove functions.
30876         (main): Instead of setting a fake locale, set a real locale. Call
30877         textdomain and bindtextdomain.
30878         * modules/quotearg-tests (Files): Add the new files.
30879         (Depends-on): Add gettext, setenv, unsetenv.
30880         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30881         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30882         Augment TESTS_ENVIRONMENT.
30883
30884 2009-01-25  Bruno Haible  <bruno@clisp.org>
30885
30886         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30887         fr_FR.ISO8859-1 locale on MacOS X.
30888         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30889         ja_JP.eucJP locale on MacOS X.
30890         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30891         zh_CN.GB18030 locale on MacOS X.
30892
30893 2009-01-25  Bruno Haible  <bruno@clisp.org>
30894
30895         Avoid link errors on MacOS X 10.3.
30896         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30897         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30898
30899 2009-01-25  Bruno Haible  <bruno@clisp.org>
30900
30901         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30902         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30903         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30904         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30905         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30906         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30907         posix_spawnattr_init, posix_spawnattr_setsigmask,
30908         posix_spawnattr_setflags, posix_spawnattr_destroy.
30909
30910         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30911         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30912         * modules/execute (Files): Remove m4/posix_spawn.m4.
30913         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30914         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30915         posix_spawnattr_init, posix_spawnattr_setsigmask,
30916         posix_spawnattr_setflags, posix_spawnattr_destroy.
30917
30918 2009-01-25  Bruno Haible  <bruno@clisp.org>
30919
30920         * lib/glthread/threadlib.c: Include <stdlib.h>.
30921
30922 2009-01-25  Bruno Haible  <bruno@clisp.org>
30923
30924         * lib/glthread/threadlib.c (dummy): New declaration.
30925
30926 2009-01-25  Bruno Haible  <bruno@clisp.org>
30927
30928         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30929         multibyte characters also for the GB18030 encoding. Don't crash when
30930         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30931
30932 2009-01-25  Bruno Haible  <bruno@clisp.org>
30933
30934         Avoid redefining 'struct random_data' on OSF/1 5.1.
30935         * lib/stdlib.in.h: Include <random.h> if it exists.
30936         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30937         HAVE_RANDOM_H. Include <random.h> when testing whether
30938         'struct random_data' exists.
30939         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30940
30941 2009-01-25  Bruno Haible  <bruno@clisp.org>
30942
30943         Don't install charset.alias on MacOS X >= 10.3.
30944         * lib/localcharset.c (DARWIN7): New macro.
30945         (get_charset_aliases): Hardcode the result for Darwin7.
30946         * modules/localcharset (install-exec-local): Don't install
30947         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30948
30949 2009-01-25  Bruno Haible  <bruno@clisp.org>
30950
30951         Don't install charset.alias on mingw and Cygwin.
30952         * modules/localcharset (install-exec-local): Don't install
30953         charset.alias on mingw and Cygwin, if the file does not yet exist.
30954         The result for these platforms is hardcoded in localcharset.c.
30955
30956 2009-01-25  Bruno Haible  <bruno@clisp.org>
30957
30958         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30960         before requiring AC_USE_SYSTEM_EXTENSIONS.
30961
30962 2009-01-25  Jim Meyering  <meyering@redhat.com>
30963
30964         c-strtod: avoid warnings
30965         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30966         "assignment discards qualifiers from pointer target type" warnings.
30967
30968 2009-01-24  Bruno Haible  <bruno@clisp.org>
30969
30970         Add support for non-UTF-8 locales on MacOS X.
30971         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30972         canonical encodings. For Darwin 7 and newer, don't map traditional
30973         encodings to UTF-8.
30974         Reported by Vincent Lefevre <vincent@vinc17.org>
30975         at <http://savannah.gnu.org/bugs/?25235>.
30976
30977 2009-01-24  Bruno Haible  <bruno@clisp.org>
30978
30979         * doc/gnulib.texi (Obsolete modules): New section.
30980         Reported by Mike Frysinger <vapier@gentoo.org>.
30981
30982 2009-01-24  Bruno Haible  <bruno@clisp.org>
30983
30984         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30985         (%.dvi): New rule.
30986
30987 2009-01-24  Bruno Haible  <bruno@clisp.org>
30988
30989         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30990         Reported by Eric Blake.
30991
30992 2009-01-24  Bruno Haible  <bruno@clisp.org>
30993
30994         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30995         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30996         Reported by Gary V. Vaughan <gary@gnu.org>.
30997
30998 2009-01-24  Bruno Haible  <bruno@clisp.org>
30999
31000         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31001
31002 2009-01-23  Bruno Haible  <bruno@clisp.org>
31003
31004         Make c-strtod, c-strtold usable in libraries.
31005         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31006         (C_STRTOD): Call strdup instead of xstrdup.
31007         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31008         * modules/c-strtold (Depends-on): Likewise.
31009         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31010         * NEWS: Mention the change.
31011         Reported by Michael Gold <mgold@ncf.ca>.
31012
31013 2009-01-23  Jim Meyering  <meyering@redhat.com>
31014
31015         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31016         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31017         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31018
31019 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31020
31021         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31022         GNU CoreUtils.
31023         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31024         * modules/version-etc (Description): Update.
31025
31026 2009-01-22  Bruno Haible  <bruno@clisp.org>
31027
31028         Cache the C locale object.
31029         * lib/c-strtod.c (c_locale_cache): New variable.
31030         (c_locale): New function.
31031         (C_STRTOD): Use it, and don't call freelocale.
31032         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31033         Suggested by Paolo Bonzini.
31034
31035 2009-01-21  Bruno Haible  <bruno@clisp.org>
31036
31037         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31038         conditions other than overflow.
31039
31040 2009-01-21  Bruno Haible  <bruno@clisp.org>
31041
31042         * lib/c-strtod.c: Include errno.h.
31043         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31044         value from STRTOD_L and STRTOD.
31045
31046 2009-01-21  Bruno Haible  <bruno@clisp.org>
31047         and Jim Meyering  <meyering@redhat.com>
31048
31049         nanosleep: skip configure test (fail it) for apple universal builds
31050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31051         universal builds, assume that nanosleep does not work.
31052         * modules/nanosleep (Depends-on): Add multiarch.
31053
31054         mktime: skip configure test (fail it) for apple universal builds
31055         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31056         universal builds, assume that mktime does not work.
31057         * modules/mktime (Depends-on): Add multiarch.
31058
31059 2009-01-21  Eric Blake  <ebb9@byu.net>
31060
31061         multiarch: avoid expand-before-require warning
31062         * modules/multiarch (configure.ac): Require, rather than expand,
31063         gl_MULTIARCH.
31064         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31065         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31066         enforce that all clients require it.  Partial reversion of
31067         2008-12-29 patch.
31068
31069         error: avoid expand-before-require warning
31070         * modules/errno (configure.ac): Require, rather than expand,
31071         gl_HEADER_ERRNO_H.
31072         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31073         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31074         enforce that all clients require it.
31075
31076         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31077         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31078         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31079         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31080
31081 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31082
31083         Revert:
31084         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31085
31086         regex: do not depend on obsolete modules.
31087         * modules/regex: Remove memcmp and memmove.
31088
31089 2009-01-20  Bruno Haible  <bruno@clisp.org>
31090
31091         Make the 'link' module link on Windows NT 4.
31092         * lib/link.c (_WIN32_WINNT): Don't define.
31093         (CreateHardLinkFuncType): New type.
31094         (CreateHardLinkFunc, initialized): New variables.
31095         (initialize): New function.
31096         (link): Invoke CreateHardLink indirectly through the function pointer.
31097
31098 2009-01-20  Bruno Haible  <bruno@clisp.org>
31099
31100         Fix compilation failure on mingw.
31101         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31102
31103 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31104
31105         * doc/c-strtod.texi: Mention a couple of restrictions.
31106
31107 2009-01-20  Jim Meyering  <meyering@redhat.com>
31108
31109         gettimeofday: move more declarations out of functions
31110         * lib/gettimeofday.c: Move extern declarations of tzset and
31111         gmtime out of containing functions.  Prompted by Bruno Haible.
31112
31113 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31114
31115         regex: do not depend on obsolete modules.
31116         * modules/regex: Remove memcmp and memmove.
31117
31118 2009-01-19  Bruno Haible  <bruno@clisp.org>
31119
31120         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31121         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31122         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31123         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31124         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31125
31126 2009-01-19  Bruno Haible  <bruno@clisp.org>
31127
31128         * tests/test-link.c: Include <errno.h>.
31129         (main): Exit with code 77 when a hard link cannot be created due to
31130         the file system.
31131         * tests/test-link.sh: Skip test when a hard link cannot be created due
31132         to the file system.
31133         Suggested by Eric Blake.
31134
31135 2009-01-19  Martin Lambers  <marlam@marlam.de>
31136
31137         * modules/link-tests: New file.
31138         * tests/test-link.sh: New file.
31139         * tests/test-link.c: New file.
31140
31141 2009-01-19  Eric Blake  <ebb9@byu.net>
31142
31143         doc: mention another function added in cygwin 1.7.0
31144         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31145         Another new function in cygwin 1.7.
31146
31147 2009-01-19  Bruno Haible  <bruno@clisp.org>
31148
31149         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31150         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31151         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31152         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31153         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31154         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31155         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31156         * m4/md4.m4 (gl_MD4): Likewise.
31157         * m4/md5.m4 (gl_MD5): Likewise.
31158         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31159         * m4/sha1.m4 (gl_SHA1): Likewise.
31160         * m4/sha256.m4 (gl_SHA256): Likewise.
31161         * m4/sha512.m4 (gl_SHA512): Likewise.
31162
31163 2009-01-19  Bruno Haible  <bruno@clisp.org>
31164
31165         * modules/uniname/uniname-tests (Depends-on): Add progname.
31166         * tests/uniname/test-uninames.c: Include progname.h.
31167         (main): Call set_program_name.
31168
31169         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31170         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31171         (main): Call set_program_name.
31172
31173         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31174         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31175         (main): Call set_program_name.
31176
31177         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31178         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31179         (main): Call set_program_name.
31180
31181         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31182         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31183         (main): Call set_program_name.
31184
31185         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31186         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31187         (main): Call set_program_name.
31188
31189         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31190         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31191         (main): Call set_program_name.
31192
31193         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31194         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31195         (main): Call set_program_name.
31196
31197         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31198         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31199         (main): Call set_program_name.
31200
31201 2009-01-19  Eric Blake  <ebb9@byu.net>
31202
31203         test-unistd: test previous patch
31204         * tests/test-unistd.c: Test *_FILENO macros.
31205
31206         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31207         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31208         Guarantee a definition.
31209         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31210         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31211         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31212         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31213         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31214         Likewise.
31215         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31216         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31217         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31218         Likewise.
31219         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31220         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31221         (STDERR_FILENO): Likewise.
31222         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31223         (STDERR_FILENO): Likewise.
31224         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31225         (STDERR_FILENO): Likewise.
31226         Reported by Elbert Pol.
31227
31228 2009-01-19  Eric Blake  <ebb9@byu.net>
31229
31230         doc: mention more functions added in cygwin 1.7.0
31231         * doc/posix-functions/abort.texi (abort): Update wording related
31232         to cygwin.
31233         * doc/posix-functions/daylight.texi (daylight): Likewise.
31234         * doc/posix-functions/optarg.texi (optarg): Likewise.
31235         * doc/posix-functions/optarg.texi (opterr): Likewise.
31236         * doc/posix-functions/optarg.texi (optind): Likewise.
31237         * doc/posix-functions/optarg.texi (optopt): Likewise.
31238         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31239         worked in 1.5.x, and was withdrawn in 1.7.
31240         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31241         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31242         cygwin versions.
31243         * doc/posix-functions/perror.texi (perror): Likewise.
31244         * doc/posix-functions/printf.texi (printf): Likewise.
31245         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31246         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31247         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31248         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31249         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31250         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31251         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31252         Likewise.
31253         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31254         Likewise.
31255         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31256         this function.
31257         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31258         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31259         Likewise.
31260         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31261         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31262         * doc/posix-functions/confstr.texi (confstr): Likewise.
31263         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31264         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31265         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31266         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31267         * doc/posix-functions/fputws.texi (fputws): Likewise.
31268         * doc/posix-functions/fwide.texi (fwide): Likewise.
31269         * doc/posix-functions/getwc.texi (getwc): Likewise.
31270         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31271         * doc/posix-functions/putwc.texi (putwc): Likewise.
31272         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31273         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31274         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31275         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31276         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31277         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31278         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31279         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31280         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31281         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31282         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31283
31284 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31285
31286         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31287         * lib/ioctl.c: Include <sys/ioctl.h>.
31288
31289 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31290
31291         * modules/getdate-tests (Depends-on): Add progname.
31292         * tests/test-getdate.c: Use progname module, to avoid link errors
31293         on non-glibc systems.
31294
31295 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31296
31297         * modules/filenamecat-tests (Depends-on): Add progname.
31298         * modules/fstrcmp-tests (Depends-on): Likewise.
31299
31300         * tests/test-filenamecat.c: Use progname module, to avoid link
31301         errors on non-glibc systems.
31302         * tests/test-fstrcmp.c: Likewise.
31303
31304 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31305
31306         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31307         * lib/gettimeofday.c: Move extern declaration out of function.
31308
31309 2009-01-18  Bruno Haible  <bruno@clisp.org>
31310
31311         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31312         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31313         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31314
31315 2009-01-18  Bruno Haible  <bruno@clisp.org>
31316
31317         * lib/strftime.c (MEMPCPY): Remove unused macro.
31318         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31319
31320 2009-01-18  Martin Lambers  <marlam@marlam.de>
31321
31322         New module 'link'.
31323         * lib/unistd.in.h (link): New declaration.
31324         * lib/link.c: New file.
31325         * m4/link.m4: New file.
31326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31327         HAVE_LINK.
31328         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31329         * modules/link: New file.
31330         * doc/posix-functions/link.texi: Mention the new module.
31331
31332 2009-01-18  Bruno Haible  <bruno@clisp.org>
31333
31334         * tests/test-avltree_list.c (main): Call set_program_name.
31335         * tests/test-avltree_oset.c (main): Likewise.
31336         * tests/test-obstack-printf.c: Include progname.h.
31337         (main): Call set_program_name.
31338         * tests/test-quotearg.c: Include progname.h.
31339         (main): Call set_program_name.
31340         * tests/test-xmemdup0.c: Include progname.h.
31341         (main): Call set_program_name.
31342
31343 2009-01-18  Bruno Haible  <bruno@clisp.org>
31344
31345         New module 'alphasort'.
31346         * lib/dirent.in.h (alphasort): New declaration.
31347         * lib/alphasort.c: New file, from glibc with modifications.
31348         * m4/alphasort.m4: New file.
31349         * modules/alphasort: New file.
31350         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31351         HAVE_ALPHASORT.
31352         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31353         HAVE_ALPHASORT.
31354         * doc/posix-functions/alphasort.texi: Mention the new module and the
31355         portability problems.
31356
31357 2009-01-18  Bruno Haible  <bruno@clisp.org>
31358
31359         New module 'scandir'.
31360         * lib/dirent.in.h (scandir): New declaration.
31361         * lib/scandir.c: New file, from glibc with modifications.
31362         * m4/scandir.m4: New file.
31363         * modules/scandir: New file.
31364         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31365         HAVE_SCANDIR.
31366         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31367         HAVE_SCANDIR.
31368         * doc/posix-functions/scandir.texi: Mention the new module and the
31369         portability problems.
31370
31371 2009-01-17  Bruno Haible  <bruno@clisp.org>
31372
31373         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31374         Update documentation.
31375         (func_remove_suffix): Escape all dots in the suffix. Update
31376         documentation.
31377         (func_filter_filelist): Update documentation.
31378         Reported by Ralf Wildenhues.
31379
31380 2009-01-17  Bruno Haible  <bruno@clisp.org>
31381
31382         * modules/dprintf-posix-tests: New file.
31383         * tests/test-dprintf-posix.sh: New file.
31384         * tests/test-dprintf-posix.c: New file.
31385
31386         New modules 'dprintf', 'dprintf-posix'.
31387         * lib/stdio.in.h (dprintf): New declaration.
31388         * lib/dprintf.c: New file.
31389         * m4/dprintf.m4: New file.
31390         * m4/dprintf-posix.m4: New file.
31391         * modules/dprintf: New file.
31392         * modules/dprintf-posix: New file.
31393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31394         HAVE_DPRINTF, REPLACE_DPRINTF.
31395         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31396         HAVE_DPRINTF, REPLACE_DPRINTF.
31397         * doc/posix-functions/dprintf.texi: Mention the new modules.
31398
31399 2009-01-17  Bruno Haible  <bruno@clisp.org>
31400
31401         * modules/vdprintf-posix-tests: New file.
31402         * tests/test-vdprintf-posix.sh: New file.
31403         * tests/test-vdprintf-posix.c: New file.
31404
31405         New modules 'vdprintf', 'vdprintf-posix'.
31406         * lib/stdio.in.h (vdprintf): New declaration.
31407         * lib/vdprintf.c: New file.
31408         * m4/vdprintf.m4: New file.
31409         * m4/vdprintf-posix.m4: New file.
31410         * modules/vdprintf: New file.
31411         * modules/vdprintf-posix: New file.
31412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31413         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31414         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31415         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31416         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31417
31418 2009-01-17  Bruno Haible  <bruno@clisp.org>
31419
31420         Fix replacement of fopen on mingw.
31421         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31422         mingw.
31423
31424 2009-01-17  Bruno Haible  <bruno@clisp.org>
31425
31426         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31427         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31428
31429 2009-01-17  Bruno Haible  <bruno@clisp.org>
31430
31431         Avoid test-fflush2.sh failure on mingw.
31432         * tests/test-fflush2.c: Include binary-io.h.
31433         (main): Put standard input into binary mode.
31434         * modules/fflush-tests (Depends-on): Add binary-io.
31435
31436 2009-01-17  Bruno Haible  <bruno@clisp.org>
31437
31438         * lib/wchar.in.h: In another particular situation, include only the
31439         system's <wchar.h> file.
31440         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31441         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31442         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31443
31444 2009-01-17  Bruno Haible  <bruno@clisp.org>
31445
31446         Support for stripping executables in --enable-relocatable.
31447         * build-aux/install-reloc: Expect one more argument, or an environment
31448         variable RELOC_STRIP_PROG. If set, strip the destination program and
31449         its wrapper.
31450         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31451         RELOC_STRIP_PROG.
31452         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31453         to set RELOCATABLE_STRIP.
31454         * NEWS: Mention the new Makefile requirement.
31455
31456 2009-01-17  Bruno Haible  <bruno@clisp.org>
31457
31458         * build-aux/install-reloc: Remove debugging information left over by
31459         C compiler on MacOS X.
31460
31461 2009-01-17  Bruno Haible  <bruno@clisp.org>
31462
31463         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
31464         * lib/progreloc.c (find_executable): Fix type of pointer passed to
31465         _NSGetExecutablePath.
31466
31467 2009-01-16  Jim Meyering  <meyering@redhat.com>
31468
31469         strerror: avoid warnings about discarding "const"
31470         * lib/strerror.c (rpl_strerror): Instead of returning a const
31471         string from each and every "case", use a variable, and add a single
31472         cast after the switch.
31473
31474 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
31475
31476         * lib/arpa_inet.in.h: Add extern "C" block for C++.
31477
31478 2009-01-16  Bruno Haible  <bruno@clisp.org>
31479
31480         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
31481         array initializer syntax that also works in C++ mode.
31482         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31483
31484 2009-01-16  Jim Meyering  <meyering@redhat.com>
31485
31486         poll: suppress a warning
31487         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
31488         to ignore "...unsigned expression < 0 is always false" warnings.
31489
31490 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
31491
31492         poll: remove declarations of unused variables
31493         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
31494         sockbuf and optlen.
31495
31496 2009-01-15  Bruno Haible  <bruno@clisp.org>
31497
31498         Make fflush-after-ungetc POSIX compliant on BSD systems.
31499         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
31500         (clear_ungetc_buffer): Implement also for other systems.
31501         (rpl_fflush): On glibc systems, invoke
31502         clear_ungetc_buffer_preserving_position. Otherwise, invoke
31503         clear_ungetc_buffer after fetching the stream's position, not before.
31504
31505 2009-01-15  Bruno Haible  <bruno@clisp.org>
31506
31507         Make fflush-after-ungetc POSIX compliant on glibc systems.
31508         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
31509         after ungetc.
31510         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
31511         (rpl_fflush): On glibc systems, simply call the system's fflush
31512         function after clearing the ungetc buffer.
31513         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
31514         Instead, lseek only to the end of file, then use the system's fseeko
31515         for the rest. On glibc systems, reset the EOF indicator bit.
31516
31517 2009-01-15  Jim Meyering  <meyering@redhat.com>
31518
31519         openmp.m4: revert quote-adding change, for portability to older autoconf
31520         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
31521         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
31522         Simon Josefsson noticed the problem when using autoconf-2.61.
31523
31524 2009-01-15  Bruno Haible  <bruno@clisp.org>
31525
31526         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
31527         * tests/test-fflush2.c (ASSERT): Always fail.
31528         (main): Add two tests for fflush() after ungetc(), taking into account
31529         the Austin Group's clarification.
31530         Suggested by Eric Blake.
31531
31532 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
31533
31534         mktime.m4: remove K&R-style function prototypes
31535         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
31536         for the Sun C++ compiler.
31537
31538 2009-01-14  Bruno Haible  <bruno@clisp.org>
31539
31540         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
31541         while including <wchar.h>.
31542         * lib/wchar.in.h: In two particular situations on HP-UX, include only
31543         the system's <wchar.h> file.
31544         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31545
31546 2009-01-14  Bruno Haible  <bruno@clisp.org>
31547
31548         * m4/csharp.m4: Don't mention gettext on the serial number line.
31549         * m4/csharpexec.m4: Likewise.
31550         * m4/eaccess.m4: Likewise.
31551         * m4/javaexec.m4: Likewise.
31552         * m4/sig_atomic_t.m4: Likewise.
31553         * m4/tmpdir.m4: Likewise.
31554         * m4/intldir.m4: Bump gettext version.
31555         * m4/lib-ld.m4: Likewise.
31556
31557 2009-01-14  Bruno Haible  <bruno@clisp.org>
31558
31559         * lib/progname.c (set_program_name): Add more comments.
31560         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31561
31562 2009-01-14  Simon Josefsson  <simon@josefsson.org>
31563
31564         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
31565         were sys/stat.h does not define it.
31566
31567 2009-01-14  Jim Meyering  <meyering@redhat.com>
31568
31569         many *.m4 files: improve m4 quoting
31570         99% of this change was performed by running the following commands:
31571         git ls-files | grep '\.m4$' | xargs perl -pi \
31572           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
31573           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31574           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31575           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
31576         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
31577         The remainder were to add Copyright dates, increment serial numbers,
31578         undo some changes in comments, exclude m4/intl.m4, and add quotes
31579         around the "1" in ",1" where the unusual spacing prohibited the
31580         above regexps from doing the job.  For more details, see
31581         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
31582         * m4/acl.m4: Modified.
31583         * m4/afs.m4: Likewise.
31584         * m4/alloca.m4: Likewise.
31585         * m4/argp.m4: Likewise.
31586         * m4/argz.m4: Likewise.
31587         * m4/atexit.m4: Likewise.
31588         * m4/bison-i18n.m4: Likewise.
31589         * m4/bison.m4: Likewise.
31590         * m4/byteswap.m4: Likewise.
31591         * m4/c-stack.m4: Likewise.
31592         * m4/c-strtod.m4: Likewise.
31593         * m4/calloc.m4: Likewise.
31594         * m4/canonicalize-lgpl.m4: Likewise.
31595         * m4/chown.m4: Likewise.
31596         * m4/clock_time.m4: Likewise.
31597         * m4/codeset.m4: Likewise.
31598         * m4/copy-file.m4: Likewise.
31599         * m4/csharp.m4: Likewise.
31600         * m4/csharpcomp.m4: Likewise.
31601         * m4/csharpexec.m4: Likewise.
31602         * m4/d-ino.m4: Likewise.
31603         * m4/d-type.m4: Likewise.
31604         * m4/dirfd.m4: Likewise.
31605         * m4/double-slash-root.m4: Likewise.
31606         * m4/eaccess.m4: Likewise.
31607         * m4/eealloc.m4: Likewise.
31608         * m4/environ.m4: Likewise.
31609         * m4/errno_h.m4: Likewise.
31610         * m4/euidaccess.m4: Likewise.
31611         * m4/execute.m4: Likewise.
31612         * m4/fatal-signal.m4: Likewise.
31613         * m4/fchdir.m4: Likewise.
31614         * m4/fcntl_h.m4: Likewise.
31615         * m4/fileblocks.m4: Likewise.
31616         * m4/filenamecat.m4: Likewise.
31617         * m4/findprog.m4: Likewise.
31618         * m4/flexmember.m4: Likewise.
31619         * m4/fnmatch.m4: Likewise.
31620         * m4/fopen.m4: Likewise.
31621         * m4/fpending.m4: Likewise.
31622         * m4/fprintf-posix.m4: Likewise.
31623         * m4/free.m4: Likewise.
31624         * m4/frexp.m4: Likewise.
31625         * m4/frexpl.m4: Likewise.
31626         * m4/fsusage.m4: Likewise.
31627         * m4/ftruncate.m4: Likewise.
31628         * m4/gc-camellia.m4: Likewise.
31629         * m4/gc-random.m4: Likewise.
31630         * m4/gc.m4: Likewise.
31631         * m4/getaddrinfo.m4: Likewise.
31632         * m4/getcwd-abort-bug.m4: Likewise.
31633         * m4/getcwd-path-max.m4: Likewise.
31634         * m4/getdate.m4: Likewise.
31635         * m4/getdomainname.m4: Likewise.
31636         * m4/getgroups.m4: Likewise.
31637         * m4/gethostname.m4: Likewise.
31638         * m4/gethrxtime.m4: Likewise.
31639         * m4/getline.m4: Likewise.
31640         * m4/getloadavg.m4: Likewise.
31641         * m4/getndelim2.m4: Likewise.
31642         * m4/getpass.m4: Likewise.
31643         * m4/gettext.m4: Likewise.
31644         * m4/gettime.m4: Likewise.
31645         * m4/gettimeofday.m4: Likewise.
31646         * m4/gnulib-common.m4: Likewise.
31647         * m4/group-member.m4: Likewise.
31648         * m4/host-os.m4: Likewise.
31649         * m4/iconv.m4: Likewise.
31650         * m4/iconv_open.m4: Likewise.
31651         * m4/inet_ntop.m4: Likewise.
31652         * m4/inet_pton.m4: Likewise.
31653         * m4/inline.m4: Likewise.
31654         * m4/intldir.m4: Likewise.
31655         * m4/intlmacosx.m4: Likewise.
31656         * m4/intmax.m4: Likewise.
31657         * m4/intmax_t.m4: Likewise.
31658         * m4/inttypes.m4: Likewise.
31659         * m4/inttypes_h.m4: Likewise.
31660         * m4/inttypes-pri.m4: Likewise.
31661         * m4/isapipe.m4: Likewise.
31662         * m4/isnand.m4: Likewise.
31663         * m4/isnanf.m4: Likewise.
31664         * m4/isnanl.m4: Likewise.
31665         * m4/javacomp.m4: Likewise.
31666         * m4/javaexec.m4: Likewise.
31667         * m4/jm-winsz1.m4: Likewise.
31668         * m4/jm-winsz2.m4: Likewise.
31669         * m4/lchown.m4: Likewise.
31670         * m4/lcmessage.m4: Likewise.
31671         * m4/ldexpl.m4: Likewise.
31672         * m4/lib-ld.m4: Likewise.
31673         * m4/lib-link.m4: Likewise.
31674         * m4/libsigsegv.m4: Likewise.
31675         * m4/link-follow.m4: Likewise.
31676         * m4/localcharset.m4: Likewise.
31677         * m4/locale-fr.m4: Likewise.
31678         * m4/locale-ja.m4: Likewise.
31679         * m4/locale-tr.m4: Likewise.
31680         * m4/locale-zh.m4: Likewise.
31681         * m4/lock.m4: Likewise.
31682         * m4/longlong.m4: Likewise.
31683         * m4/ls-mntd-fs.m4: Likewise.
31684         * m4/lstat.m4: Likewise.
31685         * m4/malloc.m4: Likewise.
31686         * m4/mathl.m4: Likewise.
31687         * m4/mbrtowc.m4: Likewise.
31688         * m4/mbstate_t.m4: Likewise.
31689         * m4/mbswidth.m4: Likewise.
31690         * m4/memchr.m4: Likewise.
31691         * m4/memcmp.m4: Likewise.
31692         * m4/memcpy.m4: Likewise.
31693         * m4/memmem.m4: Likewise.
31694         * m4/memmove.m4: Likewise.
31695         * m4/mempcpy.m4: Likewise.
31696         * m4/memrchr.m4: Likewise.
31697         * m4/memset.m4: Likewise.
31698         * m4/minmax.m4: Likewise.
31699         * m4/mkdir-slash.m4: Likewise.
31700         * m4/mkdtemp.m4: Likewise.
31701         * m4/mktime.m4: Likewise.
31702         * m4/mmap-anon.m4: Likewise.
31703         * m4/mountlist.m4: Likewise.
31704         * m4/nanosleep.m4: Likewise.
31705         * m4/nls.m4: Likewise.
31706         * m4/nocrash.m4: Likewise.
31707         * m4/open.m4: Likewise.
31708         * m4/openat.m4: Likewise.
31709         * m4/openmp.m4: Likewise.
31710         * m4/pathmax.m4: Likewise.
31711         * m4/perl.m4: Likewise.
31712         * m4/physmem.m4: Likewise.
31713         * m4/pipe.m4: Likewise.
31714         * m4/po.m4: Likewise.
31715         * m4/poll.m4: Likewise.
31716         * m4/posixtm.m4: Likewise.
31717         * m4/posixver.m4: Likewise.
31718         * m4/printf-frexp.m4: Likewise.
31719         * m4/printf-frexpl.m4: Likewise.
31720         * m4/printf-posix.m4: Likewise.
31721         * m4/printf-posix-rpl.m4: Likewise.
31722         * m4/printf.m4: Likewise.
31723         * m4/progtest.m4: Likewise.
31724         * m4/putenv.m4: Likewise.
31725         * m4/readline.m4: Likewise.
31726         * m4/readlink.m4: Likewise.
31727         * m4/readutmp.m4: Likewise.
31728         * m4/realloc.m4: Likewise.
31729         * m4/regex.m4: Likewise.
31730         * m4/relocatable.m4: Likewise.
31731         * m4/relocatable-lib.m4: Likewise.
31732         * m4/rename-dest-slash.m4: Likewise.
31733         * m4/rename.m4: Likewise.
31734         * m4/rmdir-errno.m4: Likewise.
31735         * m4/rmdir.m4: Likewise.
31736         * m4/roundf.m4: Likewise.
31737         * m4/roundl.m4: Likewise.
31738         * m4/rpmatch.m4: Likewise.
31739         * m4/save-cwd.m4: Likewise.
31740         * m4/selinux-selinux-h.m4: Likewise.
31741         * m4/setenv.m4: Likewise.
31742         * m4/settime.m4: Likewise.
31743         * m4/sig2str.m4: Likewise.
31744         * m4/sig_atomic_t.m4: Likewise.
31745         * m4/signalblocking.m4: Likewise.
31746         * m4/signbit.m4: Likewise.
31747         * m4/sigpipe.m4: Likewise.
31748         * m4/sockets.m4: Likewise.
31749         * m4/sockpfaf.m4: Likewise.
31750         * m4/st_dm_mode.m4: Likewise.
31751         * m4/stat-time.m4: Likewise.
31752         * m4/stdbool.m4: Likewise.
31753         * m4/stdint.m4: Likewise.
31754         * m4/stdint_h.m4: Likewise.
31755         * m4/stpcpy.m4: Likewise.
31756         * m4/stpncpy.m4: Likewise.
31757         * m4/strcase.m4: Likewise.
31758         * m4/strchrnul.m4: Likewise.
31759         * m4/strcspn.m4: Likewise.
31760         * m4/strdup.m4: Likewise.
31761         * m4/strftime.m4: Likewise.
31762         * m4/strndup.m4: Likewise.
31763         * m4/strnlen.m4: Likewise.
31764         * m4/strpbrk.m4: Likewise.
31765         * m4/strptime.m4: Likewise.
31766         * m4/strsep.m4: Likewise.
31767         * m4/strtod.m4: Likewise.
31768         * m4/strtoimax.m4: Likewise.
31769         * m4/strtok_r.m4: Likewise.
31770         * m4/strtol.m4: Likewise.
31771         * m4/strtoll.m4: Likewise.
31772         * m4/strtoul.m4: Likewise.
31773         * m4/strtoull.m4: Likewise.
31774         * m4/strtoumax.m4: Likewise.
31775         * m4/strverscmp.m4: Likewise.
31776         * m4/threadlib.m4: Likewise.
31777         * m4/timegm.m4: Likewise.
31778         * m4/tm_gmtoff.m4: Likewise.
31779         * m4/tmpdir.m4: Likewise.
31780         * m4/tmpfile.m4: Likewise.
31781         * m4/tzset.m4: Likewise.
31782         * m4/uintmax_t.m4: Likewise.
31783         * m4/unlinkdir.m4: Likewise.
31784         * m4/unlocked-io.m4: Likewise.
31785         * m4/uptime.m4: Likewise.
31786         * m4/userspec.m4: Likewise.
31787         * m4/utimbuf.m4: Likewise.
31788         * m4/utime.m4: Likewise.
31789         * m4/utimes-null.m4: Likewise.
31790         * m4/utimes.m4: Likewise.
31791         * m4/vararrays.m4: Likewise.
31792         * m4/vasnprintf.m4: Likewise.
31793         * m4/vfprintf-posix.m4: Likewise.
31794         * m4/vprintf-posix.m4: Likewise.
31795         * m4/wait-process.m4: Likewise.
31796         * m4/wchar_t.m4: Likewise.
31797         * m4/wint_t.m4: Likewise.
31798         * m4/write-any-file.m4: Likewise.
31799         * m4/yield.m4: Likewise.
31800
31801 2009-01-13  Bruno Haible  <bruno@clisp.org>
31802
31803         Avoid test-copy-file.sh failures when ACL support insufficient.
31804         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31805         TESTS_ENVIRONMENT.
31806         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31807         Reported by Jim Meyering.
31808
31809 2009-01-13  Bruno Haible  <bruno@clisp.org>
31810
31811         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31812         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31813         * modules/unistdio/u8-printf-parse (Files): Likewise.
31814         * modules/unistdio/u32-printf-parse (Files): Likewise.
31815         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31816
31817 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31818
31819         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31820         and m4/inttypes_h.m4 too.
31821
31822 2009-01-12  Eric Blake  <ebb9@byu.net>
31823
31824         tests: IRIX 6.2 cc can't compile -0.0 into .data
31825         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31826         rather than at compile-time.
31827         * tests/test-floorl.c (minus_zero): Likewise.
31828         * tests/test-frexpl.c (minus_zero): Likewise.
31829         * tests/test-isnan.c (minus_zerol): Likewise.
31830         * tests/test-isnanl.h (minus_zero): Likewise.
31831         * tests/test-ldexpl.c (minus_zero): Likewise.
31832         * tests/test-roundl.c (minus_zero): Likewise.
31833         * tests/test-signbit.c (minus_zerol): Likewise.
31834         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31835         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31836         * tests/test-truncl.c (minus_zero): Likewise.
31837         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31838         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31839         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31840
31841 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31842
31843         regex: fix glibc bug 9697
31844         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31845         handling.
31846
31847 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31848
31849         regex: fix glibc bug 697
31850         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31851         being NULL also if there are no backreferences.
31852
31853 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31854
31855         regex: merge glibc changes
31856         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31857         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31858         re_string_skip_chars, re_string_reconstruct): Likewise.
31859         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31860
31861 2009-01-07  Jim Meyering  <meyering@redhat.com>
31862
31863         poll: filter through cppi
31864         * lib/poll.c: Indent cpp directives to reflect nesting.
31865
31866 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31867
31868         poll: don't return uninitialized
31869         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31870
31871 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31872
31873         avoid compile failure on AIX 6.1
31874         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31875         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31876
31877 2009-01-04  Jim Meyering  <meyering@redhat.com>
31878
31879         remove duplicate inclusion of <stdio.h>
31880         * tests/test-fprintf-posix.c: Likewise.
31881         * tests/test-printf-posix.c: Likewise.
31882         * tests/test-snprintf-posix.c: Likewise.
31883         * tests/test-sprintf-posix.c: Likewise.
31884         * tests/test-vasprintf-posix.c: Likewise.
31885         * tests/test-vfprintf-posix.c: Likewise.
31886         * tests/test-vprintf-posix.c: Likewise.
31887         * tests/test-vsnprintf-posix.c: Likewise.
31888         * tests/test-vsprintf-posix.c: Likewise.
31889
31890 2009-01-03  Jim Meyering  <meyering@redhat.com>
31891
31892         gnulib-tool: fix sed-based filtering
31893         * gnulib-tool (func_filter_filelist): Remove extra backslash
31894         in sed_fff_filter definition.
31895
31896 2009-01-02  Jim Meyering  <meyering@redhat.com>
31897
31898         strftime: avoid compilation failure on Solaris 2.6
31899         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31900         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31901         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31902         be available.  Reported by Tom G. Christensen.  Details in
31903         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31904
31905 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31906             Bruno Haible  <bruno@clisp.org>
31907
31908         Speed up gnulib-tool by doing more string processing through shell
31909         built-ins.
31910         * gnulib-tool (fast_func_append): New variable.
31911         (func_remove_prefix, func_remove_suffix): New functions.
31912         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31913         (func_filter_filelist): New function.
31914         (func_get_dependencies): Use func_remove_suffix instead of sed.
31915         (func_get_automake_snippet): Use func_filter_filelist instead of a
31916         subshell and sed invocation.
31917
31918 2009-01-01  Bruno Haible  <bruno@clisp.org>
31919
31920         Fix a security bug.
31921         * gnulib-tool (func_import, import, update): Don't allow the characters
31922         '"', '$', '`', '\' in macro arguments that become part of commands that
31923         are evaluated.
31924
31925 2009-01-01  Bruno Haible  <bruno@clisp.org>
31926
31927         * gnulib-tool (func_reset_sigpipe): Add more comments.
31928
31929 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31930
31931         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31932         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31933         already know the answer.
31934
31935 2009-01-01  Jim Meyering  <meyering@redhat.com>
31936
31937         * lib/version-etc.c (version_etc_va): Update copyright year.
31938
31939 2008-12-30  Bruno Haible  <bruno@clisp.org>
31940
31941         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31942         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31943         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31944
31945 2008-12-29  Eric Blake  <ebb9@byu.net>
31946
31947         multiarch: avoid autoconf AC_REQUIRE bug
31948         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31949         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31950         2.63 and older.
31951         Reported by Bruno Haible, and analyzed in
31952         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31953
31954 2008-12-29  Bruno Haible  <bruno@clisp.org>
31955
31956         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31957         files in subdirectories correctly.
31958         Reported by Ralf Wildenhues.
31959
31960 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31961
31962         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31963         rather than 'join FILE -', for Solaris join.
31964
31965 2008-12-29  Bruno Haible  <bruno@clisp.org>
31966
31967         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31968         quoting.
31969         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31970         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31971         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31972         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31973         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31974         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31975         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31976         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31977         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31978         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31979         * m4/nls.m4 (AM_NLS): Likewise.
31980         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31981         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31982         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31983         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31984         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31985         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31986         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31987         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31988         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31989         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31990         * m4/xsize.m4 (gl_XSIZE): Likewise.
31991         Suggested by Jim Meyering.
31992
31993 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31994
31995         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31996         * lib/parse-duration.c: use a switch instead of cascading if's.
31997
31998 2008-12-29  Eric Blake  <ebb9@byu.net>
31999
32000         wchar.h: supply WEOF on Irix 5.3
32001         * lib/wchar.in.h (wint_t): Also supply WEOF.
32002         * lib/wctype.in.h (wint_t): Likewise.
32003         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32004         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32005         Reported by Tom G. Christensen.
32006
32007 2008-12-26  Bruno Haible  <bruno@clisp.org>
32008
32009         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32010         i486, i586, i686.
32011
32012 2008-12-26  Bruno Haible  <bruno@clisp.org>
32013
32014         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32015
32016 2008-12-26  Bruno Haible  <bruno@clisp.org>
32017
32018         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32019         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32020         not __STDC_CONSTANT_MACROS.
32021         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32022
32023 2008-12-25  Bruno Haible  <bruno@clisp.org>
32024
32025         Add support for universal builds to vasnprintf.
32026         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32027         universal builds, guess no.
32028         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32029         * modules/vasprintf-posix (Depends-on): Likewise.
32030         * modules/fprintf-posix (Depends-on): Likewise.
32031         * modules/vfprintf-posix (Depends-on): Likewise.
32032         * modules/snprintf-posix (Depends-on): Likewise.
32033         * modules/vsnprintf-posix (Depends-on): Likewise.
32034         * modules/sprintf-posix (Depends-on): Likewise.
32035         * modules/vsprintf-posix (Depends-on): Likewise.
32036         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32037         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32038         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32039         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32040         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32041         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32042         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32043
32044         Add support for universal builds to <inttypes.h>.
32045         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32046         _SCNu64_PREFIX): In Apple
32047         universal builds, define directly, using _LP64.
32048         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32049         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32050         * modules/inttypes (Depends-on): Add multiarch.
32051         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32052
32053         Add support for universal builds to <stdint.h>.
32054         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32055         universal builds, define directly, using _LP64.
32056         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32057         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32058         and size_t.
32059         * modules/stdint (Depends-on): Add multiarch.
32060         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32061
32062         New module 'multiarch'.
32063         * modules/multiarch: New file.
32064         * m4/multiarch.m4: New file.
32065
32066 2008-12-25  Bruno Haible  <bruno@clisp.org>
32067
32068         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32069
32070 2008-12-25  Bruno Haible  <bruno@clisp.org>
32071
32072         * modules/btowc (License): Relicense under LGPLv2+.
32073         * modules/mbsinit (License): Likewise.
32074         * modules/mbrtowc (License): Likewise.
32075         * modules/wcrtomb (License): Likewise.
32076         * modules/streq (License): Likewise.
32077         Reported by David Lutterkort <lutter@redhat.com>.
32078
32079 2008-12-23  Bruno Haible  <bruno@clisp.org>
32080
32081         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32082
32083 2008-12-23  Bruno Haible  <bruno@clisp.org>
32084
32085         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32086         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32087         GETADDRINFO_LIB, not in LIBS.
32088         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32089         * modules/canon-host (Link): Likewise.
32090         * NEWS: Mention the change.
32091         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32092         GETADDRINFO_LIB.
32093
32094 2008-12-22  Bruno Haible  <bruno@clisp.org>
32095
32096         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32097         * doc/posix-functions/iswalpha_l.texi: Likewise.
32098         * doc/posix-functions/iswblank_l.texi: Likewise.
32099         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32100         * doc/posix-functions/iswctype_l.texi: Likewise.
32101         * doc/posix-functions/iswdigit_l.texi: Likewise.
32102         * doc/posix-functions/iswgraph_l.texi: Likewise.
32103         * doc/posix-functions/iswlower_l.texi: Likewise.
32104         * doc/posix-functions/iswprint_l.texi: Likewise.
32105         * doc/posix-functions/iswpunct_l.texi: Likewise.
32106         * doc/posix-functions/iswspace_l.texi: Likewise.
32107         * doc/posix-functions/iswupper_l.texi: Likewise.
32108         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32109         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32110         * doc/posix-functions/open_wmemstream.texi: Likewise.
32111         * doc/posix-functions/swscanf.texi: Likewise.
32112         * doc/posix-functions/towctrans_l.texi: Likewise.
32113         * doc/posix-functions/towlower.texi: Likewise.
32114         * doc/posix-functions/towlower_l.texi: Likewise.
32115         * doc/posix-functions/towupper.texi: Likewise.
32116         * doc/posix-functions/towupper_l.texi: Likewise.
32117         * doc/posix-functions/vfwprintf.texi: Likewise.
32118         * doc/posix-functions/vfwscanf.texi: Likewise.
32119         * doc/posix-functions/vswscanf.texi: Likewise.
32120         * doc/posix-functions/vwprintf.texi: Likewise.
32121         * doc/posix-functions/vwscanf.texi: Likewise.
32122         * doc/posix-functions/wcpcpy.texi: Likewise.
32123         * doc/posix-functions/wcpncpy.texi: Likewise.
32124         * doc/posix-functions/wcscasecmp.texi: Likewise.
32125         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32126         * doc/posix-functions/wcscoll_l.texi: Likewise.
32127         * doc/posix-functions/wcsdup.texi: Likewise.
32128         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32129         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32130         * doc/posix-functions/wcsnlen.texi: Likewise.
32131         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32132         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32133         * doc/posix-functions/wctrans_l.texi: Likewise.
32134         * doc/posix-functions/wctype_l.texi: Likewise.
32135         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32136         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32137         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32138         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32139         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32140         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32141         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32142         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32143         * doc/glibc-functions/wcschrnul.texi: Likewise.
32144         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32145         * doc/glibc-functions/wcstod_l.texi: Likewise.
32146         * doc/glibc-functions/wcstof_l.texi: Likewise.
32147         * doc/glibc-functions/wcstol_l.texi: Likewise.
32148         * doc/glibc-functions/wcstold_l.texi: Likewise.
32149         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32150         * doc/glibc-functions/wcstoq.texi: Likewise.
32151         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32152         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32153         * doc/glibc-functions/wcstouq.texi: Likewise.
32154         * doc/glibc-functions/wmempcpy.texi: Likewise.
32155
32156 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32157             Eric Blake  <ebb9@byu.net>
32158             Paolo Bonzini  <bonzini@gnu.org>
32159             Bruno Haible  <bruno@clisp.org>
32160
32161         Make c-stack work on Haiku.
32162         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32163         (c_stack_action): Use SA_ONSTACK flag.
32164
32165 2008-12-22  Bruno Haible  <bruno@clisp.org>
32166
32167         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32168
32169 2008-12-22  Bruno Haible  <bruno@clisp.org>
32170
32171         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32172         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32173         being overridden.
32174         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32175         New macros.
32176         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32178         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32179         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32180
32181 2008-12-22  Bruno Haible  <bruno@clisp.org>
32182
32183         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32184         from test code.
32185
32186 2008-12-22  Eric Blake  <ebb9@byu.net>
32187
32188         Avoid gcc warnings on cygwin.
32189         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32190         Avoid unused variable.
32191         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32192         Likewise.
32193
32194 2008-12-22  Bruno Haible  <bruno@clisp.org>
32195
32196         Remove HAVE_MBRTOWC conditionals.
32197         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32198         (mbscasecmp): Assume mbrtowc function.
32199         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32200         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32201         * lib/mbschr.c: Include mbuiter.h unconditionally.
32202         (mbschr): Assume mbrtowc function.
32203         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32204         (mbscspn): Assume mbrtowc function.
32205         * lib/mbslen.c: Include mbuiter.h unconditionally.
32206         (mbslen): Assume mbrtowc function.
32207         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32208         (mbsncasecmp): Assume mbrtowc function.
32209         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32210         (mbsnlen): Assume mbrtowc function.
32211         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32212         (mbspbrk): Assume mbrtowc function.
32213         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32214         (mbspcasecmp): Assume mbrtowc function.
32215         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32216         (mbsrchr): Assume mbrtowc function.
32217         * lib/mbssep.c: Include mbuiter.h unconditionally.
32218         (mbssep): Assume mbrtowc function.
32219         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32220         (mbsspn): Assume mbrtowc function.
32221         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32222         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32223         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32224         (mbstok_r): Assume mbrtowc function.
32225         * lib/propername.c: Include mbuiter.h unconditionally.
32226         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32227         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32228         (trim2): Assume mbrtowc function.
32229         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32230         (mbsnwidth): Assume mbrtowc function.
32231         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32232         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32233         fallback definitions.
32234         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32235
32236 2008-12-22  Bruno Haible  <bruno@clisp.org>
32237
32238         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32239
32240 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32241
32242         * modules/regex: Request emulations for the mb*/wc* functions we need.
32243         * m4/regex.m4: Don't look for those functions here.
32244         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32245
32246 2008-12-22  Bruno Haible  <bruno@clisp.org>
32247
32248         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32249
32250 2008-12-21  Bruno Haible  <bruno@clisp.org>
32251
32252         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32253         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32254         (Include): Remove conditionalization.
32255         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32256         (Include): Remove conditionalization.
32257         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32258         (Include): Remove conditionalization.
32259         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32260         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32261         * NEWS: Mention the change.
32262         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32263         via Sergey Poznyakoff <gray@gnu.org.ua>.
32264
32265 2008-12-21  Bruno Haible  <bruno@clisp.org>
32266
32267         * MODULES.html.sh (Extended multibyte and wide character utilities
32268         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32269         wcrtomb, wcsrtombs.
32270         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32271         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32272         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32273         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32274
32275 2008-12-21  Bruno Haible  <bruno@clisp.org>
32276
32277         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32278
32279 2008-12-21  Bruno Haible  <bruno@clisp.org>
32280
32281         * modules/wcsnrtombs-tests: New file.
32282         * tests/test-wcsnrtombs1.sh: New file.
32283         * tests/test-wcsnrtombs2.sh: New file.
32284         * tests/test-wcsnrtombs3.sh: New file.
32285         * tests/test-wcsnrtombs4.sh: New file.
32286         * tests/test-wcsnrtombs.c: New file.
32287
32288         New module 'wcsnrtombs'.
32289         * lib/wchar.in.h (wcsnrtombs): New declaration.
32290         * lib/wcsnrtombs.c: New file.
32291         * lib/wcsrtombs-state.c: New file.
32292         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32293         (internal_state): Remove variable.
32294         * m4/wcsnrtombs.m4: New file.
32295         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32296         compilation units.
32297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32298         HAVE_WCSNRTOMBS.
32299         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32300         HAVE_WCSNRTOMBS.
32301         * modules/wcsnrtombs: New file.
32302         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32303         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32304
32305 2008-12-21  Bruno Haible  <bruno@clisp.org>
32306
32307         * modules/wcsrtombs-tests: New file.
32308         * tests/test-wcsrtombs1.sh: New file.
32309         * tests/test-wcsrtombs2.sh: New file.
32310         * tests/test-wcsrtombs3.sh: New file.
32311         * tests/test-wcsrtombs4.sh: New file.
32312         * tests/test-wcsrtombs.c: New file.
32313
32314         New module 'wcsrtombs'.
32315         * lib/wchar.in.h (wcsrtombs): New declaration.
32316         * lib/wcsrtombs.c: New file.
32317         * m4/wcsrtombs.m4: New file.
32318         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32319         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32321         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32322         * modules/wcsrtombs: New file.
32323         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32324         bugs.
32325
32326 2008-12-21  Bruno Haible  <bruno@clisp.org>
32327
32328         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32329         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32330         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32331         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32332         if not correct.
32333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32334         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32335         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32336         m4/locale-zh.m4, m4/codeset.m4.
32337         * doc/posix-functions/wcrtomb.texi: Document the bug.
32338
32339 2008-12-21  Bruno Haible  <bruno@clisp.org>
32340
32341         Work around a btowc() bug on IRIX 6.5.
32342         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32343         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32344         REPLACE_WTOBC if not.
32345         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32346         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32347         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32348
32349 2008-12-21  Bruno Haible  <bruno@clisp.org>
32350
32351         * modules/wcrtomb-tests: New file.
32352         * tests/test-wcrtomb.sh: New file.
32353         * tests/test-wcrtomb.c: New file.
32354
32355         New module 'wcrtomb'.
32356         * lib/wchar.in.h (wcrtomb): New declaration.
32357         * lib/wcrtomb.c: New file.
32358         * m4/wcrtomb.m4: New file.
32359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32360         HAVE_WCRTOMB.
32361         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32362         HAVE_WCRTOMB.
32363         * modules/wcrtomb: New file.
32364         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32365
32366 2008-12-21  Bruno Haible  <bruno@clisp.org>
32367
32368         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32369         * modules/mbsrtowcs (Files): Likewise.
32370         * modules/wctob (Files): Likewise.
32371         * modules/c-strcase-tests (Files): Likewise.
32372         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32373         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32374         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32375         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32376         * modules/vasnprintf-posix-tests (Files): Likewise.
32377
32378 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32379
32380         gitlog-to-changelog: pass all command-line arguments to git-log
32381         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32382         it is sometimes convenient to filter the commits in various ways.
32383         gitlog-to-changelog only allows --since to specify a start date,
32384         but git-log itself supports many other filtering mechanisms.
32385         At the moment, I want to filter by branch name.  Rather than
32386         adding a --branch option to gitlog-to-changelog, it seems more
32387         flexible to simply pass all options directly to git-log and let
32388         git do the work.  Notice that this effectively makes --since a
32389         redundant option for gitlog-to-changelog, but removing it would
32390         require current usage to change since calls would then require
32391         an additional '--'.
32392
32393 2008-12-21  Bruno Haible  <bruno@clisp.org>
32394
32395         * modules/mbsnrtowcs-tests: New file.
32396         * tests/test-mbsnrtowcs1.sh: New file.
32397         * tests/test-mbsnrtowcs2.sh: New file.
32398         * tests/test-mbsnrtowcs3.sh: New file.
32399         * tests/test-mbsnrtowcs4.sh: New file.
32400         * tests/test-mbsnrtowcs.c: New file.
32401
32402         New module 'mbsnrtowcs'.
32403         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32404         * lib/mbsnrtowcs.c: New file.
32405         * lib/mbsrtowcs-state.c: New file.
32406         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32407         (internal_state): Remove variable.
32408         * m4/mbsnrtowcs.m4: New file.
32409         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32410         compilation units.
32411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32412         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32413         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32414         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32415         * modules/mbsnrtowcs: New file.
32416         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32417         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32418         portability problem.
32419
32420 2008-12-21  Bruno Haible  <bruno@clisp.org>
32421
32422         Work around mbsrtowcs bug.
32423         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32424         (gl_FUNC_MBSRTOWCS): Invoke it.
32425         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32426         m4/locale-zh.m4.
32427         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32428
32429 2008-12-21  Bruno Haible  <bruno@clisp.org>
32430
32431         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32432
32433 2008-12-21  Bruno Haible  <bruno@clisp.org>
32434
32435         Update doc for AIX.
32436         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32437         16-bit wchar_t type.
32438         * doc/posix-functions/btowc.texi: Likewise.
32439         * doc/posix-functions/fgetwc.texi: Likewise.
32440         * doc/posix-functions/fgetws.texi: Likewise.
32441         * doc/posix-functions/fputwc.texi: Likewise.
32442         * doc/posix-functions/fputws.texi: Likewise.
32443         * doc/posix-functions/fwide.texi: Likewise.
32444         * doc/posix-functions/fwprintf.texi: Likewise.
32445         * doc/posix-functions/fwscanf.texi: Likewise.
32446         * doc/posix-functions/getwchar.texi: Likewise.
32447         * doc/posix-functions/getwc.texi: Likewise.
32448         * doc/posix-functions/iswalnum.texi: Likewise.
32449         * doc/posix-functions/iswalpha.texi: Likewise.
32450         * doc/posix-functions/iswblank.texi: Likewise.
32451         * doc/posix-functions/iswcntrl.texi: Likewise.
32452         * doc/posix-functions/iswctype.texi: Likewise.
32453         * doc/posix-functions/iswdigit.texi: Likewise.
32454         * doc/posix-functions/iswgraph.texi: Likewise.
32455         * doc/posix-functions/iswlower.texi: Likewise.
32456         * doc/posix-functions/iswprint.texi: Likewise.
32457         * doc/posix-functions/iswpunct.texi: Likewise.
32458         * doc/posix-functions/iswspace.texi: Likewise.
32459         * doc/posix-functions/iswupper.texi: Likewise.
32460         * doc/posix-functions/iswxdigit.texi: Likewise.
32461         * doc/posix-functions/mbrtowc.texi: Likewise.
32462         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32463         * doc/posix-functions/mbstowcs.texi: Likewise.
32464         * doc/posix-functions/mbtowc.texi: Likewise.
32465         * doc/posix-functions/putwchar.texi: Likewise.
32466         * doc/posix-functions/putwc.texi: Likewise.
32467         * doc/posix-functions/swprintf.texi: Likewise.
32468         * doc/posix-functions/tolower.texi: Likewise.
32469         * doc/posix-functions/toupper.texi: Likewise.
32470         * doc/posix-functions/towctrans.texi: Likewise.
32471         * doc/posix-functions/ungetwc.texi: Likewise.
32472         * doc/posix-functions/vswprintf.texi: Likewise.
32473         * doc/posix-functions/wcrtomb.texi: Likewise.
32474         * doc/posix-functions/wcscat.texi: Likewise.
32475         * doc/posix-functions/wcschr.texi: Likewise.
32476         * doc/posix-functions/wcscmp.texi: Likewise.
32477         * doc/posix-functions/wcscoll.texi: Likewise.
32478         * doc/posix-functions/wcscpy.texi: Likewise.
32479         * doc/posix-functions/wcscspn.texi: Likewise.
32480         * doc/posix-functions/wcsftime.texi: Likewise.
32481         * doc/posix-functions/wcslen.texi: Likewise.
32482         * doc/posix-functions/wcsncat.texi: Likewise.
32483         * doc/posix-functions/wcsncmp.texi: Likewise.
32484         * doc/posix-functions/wcsncpy.texi: Likewise.
32485         * doc/posix-functions/wcspbrk.texi: Likewise.
32486         * doc/posix-functions/wcsrchr.texi: Likewise.
32487         * doc/posix-functions/wcsrtombs.texi: Likewise.
32488         * doc/posix-functions/wcsspn.texi: Likewise.
32489         * doc/posix-functions/wcsstr.texi: Likewise.
32490         * doc/posix-functions/wcstod.texi: Likewise.
32491         * doc/posix-functions/wcstof.texi: Likewise.
32492         * doc/posix-functions/wcstoimax.texi: Likewise.
32493         * doc/posix-functions/wcstok.texi: Likewise.
32494         * doc/posix-functions/wcstold.texi: Likewise.
32495         * doc/posix-functions/wcstoll.texi: Likewise.
32496         * doc/posix-functions/wcstol.texi: Likewise.
32497         * doc/posix-functions/wcstombs.texi: Likewise.
32498         * doc/posix-functions/wcstoull.texi: Likewise.
32499         * doc/posix-functions/wcstoul.texi: Likewise.
32500         * doc/posix-functions/wcstoumax.texi: Likewise.
32501         * doc/posix-functions/wcswidth.texi: Likewise.
32502         * doc/posix-functions/wcsxfrm.texi: Likewise.
32503         * doc/posix-functions/wctob.texi: Likewise.
32504         * doc/posix-functions/wctomb.texi: Likewise.
32505         * doc/posix-functions/wctrans.texi: Likewise.
32506         * doc/posix-functions/wctype.texi: Likewise.
32507         * doc/posix-functions/wcwidth.texi: Likewise.
32508         * doc/posix-functions/wmemchr.texi: Likewise.
32509         * doc/posix-functions/wmemcmp.texi: Likewise.
32510         * doc/posix-functions/wmemcpy.texi: Likewise.
32511         * doc/posix-functions/wmemmove.texi: Likewise.
32512         * doc/posix-functions/wmemset.texi: Likewise.
32513         * doc/posix-functions/wprintf.texi: Likewise.
32514         * doc/posix-functions/wscanf.texi: Likewise.
32515
32516 2008-12-21  Bruno Haible  <bruno@clisp.org>
32517
32518         Update doc for HP-UX 11.11.
32519         * doc/posix-functions/btowc.texi: Clarify that the function is missing
32520         in HP-UX version 11.00, not in all versions of HP-UX 11.
32521         * doc/posix-functions/fwide.texi: Likewise.
32522         * doc/posix-functions/fwprintf.texi: Likewise.
32523         * doc/posix-functions/fwscanf.texi: Likewise.
32524         * doc/posix-functions/inet_ntop.texi: Likewise.
32525         * doc/posix-functions/inet_pton.texi: Likewise.
32526         * doc/posix-functions/mbrlen.texi: Likewise.
32527         * doc/posix-functions/mbrtowc.texi: Likewise.
32528         * doc/posix-functions/mbsinit.texi: Likewise.
32529         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32530         * doc/posix-functions/swprintf.texi: Likewise.
32531         * doc/posix-functions/swscanf.texi: Likewise.
32532         * doc/posix-functions/towctrans.texi: Likewise.
32533         * doc/posix-functions/vfwprintf.texi: Likewise.
32534         * doc/posix-functions/vswprintf.texi: Likewise.
32535         * doc/posix-functions/vwprintf.texi: Likewise.
32536         * doc/posix-functions/wcrtomb.texi: Likewise.
32537         * doc/posix-functions/wcsrtombs.texi: Likewise.
32538         * doc/posix-functions/wcsstr.texi: Likewise.
32539         * doc/posix-functions/wctob.texi: Likewise.
32540         * doc/posix-functions/wctrans.texi: Likewise.
32541         * doc/posix-functions/wmemchr.texi: Likewise.
32542         * doc/posix-functions/wmemcmp.texi: Likewise.
32543         * doc/posix-functions/wmemcpy.texi: Likewise.
32544         * doc/posix-functions/wmemmove.texi: Likewise.
32545         * doc/posix-functions/wmemset.texi: Likewise.
32546         * doc/posix-functions/wprintf.texi: Likewise.
32547         * doc/posix-functions/wscanf.texi: Likewise.
32548
32549 2008-12-21  Bruno Haible  <bruno@clisp.org>
32550
32551         Work around a portability problem.
32552         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
32553         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
32554
32555 2008-12-20  Bruno Haible  <bruno@clisp.org>
32556
32557         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
32558         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
32559         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
32560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
32561         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
32562
32563         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
32564         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
32565         set.
32566         (GNULIB_defined_mbstate_t): New macro.
32567         (mbsinit): Redefine if REPLACE_MBSINIT is set.
32568         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
32569         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
32570         reuses the system's mbrtowc function but works around the bugs.
32571         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
32572         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
32573         macros.
32574         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
32575         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
32576         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
32577         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
32578         REPLACE_MBSINIT if mbsinit needs to be overridden.
32579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
32580         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32581         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
32582         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32583         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32584         m4/locale-zh.m4.
32585         (Depends): Add mbsinit.
32586         * modules/mbsinit (Depends): Add mbrtowc.
32587         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
32588
32589 2008-12-20  Bruno Haible  <bruno@clisp.org>
32590
32591         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
32592         so that there are no conversion errors on AIX.
32593         * tests/test-mbsrtowcs.c (main): LIkewise.
32594
32595 2008-12-20  Bruno Haible  <bruno@clisp.org>
32596
32597         Work around wctob bug on Solaris <= 9.
32598         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
32599         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
32600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
32601         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
32602         * modules/wctob (Files): Add m4/locale-fr.m4.
32603         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
32604
32605 2008-12-20  Bruno Haible  <bruno@clisp.org>
32606
32607         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
32608         /dev/null.
32609         * tests/test-select-in.sh: Likewise.
32610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32611
32612 2008-12-20  Bruno Haible  <bruno@clisp.org>
32613
32614         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
32615         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
32616         Cygwin 1.5.x.
32617
32618 2008-12-20  Bruno Haible  <bruno@clisp.org>
32619
32620         Ensure mbstate_t is defined on HP-UX 11.11.
32621         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
32622         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
32623         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
32624         AC_USE_SYSTEM_EXTENSIONS.
32625         * modules/fnmatch (Depends-on): Add extensions.
32626         * modules/mbrlen (Depends-on): Likewise.
32627         * modules/mbrtowc (Depends-on): Likewise.
32628         * modules/mbsinit (Depends-on): Likewise.
32629         * modules/mbsrtowcs (Depends-on): Likewise.
32630         * modules/mbswidth (Depends-on): Likewise.
32631         * modules/quotearg (Depends-on): Likewise.
32632         * modules/strftime (Depends-on): Likewise.
32633
32634 2008-12-20  Bruno Haible  <bruno@clisp.org>
32635
32636         Ensure wctob is declared on IRIX 6.5.
32637         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
32638         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
32639         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
32640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
32641         of HAVE_WCTOB.
32642         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
32643         HAVE_WCTOB.
32644         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
32645
32646 2008-12-19  Bruno Haible  <bruno@clisp.org>
32647
32648         * modules/mbsrtowcs-tests: New file.
32649         * tests/test-mbsrtowcs1.sh: New file.
32650         * tests/test-mbsrtowcs2.sh: New file.
32651         * tests/test-mbsrtowcs3.sh: New file.
32652         * tests/test-mbsrtowcs4.sh: New file.
32653         * tests/test-mbsrtowcs.c: New file.
32654
32655         New module 'mbsrtowcs'.
32656         * lib/wchar.in.h (mbsrtowcs): New declaration.
32657         * lib/mbsrtowcs.c: New file.
32658         * m4/mbsrtowcs.m4: New file.
32659         * modules/mbsrtowcs: New file.
32660         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
32661         HAVE_MBSRTOWCS.
32662         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
32663         HAVE_MBSRTOWCS.
32664         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
32665
32666 2008-12-19  Bruno Haible  <bruno@clisp.org>
32667
32668         New module 'mbrlen'.
32669         * lib/wchar.in.h (mbrlen): New declaration.
32670         * lib/mbrlen.c: New file.
32671         * m4/mbrlen.m4: New file.
32672         * modules/mbrlen: New file.
32673         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
32674         HAVE_MBRLEN.
32675         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
32676         HAVE_MBRLEN.
32677         * doc/posix-functions/mbrlen.texi: Document the new module.
32678
32679 2008-12-19  Bruno Haible  <bruno@clisp.org>
32680
32681         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
32682         * modules/mbrtowc (Depends-on): Add verify.
32683         Suggested by Paul Eggert.
32684
32685 2008-12-18  Bruno Haible  <bruno@clisp.org>
32686
32687         * modules/mbsinit-tests: New file.
32688         * tests/test-mbsinit.sh: New file.
32689         * tests/test-mbsinit.c: New file.
32690
32691 2008-12-18  Bruno Haible  <bruno@clisp.org>
32692
32693         * modules/mbrtowc-tests: New file.
32694         * tests/test-mbrtowc1.sh: New file.
32695         * tests/test-mbrtowc2.sh: New file.
32696         * tests/test-mbrtowc3.sh: New file.
32697         * tests/test-mbrtowc4.sh: New file.
32698         * tests/test-mbrtowc.c: New file.
32699
32700         New module 'mbrtowc'.
32701         * lib/wchar.in.h (mbstate_t): Override when the system does not have
32702         mbsinit and mbrtowc.
32703         (mbrtowc): New declaration.
32704         * lib/mbrtowc.c: New file.
32705         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
32706         * modules/mbrtowc: New file.
32707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
32708         HAVE_MBRTOWC.
32709         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
32710         HAVE_MBRTOWC.
32711         * doc/posix-functions/mbrtowc.texi: Document the new module.
32712
32713 2008-12-18  Bruno Haible  <bruno@clisp.org>
32714
32715         New module 'wctob'.
32716         * lib/wchar.in.h (wctob): New declaration.
32717         * lib/wctob.c: New file.
32718         * m4/wctob.m4: New file.
32719         * modules/wctob: New file.
32720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
32721         HAVE_WCTOB.
32722         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
32723         * doc/posix-functions/wctob.texi: Document the new module.
32724
32725 2008-12-18  Bruno Haible  <bruno@clisp.org>
32726
32727         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
32728         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
32729
32730 2008-12-18  Simon Josefsson  <simon@josefsson.org>
32731
32732         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
32733         G. Christensen" <tgc@jupiterrise.com>.
32734
32735         * lib/flock.c: Need to include errno.h.  Reported by "Tom
32736         G. Christensen" <tgc@jupiterrise.com>.
32737
32738         * lib/flock.c: Need to include string.h.  Reported by "Tom
32739         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
32740         <ebb9@byu.net>.
32741
32742 2008-12-18  Bruno Haible  <bruno@clisp.org>
32743
32744         * m4/locale-ja.m4: New file, from GNU gettext.
32745
32746 2008-12-17  Bruno Haible  <bruno@clisp.org>
32747
32748         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
32749         Suggested by Eric Blake.
32750
32751 2008-12-17  Bruno Haible  <bruno@clisp.org>
32752
32753         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
32754
32755 2008-12-17  Bruno Haible  <bruno@clisp.org>
32756
32757         * lib/mbsinit.c: Include verify.h. Verify an assumption.
32758         * modules/mbsinit (Depends-on): Add verify.
32759         Suggested by Paul Eggert.
32760
32761 2008-12-17  Bruno Haible  <bruno@clisp.org>
32762
32763         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
32764         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
32765         gl_FUNC_MBRTOWC.
32766         * m4/mbiter.m4 (gl_MBITER): LIkewise.
32767         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
32768         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
32769         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
32770         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
32771         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
32772         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
32773         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
32774         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
32775         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
32776         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
32777         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
32778         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
32779         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
32780         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
32781         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32782         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
32783         * modules/trim (configure.ac): Likewise.
32784
32785 2008-12-17  Bruno Haible  <bruno@clisp.org>
32786
32787         * modules/btowc-tests: New file.
32788         * tests/test-btowc1.sh: New file.
32789         * tests/test-btowc2.sh: New file.
32790         * tests/test-btowc.c: New file.
32791
32792         New module 'btowc'.
32793         * lib/wchar.in.h (btowc): New declaration.
32794         * lib/btowc.c: New file.
32795         * m4/btowc.m4: New file.
32796         * modules/btowc: New file.
32797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32798         HAVE_BTOWC.
32799         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32800         * doc/posix-functions/btowc.texi: Document the new module.
32801
32802 2008-12-17  Bruno Haible  <bruno@clisp.org>
32803
32804         New module 'mbsinit'.
32805         * lib/wchar.in.h (mbsinit): New declaration.
32806         * lib/mbsinit.c: New file.
32807         * m4/mbsinit.m4: New file.
32808         * modules/mbsinit: New file.
32809         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32810         HAVE_MBSINIT.
32811         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32812         HAVE_MBSINIT.
32813         * doc/posix-functions/mbsinit.texi: Document the new module.
32814
32815 2008-12-16  Bruno Haible  <bruno@clisp.org>
32816
32817         * lib/unistd.in.h: Add comment.
32818         * tests/test-environ.c: Don't include <stdlib.h>.
32819
32820 2008-12-16  Bruno Haible  <bruno@clisp.org>
32821
32822         * lib/parse-duration.h (parse_duration): Document return value
32823         convention.
32824         * lib/parse-duration.c: Include specification header first. Add
32825         comments.
32826         (_): Remove macro.
32827         (parse_year_month_day, parse_hour_minute_second): Move side effects
32828         outside of strchr call.
32829         (parse_non_iso8601): Move side effects outside of isspace call.
32830         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32831         call.
32832
32833 2008-12-16  Bruno Haible  <bruno@clisp.org>
32834
32835         * tests/test-parse-duration.sh: Produce no output when the test
32836         succeeds.
32837
32838 2008-12-16  Bruno Haible  <bruno@clisp.org>
32839
32840         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32841         expressions.
32842
32843 2008-12-15  Bruno Haible  <bruno@clisp.org>
32844
32845         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32846         * doc/glibc-functions/flistxattr.texi: Likewise.
32847         * doc/glibc-functions/fopencookie.texi: Likewise.
32848         * doc/glibc-functions/fremovexattr.texi: Likewise.
32849         * doc/glibc-functions/fsetxattr.texi: Likewise.
32850         * doc/glibc-functions/getxattr.texi: Likewise.
32851         * doc/glibc-functions/lgetxattr.texi: Likewise.
32852         * doc/glibc-functions/listxattr.texi: Likewise.
32853         * doc/glibc-functions/llistxattr.texi: Likewise.
32854         * doc/glibc-functions/lremovexattr.texi: Likewise.
32855         * doc/glibc-functions/lsetxattr.texi: Likewise.
32856         * doc/glibc-functions/removexattr.texi: Likewise.
32857         * doc/glibc-functions/setxattr.texi: Likewise.
32858         * doc/posix-functions/open_memstream.texi: Likewise.
32859
32860 2008-12-15  Eric Blake  <ebb9@byu.net>
32861
32862         Update doc for cygwin 1.7.
32863         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32864         functions.
32865         * doc/posix-functions/fchmodat.texi: Likewise.
32866         * doc/posix-functions/fchownat.texi: Likewise.
32867         * doc/posix-functions/fdopendir.texi: Likewise.
32868         * doc/posix-functions/fmemopen.texi: Likewise.
32869         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32870         * doc/posix-functions/fstatat.texi: Likewise.
32871         * doc/posix-functions/futimens.texi: Likewise.
32872         * doc/posix-functions/gai_strerror.texi: Likewise.
32873         * doc/posix-functions/getaddrinfo.texi: Likewise.
32874         * doc/posix-functions/getnameinfo.texi: Likewise.
32875         * doc/posix-functions/if_freenameindex.texi: Likewise.
32876         * doc/posix-functions/if_indextoname.texi: Likewise.
32877         * doc/posix-functions/if_nameindex.texi: Likewise.
32878         * doc/posix-functions/if_nametoindex.texi: Likewise.
32879         * doc/posix-functions/insque.texi: Likewise.
32880         * doc/posix-functions/linkat.texi: Likewise.
32881         * doc/posix-functions/llrint.texi: Likewise.
32882         * doc/posix-functions/llrintf.texi: Likewise.
32883         * doc/posix-functions/llrintl.texi: Likewise.
32884         * doc/posix-functions/lockf.texi: Likewise.
32885         * doc/posix-functions/lrintl.texi: Likewise.
32886         * doc/posix-functions/mkdirat.texi: Likewise.
32887         * doc/posix-functions/mkfifoat.texi: Likewise.
32888         * doc/posix-functions/mknodat.texi: Likewise.
32889         * doc/posix-functions/mq_close.texi: Likewise.
32890         * doc/posix-functions/mq_getattr.texi: Likewise.
32891         * doc/posix-functions/mq_notify.texi: Likewise.
32892         * doc/posix-functions/mq_open.texi: Likewise.
32893         * doc/posix-functions/mq_receive.texi: Likewise.
32894         * doc/posix-functions/mq_send.texi: Likewise.
32895         * doc/posix-functions/mq_setattr.texi: Likewise.
32896         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32897         * doc/posix-functions/mq_timedsend.texi: Likewise.
32898         * doc/posix-functions/mq_unlink.texi: Likewise.
32899         * doc/posix-functions/open_memstream.texi: Likewise.
32900         * doc/posix-functions/openat.texi: Likewise.
32901         * doc/posix-functions/posix_fadvise.texi: Likewise.
32902         * doc/posix-functions/posix_fallocate.texi: Likewise.
32903         * doc/posix-functions/posix_madvise.texi: Likewise.
32904         * doc/posix-functions/posix_memalign.texi: Likewise.
32905         * doc/posix-functions/posix_openpt.texi: Likewise.
32906         * doc/posix-functions/readlinkat.texi: Likewise.
32907         * doc/posix-functions/remque.texi: Likewise.
32908         * doc/posix-functions/renameat.texi: Likewise.
32909         * doc/posix-functions/rintl.texi: Likewise.
32910         * doc/posix-functions/sem_unlink.texi: Likewise.
32911         * doc/posix-functions/shm_open.texi: Likewise.
32912         * doc/posix-functions/shm_unlink.texi: Likewise.
32913         * doc/posix-functions/signgam.texi: Likewise.
32914         * doc/posix-functions/sigset.texi: Likewise.
32915         * doc/posix-functions/stpcpy.texi: Likewise.
32916         * doc/posix-functions/stpncpy.texi: Likewise.
32917         * doc/posix-functions/strerror.texi: Likewise.
32918         * doc/posix-functions/strtod.texi: Likewise.
32919         * doc/posix-functions/symlinkat.texi: Likewise.
32920         * doc/posix-functions/unlinkat.texi: Likewise.
32921         * doc/posix-functions/utimensat.texi: Likewise.
32922         * doc/glibc-functions/bindresvport.texi: Likewise.
32923         * doc/glibc-functions/dn_expand.texi: Likewise.
32924         * doc/glibc-functions/exp10.texi: Likewise.
32925         * doc/glibc-functions/exp10f.texi: Likewise.
32926         * doc/glibc-functions/fgetxattr.texi: Likewise.
32927         * doc/glibc-functions/flistxattr.texi: Likewise.
32928         * doc/glibc-functions/fopencookie.texi: Likewise.
32929         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32930         * doc/glibc-functions/fremovexattr.texi: Likewise.
32931         * doc/glibc-functions/fsetxattr.texi: Likewise.
32932         * doc/glibc-functions/getifaddrs.texi: Likewise.
32933         * doc/glibc-functions/getxattr.texi: Likewise.
32934         * doc/glibc-functions/lgetxattr.texi: Likewise.
32935         * doc/glibc-functions/listxattr.texi: Likewise.
32936         * doc/glibc-functions/llistxattr.texi: Likewise.
32937         * doc/glibc-functions/lremovexattr.texi: Likewise.
32938         * doc/glibc-functions/lsetxattr.texi: Likewise.
32939         * doc/glibc-functions/pow10.texi: Likewise.
32940         * doc/glibc-functions/pow10f.texi: Likewise.
32941         * doc/glibc-functions/rcmd_af.texi: Likewise.
32942         * doc/glibc-functions/removexattr.texi: Likewise.
32943         * doc/glibc-functions/res_init.texi: Likewise.
32944         * doc/glibc-functions/res_mkquery.texi: Likewise.
32945         * doc/glibc-functions/res_query.texi: Likewise.
32946         * doc/glibc-functions/res_querydomain.texi: Likewise.
32947         * doc/glibc-functions/res_send.texi: Likewise.
32948         * doc/glibc-functions/rresvport_af.texi: Likewise.
32949         * doc/glibc-functions/setxattr.texi: Likewise.
32950         * doc/glibc-functions/strcasestr.texi: Likewise.
32951
32952 2008-12-15  Bruno Haible  <bruno@clisp.org>
32953
32954         Fix compilation error on OSF/1 4.0.
32955         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32956         <sys/time.h>, simply delegate to the system header.
32957         Reported by Daniel Richard G. <oss@teragram.com>.
32958
32959 2008-12-15  Bruno Haible  <bruno@clisp.org>
32960
32961         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32962         * doc/posix-functions/fchmodat.texi: Likewise.
32963         * doc/posix-functions/fchownat.texi: Likewise.
32964         * doc/posix-functions/fdopendir.texi: Likewise.
32965         * doc/posix-functions/fstatat.texi: Likewise.
32966         * doc/posix-functions/mkdirat.texi: Likewise.
32967         * doc/posix-functions/unlinkat.texi: Likewise.
32968
32969 2008-12-14  Bruno Haible  <bruno@clisp.org>
32970
32971         Update doc for POSIX:2008.
32972         * doc/posix-functions/faccessat.texi: New file.
32973         * doc/posix-functions/fchmodat.texi: New file.
32974         * doc/posix-functions/fchownat.texi: New file.
32975         * doc/posix-functions/fdopendir.texi: New file.
32976         * doc/posix-functions/fstatat.texi: New file.
32977         * doc/posix-functions/futimens.texi: New file.
32978         * doc/posix-functions/linkat.texi: New file.
32979         * doc/posix-functions/mkdirat.texi: New file.
32980         * doc/posix-functions/mkfifoat.texi: New file.
32981         * doc/posix-functions/mknodat.texi: New file.
32982         * doc/posix-functions/open_wmemstream.texi: New file.
32983         * doc/posix-functions/openat.texi: New file.
32984         * doc/posix-functions/psiginfo.texi: New file.
32985         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32986         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32987         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32988         * doc/posix-functions/readlinkat.texi: New file.
32989         * doc/posix-functions/renameat.texi: New file.
32990         * doc/posix-functions/strerror_l.texi: New file.
32991         * doc/posix-functions/symlinkat.texi: New file.
32992         * doc/posix-functions/unlinkat.texi: New file.
32993         * doc/posix-functions/utimensat.texi: New file.
32994         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32995
32996 2008-12-14  Bruno Haible  <bruno@clisp.org>
32997
32998         Update doc for POSIX:2008.
32999         * doc/posix-functions/alphasort.texi: Renamed from
33000         doc/glibc-functions/alphasort.texi.
33001         * doc/posix-functions/dirfd.texi: Renamed from
33002         doc/glibc-functions/dirfd.texi.
33003         * doc/posix-functions/dprintf.texi: Renamed from
33004         doc/glibc-functions/dprintf.texi.
33005         * doc/posix-functions/duplocale.texi: Renamed from
33006         doc/glibc-functions/duplocale.texi.
33007         * doc/posix-functions/fexecve.texi: Renamed from
33008         doc/glibc-functions/fexecve.texi.
33009         * doc/posix-functions/fmemopen.texi: Renamed from
33010         doc/glibc-functions/fmemopen.texi.
33011         * doc/posix-functions/freelocale.texi: Renamed from
33012         doc/glibc-functions/freelocale.texi.
33013         * doc/posix-functions/getdate_err.texi: Renamed from
33014         doc/glibc-functions/getdate_err.texi.
33015         * doc/posix-functions/isalnum_l.texi: Renamed from
33016         doc/glibc-functions/isalnum_l.texi.
33017         * doc/posix-functions/isalpha_l.texi: Renamed from
33018         doc/glibc-functions/isalpha_l.texi.
33019         * doc/posix-functions/isblank_l.texi: Renamed from
33020         doc/glibc-functions/isblank_l.texi.
33021         * doc/posix-functions/iscntrl_l.texi: Renamed from
33022         doc/glibc-functions/iscntrl_l.texi.
33023         * doc/posix-functions/isdigit_l.texi: Renamed from
33024         doc/glibc-functions/isdigit_l.texi.
33025         * doc/posix-functions/isgraph_l.texi: Renamed from
33026         doc/glibc-functions/isgraph_l.texi.
33027         * doc/posix-functions/islower_l.texi: Renamed from
33028         doc/glibc-functions/islower_l.texi.
33029         * doc/posix-functions/isprint_l.texi: Renamed from
33030         doc/glibc-functions/isprint_l.texi.
33031         * doc/posix-functions/ispunct_l.texi: Renamed from
33032         doc/glibc-functions/ispunct_l.texi.
33033         * doc/posix-functions/isspace_l.texi: Renamed from
33034         doc/glibc-functions/isspace_l.texi.
33035         * doc/posix-functions/isupper_l.texi: Renamed from
33036         doc/glibc-functions/isupper_l.texi.
33037         * doc/posix-functions/iswalnum_l.texi: Renamed from
33038         doc/glibc-functions/iswalnum_l.texi.
33039         * doc/posix-functions/iswalpha_l.texi: Renamed from
33040         doc/glibc-functions/iswalpha_l.texi.
33041         * doc/posix-functions/iswblank_l.texi: Renamed from
33042         doc/glibc-functions/iswblank_l.texi.
33043         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33044         doc/glibc-functions/iswcntrl_l.texi.
33045         * doc/posix-functions/iswctype_l.texi: Renamed from
33046         doc/glibc-functions/iswctype_l.texi.
33047         * doc/posix-functions/iswdigit_l.texi: Renamed from
33048         doc/glibc-functions/iswdigit_l.texi.
33049         * doc/posix-functions/iswgraph_l.texi: Renamed from
33050         doc/glibc-functions/iswgraph_l.texi.
33051         * doc/posix-functions/iswlower_l.texi: Renamed from
33052         doc/glibc-functions/iswlower_l.texi.
33053         * doc/posix-functions/iswprint_l.texi: Renamed from
33054         doc/glibc-functions/iswprint_l.texi.
33055         * doc/posix-functions/iswpunct_l.texi: Renamed from
33056         doc/glibc-functions/iswpunct_l.texi.
33057         * doc/posix-functions/iswspace_l.texi: Renamed from
33058         doc/glibc-functions/iswspace_l.texi.
33059         * doc/posix-functions/iswupper_l.texi: Renamed from
33060         doc/glibc-functions/iswupper_l.texi.
33061         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33062         doc/glibc-functions/iswxdigit_l.texi.
33063         * doc/posix-functions/isxdigit_l.texi: Renamed from
33064         doc/glibc-functions/isxdigit_l.texi.
33065         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33066         doc/glibc-functions/mbsnrtowcs.texi.
33067         * doc/posix-functions/mkdtemp.texi: Renamed from
33068         doc/glibc-functions/mkdtemp.texi.
33069         * doc/posix-functions/newlocale.texi: Renamed from
33070         doc/glibc-functions/newlocale.texi.
33071         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33072         doc/glibc-functions/nl_langinfo_l.texi.
33073         * doc/posix-functions/open_memstream.texi: Renamed from
33074         doc/glibc-functions/open_memstream.texi.
33075         * doc/posix-functions/opterr.texi: Renamed from
33076         doc/glibc-functions/opterr.texi.
33077         * doc/posix-functions/optind.texi: Renamed from
33078         doc/glibc-functions/optind.texi.
33079         * doc/posix-functions/optopt.texi: Renamed from
33080         doc/glibc-functions/optopt.texi.
33081         * doc/posix-functions/psignal.texi: Renamed from
33082         doc/glibc-functions/psignal.texi.
33083         * doc/posix-functions/scandir.texi: Renamed from
33084         doc/glibc-functions/scandir.texi.
33085         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33086         doc/glibc-functions/sched_get_priority_min.texi.
33087         * doc/posix-functions/signgam.texi: Renamed from
33088         doc/glibc-functions/signgam.texi.
33089         * doc/posix-functions/stpcpy.texi: Renamed from
33090         doc/glibc-functions/stpcpy.texi.
33091         * doc/posix-functions/stpncpy.texi: Renamed from
33092         doc/glibc-functions/stpncpy.texi.
33093         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33094         doc/glibc-functions/strcasecmp_l.texi.
33095         * doc/posix-functions/strcoll_l.texi: Renamed from
33096         doc/glibc-functions/strcoll_l.texi.
33097         * doc/posix-functions/strfmon_l.texi: Renamed from
33098         doc/glibc-functions/strfmon_l.texi.
33099         * doc/posix-functions/strftime_l.texi: Renamed from
33100         doc/glibc-functions/strftime_l.texi.
33101         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33102         doc/glibc-functions/strncasecmp_l.texi.
33103         * doc/posix-functions/strndup.texi: Renamed from
33104         doc/glibc-functions/strndup.texi.
33105         * doc/posix-functions/strnlen.texi: Renamed from
33106         doc/glibc-functions/strnlen.texi.
33107         * doc/posix-functions/strsignal.texi: Renamed from
33108         doc/glibc-functions/strsignal.texi.
33109         * doc/posix-functions/strxfrm_l.texi: Renamed from
33110         doc/glibc-functions/strxfrm_l.texi.
33111         * doc/posix-functions/timer_gettime.texi: Renamed from
33112         doc/glibc-functions/timer_gettime.texi.
33113         * doc/posix-functions/tolower_l.texi: Renamed from
33114         doc/glibc-functions/tolower_l.texi.
33115         * doc/posix-functions/toupper_l.texi: Renamed from
33116         doc/glibc-functions/toupper_l.texi.
33117         * doc/posix-functions/towctrans_l.texi: Renamed from
33118         doc/glibc-functions/towctrans_l.texi.
33119         * doc/posix-functions/towlower_l.texi: Renamed from
33120         doc/glibc-functions/towlower_l.texi.
33121         * doc/posix-functions/towupper_l.texi: Renamed from
33122         doc/glibc-functions/towupper_l.texi.
33123         * doc/posix-functions/uselocale.texi: Renamed from
33124         doc/glibc-functions/uselocale.texi.
33125         * doc/posix-functions/vdprintf.texi: Renamed from
33126         doc/glibc-functions/vdprintf.texi.
33127         * doc/posix-functions/wcpcpy.texi:
33128         Renamed from doc/glibc-functions/wcpcpy.texi.
33129         * doc/posix-functions/wcpncpy.texi: Renamed from
33130         doc/glibc-functions/wcpncpy.texi.
33131         * doc/posix-functions/wcscasecmp.texi: Renamed from
33132         doc/glibc-functions/wcscasecmp.texi.
33133         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33134         doc/glibc-functions/wcscasecmp_l.texi.
33135         * doc/posix-functions/wcscoll_l.texi: Renamed from
33136         doc/glibc-functions/wcscoll_l.texi.
33137         * doc/posix-functions/wcsdup.texi: Renamed from
33138         doc/glibc-functions/wcsdup.texi.
33139         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33140         doc/glibc-functions/wcsncasecmp.texi.
33141         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33142         doc/glibc-functions/wcsncasecmp_l.texi.
33143         * doc/posix-functions/wcsnlen.texi: Renamed from
33144         doc/glibc-functions/wcsnlen.texi.
33145         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33146         doc/glibc-functions/wcsnrtombs.texi.
33147         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33148         doc/glibc-functions/wcsxfrm_l.texi.
33149         * doc/posix-functions/wctrans_l.texi: Renamed from
33150         doc/glibc-functions/wctrans_l.texi.
33151         * doc/posix-functions/wctype_l.texi: Renamed from
33152         doc/glibc-functions/wctype_l.texi.
33153         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33154         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33155         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33156         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33157         these subsections.
33158         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33159         Remove sections.
33160
33161 2008-12-14  Bruno Haible  <bruno@clisp.org>
33162
33163         Update doc for POSIX:2008.
33164         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33165
33166 2008-12-14  Bruno Haible  <bruno@clisp.org>
33167
33168         Update doc for POSIX:2008.
33169         * doc/pastposix-functions/bcmp.texi: Renamed from
33170         doc/posix-functions/bcmp.texi.
33171         * doc/pastposix-functions/bcopy.texi: Renamed from
33172         doc/posix-functions/bcopy.texi.
33173         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33174         doc/posix-functions/bsd_signal.texi.
33175         * doc/pastposix-functions/bzero.texi: Renamed from
33176         doc/posix-functions/bzero.texi.
33177         * doc/pastposix-functions/ecvt.texi: Renamed from
33178         doc/posix-functions/ecvt.texi.
33179         * doc/pastposix-functions/fcvt.texi: Renamed from
33180         doc/posix-functions/fcvt.texi.
33181         * doc/pastposix-functions/ftime.texi: Renamed from
33182         doc/posix-functions/ftime.texi.
33183         * doc/pastposix-functions/gcvt.texi: Renamed from
33184         doc/posix-functions/gcvt.texi.
33185         * doc/pastposix-functions/getcontext.texi: Renamed from
33186         doc/posix-functions/getcontext.texi.
33187         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33188         doc/posix-functions/gethostbyaddr.texi.
33189         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33190         doc/posix-functions/gethostbyname.texi.
33191         * doc/pastposix-functions/getwd.texi: Renamed from
33192         doc/posix-functions/getwd.texi.
33193         * doc/pastposix-functions/h_errno.texi: Renamed from
33194         doc/posix-functions/h_errno.texi.
33195         * doc/pastposix-functions/index.texi: Renamed from
33196         doc/posix-functions/index.texi.
33197         * doc/pastposix-functions/makecontext.texi: Renamed from
33198         doc/posix-functions/makecontext.texi.
33199         * doc/pastposix-functions/mktemp.texi: Renamed from
33200         doc/posix-functions/mktemp.texi.
33201         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33202         doc/posix-functions/pthread_attr_getstackaddr.texi.
33203         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33204         doc/posix-functions/pthread_attr_setstackaddr.texi.
33205         * doc/pastposix-functions/rindex.texi: Renamed from
33206         doc/posix-functions/rindex.texi.
33207         * doc/pastposix-functions/scalb.texi: Renamed from
33208         doc/posix-functions/scalb.texi.
33209         * doc/pastposix-functions/setcontext.texi: Renamed from
33210         doc/posix-functions/setcontext.texi.
33211         * doc/pastposix-functions/swapcontext.texi: Renamed from
33212         doc/posix-functions/swapcontext.texi.
33213         * doc/pastposix-functions/ualarm.texi: Renamed from
33214         doc/posix-functions/ualarm.texi.
33215         * doc/pastposix-functions/usleep.texi: Renamed from
33216         doc/posix-functions/usleep.texi.
33217         * doc/pastposix-functions/vfork.texi: Renamed from
33218         doc/posix-functions/vfork.texi.
33219         * doc/pastposix-functions/wcswcs.texi: Renamed from
33220         doc/posix-functions/wcswcs.texi.
33221         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33222         (Function Substitutes): Update.
33223
33224 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33225
33226         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33227         m4/strerror.m4.
33228
33229 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33230             Bruno Haible  <bruno@clisp.org>
33231
33232         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33233
33234 2008-12-13  Bruno Haible  <bruno@clisp.org>
33235
33236         * modules/strtoull (Depends-on): Remove unistd.
33237
33238 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33239
33240         * modules/strtoull (Depends-on): Add stdlib.
33241
33242 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33243
33244         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33245
33246 2008-12-10  Jim Meyering  <meyering@redhat.com>
33247
33248         gl_ASSERT: don't say assertions are disabled when they're not
33249         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33250         "checking whether to enable assertions... no", when they are in
33251         fact enabled.  This is solely a bug in the output of configure.
33252         In spite of saying "no", NDEBUG was not defined in that case.
33253         Also, as noted by Eric Blake, leave assertions enabled upon
33254         --enable-assert=INVALID.
33255
33256 2008-12-10  Bruno Haible  <bruno@clisp.org>
33257
33258         Change MODULES.html to refer to POSIX:2008 where possible.
33259         * MODULES.html.sh (POSIX2008_URL): New variable.
33260         (posix_headers): Remove sys/timeb, ucontext.
33261         (posix2001_headers): New variable.
33262         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33263         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33264         index, makecontext, mktemp, pthread_attr_getstackaddr,
33265         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33266         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33267         (posix2001_functions): New variable.
33268         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33269         otherwise.
33270
33271 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33272
33273         add missing include to parse-duration.c
33274         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33275         * modules/parse-duration (Depends-on): Add xalloc.
33276
33277         fix sed script reading maint.mk
33278         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33279         (syntax-check-rules): Use it.
33280
33281 2008-12-09  Bruno Haible  <bruno@clisp.org>
33282
33283         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33284         MacOS X 10.4/PowerPC.
33285         Reported by Simon Josefsson.
33286
33287 2008-12-08  Jim Meyering  <meyering@redhat.com>
33288
33289         work around mingw's lack of some S_IF definitions
33290         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33291         Reported by Simon Josefsson.
33292
33293 2008-12-08  Bruno Haible  <bruno@clisp.org>
33294
33295         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33296         applied to variables. Needed on MacOS X 10.4/PowerPC.
33297         Reported by Simon Josefsson.
33298
33299 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33300         and Eric Blake  <ebb9@byu.net>
33301
33302         assert: honor --enable-assert
33303         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33304         order to honor --enable-assert, rather than treating it as a
33305         synonym for --disable-assert.
33306
33307 2008-12-08  Jim Meyering  <meyering@redhat.com>
33308
33309         * lib/posixtm.c: Remove now-useless declaration of mktime.
33310
33311         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33312
33313 2008-12-07  Bruno Haible  <bruno@clisp.org>
33314
33315         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33316         test_once): Mark functions as static.
33317         * tests/test-tls.c (test_tls): Likewise.
33318
33319 2008-12-07  Bruno Haible  <bruno@clisp.org>
33320
33321         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33322         iconv_register_autodetect.
33323
33324 2008-12-07  Jim Meyering  <meyering@redhat.com>
33325
33326         posixtm.c: avoid a warning
33327         * lib/posixtm.c (posixtime): Don't initialize tm0.
33328         It's no longer needed to placate gcc4's -Wuninitialized,
33329         and the attempt to placate would elicit a new warning.
33330
33331         unicodeio.c: mark unused parameters
33332         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33333         (fallback_failure_callback): Likewise.
33334
33335 2008-12-07  Bruno Haible  <bruno@clisp.org>
33336
33337         * gnulib-tool (func_create_testdir): When building the tests
33338         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33339         Reported by Simon Josefsson.
33340
33341 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33342
33343         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33344
33345 2008-12-06  Bruno Haible  <bruno@clisp.org>
33346
33347         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33348         Suggested by Eric Blake.
33349
33350 2008-12-06  Bruno Haible  <bruno@clisp.org>
33351
33352         Fix a c-stack test failure on MacOS X.
33353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33354         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33355         handler for SIGBUS as well.
33356         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33357         install a signal handler for SIGBUS as well.
33358         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33359
33360 2008-12-06  Bruno Haible  <bruno@clisp.org>
33361
33362         Advocacy documentation.
33363         * doc/gnulib-intro.texi (Benefits): New section.
33364         * doc/gnulib.texi: Update.
33365
33366 2008-12-06  Bruno Haible  <bruno@clisp.org>
33367
33368         Document the 'manywarnings' module.
33369         * doc/manywarnings.texi: New file.
33370         * doc/gnulib.texi: Include it.
33371
33372 2008-12-05  Eric Blake  <ebb9@byu.net>
33373
33374         tests: silence some gcc warnings
33375         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33376         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33377         type mismatches.
33378
33379 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33380             Bruno Haible  <bruno@clisp.org>
33381
33382         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33383
33384 2008-11-29  Jim Meyering  <meyering@redhat.com>
33385
33386         unicodeio.c: mark unused parameters
33387         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33388         (fallback_failure_callback): Likewise.
33389
33390         fts: fix a thinko
33391         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33392         (set_stat_type): Return S_IF*-valued "type" directly.
33393         Prompted by James Youngman's spotting a related bug.
33394         Confirmed by further testing through find.
33395
33396         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33397         * lib/fts.c (D_TYPE): Define.
33398         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33399         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33400         (s_ifmt_shift_bits): New function.
33401         (set_stat_type): New function.
33402         (fts_build): When not calling fts_stat, call set_stat_type
33403         to propagate dirent.d_type info to fts_read caller.
33404         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33405         fts_statp->st_mode type information may be valid.
33406
33407 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33408
33409         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33410         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33411         <sds@gnu.org>.
33412
33413 2008-11-20  Bruno Haible  <bruno@clisp.org>
33414
33415         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33416         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33417         INCLUDE_NEXT.
33418         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33419         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33420         * modules/math (Makefile.am): Substitute
33421         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33422         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33423
33424 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33425             Bruno Haible  <bruno@clisp.org>
33426
33427         * lib/stdint.in.h: Define all type macros so that their expansion is
33428         a single typedef'ed token. Fixes a compilation failure in Boost which
33429         does "using ::int8_t;".
33430
33431 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33432
33433         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33434         gl_MANYWARN_ALL_GCC.
33435         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33436         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33437         * modules/manywarnings: New file.
33438         * MODULES.html.sh: Mention manywarnings module.
33439
33440 2008-11-18  Bruno Haible  <bruno@clisp.org>
33441
33442         * doc/gnulib-tool.texi (Unit tests): New section.
33443
33444 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33445
33446         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33447         paths like 'lib/po/foo.po'.
33448
33449 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33450
33451         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33452         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33453
33454 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33455
33456         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33457         parameter works.
33458
33459 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33460
33461         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
33462
33463 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33464
33465         * modules/parse-duration-tests: New file.
33466         * tests/test-parse-duration.sh: New file.
33467         * tests/test-parse-duration.c: New file.
33468
33469         New module 'parse-duration'.
33470         * lib/parse-duration.h: New file.
33471         * lib/parse-duration.c: New file.
33472         * modules/parse-duration: New file.
33473
33474 2008-11-17  Bruno Haible  <bruno@clisp.org>
33475
33476         * tests/test-select-out.sh: Comment out the first pipe test.
33477         Reported by Simon Josefsson.
33478
33479 2008-11-17  Bruno Haible  <bruno@clisp.org>
33480
33481         * modules/getaddrinfo (Depends-on): Add servent, hostent.
33482         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
33483         gl_HOSTENT.
33484
33485 2008-11-17  Bruno Haible  <bruno@clisp.org>
33486
33487         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
33488         -lnetwork and -lnet. Needed for Haiku and BeOS.
33489
33490 2008-11-16  Bruno Haible  <bruno@clisp.org>
33491
33492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
33493
33494 2008-11-16  Bruno Haible  <bruno@clisp.org>
33495
33496         Avoid test failure on Haiku.
33497         * tests/test-fsync.c: Include <errno.h>.
33498         (main): Don't require that fsync (0) fails.
33499
33500 2008-11-15  Bruno Haible  <bruno@clisp.org>
33501
33502         New module 'hostent'.
33503         * modules/hostent: New file.
33504         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
33505
33506 2008-11-15  Bruno Haible  <bruno@clisp.org>
33507
33508         New module 'servent'.
33509         * modules/servent: New file.
33510         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33511
33512 2008-11-15  Bruno Haible  <bruno@clisp.org>
33513
33514         Avoid generating same test program with two different rules.
33515         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
33516         test-frexp to test-frexp-nolibm.
33517         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
33518         test-frexpl to test-frexpl-nolibm.
33519
33520 2008-11-15  Bruno Haible  <bruno@clisp.org>
33521
33522         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
33523         $(FREXPL_LIBM).
33524
33525 2008-11-15  Bruno Haible  <bruno@clisp.org>
33526
33527         * lib/netdb.in.h: Activate the definitions also when the system's
33528         <netdb.h> has 'struct addrinfo'.
33529         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
33530         EAI_OVERFLOW or AI_NUMERICSERV.
33531         * doc/posix-headers/netdb.texi: Document the problem.
33532
33533 2008-11-15  Bruno Haible  <bruno@clisp.org>
33534
33535         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
33536
33537         Make the 'sched' module work on platforms where <sched.h> exists but
33538         is incomplete (such as Haiku).
33539         * lib/sched.in.h; Include the system's <sched.h> if it exists.
33540         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
33541         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
33542         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
33543         HAVE_STRUCT_SCHED_PARAM.
33544         * modules/sched (Depends-on): Add include_next.
33545         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
33546         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
33547         * doc/posix-headers/sched.texi: Document the issue.
33548
33549 2008-11-13  Jim Meyering  <meyering@redhat.com>
33550
33551         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
33552         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
33553         test would fail due to the difference in the Report bugs to ...
33554         line.  The expected address is empty, "<>", while the actual
33555         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
33556
33557 2008-11-12  Bruno Haible  <bruno@clisp.org>
33558
33559         lstat: don't compile lstat.c on systems lacking lstat
33560         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
33561         which don't have lstat; this is handled by lib/sys_stat.in.h already.
33562         Reported by Daniel P. Berrange via Jim Meyering.
33563
33564 2008-11-12  Jim Meyering  <meyering@redhat.com>
33565
33566         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
33567
33568 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33569
33570         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
33571         instead.
33572
33573 2008-11-12  Bruno Haible  <bruno@clisp.org>
33574
33575         * lib/unicodeio.c: Include unistr.h.
33576         (utf8_wctomb): Remove function.
33577         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
33578
33579 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33580
33581         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
33582         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
33583         <bruno@clisp.org>.
33584         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
33585
33586 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33587
33588         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
33589         * doc/gnulib.texi: Add section for warnings.
33590
33591 2008-11-11  Bruno Haible  <bruno@clisp.org>
33592
33593         * lib/sockets.h: Add a comment.
33594
33595 2008-11-11  Karl Berry  <karl@gnu.org>
33596
33597         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
33598
33599 2008-11-11  Eric Blake  <ebb9@byu.net>
33600
33601         fdl.texi: avoid git symlinks
33602         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
33603
33604 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33605
33606         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
33607
33608 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33609
33610         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
33611         (gl_WARN_ADD): Substitute $2 if literal.
33612
33613 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33614
33615         * m4/warning.m4: Remove.
33616
33617 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33618
33619         * m4/warnings.m4: Almost complete rewrite. :-)
33620
33621 2008-11-10  Simon Josefsson  <simon@josefsson.org>
33622
33623         * modules/warnings: New module.
33624         * m4/warnings.m4: New file.
33625         * MODULES.html.sh: Mention warnings module.
33626         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
33627         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33628
33629 2008-11-10  Eric Blake  <ebb9@byu.net>
33630
33631         fdl.texi: make a symlink to the latest version
33632         * doc/standards.texi: Revert today's earlier change.
33633         * doc/fdl-1.2.texi: Rename from old fdl.texi...
33634         * doc/fdl.texi: ...and replace this with a symlink to the newer
33635         fdl-1.3.texi.
33636
33637 2008-11-10  Bruno Haible  <bruno@clisp.org>
33638
33639         * tests/test-select-fd.c (main): Accept the result file name as fourth
33640         argument.
33641         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
33642         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
33643
33644 2008-11-10  Bruno Haible  <bruno@clisp.org>
33645
33646         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
33647         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
33648         as autoconf-substituted macros.
33649         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
33650         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
33651         gl_NETDB_H_DEFAULTS. Set these variables.
33652         * modules/netdb (Makefile.am): Substitute these variables.
33653
33654 2008-11-10  Eric Blake  <ebb9@byu.net>
33655
33656         standards.texi: include correct file for FDL 1.3
33657         * doc/standards.texi (GNU Free Documentation License): Change
33658         include file to pull in FDL 1.3, not 1.2.
33659
33660         fdl.texi: revert accidental change to license
33661         * doc/fdl.texi: This is FDL 1.2, not 1.3.
33662
33663 2008-11-10  Bruno Haible  <bruno@clisp.org>
33664
33665         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
33666         cross-compiling guesses also when the native compile gives no result.
33667
33668 2008-11-10  Bruno Haible  <bruno@clisp.org>
33669
33670         * lib/spawni.c (__spawni): Force variable into the stack.
33671
33672 2008-11-10  Bruno Haible  <bruno@clisp.org>
33673
33674         Add support for Haiku.
33675         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
33676         glibc and BeOS, but also on Haiku.
33677         * lib/fpurge.c (fpurge): Likewise.
33678         * lib/freadable.c (freadable): Likewise.
33679         * lib/freadahead.c (freadahead): Likewise.
33680         * lib/freading.c (freading): Likewise.
33681         * lib/freadptr.c (freadptr): Likewise.
33682         * lib/freadseek.c (freadptrinc): Likewise.
33683         * lib/fseeko.c (rpl_fseeko): Likewise.
33684         * lib/fseterr.c (fseterr): Likewise.
33685         * lib/fwritable.c (fwritable): Likewise.
33686         * lib/fwriting.c (fwriting): Likewise.
33687         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
33688
33689 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33690
33691         * lib/config.charset: Treat Haiku like BeOS.
33692
33693 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33694
33695         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
33696         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
33697
33698 2008-11-08  Bruno Haible  <bruno@clisp.org>
33699
33700         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
33701         AC_CACHE_CHECK.
33702
33703 2008-11-08  Bruno Haible  <bruno@clisp.org>
33704
33705         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
33706
33707 2008-11-08  Bruno Haible  <bruno@clisp.org>
33708
33709         * tests/test-select-fd.c: New file.
33710         * tests/test-select-in.sh: New file.
33711         * tests/test-select-out.sh: New file.
33712         * tests/test-select-stdin.c: New file.
33713         * modules/select-tests (Files): Add the new files.
33714         (Depends-on): Add gettimeofday.
33715         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
33716         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
33717         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
33718
33719 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
33720             Bruno Haible  <bruno@clisp.org>
33721
33722         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
33723
33724 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
33725
33726         * build-aux/pmccabe2html: Added support for C++ source files.
33727
33728 2008-11-05  Ben Pfaff  <blp@gnu.org>
33729
33730         Fix lib/close.c build on Windows.
33731         * modules/close (Files): Add lib/w32sock.h.
33732
33733 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
33734
33735         Accept Bison's NEWS format.
33736         * build-aux/announce-gen (print_news_deltas): Tweak
33737         $re_prefix.
33738
33739 2008-11-04  Bruno Haible  <bruno@clisp.org>
33740
33741         * modules/random_r (Maintainer): Add glibc.
33742
33743 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33744
33745         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
33746         by karl@freefriends.org (Karl Berry).
33747         * doc/alloca.texi: Likewise.
33748         * doc/c-ctype.texi: Likewise.
33749         * doc/c-strcase.texi: Likewise.
33750         * doc/c-strcaseeq.texi: Likewise.
33751         * doc/c-strcasestr.texi: Likewise.
33752         * doc/c-strstr.texi: Likewise.
33753         * doc/c-strtod.texi: Likewise.
33754         * doc/c-strtold.texi: Likewise.
33755         * doc/ctime.texi: Likewise.
33756         * doc/error.texi: Likewise.
33757         * doc/fdl.texi: Likewise.
33758         * doc/gcd.texi: Likewise.
33759         * doc/getdate.texi: Likewise.
33760         * doc/gnulib-intro.texi: Likewise.
33761         * doc/gnulib-tool.texi: Likewise.
33762         * doc/gnulib.texi: Likewise.
33763         * doc/inet_ntoa.texi: Likewise.
33764         * doc/maintain.texi: Likewise.
33765         * doc/make-stds.texi: Likewise.
33766         * doc/quote.texi: Likewise.
33767         * doc/regexprops-generic.texi: Likewise.
33768         * doc/standards.texi: Likewise.
33769         * doc/verify.texi: Likewise.
33770         * doc/visibility.texi: Likewise.
33771         * doc/gnulib.texi (GNU Free Documentation License): Include
33772         fdl-1.3.texi instead of fdl.texi.
33773
33774 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33775
33776         * doc/fdl-1.3.texi: New file, from
33777         <http://www.gnu.org/licenses/fdl-1.3.texi>.
33778         * modules/fdl-1.3: Add.
33779         * MODULES.html.sh: Add fdl-1.3.
33780
33781 2008-11-03  Bruno Haible  <bruno@clisp.org>
33782
33783         Make determination of absolute name of header file work with AIX xlc.
33784         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
33785         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
33786         preprocessing.
33787         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33788         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33789
33790 2008-11-03  Simon Josefsson  <simon@josefsson.org>
33791
33792         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
33793         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
33794         <ludo@gnu.org>.
33795
33796 2008-11-02  Bruno Haible  <bruno@clisp.org>
33797
33798         Mark 'strpbrk' obsolete.
33799         * modules/strpbrk (Status, Notice): New sections.
33800         * modules/strtok_r (Depends-on): Add strpbrk.
33801
33802 2008-11-02  Bruno Haible  <bruno@clisp.org>
33803
33804         Mark 'strdup' obsolete.
33805         * modules/strdup (Status, Notice): New sections.
33806         * modules/findprog (Depends-on): Add strdup.
33807         * modules/getaddrinfo (Depends-on): Likewise.
33808         * modules/localename (Depends-on): Likewise.
33809         * modules/relocatable-lib (Depends-on): Likewise.
33810         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33811         * modules/relocatable-prog (Depends-on): Likewise.
33812         * modules/trim (Depends-on): Likewise.
33813         * modules/unictype/gen-ctype (Depends-on): Likewise.
33814         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33815
33816 2008-11-02  Bruno Haible  <bruno@clisp.org>
33817
33818         Mark 'strcspn' obsolete.
33819         * modules/strcspn (Status, Notice): New sections.
33820
33821 2008-11-02  Bruno Haible  <bruno@clisp.org>
33822
33823         Mark 'rmdir' obsolete.
33824         * modules/rmdir (Status, Notice): New sections.
33825         * modules/clean-temp (Depends-on): Add rmdir.
33826         * modules/openat (Depends-on): Likewise.
33827
33828 2008-11-02  Bruno Haible  <bruno@clisp.org>
33829
33830         Mark 'raise' obsolete.
33831         * modules/raise (Status, Notice): New sections.
33832         (Include): Specify <signal.h>.
33833         * modules/stdio (Depends-on): Add raise.
33834         * modules/write (Depends-on): Likewise.
33835
33836 2008-11-02  Bruno Haible  <bruno@clisp.org>
33837
33838         Mark 'memset' obsolete.
33839         * modules/memset (Status, Notice): New sections.
33840
33841 2008-11-02  Bruno Haible  <bruno@clisp.org>
33842
33843         Mark 'memmove' obsolete.
33844         * modules/memmove (Status, Notice): New sections.
33845         * modules/argp (Depends-on): Add memmove.
33846         * modules/argz (Depends-on): Likewise.
33847         * modules/canonicalize (Depends-on): Likewise.
33848         * modules/canonicalize-lgpl (Depends-on): Likewise.
33849         * modules/fts (Depends-on): Likewise.
33850         * modules/getcwd (Depends-on): Likewise.
33851         * modules/human (Depends-on): Likewise.
33852         * modules/regex (Depends-on): Likewise.
33853         * modules/striconveh (Depends-on): Likewise.
33854         * modules/trim (Depends-on): Likewise.
33855         * modules/unistr/u8-move (Depends-on): Likewise.
33856         * modules/unistr/u16-move (Depends-on): Likewise.
33857         * modules/unistr/u32-move (Depends-on): Likewise.
33858
33859 2008-11-02  Bruno Haible  <bruno@clisp.org>
33860
33861         Mark 'memcpy' obsolete.
33862         * modules/memcpy (Status, Notice): New sections.
33863
33864 2008-11-02  Bruno Haible  <bruno@clisp.org>
33865
33866         Mark 'memcmp' obsolete.
33867         * modules/memcmp (Status, Notice): New sections.
33868         * modules/argmatch (Depends-on): Add memchr.
33869         * modules/backupfile (Depends-on): Likewise.
33870         * modules/c-strcasestr (Depends-on): Likewise.
33871         * modules/crypto/des (Depends-on): Likewise.
33872         * modules/csharpcomp (Depends-on): Likewise.
33873         * modules/fnmatch (Depends-on): Likewise.
33874         * modules/git-merge-changelog (Depends-on): Likewise.
33875         * modules/isnand (Depends-on): Likewise.
33876         * modules/isnand-nolibm (Depends-on): Likewise.
33877         * modules/isnanf (Depends-on): Likewise.
33878         * modules/isnanf-nolibm (Depends-on): Likewise.
33879         * modules/isnanl (Depends-on): Likewise.
33880         * modules/isnanl-nolibm (Depends-on): Likewise.
33881         * modules/mbchar (Depends-on): Likewise.
33882         * modules/memcoll (Depends-on): Likewise.
33883         * modules/quotearg (Depends-on): Likewise.
33884         * modules/regex (Depends-on): Likewise.
33885         * modules/relocatable-prog (Depends-on): Likewise.
33886         * modules/same (Depends-on): Likewise.
33887         * modules/signbit (Depends-on): Likewise.
33888         * modules/strcasestr-simple (Depends-on): Likewise.
33889         * modules/unictype/gen-ctype (Depends-on): Likewise.
33890         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33891         * modules/uniname/uniname (Depends-on): Likewise.
33892         * modules/unistr/u8-cmp (Depends-on): Likewise.
33893
33894 2008-11-02  Bruno Haible  <bruno@clisp.org>
33895
33896         Mark 'memchr' obsolete.
33897         * modules/memchr (Status, Notice): New sections.
33898         * modules/argp (Depends-on): Add memchr.
33899         * modules/base64 (Depends-on): Likewise.
33900         * modules/c-strcasestr (Depends-on): Likewise.
33901         * modules/chdir-long (Depends-on): Likewise.
33902         * modules/fnmatch (Depends-on): Likewise.
33903         * modules/getsubopt (Depends-on): Likewise.
33904         * modules/git-merge-changelog (Depends-on): Likewise.
33905         * modules/glob (Depends-on): Likewise.
33906         * modules/strcasestr-simple (Depends-on): Likewise.
33907         * modules/strnlen (Depends-on): Likewise.
33908
33909 2008-11-02  Bruno Haible  <bruno@clisp.org>
33910
33911         Mark 'atexit' obsolete.
33912         * modules/atexit (Status, Notice): New sections.
33913         * modules/chdir-long (Depends-on): Add atexit.
33914         * modules/wait-process (Depends-on): Likewise.
33915
33916 2008-11-02  Bruno Haible  <bruno@clisp.org>
33917
33918         * gnulib-tool: New option --with-obsolete.
33919         (func_usage): Document it.
33920         (func_modules_transitive_closure): Drop obsolete dependencies if
33921         incobsolete is not true.
33922         (func_import): Read and save the incobsolete variable to the cache.
33923
33924 2008-11-02  Bruno Haible  <bruno@clisp.org>
33925
33926         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33927         * gnulib-tool: New option --extract-status.
33928         (func_usage): Document it.
33929         (sed_extract_prog): Recognize it.
33930         (func_get_status): New function.
33931
33932 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33933
33934         * modules/sockets (License): Change from LGPL to LGPLv2+.
33935
33936 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33937
33938         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33939
33940 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33941
33942         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33943         Mention times and sys_times.
33944         * modules/sys_times, modules/sys_times-tests: New modules.
33945         * modules/times, modules/times-tests: Likewise
33946         * m4/sys_times_h.m4: New file.
33947         * lib/sys_times.in.h: Likewise
33948         * lib/times.c: Likewise.
33949         * tests/test-sys_times.c: Likewise.
33950         * tests/test-times.c: Likewise.
33951         * doc/posix-headers/sys_times.texi: Update.
33952         * doc/posix-functions/times.texi: Update.
33953
33954 2008-10-28  Jim Meyering  <meyering@redhat.com>
33955
33956         * modules/tempname (Depends-on): Add lstat.
33957
33958         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33959
33960 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33961
33962         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33963         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33964         using idiom used elsewhere in gnulib.
33965
33966 2008-10-27  Jim Meyering  <meyering@redhat.com>
33967
33968         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33969
33970 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33971
33972         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33973         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33974         programs.
33975         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33976
33977 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33978
33979         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33980
33981 2008-10-27  Bruno Haible  <bruno@clisp.org>
33982
33983         * tests/test-lstat.c: Include <stdio.h>.
33984
33985 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33986
33987         * modules/lstat-tests: New module.
33988         * tests/test-lstat.c: New file.
33989
33990 2008-10-26  Jim Meyering  <meyering@redhat.com>
33991
33992         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33993
33994 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33995             Bruno Haible  <bruno@clisp.org>
33996
33997         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33998         * modules/configmake (Include): Add a note that the include must come
33999         after all system headers.
34000         * lib/javaversion.c: Include configmake.h after all other includes.
34001
34002 2008-10-26  Bruno Haible  <bruno@clisp.org>
34003
34004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34005         HAVE_STRUCT_RANDOM_DATA to 1.
34006         (gl_STDLIB_H): Simplify.
34007
34008 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34009
34010         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34011         substitute HAVE_STRUCT_RANDOM_DATA.
34012         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34013         random_data.
34014         * modules/stdlib (Makefile.am): Substitute
34015         HAVE_STRUCT_RANDOM_DATA.
34016
34017 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34018
34019         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34020         * doc/gnulib-intro.texi (Copyright): Likewise.
34021
34022 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34023
34024         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34025         findings.
34026
34027 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34028             Bruno Haible  <bruno@clisp.org>
34029
34030         * lib/unistd.in.h: Include <winsock2.h>.
34031         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34032         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34033         Provide dummy declarations.
34034         (gethostname): Override.
34035         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34036         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34037         gl_PREREQ_SYS_H_WINSOCK2.
34038         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34039         * doc/posix-functions/gethostname.texi: More details.
34040
34041 2008-10-25  Bruno Haible  <bruno@clisp.org>
34042
34043         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34044         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34045         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34046
34047         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34048         here ...
34049         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34050         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34051         gl_UNISTD_H_DEFAULTS.
34052
34053 2008-10-25  Eric Blake  <ebb9@byu.net>
34054
34055         signbit: avoid spurious compiler failure
34056         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34057         declarations inside function.
34058
34059 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34060             Bruno Haible  <bruno@clisp.org>
34061
34062         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34063         * modules/random_r (Depends-on): Add stdint.
34064
34065 2008-10-24  Bruno Haible  <bruno@clisp.org>
34066
34067         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34068         Eggert.
34069         * modules/strerror (License): Likewise.
34070
34071 2008-10-24  Jim Meyering  <meyering@redhat.com>
34072
34073         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34074         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34075
34076 2008-10-24  Eric Blake  <ebb9@byu.net>
34077
34078         getgroups: fix compilation when getgroups is available
34079         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34080         but with <config.h> override of getgroups disabled.
34081
34082 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34083
34084         * doc/gnulib.texi (Header files): Add note about C++ problems.
34085         Explained by Bruno Haible <bruno@clisp.org>.
34086
34087 2008-10-23  Bruno Haible  <bruno@clisp.org>
34088
34089         Define a dummy SA_NODEFER macro on Interix.
34090         * lib/signal.in.h (SA_NODEFER): Define fallback.
34091         Reported by Aleksey Cheusov <cheusov@tut.by> via
34092         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34093
34094 2008-10-23  Bruno Haible  <bruno@clisp.org>
34095
34096         * modules/freadahead (License): Change to LGPLv2+.
34097         Suggested by Simon Josefsson.
34098
34099 2008-10-23  Jim Meyering  <meyering@redhat.com>
34100
34101         random_r: new module
34102         * modules/random_r: New file.
34103         * m4/random_r.m4: New file.
34104         * lib/random_r.c: New file, from glibc.
34105         * modules/random_r-tests: New file.
34106         * tests/test-random_r.c: New file.
34107         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34108          Declare.
34109         (RAND_MAX): Define.
34110         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34111         * modules/stdlib: Substitute them, too.
34112         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34113         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34114         * doc/glibc-functions/random_r.texi: Likewise.
34115         * doc/glibc-functions/setstate_r.texi: Likewise.
34116         * doc/glibc-functions/srandom_r.texi: Likewise.
34117         * config/srclist.txt: Mention it.
34118
34119 2008-10-23  David Lutterkort  <lutter@redhat.com>
34120
34121         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34122         link requirement
34123
34124 2008-10-23  Jim Meyering  <meyering@redhat.com>
34125
34126         selinux-h: mark parameters of stub functions as intentionally unused
34127         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34128         * lib/se-context.in.h: Likewise.
34129
34130 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34131
34132         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34133
34134 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34135
34136         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34137
34138 2008-10-22  Eric Blake  <ebb9@byu.net>
34139
34140         glthread/thread: avoid compiler warning
34141         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34142         Add unreachable abort to silence compiler.
34143
34144 2008-10-22  Eric Blake  <ebb9@byu.net>
34145
34146         netdb: also supply struct addrinfo for cygwin 1.5.x
34147         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34148         older cygwin.
34149         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34150         cygwin.
34151         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34152
34153 2008-10-22  Bruno Haible  <bruno@clisp.org>
34154
34155         * users.txt: Update entry about pspp.
34156
34157 2008-10-21  Bruno Haible  <bruno@clisp.org>
34158
34159         Simplification.
34160         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34161         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34162
34163         Simplification.
34164         * lib/ioctl.c (ioctl): Don't undefine.
34165         * lib/socket.c (socket): Don't undefine.
34166
34167         Remove unused module indicator macros.
34168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34169         GNULIB_$1 as a C macro.
34170
34171         * doc/posix-functions/close.texi: Undo last change.
34172         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34173         Windows platforms.
34174
34175 2008-10-21  Bruno Haible  <bruno@clisp.org>
34176
34177         Add gethostname() declaration to <unistd.h>.
34178         * lib/unistd.in.h (gethostname): New declaration.
34179         * lib/gethostname.c: Include <unistd.h>.
34180         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34181         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34183         and HAVE_GETHOSTNAME.
34184         * modules/gethostname (Depends-on): Add unistd.
34185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34186         (Include): Specify <unistd.h>.
34187         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34188         HAVE_GETHOSTNAME.
34189         * tests/test-gethostname.c: Include <unistd.h> first.
34190
34191 2008-10-21  Bruno Haible  <bruno@clisp.org>
34192
34193         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34194         * modules/select-tests (Depends-on): Likewise.
34195         Reported by Simon Josefsson.
34196
34197 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34198
34199         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34200         * lib/accept.c: New file, based on winsock.c.
34201         * lib/bind.c: New file, based on winsock.c.
34202         * lib/connect.c: New file, based on winsock.c.
34203         * lib/getpeername.c: New file, based on winsock.c.
34204         * lib/getsockname.c: New file, based on winsock.c.
34205         * lib/getsockopt.c: New file, based on winsock.c.
34206         * lib/ioctl.c: New file, based on winsock.c.
34207         * lib/listen.c: New file, based on winsock.c.
34208         * lib/recv.c: New file, based on winsock.c.
34209         * lib/recvfrom.c: New file, based on winsock.c.
34210         * lib/send.c: New file, based on winsock.c.
34211         * lib/sendto.c: New file, based on winsock.c.
34212         * lib/setsockopt.c: New file, based on winsock.c.
34213         * lib/shutdown.c: New file, based on winsock.c.
34214         * lib/socket.c: New file, based on winsock.c.
34215         * lib/w32sock.h: New file, based on winsock.c.
34216         * lib/winsock.c: Remove file.
34217         * modules/accept: Likewise.
34218         * modules/bind: Likewise.
34219         * modules/connect: Likewise.
34220         * modules/getpeername: Likewise.
34221         * modules/getsockname: Likewise.
34222         * modules/getsockopt: Likewise.
34223         * modules/ioctl: Likewise.
34224         * modules/listen: Likewise.
34225         * modules/recv: Likewise.
34226         * modules/recvfrom: Likewise.
34227         * modules/send: Likewise.
34228         * modules/sendto: Likewise.
34229         * modules/setsockopt: Likewise.
34230         * modules/shutdown: Likewise.
34231         * modules/socket: Use socket.c instead of winsock.c.
34232         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34233         * doc/posix-functions/accept.texi: Doc fix.
34234         * doc/posix-functions/bind.texi: Doc fix.
34235         * doc/posix-functions/close.texi: Doc fix.
34236         * doc/posix-functions/connect.texi: Doc fix.
34237         * doc/posix-functions/getpeername.texi: Doc fix.
34238         * doc/posix-functions/getsockname.texi: Doc fix.
34239         * doc/posix-functions/getsockopt.texi: Doc fix.
34240         * doc/posix-functions/ioctl.texi: Doc fix.
34241         * doc/posix-functions/listen.texi: Doc fix.
34242         * doc/posix-functions/recv.texi: Doc fix.
34243         * doc/posix-functions/recvfrom.texi: Doc fix.
34244         * doc/posix-functions/send.texi: Doc fix.
34245         * doc/posix-functions/sendto.texi: Doc fix.
34246         * doc/posix-functions/setsockopt.texi: Doc fix.
34247         * doc/posix-functions/shutdown.texi: Doc fix.
34248         * doc/posix-functions/socket.texi: Doc fix.
34249
34250 2008-10-20  Bruno Haible  <bruno@clisp.org>
34251
34252         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34253         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34254         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34255         as an alias for SIGABRT.
34256         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34257         (sigaction): Map it to SIGABRT.
34258         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34259
34260 2008-10-20  Bruno Haible  <bruno@clisp.org>
34261
34262         * lib/fts.c: Don't include lstat.h.
34263         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34264
34265         Move the lstat() declaration to <sys/stat.h>.
34266         * lib/lstat.h: Remove file.
34267         * lib/sys_stat.in.h: Add special invocation convention.
34268         (lstat): New declaration.
34269         * lib/lstat.c (orig_lstat): New function.
34270         (rpl_lstat): Use orig_lstat instead of lstat.
34271         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34272         AC_C_INLINE. Set REPLACE_LSTAT.
34273         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34274         and REPLACE_LSTAT.
34275         * modules/lstat (Files): Remove lib/lstat.h.
34276         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34277         (Include): Specify <sys/stat.h> instead of lstat.h.
34278         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34279         REPLACE_LSTAT.
34280         * NEWS: Mention the change.
34281
34282 2008-10-20  Bruno Haible  <bruno@clisp.org>
34283
34284         * modules/posix_spawn-tests: New file.
34285         * tests/test-posix_spawn3.c: New file.
34286
34287 2008-10-20  Bruno Haible  <bruno@clisp.org>
34288
34289         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34290         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34291         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34292         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34293         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34294
34295 2008-10-20  Bruno Haible  <bruno@clisp.org>
34296
34297         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34298         of posix_spawn on AIX 5.3.
34299
34300 2008-10-20  Bruno Haible  <bruno@clisp.org>
34301
34302         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34303
34304 2008-10-20  Bruno Haible  <bruno@clisp.org>
34305
34306         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34307         of AC_LANG_PROGRAM.
34308
34309 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34310
34311         * lib/netdb.in.h: Don't define GNU specific constants until they
34312         are supported or needed.  Reported by Bruno Haible
34313         <bruno@clisp.org>.
34314
34315 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34316
34317         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34318
34319 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34320
34321         * lib/getaddrinfo.h: Remove file.
34322         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34323         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34324         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34325         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34326         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34327         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34328         * tests/test-getaddrinfo.c: Likewise.
34329         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34330         * NEWS: Mention change.
34331
34332 2008-10-19  Bruno Haible  <bruno@clisp.org>
34333
34334         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34335
34336 2008-10-19  Bruno Haible  <bruno@clisp.org>
34337
34338         * lib/wait-process.c: Include simply <sys/wait.h>.
34339         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34340         WIFSTOPPED): Remove fallback definitions.
34341         * modules/wait-process (Depends-on): Add sys_wait.
34342
34343         New module 'sys_wait'.
34344         * modules/sys_wait: New file.
34345         * lib/sys_wait.in.h: New file, partially copied from
34346         lib/wait-process.c.
34347         * m4/sys_wait_h.m4: New file.
34348         * doc/posix-headers/sys_wait.texi: Mention the new module.
34349
34350 2008-10-19  Bruno Haible  <bruno@clisp.org>
34351
34352         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34353
34354 2008-10-19  Bruno Haible  <bruno@clisp.org>
34355
34356         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34357         * lib/wait-process.c (WAIT_T): Remove type.
34358         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34359         (wait_subprocess): Update.
34360
34361 2008-10-19  Bruno Haible  <bruno@clisp.org>
34362
34363         New module 'atoll'.
34364         * modules/atoll: New file.
34365         * lib/stdlib.in.h (atoll): New declaration.
34366         * lib/atoll.c: New file, from glibc with modifications.
34367         * m4/atoll.m4: New file.
34368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34369         HAVE_ATOLL.
34370         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34371         * doc/posix-functions/atoll.texi: Mention the new module.
34372
34373 2008-10-19  Bruno Haible  <bruno@clisp.org>
34374
34375         Add strtoull() declaration to <stdlib.h>.
34376         * lib/stdlib.in.h (strtoull): New declaration.
34377         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34378         Set HAVE_STRTOULL.
34379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34380         HAVE_STRTOULL.
34381         * modules/strtoull (Depends-on): Add stdlib.
34382         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34383         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34384         HAVE_STRTOULL.
34385
34386 2008-10-19  Bruno Haible  <bruno@clisp.org>
34387
34388         Add strtoll() declaration to <stdlib.h>.
34389         * lib/stdlib.in.h (strtoll): New declaration.
34390         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34391         Set HAVE_STRTOLL.
34392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34393         HAVE_STRTOLL.
34394         * modules/strtoll (Depends-on): Add stdlib.
34395         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34396         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34397
34398 2008-10-19  Bruno Haible  <bruno@clisp.org>
34399
34400         * modules/bcopy (Depends-on): Add strings.
34401         (Include): Specify <strings.h>.
34402
34403 2008-10-19  Bruno Haible  <bruno@clisp.org>
34404
34405         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34406
34407 2008-10-19  Bruno Haible  <bruno@clisp.org>
34408
34409         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34410         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34411         mingw.
34412
34413 2008-10-19  Bruno Haible  <bruno@clisp.org>
34414
34415         * lib/atanl.c: Don't include isnanl.h.
34416         * lib/cosl.c: Likewise.
34417         * lib/ldexpl.c: Likewise.
34418         * lib/logl.c: Likewise.
34419         * lib/sinl.c: Likewise.
34420         * lib/sqrtl.c: Likewise.
34421         * lib/tanl.c: Likewise.
34422
34423         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34424         * lib/isnanf.h: Remove file.
34425         * lib/isnand.h: Remove file.
34426         * lib/isnanl.h: Remove file.
34427         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34428         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34429         macros.
34430         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34431         HAVE_ISNANF, don't define it as a C macro.
34432         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34433         HAVE_ISNAND, don't define it as a C macro.
34434         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34435         HAVE_ISNANL, don't define it as a C macro.
34436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34437         HAVE_ISNAN[FDL].
34438         * modules/isnanf (Files): Remove lib/isnanf.h.
34439         (Depends-on): Add math.
34440         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34441         (Include): Specify <math.h> instead of isnanf.h.
34442         * modules/isnand (Files): Remove lib/isnand.h.
34443         (Depends-on): Add math.
34444         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34445         (Include): Specify <math.h> instead of isnand.h.
34446         * modules/isnanl (Files): Remove lib/isnanl.h.
34447         (Depends-on): Add math.
34448         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34449         (Include): Specify <math.h> instead of isnanl.h.
34450         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34451         HAVE_ISNAN[FDL].
34452         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34453         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34454         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34455         * NEWS: Mention the change.
34456
34457 2008-10-18  Bruno Haible  <bruno@clisp.org>
34458
34459         Add getusershell(), setusershell(), endusershell() declarations to
34460         <unistd.h>.
34461         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
34462         declarations.
34463         * lib/getusershell.c: Include unistd.h.
34464         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
34465         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34466         HAVE_GETUSERSHELL.
34467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
34468         and HAVE_GETUSERSHELL.
34469         * modules/getusershell (Depends-on): Add unistd, extensions.
34470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34471         (Include): Specify <unistd.h>.
34472         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
34473         HAVE_GETUSERSHELL.
34474
34475 2008-10-18  Bruno Haible  <bruno@clisp.org>
34476
34477         Add a getloadavg() declaration to <stdlib.h>.
34478         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
34479         getloadavg declaration.
34480         (getloadavg): New declaration.
34481         * lib/getloadavg.c: Include <stdlib.h> first.
34482         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
34483         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
34484         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
34485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
34486         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34487         * modules/getloadavg (Depends-on): Add stdlib, extensions.
34488         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34489         (Include): Specify <stdlib.h>.
34490         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
34491         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34492
34493 2008-10-18  Bruno Haible  <bruno@clisp.org>
34494
34495         * lib/dirchownmod.c: Don't include lchmod.h.
34496
34497         Move the lchmod() declaration to <sys/stat.h>.
34498         * lib/lchmod.h: Remove file.
34499         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
34500         (lchmod): New declaration, moved here from lib/lchown.h.
34501         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
34502         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
34503         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
34504         and HAVE_LCHMOD.
34505         * modules/lchmod (Files): Remove lib/lchmod.h.
34506         (Depends-on): Add sys_stat, extensions.
34507         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34508         (Include): Specify <sys/stat.h> instead of lchmod.h.
34509         * modules/sys_stat (Depends-on): Add link-warning.
34510         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
34511         definition of GL_LINK_WARNING.
34512         * NEWS: Mention the change.
34513
34514 2008-10-18  Bruno Haible  <bruno@clisp.org>
34515
34516         * lib/fchdir.c: Don't include dirfd.h.
34517         * lib/fts.c: Likewise.
34518         * lib/getcwd.c: Likewise.
34519         * lib/glob.c: Likewise.
34520
34521         Move the dirfd() declaration to <dirent.h>.
34522         * lib/dirfd.h: Remove file.
34523         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
34524         (dirfd): New declaration.
34525         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
34526         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
34527         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
34528         HAVE_DECL_DIRFD.
34529         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
34530         HAVE_DECL_DIRFD.
34531         * modules/dirfd (Files): Remove lib/dirfd.h.
34532         (Depends-on): Add dirent, extensions.
34533         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
34534         (Include): Specify <dirent.h> instead of dirfd.h.
34535         * modules/dirent (Depends-on): Add link-warning.
34536         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
34537         definition of GL_LINK_WARNING.
34538         * NEWS: Mention the change.
34539
34540 2008-10-18  Bruno Haible  <bruno@clisp.org>
34541
34542         Move the euidaccess() declaration to <unistd.h>.
34543         * lib/euidaccess.h: Remove file.
34544         * lib/unistd.in.h (euidaccess): New declaration.
34545         * lib/euidaccess.c: Don't include euidaccess.h.
34546         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
34547         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
34548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
34549         and HAVE_EUIDACCESS.
34550         * modules/euidaccess (Files): Remove lib/euidaccess.h.
34551         (Depends-on): Add unistd.
34552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34553         (Include): Specify <unistd.h> instead of euidaccess.h.
34554         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
34555         HAVE_EUIDACCESS.
34556         * NEWS: Mention the change.
34557
34558 2008-10-18  Bruno Haible  <bruno@clisp.org>
34559
34560         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
34561
34562         Move the getdomainname() declaration to <unistd.h>.
34563         * lib/getdomainname.h: Remove file.
34564         * lib/unistd.in.h (getdomainname): New declaration.
34565         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
34566         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
34567         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34568         HAVE_GETDOMAINNAME.
34569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34570         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
34571         * modules/getdomainname (Files): Remove lib/getdomainname.h.
34572         (Depends-on): Add unistd, extensions.
34573         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34574         (Includes): Specify <unistd.h> instead of getdomainname.h.
34575         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
34576         HAVE_GETDOMAINNAME.
34577         * NEWS: Mention the change.
34578
34579 2008-10-18  Bruno Haible  <bruno@clisp.org>
34580
34581         * modules/dirent: New file.
34582         * m4/dirent_h.m4: New file.
34583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
34584         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
34585         * modules/fchdir (Files): Remove lib/dirent.in.h.
34586         (Depends-on): Add dirent.
34587         (Makefile.am): Move rules to modules/dirent.
34588         * doc/posix-headers/dirent.texi: Mention the new module.
34589
34590 2008-10-18  Bruno Haible  <bruno@clisp.org>
34591
34592         Avoid -Wunused-parameter warnings in public gnulib header files.
34593         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
34594         macro.
34595         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
34596
34597 2008-10-18  Bruno Haible  <bruno@clisp.org>
34598
34599         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
34600         * doc/glibc-functions/error.texi: Mention the module 'error'.
34601         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
34602         * doc/glibc-functions/getdomainname.texi: Mention the module
34603         'getdomainname'.
34604         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
34605         * doc/glibc-functions/getpagesize.texi: Mention the module
34606         'getpagesize'.
34607         * doc/glibc-functions/getusershell.texi: Mention the module
34608         'getusershell'.
34609         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
34610         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
34611         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
34612         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
34613         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
34614         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
34615         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
34616         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
34617         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
34618         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
34619         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
34620         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
34621         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
34622         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
34623
34624 2008-10-17  Bruno Haible  <bruno@clisp.org>
34625
34626         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
34627         HP-UX and IRIX, use -0.0L.
34628         * tests/test-ceill.c (minus_zero): Likewise.
34629         * tests/test-floorl.c (minus_zero): Likewise.
34630         * tests/test-frexpl.c (minus_zero): Likewise.
34631         * tests/test-isnan.c (minus_zerol): Likewise.
34632         * tests/test-isnanl.h (minus_zero): Likewise.
34633         * tests/test-ldexpl.c (minus_zero): Likewise.
34634         * tests/test-roundl.c (minus_zero): Likewise.
34635         * tests/test-signbit.c (minus_zerol): Likewise.
34636         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34637         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34638         * tests/test-truncl.c (minus_zero): Likewise.
34639         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34640         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34641         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
34642         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34643
34644 2008-10-17  Bruno Haible  <bruno@clisp.org>
34645
34646         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
34647         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
34648         that it gets activated only for gcc >= 3.0.
34649         * lib/dirent.in.h: Likewise.
34650         * lib/errno.in.h: Likewise.
34651         * lib/fcntl.in.h: Likewise.
34652         * lib/float.in.h: Likewise.
34653         * lib/iconv.in.h: Likewise.
34654         * lib/inttypes.in.h: Likewise.
34655         * lib/locale.in.h: Likewise.
34656         * lib/math.in.h: Likewise.
34657         * lib/netdb.in.h: Likewise.
34658         * lib/netinet_in.in.h: Likewise.
34659         * lib/search.in.h: Likewise.
34660         * lib/signal.in.h: Likewise.
34661         * lib/spawn.in.h: Likewise.
34662         * lib/stdarg.in.h: Likewise.
34663         * lib/stdint.in.h: Likewise.
34664         * lib/stdio.in.h: Likewise.
34665         * lib/stdlib.in.h: Likewise.
34666         * lib/string.in.h: Likewise.
34667         * lib/strings.in.h: Likewise.
34668         * lib/sys_file.in.h: Likewise.
34669         * lib/sys_ioctl.in.h: Likewise.
34670         * lib/sys_select.in.h: Likewise.
34671         * lib/sys_socket.in.h: Likewise.
34672         * lib/sys_stat.in.h: Likewise.
34673         * lib/sys_time.in.h: Likewise.
34674         * lib/sysexits.in.h: Likewise.
34675         * lib/time.in.h: Likewise.
34676         * lib/unistd.in.h: Likewise.
34677         * lib/wchar.in.h: Likewise.
34678         * lib/wctype.in.h: Likewise.
34679         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34680
34681 2008-10-17  Jim Meyering  <meyering@redhat.com>
34682
34683         ignore-value: don't depend on inline module
34684         * modules/ignore-value (Depends-on): Remove 'inline'.
34685         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
34686         Suggestion from Bruno Haible.
34687
34688 2008-10-17  Bruno Haible  <bruno@clisp.org>
34689
34690         New implementation of condition variables for Win32.
34691         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
34692         (gl_linked_waitqueue_t): New type.
34693         (gl_cond_t): Use it.
34694         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
34695         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
34696         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
34697         (glthread_cond_init_func, glthread_cond_wait_func,
34698         glthread_cond_timedwait_func, glthread_cond_signal_func,
34699         glthread_cond_broadcast_func, glthread_cond_destroy_func):
34700         Reimplemented on the basis of gl_linked_waitqueue_t.
34701         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
34702         gl_waitqueue_t.
34703         (gl_rwlock_t): Update.
34704         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
34705
34706 2008-10-17  Simon Josefsson  <simon@josefsson.org>
34707
34708         * modules/recvfrom (Depends-on): Add dependency on getpeername.
34709         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34710
34711 2008-10-17  Jim Meyering  <meyering@redhat.com>
34712
34713         ignore-value: new module
34714         * modules/ignore-value: New file.
34715         * lib/ignore-value.h: New file.
34716         * MODULES.html.sh (Compiler warning management): New section,
34717         just for this module.  More to come.
34718
34719 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34720
34721         open-safer.c: avoid 'signed and unsigned in conditional...' warning
34722         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
34723         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
34724
34725 2008-10-16  Jim Meyering  <meyering@redhat.com>
34726
34727         openat-die.c: avoid 'no previous prototype' warning
34728         * lib/openat-die.c: Include "openat.h".
34729         Reported by Reuben Thomas <rrt@sc3d.org>.
34730
34731 2008-10-16  Simon Josefsson  <simon@josefsson.org>
34732
34733         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
34734         * lib/netdb.in.h: Fix typo.
34735         Reported by Bruno Haible  <bruno@clisp.org>
34736
34737         * lib/netdb.in.h: Include sys/socket.h for platforms without
34738         netdb.h, to get structures like hostent on MinGW.
34739         * modules/netdb (Depends-on): Add sys_socket.
34740
34741 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34742
34743         * modules/netdb, modules/netdb-tests: New file.
34744         * m4/netdb_h.m4: New file.
34745         * lib/netdb.in.h: Add, currently just an empty file pending
34746         definitions.
34747         * tests/test-netdb.c: New file.
34748         * doc/posix-headers/netdb.texi: Mention that we replace it if
34749         needed.
34750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34751         netdb.
34752
34753 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34754
34755         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
34756         with code.
34757
34758 2008-10-13  Bruno Haible  <bruno@clisp.org>
34759
34760         * lib/glthread/cond.c (glthread_cond_wait_func,
34761         glthread_cond_timedwait_func): Add a comment.
34762
34763 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34764
34765         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
34766         * tests/test-select.c: Likewise,
34767
34768 2008-10-13  Bruno Haible  <bruno@clisp.org>
34769
34770         * lib/glthread/cond.c (glthread_cond_wait_func,
34771         glthread_cond_timedwait_func): Fix variable name.
34772         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34773
34774 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
34775
34776         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
34777         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
34778         struct sockaddr.sa_len.
34779         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
34780
34781 2008-10-13  Simon Josefsson  <simon@josefsson.org>
34782
34783         * build-aux/pmccabe2html: Add css and css_url parameters.
34784
34785 2008-10-12  Bruno Haible  <bruno@clisp.org>
34786
34787         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
34788         calling aclx_get.
34789         Reported by Rainer Tammer <tammer@tammer.net>.
34790
34791 2008-10-12  Bruno Haible  <bruno@clisp.org>
34792
34793         Use msvcrt aware primitives for creation/termination of Win32 threads.
34794         * lib/glthread/thread.c: Include <process.h>.
34795         (glthread_create_func): Use _beginthreadex instead of CreateThread.
34796         (wrapper_func): Update signature.
34797         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34798
34799 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34800             Bruno Haible  <bruno@clisp.org>
34801
34802         Provide a Win32 implementation of the 'cond' module.
34803         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34804         * lib/glthread/cond.c (glthread_cond_init_func,
34805         glthread_cond_wait_func, glthread_cond_timedwait_func,
34806         glthread_cond_signal_func, glthread_cond_broadcast_func,
34807         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34808         * modules/cond (Dependencies): Add gettimeofday.
34809
34810 2008-10-11  Bruno Haible  <bruno@clisp.org>
34811
34812         Make sleep work on older versions of mingw.
34813         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34814         only whether it exists.
34815         * doc/posix-functions/sleep.texi: Mention the problem with older
34816         versions of mingw.
34817
34818 2008-10-11  Bruno Haible  <bruno@clisp.org>
34819
34820         New module 'shutdown'.
34821         * modules/shutdown: New file.
34822         * lib/sys_socket.in.h (shutdown): New declaration.
34823         * lib/winsock.c (shutdown): New function.
34824         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34825         GNULIB_SHUTDOWN.
34826         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34827         * doc/posix-functions/shutdown.texi: Document the new module.
34828
34829 2008-10-11  Jim Meyering  <meyering@redhat.com>
34830
34831         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34832
34833 2008-10-11  Bruno Haible  <bruno@clisp.org>
34834
34835         New module 'fclose'.
34836         * modules/fclose: New file.
34837         * lib/stdio.in.h (fclose): New declaration.
34838         * lib/fclose.c: New file.
34839         * m4/fclose.m4: New file.
34840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34841         REPLACE_FCLOSE.
34842         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34843         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34844         REPLACE_FCLOSE.
34845         * modules/close (Depends-on): fclose.
34846         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34847
34848 2008-10-11  Bruno Haible  <bruno@clisp.org>
34849
34850         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34851         set errno and don't call _close.
34852
34853 2008-10-10  Bruno Haible  <bruno@clisp.org>
34854
34855         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34856         ACL, not afterwards. Fixes test failure on Cygwin.
34857
34858 2008-10-09  Ben Pfaff  <blp@gnu.org>
34859
34860         * build-aux/announce-gen: Fix gnulib version related part of usage
34861         message.  Die with a useful error message if no tarballs are
34862         found.
34863
34864 2008-10-10  Jim Meyering  <meyering@redhat.com>
34865
34866         bootstrap: use git's --depth=N option only if it's supported
34867         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34868         recognize the --depth option.  Reported by Pádraig Brady.
34869
34870 2008-10-09  Bruno Haible  <bruno@clisp.org>
34871
34872         New module 'ioctl'.
34873         * modules/ioctl: New file.
34874         * lib/sys_socket.in.h (ioctl): Remove declaration.
34875         * lib/winsock.c: Include <sys/ioctl.h>.
34876         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34877         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34878         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34879         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34880         * doc/posix-functions/ioctl.texi: Mention the new module.
34881
34882 2008-10-09  Bruno Haible  <bruno@clisp.org>
34883
34884         New module 'sys_ioctl'.
34885         * lib/sys_ioctl.in.h: New file.
34886         * m4/sys_ioctl_h.m4: New file.
34887         * modules/sys_ioctl: New file.
34888         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34889
34890 2008-10-09  Bruno Haible  <bruno@clisp.org>
34891
34892         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34893         * lib/winsock.c: Include <stdarg.h>.
34894         (rpl_ioctl): Change to second argument 'int' and then varargs.
34895
34896 2008-10-09  Bruno Haible  <bruno@clisp.org>
34897
34898         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34899         when the sys_socket module is present and the system has <winsock2.h>.
34900
34901 2008-10-09  Bruno Haible  <bruno@clisp.org>
34902
34903         * doc/posix-functions/close.texi: Mention module 'close' instead of
34904         module 'sys_socket'.
34905
34906 2008-10-09  Bruno Haible  <bruno@clisp.org>
34907
34908         * doc/glibc-headers/sys_ioctl.texi: New file.
34909         * doc/gnulib.texi: Include it.
34910
34911 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34912             Bruno Haible  <bruno@clisp.org>
34913
34914         Combine the two replacements of 'close'.
34915         * lib/sys_socket.in.h (close): Define to a reminder to include
34916         <unistd.h>.
34917         (_gl_close_fd_maybe_socket): New declaration.
34918         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34919         * lib/winsock.c (close): Remove undefinition.
34920         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34921         needed for the gnulib module 'close'.
34922         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34923         define to an error symbol or to a warning, if suitable.
34924         * lib/close.c: Include <sys/socket.h>.
34925         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34926         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34927         UNISTD_H_HAVE_WINSOCK2_H.
34928         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34930         UNISTD_H_HAVE_WINSOCK2_H.
34931         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34932         (configure.ac): Set a module indicator.
34933         (Makefile.am): Substitute GNULIB_CLOSE.
34934         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34935         * modules/poll-tests (Depends-on): Add close.
34936         * modules/select-tests (Depends-on): Likewise.
34937
34938 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34939             Bruno Haible  <bruno@clisp.org>
34940
34941         New module 'close'.
34942         * modules/close: New file.
34943         * lib/unistd.in.h (close): Move declaration out of the
34944         FCHDIR_REPLACEMENT scope.
34945         (_gl_unregister_fd): New declaration.
34946         * lib/close.c: New file.
34947         * lib/fchdir.c (rpl_close): Remove function.
34948         * m4/close.m4: New file.
34949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34950         close.
34951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34952         REPLACE_CLOSE.
34953         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34954         REPLACE_CLOSE.
34955         * modules/fchdir (Depends-on): Add close.
34956
34957 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34958             Bruno Haible  <bruno@clisp.org>
34959
34960         * lib/fcntl.in.h (open): Simplify conditionals.
34961         (_gl_register_fd): New declaration.
34962         * lib/fchdir.c (rpl_open): Remove function.
34963         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34964         also.
34965         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34966         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34967         open.
34968
34969 2008-10-09  Jim Meyering  <meyering@redhat.com>
34970
34971         GNUmakefile: use the more name-space-friendly "_version"
34972         * top/GNUmakefile (_dummy): Update.
34973         (_version): Rename from "version".
34974
34975 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34976             Bruno Haible  <bruno@clisp.org>
34977
34978         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34979         rpl_close.
34980         (_gl_register_fd): New function, extracted from rpl_open.
34981         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34982         (rpl_open, rpl_opendir): Use _gl_register_fd.
34983
34984 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34985
34986         Fix organization of 'open' replacement.
34987         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34988         (gl_FUNC_OPEN): Use it.
34989         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34990
34991 2008-10-08  Bruno Haible  <bruno@clisp.org>
34992
34993         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34994
34995 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34996
34997         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34998         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34999         listen).
35000
35001 2008-10-08  Eric Blake  <ebb9@byu.net>
35002
35003         GNUmakefile: add 'make version' target
35004         * top/GNUmakefile (_curr-ver): Split version update rules...
35005         (version): ...into a target.
35006
35007 2008-10-07  Bruno Haible  <bruno@clisp.org>
35008
35009         Use a more portable replacement expression for -0.0L.
35010         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35011         instead of -0.0L. Fix m4 quotation.
35012
35013         * tests/test-signbit.c: Include <float.h>.
35014         (minus_zero): New variable.
35015         (test_signbitl): Use minus_zero instead of -zero.
35016         * modules/signbit-tests (Depends-on): Add float.
35017
35018         * tests/test-ceill.c: Include <float.h>.
35019         (zero): Remove variable.
35020         (minus_zero): New variable.
35021         (main): Use minus_zero instead of -zero.
35022         * modules/ceill-tests (Depends-on): Add float.
35023
35024         * tests/test-floorl.c: Include <float.h>.
35025         (zero): Remove variable.
35026         (minus_zero): New variable.
35027         (main): Use minus_zero instead of -zero.
35028         * modules/floorl-tests (Depends-on): Add float.
35029
35030         * tests/test-roundl.c: Include <float.h>.
35031         (zero): Remove variable.
35032         (minus_zero): New variable.
35033         (main): Use minus_zero instead of -zero.
35034         * modules/roundl-tests (Depends-on): Add float.
35035
35036         * tests/test-truncl.c: Include <float.h>.
35037         (zero): Remove variable.
35038         (minus_zero): New variable.
35039         (main): Use minus_zero instead of -zero.
35040         * modules/truncl-tests (Depends-on): Add float.
35041
35042         * tests/test-frexpl.c (zero): Remove variable.
35043         (minus_zero): New variable.
35044         (main): Use minus_zero instead of -zero.
35045         * modules/frexpl-tests (Depends-on): Add float.
35046
35047         * tests/test-isnan.c (zerol): Remove variable.
35048         (minus_zerol): New variable.
35049         (test_long_double): Use minus_zerol instead of -zerol.
35050         * modules/isnan-tests (Depends-on): Add float.
35051
35052         * tests/test-isnanl.h (zero): Remove variable.
35053         (minus_zero): New variable.
35054         (main): Use minus_zero instead of -zero.
35055         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35056         * modules/isnanl-tests (Depends-on): Add float.
35057
35058         * tests/test-ldexpl.c (zero): Remove variable.
35059         (minus_zero): New variable.
35060         (main): Use minus_zero instead of -zero.
35061         * modules/ldexpl-tests (Depends-on): Add float.
35062
35063         * tests/test-snprintf-posix.h (zerol): Remove variable.
35064         (minus_zerol): New variable.
35065         (test_function): Use minus_zerol instead of -zerol.
35066         * modules/snprintf-posix-tests (Depends-on): Add float.
35067         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35068
35069         * tests/test-sprintf-posix.h (zerol): Remove variable.
35070         (minus_zerol): New variable.
35071         (test_function): Use minus_zerol instead of -zerol.
35072         * modules/sprintf-posix-tests (Depends-on): Add float.
35073         * modules/vsprintf-posix-tests (Depends-on): Add float.
35074
35075         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35076         (minus_zerol): New variable.
35077         (test_function): Use minus_zerol instead of -zerol.
35078         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35079
35080         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35081         (minus_zerol): New variable.
35082         (test_function): Use minus_zerol instead of -zerol.
35083         * modules/vasprintf-posix-tests (Depends-on): Add float.
35084
35085 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35086
35087         * MODULES.html.sh (Support for building documentation): Mention
35088         pmccabe2html.  Sort entries.
35089
35090         Add pmccabe2html module, from gnupdf.
35091         * build-aux/pmccabe.css: New file.
35092         * build-aux/pmccabe2html: New file.
35093         * m4/pmccabe2html.m4: New file.
35094         * modules/pmccabe2html: New file.
35095
35096 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35097
35098         flock: new module
35099         * MODULES.html.sh: Add to list of modules.
35100         * lib/flock.c: flock implementation for Windows and Unix systems
35101         which have fcntl.
35102         * doc/glibc-functions/flock.texi: Update documentation.
35103         * lib/sys_file.in.h: <sys/file.h> header file.
35104         * m4/flock.m4: M4 macros.
35105         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35106         * modules/flock: flock module.
35107         * modules/flock-tests: flock tests module.
35108         * modules/sys_file: sys/file.h module.
35109         * tests/test-flock.c: test suite for flock.
35110
35111 2008-10-06  Jim Meyering  <meyering@redhat.com>
35112
35113         bootstrap: check for LT_INIT more portably still ;-)
35114         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35115         Spotted by Bruno Haible.
35116
35117 2008-10-06  Eric Blake  <ebb9@byu.net>
35118
35119         test-signbit: avoid tripping Irix cc bug on -0.0L
35120         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35121         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35122         entire testsuite consistent and avoids an Irix 6.2 bug.
35123
35124 2008-10-05  Bruno Haible  <bruno@clisp.org>
35125             Jim Meyering  <jim@meyering.net>
35126
35127         Add an option for ignoring EPIPE during close_stdout.
35128         * lib/closeout.h: Include <stdbool.h>.
35129         (close_stdout_set_ignore_EPIPE): New declaration.
35130         * lib/closeout.c: Include <stdbool.h>.
35131         (ignore_EPIPE): New variable.
35132         (close_stdout_set_ignore_EPIPE): New function.
35133         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35134         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35135         failure.
35136         * modules/closeout (Depends-on): Add stdbool.
35137
35138 2008-10-05  Bruno Haible  <bruno@clisp.org>
35139
35140         * modules/accept: New file.
35141         * modules/bind: New file.
35142         * modules/connect: New file.
35143         * modules/getpeername: New file.
35144         * modules/getsockname: New file.
35145         * modules/getsockopt: New file.
35146         * modules/listen: New file.
35147         * modules/recv: New file.
35148         * modules/recvfrom: New file.
35149         * modules/send: New file.
35150         * modules/sendto: New file.
35151         * modules/setsockopt: New file.
35152         * modules/socket: New file.
35153         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35154         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35155         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35156         the particular module is requested. Add a link warning when the
35157         particular module is not requested.
35158         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35159         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35160         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35161         the particular module is requested.
35162         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35163         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35164         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35165         * modules/sys_socket (Depends-on): Add link-warning.
35166         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35167         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35168         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35169         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35170         GL_LINK_WARNING.
35171         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35172         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35173         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35174         * doc/posix-functions/getpeername.texi: Mention the new module
35175         'getpeername'.
35176         * doc/posix-functions/getsockname.texi: Mention the new module
35177         'getsockname'.
35178         * doc/posix-functions/getsockopt.texi: Mention the new module
35179         'getsockopt'.
35180         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35181         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35182         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35183         * doc/posix-functions/send.texi: Mention the new module 'send'.
35184         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35185         * doc/posix-functions/setsockopt.texi: Mention the new module
35186         'setsockopt'.
35187         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35188         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35189         listen, connect, accept.
35190         * modules/select-tests (Depends-on): Likewise.
35191
35192 2008-10-05  Bruno Haible  <bruno@clisp.org>
35193
35194         * lib/winsock.c (strerror): Remove unused #undef.
35195         (rpl_close): Remove unused local variable.
35196
35197         * modules/sys_socket (Depends-on); Add errno.
35198
35199 2008-10-05  Bruno Haible  <bruno@clisp.org>
35200
35201         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35202         (select): Add a link warning when the 'select' module is not used.
35203         * modules/sys_select (Depends-on): Add link-warning.
35204         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35205         Suggested by Paolo Bonzini.
35206
35207 2008-10-05  Jim Meyering  <meyering@redhat.com>
35208
35209         bootstrap: check for LT_INIT more portably
35210         * build-aux/bootstrap: Avoid using grep -E, since it's not
35211         portable enough.  Suggestion from Bruno Haible.
35212
35213 2008-10-05  Bruno Haible  <bruno@clisp.org>
35214
35215         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35216         as being fixed by gnulib.
35217
35218 2008-10-05  Bruno Haible  <bruno@clisp.org>
35219
35220         * modules/select-tests: New file, mostly copied from
35221         modules/sys_select-tests.
35222         * tests/test-select.c: New file, mostly copied from
35223         tests/test-sys_select.c.
35224         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35225         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35226         (Makefile.am): Remove test_sys_select_LDADD.
35227
35228         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35229         to an undefined symbol, for an error message.
35230         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35231         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35232         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35233         winsock-select.c here.
35234         * modules/sys_select (Files): Remove lib/winsock-select.c.
35235         (Depends-on): Remove alloca.
35236         (Makefile.am): Substitute GNULIB_SELECT.
35237         * modules/select: New file.
35238         * doc/posix-functions/select.texi: Update.
35239
35240 2008-10-05  Bruno Haible  <bruno@clisp.org>
35241
35242         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35243         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35244         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35245         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35246         getdtablesize.
35247         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35248         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35249
35250 2008-10-05  Bruno Haible  <bruno@clisp.org>
35251
35252         * modules/getdtablesize-tests: New file.
35253         * tests/test-getdtablesize.c: New file.
35254
35255         New module 'getdtablesize'.
35256         * lib/unistd.in.h (getdtablesize): New declaration.
35257         * lib/getdtablesize.c: New file.
35258         * m4/getdtablesize.m4: New file.
35259         * modules/getdtablesize: New file.
35260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35261         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35262         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35263         HAVE_GETDTABLESIZE.
35264         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35265
35266 2008-10-05  Bruno Haible  <bruno@clisp.org>
35267
35268         * modules/sched (Makefile.am): Fix typo.
35269         Reported by Simon Josefsson.
35270
35271 2008-10-05  Jim Meyering  <meyering@redhat.com>
35272
35273         bootstrap: check for LT_INIT, too
35274         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35275         are deprecated.  Suggestion from Ralf Wildenhues.
35276
35277 2008-10-05  Bruno Haible  <bruno@clisp.org>
35278
35279         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35280         overriding them by ours.
35281         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35282
35283 2008-10-05  Jim Meyering  <meyering@redhat.com>
35284
35285         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35286         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35287         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35288
35289 2008-10-04  Bruno Haible  <bruno@clisp.org>
35290
35291         * modules/dup2 (License): Change to LGPLv2+.
35292         * modules/sleep (License): Likewise.
35293         * modules/perror (License): Likewise.
35294         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35295         Blake.
35296         * modules/signal (License): Likewise.
35297         * modules/sigprocmask (License): Likewise.
35298         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35299         Meyering.
35300
35301 2008-10-04  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35304         Reported by Rainer Tammer <tammer@tammer.net>.
35305
35306 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35307             Bruno Haible  <bruno@clisp.org>
35308
35309         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35310         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35311         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35312
35313 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35314
35315         filevercmp: new module
35316         * lib/filevercmp.h: New function filevercmp comparing version strings.
35317         * lib/filevercmp.c: Implementation of filevercmp function.
35318         * modules/filevercmp: Module metadata.
35319         * tests/test-filevercmp.c: Unit test for new module.
35320         * modules/filevercmp-tests: Unit test metadata.
35321         * MODULES.html.sh: Add filevercmp module.
35322
35323 2008-10-03  Bruno Haible  <bruno@clisp.org>
35324
35325         * lib/c-ctype.h: Add comment.
35326         Reported by Jim Meyering.
35327
35328 2008-10-02  Bruno Haible  <bruno@clisp.org>
35329
35330         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35331
35332 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35333
35334         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35335         name of bootstrap.conf accordingly.
35336
35337 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35338
35339         * build-aux/bootstrap: Install git-merge-changelog configuration
35340         items into .gitconfig if needed.
35341
35342 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35343
35344         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35345         git repository, and initialize/update it accordingly.
35346
35347 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35348
35349         * modules/fsync-tests: New file.
35350         * tests/test-fsync.c: New file.
35351
35352         New module 'fsync'.
35353         * lib/fsync.c: New file.
35354         * m4/fsync.m4: New file.
35355         * modules/fsync: New file.
35356         * lib/unistd.in.h (fsync): New declaration.
35357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35358         GNULIB_FSYNC and HAVE_FSYNC.
35359         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35360         * MODULES.html.sh (posix_functions): Add fsync.
35361         * doc/posix-functions/fsync.texi: Mention the new module.
35362
35363 2008-10-02  Jim Meyering  <meyering@redhat.com>
35364
35365         fts.c: sync with similar code from coreutils' remove.c
35366         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35367         Guard also with "#if defined __linux__", since for now at least,
35368         this code is Linux-kernel-specific.
35369
35370 2008-10-02  Jim Meyering  <meyering@redhat.com>
35371
35372         fts: bug fixes
35373         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35374         Include <sys/vfs.h>, not <sys/statfs.h>.
35375
35376         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35377         Include <sys/vfs.h>, not <sys/statfs.h>.
35378
35379 2008-10-01  Bruno Haible  <bruno@clisp.org>
35380
35381         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35382         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35383         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35384         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35385         * doc/posix-functions/posix_spawnp.texi: Likewise.
35386         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35387         whether posix_spawn actually works.
35388         * m4/pipe.m4 (gl_PIPE): Likewise.
35389         * modules/execute (Files): Add m4/posix_spawn.m4.
35390         * modules/pipe (Files): Add m4/posix_spawn.m4.
35391         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35392
35393 2008-10-01  Jim Meyering  <meyering@redhat.com>
35394
35395         remove trailing spaces
35396         * NEWS: Likewise.
35397         * lib/poll.c (poll): Likewise.
35398         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35399         * lib/winsock.c (rpl_close): Likewise.
35400         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35401         * modules/yield: Likewise.
35402         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35403         * tests/test-sys_select.c (connect_to_socket): Likewise.
35404
35405         fts.c: adjust a new interface to be more generally useful
35406         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35407         (fts_build): Adjust caller.
35408
35409 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35410
35411         * modules/cond-tests: New file.
35412         * tests/test-cond.c: New file.
35413
35414 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35415             Bruno Haible  <bruno@clisp.org>
35416
35417         * modules/cond (Dependencies): Add errno, time.
35418         * lib/glthread/cond.h: Include <time.h>.
35419         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35420         across platforms.
35421
35422 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35423             Bruno Haible  <bruno@clisp.org>
35424
35425         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35426
35427 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35428             Bruno Haible  <bruno@clisp.org>
35429
35430         * modules/tls-tests (Depends-on): Add thread, yield.
35431         (configure.ac): Remove all checks.
35432         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35433         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35434         gl_thread_self): Remove definitions. Include glthread/thread.h and
35435         glthread/yield.h instead.
35436         (test_tls): Pass an additional NULL argument to gl_thread_join.
35437
35438 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35439             Bruno Haible  <bruno@clisp.org>
35440
35441         * modules/lock-tests (Depends-on): Add thread, yield.
35442         (configure.ac): Remove all checks.
35443         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35444         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35445         gl_thread_self): Remove definitions. Include glthread/thread.h and
35446         glthread/yield.h instead.
35447         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35448         additional NULL argument to gl_thread_join.
35449
35450 2008-09-30  Bruno Haible  <bruno@clisp.org>
35451
35452         Fix the Win32 implementation of the 'thread' module.
35453         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35454         pointer type.
35455         (gl_thread_self): Invoke gl_thread_self_func.
35456         (gl_thread_self_func): New declaration.
35457         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35458         (do_init_self_key, init_self_key): New functions.
35459         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35460         Remove some fields.
35461         (running_threads, running_lock): Remove variables.
35462         (get_current_thread_handle): New function.
35463         (gl_thread_self_func, wrapper_func, glthread_create_func,
35464         glthread_join_func, gl_thread_exit_func): Largely rewritten and
35465         simplified.
35466
35467 2008-09-30  Bruno Haible  <bruno@clisp.org>
35468
35469         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
35470         files.
35471
35472 2008-09-30  Jim Meyering  <meyering@redhat.com>
35473
35474         fts.m4: correct the test for statfs.f_type
35475         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
35476         when checking for statfs.f_type.
35477
35478 2008-09-15  Simon Josefsson  <simon@josefsson.org>
35479
35480         tests: avoid some compiler warnings
35481         * tests/test-memchr.c (main): Pass NULL indirectly.
35482         * tests/test-getdate.c (main): Remove unused variable 'ret'.
35483
35484 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
35485
35486         getdate.y: disallow countable dayshifts like "4 yesterday ago"
35487         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
35488         exactly specified dayshifts.
35489         (dayshift): New rule.
35490         (rel): Add dayshift.
35491         (relative_time_table) [tomorrow, yesterday, today, now]:
35492         Use tDAY_SHIFT in place of tDAY_UNIT.
35493         * tests/test-getdate.c: Add tests for now-disallowed countable
35494         dayshifts, e.g., "4 yesterday ago".
35495
35496 2008-09-29  Bruno Haible  <bruno@clisp.org>
35497
35498         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
35499         * tests/test-posix_spawn1.in.sh: Renamed from
35500         tests/test-posix_spawn.in.sh.
35501         * tests/test-posix_spawn2.c: New file.
35502         * tests/test-posix_spawn2.in.sh: New file.
35503         * modules/posix_spawnp-tests (Files): Update.
35504         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
35505
35506 2008-09-29  Bruno Haible  <bruno@clisp.org>
35507
35508         Propagate effects of putenv/setenv/unsetenv to child processes.
35509         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
35510         * lib/pipe.c (create_pipe): Likewise.
35511
35512 2008-09-29  Bruno Haible  <bruno@clisp.org>
35513
35514         Enable use of shell scripts as executables in mingw.
35515         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
35516         run the program as a shell script.
35517         * lib/pipe.c (create_pipe): Likewise.
35518         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
35519         resulting array.
35520
35521 2008-09-29  Eric Blake  <ebb9@byu.net>
35522
35523         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
35524
35525 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
35526
35527         * doc/posix-functions/accept.texi: Update mingw problems.
35528         * doc/posix-functions/bind.texi: Update mingw problems.
35529         * doc/posix-functions/close.texi: Update mingw problems.
35530         * doc/posix-functions/connect.texi: Update mingw problems.
35531         * doc/posix-functions/getpeername.texi: Update mingw problems.
35532         * doc/posix-functions/getsockname.texi: Update mingw problems.
35533         * doc/posix-functions/getsockopt.texi: Update mingw problems.
35534         * doc/posix-functions/ioctl.texi: Update mingw problems.
35535         * doc/posix-functions/listen.texi: Update mingw problems.
35536         * doc/posix-functions/recv.texi: Update mingw problems.
35537         * doc/posix-functions/recvfrom.texi: Update mingw problems.
35538         * doc/posix-functions/select.texi: Update mingw problems.
35539         * doc/posix-functions/send.texi: Update mingw problems.
35540         * doc/posix-functions/sendto.texi: Update mingw problems.
35541         * doc/posix-functions/setsockopt.texi: Update mingw problems.
35542         * doc/posix-functions/socket.texi: Update mingw problems.
35543
35544 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
35545             Bruno Haible  <bruno@clisp.org>
35546
35547         * lib/sys_select.in.h: Include sys/time.h.
35548         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
35549         * modules/sys_select: Depend on sys_time.
35550         * tests/test-sys_select.c: Test that sys/select.h defines struct
35551         timeval fully.
35552
35553 2008-09-29  Bruno Haible  <bruno@clisp.org>
35554
35555         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
35556         * lib/sys_select.in.h: Likewise.
35557
35558 2008-09-29  Bruno Haible  <bruno@clisp.org>
35559
35560         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
35561
35562 2008-09-29  Bruno Haible  <bruno@clisp.org>
35563
35564         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
35565         Set LIBSOCKET instead of augmenting LIBS.
35566         * modules/sockets (Link): New section.
35567         * modules/sockets-tests (test_sockets_LDADD): New variable.
35568         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
35569         * modules/poll-tests (test_poll_LDADD): New variable.
35570         * NEWS: Document the change.
35571
35572 2008-09-29  Bruno Haible  <bruno@clisp.org>
35573
35574         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
35575         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
35576         ARPA_INET_H directly.
35577         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35578
35579 2008-09-28  Bruno Haible  <bruno@clisp.org>
35580
35581         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
35582         from gl_HEADER_SYS_SOCKET.
35583         (gl_HEADER_SYS_SOCKET): Invoke it.
35584         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35585
35586 2008-09-28  Bruno Haible  <bruno@clisp.org>
35587
35588         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
35589         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
35590         Needed on OSF/1 4.0.
35591
35592 2008-09-28  Bruno Haible  <bruno@clisp.org>
35593
35594         Override open more carefully.
35595         * lib/open.c (orig_open): New function.
35596         (rpl_open): Use orig_open instead of open.
35597         * lib/fcntl.in.h: Add special invocation convention.
35598         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
35599         (gl_FUNC_OPEN): Invoke it.
35600
35601         Override freopen more carefully.
35602         * lib/freopen.c (orig_freopen): New function.
35603         (rpl_freopen): Use orig_freopen instead of freopen.
35604         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
35605         (gl_FUNC_FREOPEN): Invoke it.
35606
35607         Override fopen more carefully.
35608         * lib/fopen.c (orig_fopen): New function.
35609         (rpl_fopen): Use orig_fopen instead of fopen.
35610         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
35611         (gl_FUNC_FOPEN): Invoke it.
35612         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
35613
35614 2008-09-28  Bruno Haible  <bruno@clisp.org>
35615
35616         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
35617         SIGPIPE.
35618
35619 2008-09-28  Bruno Haible  <bruno@clisp.org>
35620
35621         * tests/test-sigaction.c (handler, main): Disable the check whether
35622         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
35623         glibc systems with LinuxThreads.
35624
35625 2008-09-28  Bruno Haible  <bruno@clisp.org>
35626
35627         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
35628
35629         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
35630         with AIX xlc.
35631         * lib/fcntl.in.h (open): Likewise.
35632         Reported by Rainer Tammer <tammer@tammer.net>.
35633
35634 2008-09-28  Bruno Haible  <bruno@clisp.org>
35635
35636         * modules/posix_spawnp-tests: New file.
35637         * tests/test-posix_spawn.c: New file.
35638         * tests/test-posix_spawn.in.sh: New file.
35639
35640         New module 'posix_spawnp'.
35641         * modules/posix_spawnp: New file.
35642         * lib/spawnp.c: New file, from GNU libc with modifications.
35643         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
35644
35645         New module 'posix_spawn'.
35646         * modules/posix_spawn: New file.
35647         * lib/spawn.c: New file, from GNU libc with modifications.
35648         * doc/posix-functions/posix_spawn.texi: Mention the new module.
35649
35650         New module 'posix_spawnattr_destroy'.
35651         * modules/posix_spawnattr_destroy: New file.
35652         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
35653         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
35654         module.
35655
35656         New module 'posix_spawnattr_setsigmask'.
35657         * modules/posix_spawnattr_setsigmask: New file.
35658         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
35659         modifications.
35660         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
35661         new module.
35662
35663         New module 'posix_spawnattr_getsigmask'.
35664         * modules/posix_spawnattr_getsigmask: New file.
35665         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
35666         modifications.
35667         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
35668         new module.
35669
35670         New module 'posix_spawnattr_setsigdefault'.
35671         * modules/posix_spawnattr_setsigdefault: New file.
35672         * lib/spawnattr_setdefault.c: New file, from GNU libc with
35673         modifications.
35674         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
35675         new module.
35676
35677         New module 'posix_spawnattr_getsigdefault'.
35678         * modules/posix_spawnattr_getsigdefault: New file.
35679         * lib/spawnattr_getdefault.c: New file, from GNU libc with
35680         modifications.
35681         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
35682         new module.
35683
35684         New module 'posix_spawnattr_setschedpolicy'.
35685         * modules/posix_spawnattr_setschedpolicy: New file.
35686         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
35687         modifications.
35688         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
35689         new module.
35690
35691         New module 'posix_spawnattr_getschedpolicy'.
35692         * modules/posix_spawnattr_getschedpolicy: New file.
35693         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
35694         modifications.
35695         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
35696         new module.
35697
35698         New module 'posix_spawnattr_setschedparam'.
35699         * modules/posix_spawnattr_setschedparam: New file.
35700         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
35701         modifications.
35702         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
35703         new module.
35704
35705         New module 'posix_spawnattr_getschedparam'.
35706         * modules/posix_spawnattr_getschedparam: New file.
35707         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
35708         modifications.
35709         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
35710         new module.
35711
35712         New module 'posix_spawnattr_setpgroup'.
35713         * modules/posix_spawnattr_setpgroup: New file.
35714         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
35715         modifications.
35716         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
35717         module.
35718
35719         New module 'posix_spawnattr_getpgroup'.
35720         * modules/posix_spawnattr_getpgroup: New file.
35721         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
35722         modifications.
35723         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
35724         module.
35725
35726         New module 'posix_spawnattr_setflags'.
35727         * modules/posix_spawnattr_setflags: New file.
35728         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
35729         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35730         module.
35731
35732         New module 'posix_spawnattr_getflags'.
35733         * modules/posix_spawnattr_getflags: New file.
35734         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
35735         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
35736         module.
35737
35738         New module 'posix_spawnattr_init'.
35739         * modules/posix_spawnattr_init: New file.
35740         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
35741         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
35742         module.
35743
35744         New module 'posix_spawn_file_actions_destroy'.
35745         * modules/posix_spawn_file_actions_destroy: New file.
35746         * lib/spawn_faction_destroy.c: New file, from GNU libc with
35747         modifications.
35748         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
35749         the new module.
35750
35751         New module 'posix_spawn_file_actions_addopen'.
35752         * modules/posix_spawn_file_actions_addopen: New file.
35753         * lib/spawn_faction_addopen.c: New file, from GNU libc with
35754         modifications.
35755         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35756         the new module.
35757
35758         New module 'posix_spawn_file_actions_adddup2'.
35759         * modules/posix_spawn_file_actions_adddup2: New file.
35760         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
35761         modifications.
35762         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35763         the new module.
35764
35765         New module 'posix_spawn_file_actions_addclose'.
35766         * modules/posix_spawn_file_actions_addclose: New file.
35767         * lib/spawn_faction_addclose.c: New file, from GNU libc with
35768         modifications.
35769         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35770         the new module.
35771
35772         New module 'posix_spawn_file_actions_init'.
35773         * modules/posix_spawn_file_actions_init: New file.
35774         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
35775         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
35776         new module.
35777
35778         New module 'posix_spawn-internal'.
35779         * modules/posix_spawn-internal: New file.
35780         * lib/spawn_int.h: New file, from GNU libc with modifications.
35781         * lib/spawni.c: New file, from GNU libc with modifications.
35782         * m4/posix_spawn.m4: New file.
35783
35784         New module 'spawn'.
35785         * modules/spawn: New file.
35786         * lib/spawn.in.h: New file, from GNU libc with modifications.
35787         * m4/spawn_h.m4: New file.
35788         * doc/posix-headers/spawn.texi: Mention the new module.
35789
35790 2008-09-28  Bruno Haible  <bruno@clisp.org>
35791
35792         * modules/sched-tests: New file.
35793         * tests/test-sched.c: New file.
35794
35795         New module 'sched'.
35796         * modules/sched: New file.
35797         * lib/sched.in.h: New file.
35798         * m4/sched_h.m4: New file.
35799         * doc/posix-headers/sched.texi: Mention the new module.
35800
35801 2008-09-27  Eric Blake  <ebb9@byu.net>
35802
35803         Fix previous patch, and tweak references to $0.
35804         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35805         (func_version, func_gnulib_dir): Don't call this program
35806         gnulib-tool.
35807         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35808         with using $0 in function.
35809         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35810         (func_fatal_error): Reuse the name the user invoked us with.
35811
35812 2008-09-27  Bruno Haible  <bruno@clisp.org>
35813
35814         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35815         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35816         (gl_ICONV_H): Not here.
35817         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35818         instead of assigning ICONV_H directly.
35819
35820         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35822         WCHAR_H directly.
35823
35824 2008-09-27  Bruno Haible  <bruno@clisp.org>
35825
35826         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35827         * modules/arpa_inet (Depends-on): Add link-warning.
35828         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35829         * modules/unistd (Makefile.am): Likewise.
35830
35831 2008-09-26  Bruno Haible  <bruno@clisp.org>
35832
35833         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35834         variables.
35835         (func_version): Essentially copied from gnulib-tool.
35836         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35837         func_readlink): Copied from gnulib-tool.
35838
35839 2008-09-26  Bruno Haible  <bruno@clisp.org>
35840
35841         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35842         invoking git-version-gen.
35843
35844 2008-09-26  Bruno Haible  <bruno@clisp.org>
35845
35846         * posix-modules: Update to directory names changed on 2008-01-19.
35847         Remove commas in output before splitting into words. No more need to
35848         avoid 'ftruncate' since 2007-02-19.
35849
35850 2008-09-26  Bruno Haible  <bruno@clisp.org>
35851
35852         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35853
35854 2008-09-26  Bruno Haible  <bruno@clisp.org>
35855
35856         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35857         * modules/fwriteerror (Depends-on): Add errno.
35858
35859 2008-09-26  Bruno Haible  <bruno@clisp.org>
35860
35861         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35862         * tests/test-vc-list-files-cvs.sh: Likewise.
35863
35864 2008-09-26  Bruno Haible  <bruno@clisp.org>
35865
35866         * doc/posix-headers/sys_resource.texi: Reorder items.
35867
35868 2008-09-26  Jim Meyering  <meyering@redhat.com>
35869
35870         fts: tweak inode comparison function
35871         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35872         inode numbers, as documented.
35873
35874         fts: sort dirent entries on inode number before traversing
35875         This avoids a quadratic, seek-related performance penalty when
35876         operating on a directory containing many entries (measurable at 10k;
35877         3.5 hours at 2 million entries with a cold cache) on certain types
35878         of file systems, including ext3 and ext4, but not tmpfs.
35879         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35880         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35881         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35882         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35883         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35884         (fts_build): Set the stat.st_ino member from D_INO.
35885         If it is likely to be useful, sort dirent entries on inode number.
35886
35887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35888         and the struct statfs.f_type member.
35889         * modules/fts (Depends-on): Add d-ino.
35890
35891 2008-09-26  Bruno Haible  <bruno@clisp.org>
35892
35893         * modules/sigpipe-die (Depends-on): Add sigpipe.
35894
35895         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35896         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35897         and GNULIB_STDIO_H_SIGPIPE are set.
35898         * lib/stdio-write.c: New file.
35899         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35900         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35901         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35902         REPLACE_STDIO_WRITE_FUNCS.
35903         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35904         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35905         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35906         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35907         * modules/stdio (Files): Add lib/stdio-write.c.
35908         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35909         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35910         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35911         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35912         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35913         REPLACE_FPRINTF_POSIX.
35914         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35915         REPLACE_PRINTF_POSIX.
35916         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35917         REPLACE_VFPRINTF_POSIX.
35918         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35919         REPLACE_VPRINTF_POSIX.
35920         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35921         SIGPIPE issue.
35922         * doc/posix-functions/fputc.texi: Likewise.
35923         * doc/posix-functions/fputs.texi: Likewise.
35924         * doc/posix-functions/fwrite.texi: Likewise.
35925         * doc/posix-functions/printf.texi: Likewise.
35926         * doc/posix-functions/putc.texi: Likewise.
35927         * doc/posix-functions/putchar.texi: Likewise.
35928         * doc/posix-functions/puts.texi: Likewise.
35929         * doc/posix-functions/vfprintf.texi: Likewise.
35930         * doc/posix-functions/vprintf.texi: Likewise.
35931
35932         * modules/safe-write (Depends-on): Add write.
35933
35934         * modules/sigpipe-tests: New file.
35935         * tests/test-sigpipe.c: New file.
35936         * tests/test-sigpipe.sh: New file.
35937
35938         * modules/write: New file.
35939         * lib/unistd.in.h: Include <sys/types.h>.
35940         (write): New declaration.
35941         * lib/write.c: New file.
35942         * m4/write.m4: New file.
35943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35944         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35945         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35946         GNULIB_WRITE, REPLACE_WRITE.
35947         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35948         and the SIGPIPE issue.
35949
35950         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35951         (raise): New declaration.
35952         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35953         (ext_signal): New function.
35954         (rpl_raise): New function.
35955         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35956         GNULIB_SIGNAL_H_SIGPIPE.
35957         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35958         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35959
35960         * modules/sigpipe: New file.
35961         * m4/sigpipe.m4: New file.
35962
35963 2008-09-25  Derek Price  <derek@ximbiot.com>
35964             Bruno Haible  <bruno@clisp.org>
35965
35966         * gnulib-tool (func_import): Report all license incompatibilities, not
35967         just the first one.
35968
35969 2008-09-25  Bruno Haible  <bruno@clisp.org>
35970
35971         * gnulib-tool (func_import): When computing the edits, consider not
35972         only the Makefile.ams that exist but also those that will be generated.
35973
35974 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35975
35976         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35977         fixes gnulib-tool --test warning about duplicate dependency.
35978
35979 2008-09-25  Bruno Haible  <bruno@clisp.org>
35980
35981         * gnulib-tool: Don't ask the user to perform edits in the generated
35982         Makefile.ams.
35983         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35984         apply to the Makefile.am being generated.
35985         (func_emit_tests_Makefile_am): Execute edits that apply to the
35986         Makefile.am being generated.
35987         (func_import): Setup list of Makefile.am edits before emitting the
35988         Makefile.ams, not at the end.
35989         (func_create_testdir): Update.
35990         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35991
35992 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35993
35994         * gnulib-tool (func_import): Store the --tests-base option in the
35995         comment in gnulib-cache.m4.
35996
35997 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35998
35999         * NEWS: Document increased portability that sys_select now provides.
36000
36001         * lib/sys_select.in.h: Install select wrapper.
36002         * lib/sys_socket.in.h: Use more descriptive name when there is no
36003         select wrapper.
36004         * lib/winsock-select.c: New.
36005         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36006         Require gl_HEADER_SYS_SOCKET.
36007         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36008         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36009         * tests/test-sys_select.c: Add functional tests.
36010
36011 2008-09-24  Eric Blake  <ebb9@byu.net>
36012
36013         open, fopen: close fd leak in last patch
36014         * lib/open.c (rpl_open): Close fd before returning error.
36015         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36016         * doc/posix-functions/open.texi (open): Document that Irix also
36017         has the bug.
36018         * doc/posix-functions/fopen.texi (fopen): Likewise.
36019         Reported by Paolo Bonzini.
36020
36021 2008-09-24  Bruno Haible  <bruno@clisp.org>
36022
36023         Ensure that a filename ending in a slash cannot be used to access a
36024         non-directory.
36025         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36026         to check whether it's really a directory.
36027         * lib/fopen.c: Include fcntl.h, unistd.h.
36028         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36029         and fdopen().
36030         * modules/fopen (Depends-on): Add unistd.
36031         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36032         * tests/test-fopen.c (main): Likewise.
36033         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36034         * doc/posix-functions/fopen.texi: Likewise.
36035         Reported by Eric Blake.
36036
36037 2008-09-23  Eric Blake  <ebb9@byu.net>
36038
36039         c-stack: avoid compiler optimizations when provoking overflow
36040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36041         recursion harder to optimize, to ensure a stack overflow occurs.
36042         * tests/test-c-stack.c (recurse): Likewise.
36043         Borrowed from libsigsegv.
36044
36045         c-stack: work around Irix sigaltstack bug
36046         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36047         whether sigaltstack uses wrong end of stack_t (copied in part from
36048         libsigsegv).
36049         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36050         Irix bug, without requiring an over-allocation.
36051         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36052         bug.
36053
36054         fopen: document mingw bug on directories
36055         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36056         not allowing a stream visiting a directory, even though reading
36057         from such a stream is not portable.
36058
36059 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36060
36061         * lib/poll.c: Rewrite.
36062         * modules/poll: Depend on alloca.
36063
36064 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36065
36066         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36067         instead define prototypes for a full set of wrappers.  Ensure
36068         that Cygwin does not use the compatibility code, which is only
36069         for MinGW.
36070         * lib/winsock.c: New.
36071         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36072         * modules/sys_socket: Add lib/winsock.c.
36073
36074         * modules/poll-tests: Add errno and perror.
36075         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36076
36077 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36078
36079         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36080
36081 2008-09-23  Bruno Haible  <bruno@clisp.org>
36082
36083         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36084         * doc/glibc-functions/*: Likewise.
36085
36086 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36087
36088         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36089         success.
36090
36091 2008-09-22  Eric Blake  <ebb9@byu.net>
36092             Bruno Haible  <bruno@clisp.org>
36093
36094         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36095         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36096         supply %A but mishandle pseudo-NaN.
36097         Reported by Simon Josefsson.
36098
36099 2008-09-21  Bruno Haible  <bruno@clisp.org>
36100
36101         * tests/test-lock.c (main): Tweak skip message.
36102         * tests/test-tls.c (main): Likewise.
36103
36104 2008-09-21  Bruno Haible  <bruno@clisp.org>
36105
36106         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36107         whether 'struct sigaction' has sa_sigaction here...
36108         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36109         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36110
36111 2008-09-21  Bruno Haible  <bruno@clisp.org>
36112
36113         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36114         section.
36115         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36116         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36117         the new section.
36118         (Support for obsolete systems lacking POSIX:2001): New section.
36119         (String handling <string.h>): Move strdup to the new section.
36120         Suggested by Simon Josefsson and Paolo Bonzini.
36121
36122 2008-09-21  Bruno Haible  <bruno@clisp.org>
36123
36124         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36125         exponents in %e and %g results on 'long double'. Needed for mingw's
36126         improved *printf functions.
36127         * tests/test-vasprintf-posix.c (test_function): Likewise.
36128         * tests/test-snprintf-posix.h (test_function): Likewise.
36129         * tests/test-sprintf-posix.h (test_function): Likewise.
36130         Reported by Eric Blake.
36131
36132 2008-09-21  Bruno Haible  <bruno@clisp.org>
36133
36134         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36135         * tests/test-sprintf-posix.h (test_function): Likewise.
36136
36137 2008-09-21  Bruno Haible  <bruno@clisp.org>
36138
36139         * modules/getpass (Depends-on): Add strdup-posix.
36140
36141         New module 'strdup-posix'.
36142         * modules/strdup-posix: New file.
36143         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36144         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36146         REPLACE_STRDUP.
36147         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36148         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36149         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36150         strdup-posix.
36151
36152         * modules/strdup (Depends-on): Remove malloc-posix.
36153
36154 2008-09-20  Bruno Haible  <bruno@clisp.org>
36155
36156         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36157         Wildenhues.
36158
36159 2008-09-20  Bruno Haible  <bruno@clisp.org>
36160
36161         Ensure that wint_t gets defined on IRIX 5.3.
36162         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36163         * lib/wctype.in.h (wint_t): Likewise.
36164         (__wctype_wint_t): Remove type.
36165         (isw*): Use wint_t instead of __wctype_wint_t.
36166         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36167         * modules/wchar (Files): Add m4/wint_t.m4.
36168         (Makefile.am): Substitute HAVE_WINT_T.
36169         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36170         * tests/test-wctype.c: Check that wint_t is defined.
36171         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36172         * doc/posix-headers/wctype.texi: Likewise.
36173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36174
36175 2008-09-18  Bruno Haible  <bruno@clisp.org>
36176
36177         * gnulib-tool (func_exit): Update comment.
36178
36179 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36180
36181         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36182         assumes strdup exists and does not depend on strdup to return
36183         ENOMEM on out of memory conditions.
36184
36185 2008-09-18  Bruno Haible  <bruno@clisp.org>
36186
36187         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
36188         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36189         digits for the exponent.
36190
36191 2008-09-18  Jim Meyering  <meyering@redhat.com>
36192             Bruno Haible  <bruno@clisp.org>
36193
36194         * lib/vasnprintf.c (decimal_point_char): Define also if
36195         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36196
36197 2008-09-16  Bruno Haible  <bruno@clisp.org>
36198         and Eric Blake  <ebb9@byu.net>
36199
36200         vasnprintf: support Irix 5.3
36201         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36202         that mishandle long double infinity.
36203         Reported by Tom G. Christensen.
36204
36205 2008-09-16  Bruno Haible  <bruno@clisp.org>
36206
36207         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36208         Solaris 9.
36209         * doc/glibc-functions/alphasort.texi: Likewise.
36210         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36211
36212 2008-09-16  Jim Meyering  <meyering@redhat.com>
36213
36214         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36215         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36216         a umask modification leak out of a subshell.  Otherwise, the
36217         opensolaris /bin/sh would be accepted and thus cause unwarranted
36218         failures in the coreutils test suite.
36219
36220 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36221
36222         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36223         to succeed.
36224
36225 2008-09-16  Jim Meyering  <meyering@redhat.com>
36226
36227         avoid spurious test failure when library is built without ACL support
36228         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36229         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36230         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36231         * tests/test-copy-acl.sh: Likewise.
36232
36233 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36234
36235         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36236         based on character occurrence counts.
36237
36238 2008-09-15  Eric Blake  <ebb9@byu.net>
36239
36240         tests: avoid some compiler warnings
36241         * tests/test-memchr.c (main): Pass NULL indirectly.
36242         * tests/test-closein.c (main): Avoid unused variable.
36243
36244 2008-09-15  Bruno Haible  <bruno@clisp.org>
36245
36246         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36247         are missing on OpenBSD 4.0 individually.
36248         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36249
36250 2008-09-15  Bruno Haible  <bruno@clisp.org>
36251
36252         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36253         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36254         * doc/posix-functions/perror.texi: Likewise.
36255         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36256         is missing.
36257         Reported by Eric Blake.
36258
36259         * lib/errno.in.h: Use replacement values >= 2000.
36260         Reported by Eric Blake.
36261
36262 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36263
36264         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36265         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36266         limit.
36267         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36268         compareseq was aborted.
36269
36270 2008-09-14  Bruno Haible  <bruno@clisp.org>
36271
36272         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36273         yvec_edit_count.
36274         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36275         (fstrcmp_bounded): Simplify result computation accordingly.
36276
36277 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36278
36279         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36280         (fstrcmp): Define in terms of fstrcmp_bounded.
36281         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36282         lower_bound argument.
36283         Return quickly if the result is certainly < lower_bound.
36284         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36285
36286 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36287
36288         * lib/diffseq.h (EARLY_ABORT): New macro.
36289         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36290         evaluates to true.
36291
36292 2008-09-14  Bruno Haible  <bruno@clisp.org>
36293
36294         * modules/perror-tests: New file.
36295         * tests/test-perror.sh: New file.
36296         * tests/test-perror.c: New file.
36297
36298         New module 'perror'.
36299         * lib/stdio.in.h (perror): New declaration.
36300         * lib/perror.c: New file.
36301         * m4/perror.m4: New file.
36302         * modules/perror: New file.
36303         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36304         * doc/posix-functions/perror.texi: Mention the perror module.
36305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36306         REPLACE_PERROR.
36307         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36308         REPLACE_PERROR.
36309
36310 2008-09-14  Bruno Haible  <bruno@clisp.org>
36311
36312         * modules/stdio (Makefile.am): Reorder to match the order in
36313         lib/stdio.in.h.
36314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36315
36316 2008-09-13  Bruno Haible  <bruno@clisp.org>
36317
36318         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36319
36320 2008-09-13  Bruno Haible  <bruno@clisp.org>
36321
36322         Extend strerror to cover the added errno values.
36323         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36324         (rpl_strerror): Provide error messages for the added errno values and
36325         for the WSA* values.
36326         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36327         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36328         strerror.
36329         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36330         * modules/strerror (Depends-on): Add errno.
36331         * doc/posix-functions/strerror.texi: Document the change.
36332         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36333         and EOVERFLOW.
36334
36335 2008-09-13  Bruno Haible  <bruno@clisp.org>
36336
36337         * modules/EOVERFLOW: Remove file.
36338         * m4/eoverflow.m4: Remove file.
36339         * modules/EOVERFLOW-tests: Remove file.
36340         * tests/test-EOVERFLOW.c: Remove file.
36341         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36342         * modules/ftell (Depends-on): Likewise.
36343         * modules/getdelim (Depends-on): Likewise.
36344         * modules/getugroups (Depends-on): Likewise.
36345         * modules/poll (Depends-on): Likewise.
36346         * modules/snprintf (Depends-on): Likewise.
36347         * modules/sprintf-posix (Depends-on): Likewise.
36348         * modules/vasnprintf (Depends-on): Likewise.
36349         * modules/vasprintf (Depends-on): Likewise.
36350         * modules/vfprintf-posix (Depends-on): Likewise.
36351         * modules/vsnprintf (Depends-on): Likewise.
36352         * modules/vsprintf-posix (Depends-on): Likewise.
36353         * modules/xvasprintf (Depends-on): Likewise.
36354         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36355         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36356         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36357         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36358         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36359         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36360         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36361         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36362         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36363         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36364         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36365         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36366         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36367         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36368         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36369         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36370         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36371         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36372         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36373         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36374         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36375         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36376         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36377         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36378         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36379         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36380         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36381         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36382         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36383         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36384         * MODULES.html.sh: Remove EOVERFLOW.
36385         * NEWS: Mention the change.
36386
36387 2008-09-13  Bruno Haible  <bruno@clisp.org>
36388
36389         * modules/errno-tests: New file.
36390         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36391
36392         * lib/errno.in.h: New file.
36393         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36394         * modules/errno: New file.
36395         * doc/posix-headers/errno.texi: Update documentation.
36396         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36397
36398 2008-09-13  Bruno Haible  <bruno@clisp.org>
36399
36400         * tests/test-poll.c: Use #if for native Windows, rather than testing
36401         __MSVCRT__.
36402
36403 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36404             Bruno Haible  <bruno@clisp.org>
36405
36406         * lib/glob.c: Don't include <pwd.h> on native Windows.
36407         (WINDOWS32): New macro.
36408         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36409
36410 2008-09-13  Bruno Haible  <bruno@clisp.org>
36411
36412         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36413         (ETIMEDOUT): Remove macro.
36414         (glthread_cond_timedwait_multithreaded): New declaration.
36415         (glthread_cond_timedwait): Use it.
36416         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36417         (glthread_cond_timedwait_multithreaded): New function.
36418
36419 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36420
36421         * modules/poll-tests: Do not check for io.h.
36422         * tests/test-poll.c: Check for __MSVCRT__ instead.
36423
36424 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36425
36426         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36427         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36428         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36429
36430 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36431
36432         * modules/poll-tests: New.
36433         * tests/test-poll.c: New.
36434
36435 2008-09-12  Eric Blake  <ebb9@byu.net>
36436
36437         frexp: test for NetBSD failure on -0.0
36438         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36439         not all, bugs from NetBSD 3.0 have been fixed.
36440         * doc/posix-functions/frexp.texi (frexp): Document bug.
36441         Reported by Thomas Klausner.
36442
36443         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36444         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36445         literal -0.0.
36446         Reported by Jonathan C. Patschke <jp@centtech.com>.
36447
36448 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36449
36450         * lib/glthread/cond.h: Use dummy implementation also if
36451         USE_WIN32_THREADS.
36452
36453 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36454
36455         * modules/fnmatch-posix (License): Change to LGPLv2+.
36456         * modules/fnmatch-gnu (License): Likewise.
36457
36458 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36459
36460         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
36461
36462 2008-09-11  Jim Meyering  <meyering@redhat.com>
36463
36464         * users.txt: Add gtk-vnc.
36465
36466 2008-09-08  Simon Josefsson  <simon@josefsson.org>
36467
36468         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
36469         rotate amounts.
36470
36471         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
36472         required for 16-bit and 8-bit rotates.
36473         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
36474         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
36475         UINT8_MAX instead of hard-coded constants.
36476         Suggested by Paul Eggert.
36477
36478 2008-09-07  Bruno Haible  <bruno@clisp.org>
36479
36480         * tests/test-striconveh.c (main): Check behaviour when converting from
36481         UTF-7.
36482
36483         Make striconveh work better with stateful encodings.
36484         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
36485         that iconv does not increment the inptr when returning -1/EINVAL.
36486
36487 2008-09-07  Bruno Haible  <bruno@clisp.org>
36488
36489         * build-aux/config.rpath: Update according to libtool-2.2.6.
36490         * build-aux/config.libpath: Likewise.
36491
36492 2008-09-06  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
36495         * lib/freadptr.c (freadptr): Likewise.
36496         * lib/freadseek.c (freadptrinc): Likewise.
36497         Reported by Simon Josefsson.
36498
36499 2008-09-06  Bruno Haible  <bruno@clisp.org>
36500
36501         * modules/freadptr (License): Change to LGPLv2+.
36502         * modules/freadseek (License): Likewise.
36503         Suggested by Eric Blake.
36504
36505         * modules/memchr2 (License): Change to LGPLv2+.
36506         Approved by Eric Blake.
36507
36508 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36509             Bruno Haible  <bruno@clisp.org>
36510
36511         Make gnulib-tool work with native 'sed' on AIX.
36512         * gnulib-tool (sed_noop): New variable.
36513         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
36514         func_add_or_update, func_create_testdir): Use it to initialize sed
36515         script variables.
36516         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36517
36518 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
36519             Bruno Haible  <bruno@clisp.org>
36520
36521         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
36522         also works after #include directives.
36523
36524 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
36525
36526         getdate.y: reject an out-of-range timezone value
36527         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
36528         the range [-24...+24].  When specified with only one or two digits,
36529         * tests/test-getdate.c: Tests for the fix.
36530         * doc/getdate.texi: Document this change.
36531
36532 2008-09-03  Bruno Haible  <bruno@clisp.org>
36533
36534         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
36535
36536 2008-09-02  Simon Josefsson  <simon@josefsson.org>
36537
36538         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
36539         <bruce.korb@gmail.com> with ideas from Ben Pfaff
36540         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
36541         Blake <ebb9@byu.net>.
36542
36543         * tests/test-bitrotate.c: Add more test vectors.
36544
36545 2008-09-02  Eric Blake  <ebb9@byu.net>
36546
36547         vasnprintf-posix: handle large precision via %.*d
36548         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
36549         when handling it ourselves.
36550         * tests/test-vasnprintf-posix.c (test_function): Add test.
36551         * tests/test-snprintf-posix.h (test_function): Likewise.
36552         * tests/test-sprintf-posix.h (test_function): Likewise.
36553         * tests/test-vasprintf-posix.c (test_function): Likewise.
36554         Reported by Alain Guibert.
36555
36556 2008-09-01  Eric Blake  <ebb9@byu.net>
36557
36558         c-stack: make configure-time check more robust
36559         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
36560         successful sigaction call.
36561         Reported by Tom G. Christensen.
36562
36563 2008-09-01  Bruno Haible  <bruno@clisp.org>
36564
36565         New module 'findprog-lgpl'.
36566         * modules/findprog-lgpl: New file.
36567         * lib/findprog-lgpl.c: New file.
36568         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
36569         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
36570         to decide whether to use strdup or xstrdup, concatenated_filename or
36571         xconcatenated_filename.
36572
36573 2008-09-01  Bruno Haible  <bruno@clisp.org>
36574
36575         Split module 'concat-filename' into 'concat-filename' (LGPL) and
36576         'xconcat-filename' (GPL).
36577         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
36578         (License): Change to LGPLv2+.
36579         * modules/xconcat-filename: New file.
36580         * lib/concat-filename.h (concatenated_filename): Change specification.
36581         (xconcatenated_filename): New declaration.
36582         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
36583         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
36584         memory situations.
36585         * lib/xconcat-filename.c: New file.
36586         * NEWS: Mention the change.
36587         * lib/findprog.c: Include concat-filename.h, not filename.h.
36588         (find_in_path): Use xconcatenated_filename instead of
36589         concatenated_filename.
36590         * lib/javacomp.c: Include concat-filename.h, not filename.h.
36591         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36592         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36593         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36594         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
36595         instead of concatenated_filename.
36596         * lib/javaexec.c: Include concat-filename.h, not filename.h.
36597         (execute_java_class): Use xconcatenated_filename instead of
36598         concatenated_filename.
36599         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
36600         * modules/javacomp (Depends-on): Likewise.
36601         * modules/javaexec (Depends-on): Likewise.
36602
36603 2008-09-01  Bruno Haible  <bruno@clisp.org>
36604
36605         Split module 'filename' into 'filename' and 'concat-filename'.
36606         * modules/filename: Keep only lib/filename.h.
36607         (License): Change to LGPLv2+.
36608         * modules/concat-filename: New file, extracted from modules/filename.
36609         * lib/filename.h (concatenated_filename): Remove declaration.
36610         * lib/concat-filename.h: New file, extracted from lib/filename.h.
36611         * lib/concat-filename.c: Include concat-filename.h.
36612         * NEWS: Mention the change.
36613
36614 2008-09-01  Simon Josefsson  <simon@josefsson.org>
36615
36616         * lib/bitrotate.h (rotl8, rotr8): Add.
36617
36618         * modules/bitrotate (configure.ac): Need
36619         AC_REQUIRE([AC_C_INLINE]).
36620         (Description): Mention stdint.h.  Reported by Bruno Haible
36621         <bruno@clisp.org>.
36622
36623         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
36624         Paolo Bonzini <bonzini@gnu.org>.
36625
36626 2008-08-31  Bruno Haible  <bruno@clisp.org>
36627
36628         Assume Solaris specific bi-arch conventions on Solaris systems.
36629         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
36630         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
36631         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
36632         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
36633         like acl_libdirstem.
36634         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
36635         acl_libdirstem.
36636         * NEWS: Mention the change.
36637         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
36638
36639 2008-08-31  Jim Meyering  <meyering@redhat.com>
36640
36641         * lib/strftime.h: Add comments describing the two added arguments.
36642
36643         remove duplicate #include directives
36644         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
36645         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
36646
36647 2008-08-31  Bruno Haible  <bruno@clisp.org>
36648
36649         New module 'sigpipe-die'.
36650         * modules/sigpipe-die: New file.
36651         * lib/sigpipe-die.h: New file.
36652         * lib/sigpipe-die.c: New file.
36653         * MODULES.html.sh (Signal handling): Add sigpipe-die.
36654
36655 2008-08-31  Bruno Haible  <bruno@clisp.org>
36656
36657         Don't override previously installed signal handlers.
36658         * lib/fatal-signal.c (saved_sigactions): New variable.
36659         (uninstall_handlers): Reset the signal to the saved handler, not
36660         to SIG_DFL (except when ignored).
36661         (install_handlers): Save the previous handlers.
36662
36663 2008-08-30  Bruno Haible  <bruno@clisp.org>
36664
36665         * gnulib-tool (func_reset_sigpipe): New function.
36666         (func_get_automake_snippet, func_modules_transitive_closure,
36667         func_import): Invoke it before a join command that reads from stdin,
36668         to avoid "echo: write error: Broken pipe" error messages on stderr.
36669         Reported by Sam Steingold <sds@gnu.org>.
36670
36671 2008-08-30  Bruno Haible  <bruno@clisp.org>
36672
36673         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
36674         Code copied from m4/open.m4.
36675         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
36676         access and the filename ends in a slash. Code copied from lib/open.c.
36677         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
36678         * tests/test-fopen.c (main): Check against bug with trailing slash.
36679
36680 2008-08-29  Bruno Haible  <bruno@clisp.org>
36681
36682         Avoid some "gcc -pedantic" warnings.
36683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
36684         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
36685         * lib/dirent.in.h: Likewise.
36686         * lib/fcntl.in.h: Likewise.
36687         * lib/float.in.h: Likewise.
36688         * lib/iconv.in.h: Likewise.
36689         * lib/inttypes.in.h: Likewise.
36690         * lib/locale.in.h: Likewise.
36691         * lib/math.in.h: Likewise.
36692         * lib/netinet_in.in.h: Likewise.
36693         * lib/search.in.h: Likewise.
36694         * lib/signal.in.h: Likewise.
36695         * lib/stdarg.in.h: Likewise.
36696         * lib/stdint.in.h: Likewise.
36697         * lib/stdio.in.h: Likewise.
36698         * lib/stdlib.in.h: Likewise.
36699         * lib/string.in.h: Likewise.
36700         * lib/strings.in.h: Likewise.
36701         * lib/sys_select.in.h: Likewise.
36702         * lib/sys_socket.in.h: Likewise.
36703         * lib/sys_stat.in.h: Likewise.
36704         * lib/sys_time.in.h: Likewise.
36705         * lib/sysexits.in.h: Likewise.
36706         * lib/time.in.h: Likewise.
36707         * lib/unistd.in.h: Likewise.
36708         * lib/wchar.in.h: Likewise.
36709         * lib/wctype.in.h: Likewise.
36710         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
36711         * modules/fchdir (Makefile.am): Likewise.
36712         * modules/fcntl (Makefile.am): Likewise.
36713         * modules/float (Makefile.am): Likewise.
36714         * modules/iconv_open (Makefile.am): Likewise.
36715         * modules/inttypes (Makefile.am): Likewise.
36716         * modules/locale (Makefile.am): Likewise.
36717         * modules/math (Makefile.am): Likewise.
36718         * modules/netinet_in (Makefile.am): Likewise.
36719         * modules/search (Makefile.am): Likewise.
36720         * modules/signal (Makefile.am): Likewise.
36721         * modules/stdarg (Makefile.am): Likewise.
36722         * modules/stdint (Makefile.am): Likewise.
36723         * modules/stdio (Makefile.am): Likewise.
36724         * modules/stdlib (Makefile.am): Likewise.
36725         * modules/string (Makefile.am): Likewise.
36726         * modules/strings (Makefile.am): Likewise.
36727         * modules/sys_select (Makefile.am): Likewise.
36728         * modules/sys_socket (Makefile.am): Likewise.
36729         * modules/sys_stat (Makefile.am): Likewise.
36730         * modules/sys_time (Makefile.am): Likewise.
36731         * modules/sysexits (Makefile.am): Likewise.
36732         * modules/time (Makefile.am): Likewise.
36733         * modules/unistd (Makefile.am): Likewise.
36734         * modules/wchar (Makefile.am): Likewise.
36735         * modules/wctype (Makefile.am): Likewise.
36736         Reported by Reuben Thomas <rrt@sc3d.org>.
36737
36738 2008-08-29  Bruno Haible  <bruno@clisp.org>
36739
36740         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
36741         any more.
36742
36743 2008-08-29  Simon Josefsson  <simon@josefsson.org>
36744
36745         * MODULES.html.sh (Misc): Add bitrotate.
36746
36747         * modules/bitrotate: New file.
36748
36749         * lib/bitrotate.h: New file.
36750
36751         * modules/bitrotate-tests: New file.
36752
36753         * tests/test-bitrotate.c: New file.
36754
36755         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
36756         on the bitrotate module.
36757
36758         * lib/arctwo.c: Use new bitrotate module.
36759
36760 2008-08-29  Jim Meyering  <meyering@redhat.com>
36761
36762         bootstrap: merge changes from coreutils
36763         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
36764         of copied files.  Remove a kludge, now that this is fixed.
36765         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
36766         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
36767         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
36768
36769 2008-08-29  Bruno Haible  <bruno@clisp.org>
36770
36771         * MODULES.html.sh: Remove --cvs-urls option.
36772
36773 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
36774
36775         maint.mk: adjust to file name change
36776         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
36777
36778 2008-08-28  Jim Meyering  <meyering@redhat.com>
36779
36780         * modules/getndelim2 (License): Relicense to LGPLv2+.
36781         Approved by Richard Stallman for the version of 1995, and by
36782         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
36783
36784 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
36785
36786         * lib/getdelim.c (flockfile, funlockfile): Make all of them
36787         dummy if one is not available.  Do not touch them if
36788         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
36789         (getc_maybe_unlocked): New.
36790         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
36791
36792 2008-08-26  Eric Blake  <ebb9@byu.net>
36793
36794         doc/INSTALL: resync from autoconf
36795         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
36796         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36797         moving...
36798         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36799         * INSTALL: Regenerate.
36800         * INSTALL.ISO: New file.
36801         * INSTALL.UTF-8: Likewise.
36802
36803 2008-08-26  Jim Meyering  <meyering@redhat.com>
36804
36805         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36806         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36807         these definitions conditional, so that they may be overridden, too.
36808
36809 2008-08-26  Bruno Haible  <bruno@clisp.org>
36810
36811         Generate INSTALL file variants with prettier quotes.
36812         * doc/Makefile (INSTALL_PRELUDE): New macro.
36813         (INSTALL): Use it.
36814         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36815
36816 2008-08-26  Bruno Haible  <bruno@clisp.org>
36817
36818         Run makeinfo in an English locale.
36819         * doc/Makefile (MAKEINFO): New variable.
36820
36821 2008-08-26  Bruno Haible  <bruno@clisp.org>
36822
36823         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36824         Suggested by Eric Blake.
36825
36826 2008-08-25  Bruno Haible  <bruno@clisp.org>
36827
36828         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36829
36830 2008-08-25  Eric Blake  <ebb9@byu.net>
36831
36832         c-stack: test that stack overflow can be caught
36833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36834         that platform allows handling stack overflow; at least OS/2 EMX
36835         has sigaltstack, but crashes before transferring control to
36836         handler on stack overflow.
36837         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36838         check for HAVE_STACK_OVERFLOW_HANDLING.
36839         Reported by Elbert Pol.
36840
36841 2008-08-25  Bruno Haible  <bruno@clisp.org>
36842
36843         * doc/posix-functions/strftime.texi: Fix description of strftime
36844         module.
36845
36846 2008-08-24  Bruno Haible  <bruno@clisp.org>
36847
36848         * tests/uniwidth/test-uc_width2.c: New file.
36849         * tests/uniwidth/test-uc_width2.sh: New file.
36850         * modules/uniwidth/width-tests (Files): Add the new files.
36851         (TESTS): Add uniwidth/test-uc_width2.sh.
36852         (TESTS_ENVIRONMENT): New variable.
36853         (check_PROGRAMS): Add test-uc_width2.
36854         (test_uc_width2_SOURCES): New variable.
36855
36856         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36857         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36858         not 0x00AB.
36859         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36860
36861 2008-08-22  Eric Blake  <ebb9@byu.net>
36862
36863         test-lock, test-tls: mention why a test is skipped
36864         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36865         skipped.
36866         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36867
36868         count-one-bits: relax license
36869         * modules/count-one-bits (License): Relicense to LGPLv2+.
36870         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36871
36872 2008-08-22  Andreas Schwab  <schwab@suse.de>
36873
36874         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36875         Remove spurious space in assignment.
36876
36877 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36878
36879         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36880         Paul Eggert <eggert@CS.UCLA.EDU>.
36881
36882 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36883
36884         * modules/gettext: Add m4/threadlib.m4.
36885
36886 2008-08-19  Eric Blake  <ebb9@byu.net>
36887
36888         test-c-stack: fix compilation failure on FreeBSD 5.0
36889         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36890         headers before <sys/resource.h>.
36891         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36892         the bug.
36893         Reported by Nelson H. F. Beebe.
36894
36895         strverscmp: migrate from "strverscmp.h" to <string.h>
36896         * modules/string (Makefile.am): Add new hooks.
36897         * modules/strverscmp (Files): Remove strverscmp.h.
36898         (Depends-on): Add string.
36899         (configure.ac): Add indicator.
36900         (Include): Mention new header.
36901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36902         defaults.
36903         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36904         results.
36905         * lib/strverscmp.h: Delete.
36906         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36907         * tests/test-strverscmp.c (includes): Adjust client.
36908         * lib/check-version.c (includes): Likewise.
36909         * NEWS: Document the change.
36910
36911         strverscmp: add unit test
36912         * modules/strverscmp-tests: New file.
36913         * tests/test-strverscmp.c: Likewise.
36914
36915 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36916
36917         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36918         regarding Windows crypto stuff, from Mono.
36919
36920 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36921
36922         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36923         if present, for intel RND.  Return error on failures.
36924
36925 2008-08-18  Ben Pfaff  <blp@gnu.org>
36926
36927         gitlog-to-changelog: give better diagnostic for failed pipe-open
36928         * build-aux/gitlog-to-changelog: Improve error message: suggest
36929         that the version of Git may be too old.
36930
36931 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36932
36933         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36934         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36935
36936 2008-08-18  Bruno Haible  <bruno@clisp.org>
36937
36938         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36939         pthread_in_use().
36940
36941 2008-08-18  Bruno Haible  <bruno@clisp.org>
36942
36943         * lib/glthread/threadlib.c: Include <pthread.h>.
36944
36945 2008-08-18  Bruno Haible  <bruno@clisp.org>
36946
36947         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36948         glthread_recursive_lock_* macros.
36949         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36950         Fix syntax error.
36951
36952 2008-08-18  Bruno Haible  <bruno@clisp.org>
36953
36954         * lib/glthread/thread.c: Avoid forcing a context switch right after
36955         thread creation.
36956
36957 2008-08-17  Bruno Haible  <bruno@clisp.org>
36958
36959         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36960         * lib/glthread/thread.h: Provide Win32 specific implementation.
36961         * modules/thread (Files): Add lib/glthread/thread.c.
36962         (Depends-on): Add lock.
36963         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36964
36965 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36966
36967         New module 'yield'.
36968         * modules/yield: New file.
36969         * lib/glthread/yield.h: New file.
36970         * m4/yield.m4: New file.
36971         * MODULES.html.sh (Multithreading): Add yield.
36972
36973 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36974
36975         New module 'thread'.
36976         * modules/thread: New file.
36977         * lib/glthread/thread.h: New file.
36978         * m4/thread.m4: New file.
36979         * MODULES.html.sh (Multithreading): Add thread.
36980
36981 2008-08-17  Bruno Haible  <bruno@clisp.org>
36982
36983         * lib/glthread/lock.h: Include <stdlib.h> always.
36984         * lib/glthread/tls.h: Likewise.
36985         * lib/glthread/cond.h: Likewise.
36986
36987 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36988
36989         New module 'cond'.
36990         * modules/cond: New file.
36991         * lib/glthread/cond.h: New file.
36992         * lib/glthread/cond.c: New file.
36993         * m4/cond.m4: New file.
36994         * MODULES.html.sh (Multithreading): Add cond.
36995
36996 2008-08-16  Eric Blake  <ebb9@byu.net>
36997
36998         c-stack: fix regression on Irix 5.3 from 2008-06-21
36999         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37000         sa_sigaction...
37001         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37002         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37003         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37004         * modules/signal (Makefile.am): Use the value.
37005         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37006         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37007         * doc/posix-headers/signal.texi (signal.h): Document this
37008         portability issue.
37009         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37010         Reported by Tom G. Christensen.
37011
37012 2008-08-17  Bruno Haible  <bruno@clisp.org>
37013
37014         New module 'threadlib'.
37015         * modules/threadlib: New file.
37016         * lib/glthread/threadlib.c: New file, extracted from
37017         lib/glthread/lock.c.
37018         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37019         functions.
37020         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37021         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37022         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37023         macros.
37024         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37025         (gl_DISABLE_THREADS): Remove macro.
37026         * modules/lock (Files): Remove build-aux/config.rpath.
37027         (Depends-on): Remove havelib. Add threadlib.
37028         (configure.ac-early): Remove section.
37029         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37030         * modules/tls (Depends-on): Remove lock. Add threadlib.
37031         (Link): New section, copied from threadlib.
37032         * MODULES.html.sh (Multithreading): Add threadlib.
37033
37034 2008-08-14  Bruno Haible  <bruno@clisp.org>
37035
37036         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37037         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37038         glthread_rwlock_unlock, glthread_rwlock_destroy,
37039         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37040         glthread_recursive_lock_destroy): Define as macros always.
37041         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37042         glthread_lock_lock.
37043         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37044         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37045         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37046         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37047         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37048         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37049         (glthread_recursive_lock_lock_func): Renamed from
37050         glthread_recursive_lock_lock.
37051         (glthread_recursive_lock_unlock_func): Renamed from
37052         glthread_recursive_lock_unlock.
37053         (glthread_recursive_lock_destroy_func): Renamed from
37054         glthread_recursive_lock_destroy.
37055
37056 2008-08-14  Bruno Haible  <bruno@clisp.org>
37057
37058         * lib/glthread/lock.h: Renamed from lib/lock.h.
37059         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37060         * lib/glthread/tls.h: Renamed from lib/tls.h.
37061         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37062         * lib/fstrcmp.c: Update includes.
37063         * lib/strsignal.c: Update includes.
37064         * modules/lock (Files, Makefile.am): Update.
37065         (Include): Change to "glthread/lock.h".
37066         * modules/tls (Files, Makefile.am): Update.
37067         (Include): Change to "glthread/tls.h".
37068         * tests/test-lock.c: Update includes.
37069         * tests/test-tls.c: Update includes.
37070         * NEWS: Mention the renamed header files.
37071
37072 2008-08-11  Jim Meyering  <meyering@redhat.com>
37073
37074         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37075
37076 2008-08-11  Eric Blake  <ebb9@byu.net>
37077
37078         test-c-stack: avoid C99-ism
37079         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37080         before statement.
37081         Reported by Alain Guibert.
37082
37083 2008-08-10  Jim Meyering  <meyering@redhat.com>
37084
37085         ensure that return value of uinttostr et al are not ignored
37086         * lib/inttostr.h (__GNUC_PREREQ): Define.
37087         (__attribute_warn_unused_result__): Define.
37088         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37089
37090 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37091
37092         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37093         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37094
37095 2008-08-07  Jim Meyering  <meyering@redhat.com>
37096
37097         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37098
37099         * modules/mkstemp (License): Relicense under LGPLv2+.
37100         * modules/tempname (License): Likewise.
37101
37102 2008-08-06  Bruno Haible  <bruno@clisp.org>
37103
37104         * lib/poll.c (poll): Further micro-optimization.
37105
37106 2008-08-06  Jim Meyering  <meyering@redhat.com>
37107
37108         inet_pton.c: use locale-independent tolower
37109         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37110         (inet_pton6): Use c_tolower rather than tolower.
37111         * modules/inet_pton (Depends-on): Add c-ctype.
37112
37113 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37114
37115         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37116         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37117
37118 2008-08-06  Jim Meyering  <meyering@redhat.com>
37119
37120         * modules/inet_pton (License): Relicense under LGPLv2+.
37121
37122 2008-08-03  Bruno Haible  <bruno@clisp.org>
37123
37124         Additional non-aborting API for lock and tls.
37125         * lib/lock.h: Include <errno.h>.
37126         (glthread_lock_init): New macro/function.
37127         (gl_lock_init): Define as wrapper around glthread_lock_init.
37128         (glthread_lock_lock): New macro/function.
37129         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37130         (glthread_lock_unlock): New macro/function.
37131         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37132         (glthread_lock_destroy): New macro/function.
37133         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37134         (glthread_rwlock_init): New macro/function.
37135         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37136         (glthread_rwlock_rdlock): New macro/function.
37137         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37138         (glthread_rwlock_wrlock): New macro/function.
37139         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37140         (glthread_rwlock_unlock): New macro/function.
37141         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37142         (glthread_rwlock_destroy): New macro/function.
37143         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37144         (glthread_recursive_lock_init): New macro/function.
37145         (gl_recursive_lock_init): Define as wrapper around
37146         glthread_recursive_lock_init.
37147         (glthread_recursive_lock_lock): New macro/function.
37148         (gl_recursive_lock_lock): Define as wrapper around
37149         glthread_recursive_lock_lock.
37150         (glthread_recursive_lock_unlock): New macro/function.
37151         (gl_recursive_lock_unlock): Define as wrapper around
37152         glthread_recursive_lock_unlock.
37153         (glthread_recursive_lock_destroy): New macro/function.
37154         (gl_recursive_lock_destroy): Define as wrapper around
37155         glthread_recursive_lock_destroy.
37156         (glthread_once): New macro/function.
37157         (gl_once): Define as wrapper around glthread_once.
37158         Update function declarations.
37159         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37160         glthread_rwlock_init. Return error code.
37161         (glthread_rwlock_rdlock_multithreaded): Renamed from
37162         glthread_rwlock_rdlock. Return error code.
37163         (glthread_rwlock_wrlock_multithreaded): Renamed from
37164         glthread_rwlock_wrlock. Return error code.
37165         (glthread_rwlock_unlock_multithreaded): Renamed from
37166         glthread_rwlock_unlock. Return error code.
37167         (glthread_rwlock_destroy_multithreaded): Renamed from
37168         glthread_rwlock_destroy. Return error code.
37169         (glthread_recursive_lock_init_multithreaded): Renamed from
37170         glthread_recursive_lock_init. Return error code.
37171         (glthread_recursive_lock_lock_multithreaded): Renamed from
37172         glthread_recursive_lock_lock. Return error code.
37173         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37174         glthread_recursive_lock_unlock. Return error code.
37175         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37176         glthread_recursive_lock_destroy. Return error code.
37177         (glthread_once_call): Make static.
37178         (glthread_once_multithreaded): Renamed from glthread_once.
37179         * lib/tls.h: Include <errno.h>.
37180         (glthread_tls_key_init): New macro/function.
37181         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37182         (glthread_tls_set): New macro/function.
37183         (gl_tls_set): Define as wrapper around glthread_tls_set.
37184         (glthread_tls_key_destroy): New macro/function.
37185         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37186         Update function declarations.
37187         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37188         glthread_tls_get.
37189         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37190
37191 2008-08-04  Eric Blake  <ebb9@byu.net>
37192
37193         gnumakefile: use space, not TAB, outside of targets
37194         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37195
37196 2008-08-02  Jim Meyering  <meyering@redhat.com>
37197
37198         getdate.y: avoid locale-dependent date parsing failure
37199         In Turkish locales, getdate would fail to recognize keywords
37200         containing a lowercase "i".  The solution is not to rely on
37201         locale-sensitive case-conversion.
37202         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37203         (lookup_word): Use c_toupper in place of toupper.
37204         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37205         Reported by Vefa Bicakci <bicave@superonline.com> in
37206         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37207         * modules/getdate (Depends-on): Add c-ctype.
37208
37209 2008-08-02  Bruno Haible  <bruno@clisp.org>
37210
37211         * gnulib-tool (func_import): When updating or creating a .gitignore
37212         file, prepend each added line with a slash, and ignore leading slashes
37213         from the existing lines.
37214         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37215
37216 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37217
37218         Portability fix for GNU make 3.79.1.
37219         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37220         versions do not understand.
37221
37222 2008-08-01  Bruno Haible  <bruno@clisp.org>
37223
37224         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37225         * tests/test-isnanf.h (zero): New variable.
37226         (main): Avoid literal -0.0f.
37227         * tests/test-isnand.h (zero): New variable.
37228         (main): Avoid literal -0.0.
37229         * tests/test-isnanl.h (zero): New variable.
37230         (main): Avoid literal -0.0L.
37231         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37232         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37233         -0.0, -0.0L.
37234         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37235         (test_signbitd): Avoid literal -0.0.
37236         (test_signbitl): Avoid literal -0.0L.
37237         * tests/test-ceilf1.c (zero): New variable.
37238         (main): Avoid literal -0.0f.
37239         * tests/test-ceill.c (zero): New variable.
37240         (main): Avoid literal -0.0L.
37241         * tests/test-floorf1.c (zero): New variable.
37242         (main): Avoid literal -0.0f.
37243         * tests/test-floorl.c (zero): New variable.
37244         (main): Avoid literal -0.0L.
37245         * tests/test-roundf1.c (zero): New variable.
37246         (main): Avoid literal -0.0f.
37247         * tests/test-round1.c (zero): New variable.
37248         (main): Avoid literal -0.0.
37249         * tests/test-roundl.c (zero): New variable.
37250         (main): Avoid literal -0.0L.
37251         * tests/test-truncf1.c (zero): New variable.
37252         (main): Avoid literal -0.0f.
37253         * tests/test-trunc1.c (zero): New variable.
37254         (main): Avoid literal -0.0.
37255         * tests/test-truncl.c (zero): New variable.
37256         (main): Avoid literal -0.0L.
37257         * tests/test-frexp.c (zero): New variable.
37258         (main): Avoid literal -0.0.
37259         * tests/test-frexpl.c (zero): New variable.
37260         (main): Avoid literal -0.0L.
37261         * tests/test-ldexpl.c (zero): New variable.
37262         (main): Avoid literal -0.0L.
37263         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37264         (zerod, zerol): New variables.
37265         (test_function): Avoid literals -0.0, -0.0L.
37266         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37267         (zerod, zerol): New variables.
37268         (test_function): Avoid literals -0.0, -0.0L.
37269         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37270         (zerod, zerol): New variables.
37271         (test_function): Avoid literals -0.0, -0.0L.
37272         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37273         (zerod, zerol): New variables.
37274         (test_function): Avoid literals -0.0, -0.0L.
37275         * tests/test-strtod.c (zero): New variable.
37276         (main): Avoid literal -0.0.
37277         Reported by Jonathan C. Patschke <jp@centtech.com>.
37278
37279 2008-07-31  Jim Meyering  <meyering@redhat.com>
37280
37281         sha256.h: correct definition of SHA224_DIGEST_SIZE
37282         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37283         Reported by Paulie Pena IV <paulie4@gmail.com>.
37284         Define as 224 / 8, rather than as a literal.
37285         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37286         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37287         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37288
37289 2008-07-31  Bruno Haible  <bruno@clisp.org>
37290
37291         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37292         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37293         Reported by Jonathan Patschke <jp@centtech.com>.
37294
37295 2008-07-31  Bruno Haible  <bruno@clisp.org>
37296
37297         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37298         Reported by Paolo Bonzini <bonzini@gnu.org>.
37299
37300 2008-07-30  Eric Blake  <ebb9@byu.net>
37301
37302         test-strtod: allow compilation without -lm
37303         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37304         Reported by Dennis Clarke <blastwave@gmail.com>.
37305
37306 2008-07-28  Jim Meyering  <meyering@redhat.com>
37307
37308         bootstrap: work also when there are no .po files in po/
37309         * build-aux/bootstrap (update_po_files): Complete the change
37310         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37311
37312 2008-07-27  Jim Meyering  <meyering@redhat.com>
37313
37314         * users.txt: Add zile.
37315
37316 2008-07-26  Ben Pfaff  <blp@gnu.org>
37317
37318         Add missing dependencies on new m4/exponent[fdl].m4 files.
37319         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37320         * modules/isnand-nolibm: Add m4/exponentd.m4.
37321         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37322         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37323         m4/isnan[fdl].m4, because the macros actually used moved.
37324         Reported by Jim Meyering.
37325
37326 2008-07-14  Ben Pfaff  <blp@gnu.org>
37327
37328         Add isinf module.
37329         * lib/isinf.c: New file.
37330         * lib/math.in.h: Define isinf macro if we have decided to replace
37331         it.
37332         * m4/isinf.m4: New file.
37333         * m4/math_h.m4: Initialize and substitute variables for isinf
37334         module.
37335         * modules/isinf: New file.
37336         * modules/isinf-tests: New file.
37337         * modules/math: Add substitutions for new module.
37338         * tests/test-isinf.c: New file.
37339         * doc/posix-functions/isinf.texi: Mention new module.
37340         * MODULES.html.sh: Mention new module.
37341
37342 2008-07-14  Ben Pfaff  <blp@gnu.org>
37343
37344         Factor out some macros for use by additional modules.
37345         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37346         exponentf.m4.
37347         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37348         exponentd.m4.
37349         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37350         file exponentl.m4.
37351         * m4/exponentf.m4: New file.
37352         * m4/exponentd.m4: New file.
37353         * m4/exponentl.m4: New file.
37354         * modules/isnanf: Use new file m4/exponentf.m4.
37355         * modules/isnand: Use new file m4/exponentd.m4.
37356         * modules/isnanl: Use new file m4/exponentl.m4.
37357
37358 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37359
37360         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37361         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37362         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37363         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37364
37365         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37366         readlink on platforms without PATH_MAX.
37367
37368 2008-07-21  Eric Blake  <ebb9@byu.net>
37369
37370         Warn, not fail, on stale version.
37371         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37372
37373         Don't allow installation with stale devel version number.
37374         * top/GNUmakefile (_is-install-target): New macro.
37375         (_curr-ver): Forbid installation with stale version number.
37376
37377 2008-07-20  Bruno Haible  <bruno@clisp.org>
37378
37379         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37380         TESTS_ENVIRONMENT.
37381         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37382
37383 2008-07-20  Bruno Haible  <bruno@clisp.org>
37384
37385         * lib/c-stack.h (c_stack_action): Add documentation.
37386         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37387
37388 2008-07-20  Bruno Haible  <bruno@clisp.org>
37389
37390         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37391         * modules/readlink (License): Likewise.
37392
37393 2008-07-17  Eric Blake  <ebb9@byu.net>
37394
37395         * modules/c-stack (Link): Fix typo.
37396
37397         Make c-stack use libsigsegv, when available.
37398         * modules/c-stack (Depends-on): Add libsigsegv.
37399         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37400         needed.
37401         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37402         (segv_handler, overflow_handler, c_stack_action)
37403         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37404         implementation when libsigsegv is available, but only when using
37405         the library is necessary.
37406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37407         comment, explaining why XSI check fails on Linux.
37408         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37409         * tests/test-c-stack2.sh: Tweak skip message.
37410         * NEWS: Document new link-time requirements.
37411
37412 2008-07-16  Eric Blake  <ebb9@byu.net>
37413
37414         c-stack: Expose false positives when not using libsigsegv.
37415         * modules/c-stack-tests (Files): Expand test.
37416         * tests/test-c-stack.c (main): Add means to conditionally trigger
37417         non-overflow SIGSEGV.
37418         * tests/test-c-stack2.sh: New file.
37419
37420 2008-07-14  Bruno Haible  <bruno@clisp.org>
37421
37422         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37423         Reported by Eric Blake.
37424
37425 2008-07-14  Sam Steingold  <sds@gnu.org>
37426             Bruno Haible  <bruno@clisp.org>
37427
37428         New module libsigsegv.
37429         * modules/libsigsegv: New file.
37430         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37431         modifications.
37432         * MODULES.html.sh (Signal handling): New section.
37433
37434 2008-07-14  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/unictype/ctype-* (Description): Add the word "function".
37437         Improves the resulting doc in MODULES.html.
37438
37439 2008-07-12  Ben Pfaff  <blp@gnu.org>
37440
37441         Add longlong module.
37442         * modules/longlong: New file.
37443
37444 2008-07-12  Bruno Haible  <bruno@clisp.org>
37445
37446         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37447         to empty.
37448
37449 2008-07-10  Ben Pfaff  <blp@gnu.org>
37450
37451         Add isnan module.
37452         * doc/posix-functions/isnan.texi: Mention new module.
37453         * lib/math.in.h: Define isnan macro if we have decided to replace
37454         it.
37455         * m4/isnan.m4: New file.
37456         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37457         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37458         also.
37459         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37460         redundancy.
37461         * m4/math_h.m4: Initialize and substitute variables for isnan
37462         module.
37463         * modules/isnan: New file.
37464         * modules/isnan-tests: New file.
37465         * modules/math: Add substitutions for new module.
37466         * tests/test-isnan.c: New file.
37467         * MODULES.html.sh: Mention new module.
37468
37469 2008-07-10  Ben Pfaff  <blp@gnu.org>
37470
37471         Add isnanf module.
37472         * lib/isnanf.m4: New file.
37473         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
37474         (gl_HAVE_ISNANF_IN_LIBM): New macro.
37475         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
37476         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
37477         * modules/isnanf: New file.
37478         * modules/isnanf-tests: New file.
37479         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
37480         files.
37481         * tests/test-isnanf-nolibm.c: factored most of its contents into
37482         new file tests/test-isnanf.h.
37483         * tests/test-isnanf.h: New file.
37484         * tests/test-isnanf.c: New file.
37485         * MODULES.html.sh: Mention new module.
37486         * doc/glibc-functions/isnanf.texi: Mention new module.
37487
37488 2008-07-10  Ben Pfaff  <blp@gnu.org>
37489
37490         Add isnand module.
37491         * lib/isnand.h: New file.
37492         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
37493         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
37494         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
37495         functionality also.
37496         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
37497         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
37498         (gl_HAVE_ISNAND_IN_LIBM): New macro.
37499         * modules/isnand: New file.
37500         * modules/isnand-tests: New file.
37501         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
37502         files.
37503         * tests/test-isnand-nolibm.c: factored most of its contents into
37504         new file tests/test-isnand.h.
37505         * tests/test-isnand.h: New file.
37506         * tests/test-isnand.c: New file.
37507         * MODULES.html.sh: Mention new module.
37508
37509 2008-07-10  Ben Pfaff  <blp@gnu.org>
37510
37511         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
37512         * lib/isnand.h: Rename lib/isnand-nolibm.h.
37513         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
37514         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
37515         * modules/isnanf-nolibm: Update references to renamed files.
37516         * modules/isnand-nolibm: Likewise.
37517         * modules/isnanf-nolibm-tests: Likewise.
37518         * modules/isnand-nolibm-tests: Likewise.
37519         * lib/frexp.c: Likewise.
37520         * lib/isfinite.c: Likewise.
37521         * lib/signbitd.c: Likewise.
37522         * lib/signbitf.c: Likewise.
37523         * lib/vasnprintf.c: Likewise.
37524         * tests/test-ceilf1.c: Likewise.
37525         * tests/test-ceilf2.c: Likewise.
37526         * tests/test-floorf1.c: Likewise.
37527         * tests/test-floorf2.c: Likewise.
37528         * tests/test-frexp.c: Likewise.
37529         * tests/test-round1.c: Likewise.
37530         * tests/test-round2.c: Likewise.
37531         * tests/test-roundf1.c: Likewise.
37532         * tests/test-strtod.c: Likewise.
37533         * tests/test-trunc1.c: Likewise.
37534         * tests/test-trunc2.c: Likewise.
37535         * tests/test-truncf1.c: Likewise.
37536         * tests/test-truncf2.c: Likewise.
37537         * NEWS: Mention the renamed header files.
37538
37539 2008-07-11  Jim Meyering  <meyering@redhat.com>
37540
37541         vc-list-files: make the last-resort awk code more portable
37542         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
37543         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
37544         does not support it.
37545
37546 2008-07-10  Eric Blake  <ebb9@byu.net>
37547
37548         Work with tar's bootstrap.
37549         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
37550         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
37551         an m4 comment.
37552
37553 2008-07-09  Jim Meyering  <meyering@redhat.com>
37554
37555         posix-shell.m4: fix typo that made this test malfunction
37556         * m4/posix-shell.m4: Remove capitalization in variable name.
37557
37558 2008-07-08  Bruno Haible  <bruno@clisp.org>
37559
37560         * m4/onceonly.m4: Update comments.
37561         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37562
37563 2008-07-04  Jim Meyering  <meyering@redhat.com>
37564
37565         * users.txt: Add vc-dwim.
37566         (bison, coreutils): Use the gitweb URL.
37567
37568 2008-07-03  Jim Meyering  <meyering@redhat.com>
37569
37570         * users.txt: Add libffcall.  From Sam Steingold.
37571
37572 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
37573
37574         getdate.y: do not ignore TZ with relative day, month or year offset
37575         * lib/getdate.y (get_date): Move the tz-handling block to follow the
37576         relative-date-handling, since otherwise, the latter would clobber the
37577         sole output (an updated Start value) of the tz-handling block.
37578         * tests/test-getdate.c: Tests for the fix
37579
37580 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37581
37582         Recognize 'foo_LIBRARIES += libgnu.a'.
37583         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
37584         makefile snippet has already specified an installation location,
37585         also using '+='.
37586
37587 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
37588
37589         getdate.y: factor out common actions
37590         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
37591         Use them in place of open-coded actions.
37592
37593 2008-07-01  Simon Josefsson  <simon@josefsson.org>
37594
37595         Add self-test for getdate module.
37596         * modules/getdate-tests: New file.
37597         * tests/test-getdate.c: New file.
37598
37599 2008-06-29  Bruno Haible  <bruno@clisp.org>
37600
37601         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
37602         .gitignore.
37603         Reported by Sylvain Beucler <beuc@beuc.net>.
37604
37605 2008-06-29  Bruno Haible  <bruno@clisp.org>
37606
37607         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
37608         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
37609
37610 2008-06-29  Bruno Haible  <bruno@clisp.org>
37611
37612         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
37613         EXTRA_DIST.
37614         Reported by Sylvain Beucler <beuc@beuc.net>.
37615
37616 2008-06-26  Jim Meyering  <meyering@redhat.com>
37617
37618         make several modules depend on the "open" module
37619         This provides slightly increased consistency when opening-for-write
37620         the name of a non-directory spelled with a trailing slash.
37621         * modules/chdir-safer: Likewise.
37622         * modules/chown: Likewise.
37623         * modules/clean-temp: Likewise.
37624         * modules/copy-file: Likewise.
37625         * modules/fchdir: Likewise.
37626         * modules/fcntl-safer: Likewise.
37627         * modules/pipe: Likewise.
37628         * modules/utime: Likewise.
37629         Prompted by Eric Blake and Bruno Haible.
37630
37631 2008-06-24  Andreas Schwab  <schwab@suse.de>
37632
37633         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
37634         literals can be used as initializers for global variables.
37635
37636 2008-06-23  Eric Blake  <ebb9@byu.net>
37637
37638         Make gnulib-cache.m4 easier to diff.
37639         * gnulib-tool (func_import): Allow newlines when reading cached
37640         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
37641
37642 2008-06-23  Bruno Haible  <bruno@clisp.org>
37643
37644         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
37645         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
37646         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
37647         m4/signalblocking.m4.
37648         (gl_PREREQ_SIGACTION): Don't invoke it.
37649         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
37650         gl_PREREQ_SIG_HANDLER_H.
37651         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37652         Don't check for sigaction here.
37653
37654 2008-06-23  Bruno Haible  <bruno@clisp.org>
37655
37656         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
37657         (install_handlers): Don't set the SA_RESETHAND flag.
37658
37659 2008-06-23  Bruno Haible  <bruno@clisp.org>
37660
37661         * m4/sigaction.m4: Comment fixes.
37662         * lib/signal.in.h: Likewise.
37663
37664 2008-06-23  Eric Blake  <ebb9@byu.net>
37665
37666         Fix typo.
37667         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
37668
37669         Avoid SA_ namespace.
37670         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
37671         Reported by Ralf Wildenhues.
37672
37673         Avoid test failure due to SA_RESTORER.
37674         * tests/test-sigaction.c (SA_MASK): New macro.
37675         (main): Avoid failing due to extension flags being set.
37676         Reported by Jim Meyering.
37677
37678         Revert use of sig-handler.h in sigprocmask.c.
37679         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
37680         it requires the existence of struct sigaction.
37681         * lib/sigprocmask.c (handler_t): Restore typedef.
37682         (rpl_signal, old_handlers): Use local type.
37683
37684 2008-06-22  Bruno Haible  <bruno@clisp.org>
37685
37686         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
37687         conditionally.
37688         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37689
37690 2008-06-22  Bruno Haible  <bruno@clisp.org>
37691
37692         * doc/posix-functions/siginterrupt.texi: Move note.
37693
37694         * lib/signal.in.h (SA_RESTART): New macro.
37695         * lib/sigaction.c: Update comment.
37696
37697         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
37698
37699         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
37700         (gl_PREREQ_SIGPROCMASK): Invoke it.
37701         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
37702
37703         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
37704
37705         * lib/sigprocmask.c: Update a comment.
37706
37707 2008-06-21  Eric Blake  <ebb9@byu.net>
37708
37709         Use sigaction module rather than signal().
37710         * modules/c-stack (Depends-on): Add sigaction.
37711         * modules/fatal-signal (Depends-on): Likewise.
37712         * modules/nanosleep (Depends-on): Likewise.
37713         * modules/sigprocmask (Files): Add sig-handler.h.
37714         * modules/sigaction (Files): Likewise.
37715         * lib/sig-handler.h (get_handler): New file, suggested by Paul
37716         Eggert.
37717         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
37718         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
37719         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37720         (init_fatal_signals): Likewise.
37721         * lib/nanosleep.c (rpl_nanosleep): Likewise.
37722         (siginterrupt): Delete fallback.
37723         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
37724         instead.
37725         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
37726         siginterrupt.
37727
37728         New module sigaction, for mingw.
37729         * modules/sigaction: New module...
37730         * modules/sigaction-tests: ...and its test.
37731         * m4/sigaction.m4: New file.
37732         * lib/sigaction.c: Likewise.
37733         * tests/test-sigaction.c: Likewise.
37734         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
37735         * modules/signal (Makefile.am): Likewise.
37736         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
37737         needed.
37738         * doc/posix-headers/signal.texi (signal.h): Mention provided
37739         types.
37740         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
37741         that sigaction is preferable.
37742         * doc/posix-functions/sigaction.texi (sigaction): Mention new
37743         module.
37744         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37745         sigaction.
37746
37747         Improve robustness of sigprocmask by overriding signal.
37748         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
37749         is in use.
37750         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
37751         (SIGKILL, SIGSTOP): Provide fallbacks.
37752         (rpl_signal): Implement.
37753         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
37754         signal can be called inside handlers.
37755
37756         Fix nanosleep module on mingw.
37757         * modules/nanosleep (Depends-on): Add sys_select.
37758         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
37759
37760         Fix licensing of sigprocmask.
37761         * modules/raise (License): Relicense as LGPL.
37762
37763 2008-06-21  Bruno Haible  <bruno@clisp.org>
37764
37765         * lib/propername.c (proper_name_utf8): Don't use the transliterated
37766         result if it contains question marks.
37767         Reported by Michael Geng <linux@michaelgeng.de>.
37768
37769 2008-06-19  Bruno Haible  <bruno@clisp.org>
37770
37771         Fix CVS-ism.
37772         * doc/gnulib.texi: Include updated-stamp.texi.
37773         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
37774         (updated-stamp.texi): New rule.
37775         (gnulib.info): Depend on it.
37776         * doc/.gitignore: Add updated-stamp.texi.
37777         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
37778
37779 2008-06-19  Bruno Haible  <bruno@clisp.org>
37780
37781         * doc/Makefile (gnulib.info): Update and simplify dependencies.
37782         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37783
37784 2008-06-19  Eric Blake  <ebb9@byu.net>
37785
37786         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
37787         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
37788         Reported by Stepan Kasal.
37789
37790 2008-06-18  Bruno Haible  <bruno@clisp.org>
37791
37792         * lib/fatal-signal.c (init_fatal_signals): Add comment.
37793         Reported by Eric Blake.
37794
37795 2008-06-18  Eric Blake  <ebb9@byu.net>
37796
37797         Work around cygwin 1.5.25 strsignal bug.
37798         * tests/test-strsignal.c: Allow for const char *.
37799         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37800
37801 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37802
37803         * users.txt: Update URL to article and add author/date
37804         information.
37805
37806 2008-06-17  Bruno Haible  <bruno@clisp.org>
37807
37808         New macro gl_DISABLE_THREADS.
37809         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37810         if the user did not pass --enable-threads or --disable-threads option.
37811         (gl_DISABLE_THREADS): New macro.
37812         Reported by Eric Blake <ebb9@byu.net>.
37813
37814 2008-06-17  Bruno Haible  <bruno@clisp.org>
37815
37816         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37817         when the macro ignores it.
37818         Based on a patch by Eric Blake <ebb9@byu.net>.
37819
37820 2008-06-17  Bruno Haible  <bruno@clisp.org>
37821
37822         * modules/tls (License): Change to LGPLv2+.
37823         Reported by Eric Blake.
37824
37825 2008-06-17  Eric Blake  <ebb9@byu.net>
37826
37827         Simplify c-stack prerequisites.
37828         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37829         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37830         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37831         check.
37832         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37833         <sys/resource.h>.
37834
37835         Move c-stack test into testsuite.
37836         * modules/c-stack-tests: New file.
37837         * lib/c-stack.c [DEBUG]: Move test program...
37838         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37839         fail test if sigaltstack is lacking.
37840         * tests/test-c-stack.sh: New driver file.
37841
37842 2008-06-16  Eric Blake  <ebb9@byu.net>
37843
37844         Use raise module consistently.
37845         * modules/fatal-signal (Depends-on): Add raise.
37846         * modules/sigprocmask (Depends-on): Likewise.
37847         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37848         * lib/sigprocmask.c (sigprocmask): Likewise.
37849         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37850         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37851
37852         Fix compliance bug in sigpending.
37853         * lib/sigprocmask.c (sigpending): Return pending array via
37854         parameter, not return value.
37855
37856 2008-06-14  Eric Blake  <ebb9@byu.net>
37857
37858         Improve obstack-printf test code.
37859         * tests/test-obstack-printf.c (test_function): Fix comment, and
37860         simplify usage of obstack_* in macros.  Add a test for coverage.
37861         Reported by Bruno Haible.
37862
37863 2008-06-14  Bruno Haible  <bruno@clisp.org>
37864
37865         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37866         array size as a constant, not as a const variable.
37867         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37868         AC_USE_SYSTEM_EXTENSIONS.
37869         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37870         Test whether the obstack_printf function actually exists.
37871         * modules/obstack-printf (Depends-on): Add extensions.
37872         (Include): Remove obstack.h.
37873         * modules/obstack-printf-posix (Depends-on): Add extensions.
37874         (Include): Remove obstack.h.
37875
37876 2008-06-13  Eric Blake  <ebb9@byu.net>
37877
37878         Add obstack-printf and obstack-printf-posix modules.
37879         * modules/obstack-printf: New file.
37880         * modules/obstack-printf-posix: Likewise.
37881         * MODULES.html.sh (Misc): Mention them.
37882         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37883         Likewise.
37884         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37885         Likewise.
37886         * modules/stdio (Makefile.am): Accomodate new modules.
37887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37888         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37889         Declare.
37890         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37891         functions.
37892         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37893         (gl_REPLACE_OBSTACK_PRINTF): New macros
37894         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37895         * tests/test-obstack-printf.c: New file.
37896         * modules/obstack-printf-tests: Likewise.
37897         * modules/obstack-printf-posix-tests: Likewise.
37898
37899 2008-06-11  Bruno Haible  <bruno@clisp.org>
37900
37901         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37902         * lib/open.c: Include errno.h.
37903         (open): Fail when attempting to write to a file that has a trailing
37904         slash.
37905         * tests/test-open.c (main): Test against trailing slash bug.
37906         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37907
37908 2008-06-10  Bruno Haible  <bruno@clisp.org>
37909
37910         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37911         for $? to work inside the trap command, with various /bin/sh-s.
37912         * tests/test-vc-list-files-cvs.sh: Likewise.
37913
37914 2008-06-10  Bruno Haible  <bruno@clisp.org>
37915
37916         * lib/acl-internal.h: Don't include gettext.h here.
37917         * lib/set-mode-acl.c: Include gettext.h here.
37918         * lib/copy-acl.c: Likewise.
37919
37920 2008-06-10  Bruno Haible  <bruno@clisp.org>
37921
37922         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37923         * lib/wait-process.c (wait_subprocess): Likewise.
37924         * lib/execute.h (execute): Add termsigp argument.
37925         * lib/execute.c (execute): Likewise.
37926         * lib/csharpcomp.c (compile_csharp_using_pnet,
37927         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37928         * lib/csharpexec.c (execute_csharp_using_pnet,
37929         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37930         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37931         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37932         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37933         is_jikes_present): Update.
37934         * lib/javaexec.c (execute_java_class): Update.
37935         * lib/javaversion.c (execute_and_read_line): Update.
37936         * NEWS: Document the changes.
37937         Reported by Eric Blake.
37938
37939 2008-06-10  Eric Blake  <ebb9@byu.net>
37940
37941         Add missing include.
37942         * tests/test-strstr.c (includes): Add <signal.h>.
37943         * tests/test-strcasestr.c (includes): Likewise.
37944         * tests/test-memmem.c (includes): Likewise.
37945
37946 2008-06-10  Bruno Haible  <bruno@clisp.org>
37947
37948         * lib/wait-process.c (wait_subprocess): Add an assertion.
37949
37950 2008-06-10  Bruno Haible  <bruno@clisp.org>
37951
37952         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37953
37954 2008-06-10  Bruno Haible  <bruno@clisp.org>
37955
37956         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37957         using alarm().
37958         * tests/test-strcasestr.c (main): Likewise.
37959         * tests/test-strstr.c (main): Likewise.
37960
37961 2008-06-09  Bruno Haible  <bruno@clisp.org>
37962
37963         Work around the Solaris 10 ACE ACLs ABI change.
37964         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37965         declare if ACL_NO_TRIVIAL is present.
37966         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37967         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37968         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37969         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37970         define if ACL_NO_TRIVIAL is present.
37971         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37972         and use the current ABI.
37973         (file_has_acl): Use same #if condition as elsewhere.
37974         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37975         in use, and use the current ABI.
37976         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37977         Reported by Jim Meyering.
37978
37979 2008-06-09  Eric Blake  <ebb9@byu.net>
37980
37981         Work around environments that (stupidly) ignore SIGALRM.
37982         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37983         before using alarm().
37984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37985         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37986         Reported by Ian Beckwith <ianb@erislabs.net>.
37987
37988         Produce autobuild blurb earlier in log.
37989         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37990
37991 2008-06-09  Jim Meyering  <meyering@redhat.com>
37992         and Ondřej Vašík  <ovasik@redhat.com>
37993
37994         utimens.c: correct kernel bug work-around
37995         Ondřej Vašík found that the invalid return value of 280 indicates
37996         failure, not success, and the kernel bug we're trying to work
37997         around affects not just the utimensat call, but also the fallback
37998         futimens call.
37999         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38000         not success.
38001         [HAVE_FUTIMENS]: Use the same work-around, here.
38002
38003 2008-06-09  Jim Meyering  <meyering@redhat.com>
38004
38005         add more guards around definition of ACE_-related code
38006         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38007         ALLOW and ACE_OWNER are also defined.
38008
38009 2008-06-08  Bruno Haible  <bruno@clisp.org>
38010
38011         * lib/acl-internal.h: Add me as co-author.
38012         * lib/file-has-acl.c: Likewise.
38013         * lib/set-mode-acl.c: Likewise.
38014         * lib/copy-acl.c: Likewise.
38015
38016 2008-06-08  Bruno Haible  <bruno@clisp.org>
38017
38018         Add support for AIX ACLs.
38019         * lib/acl-internal.h (acl_nontrivial): New declaration.
38020         * lib/file-has-acl.c (acl_nontrivial): New function.
38021         (file_has_acl): Add implementation using AIX 4 ACL API.
38022         * lib/set-mode-acl.c (qset_acl): Likewise.
38023         * lib/copy-acl.c (qcopy_acl): Likewise.
38024
38025 2008-06-08  Bruno Haible  <bruno@clisp.org>
38026
38027         Add support for HP-UX ACLs.
38028         * lib/acl-internal.h (acl_nontrivial): New declaration.
38029         * lib/file-has-acl.c (acl_nontrivial): New function.
38030         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38031         * lib/set-mode-acl.c (qset_acl): Likewise.
38032         * lib/copy-acl.c (qcopy_acl): Likewise.
38033
38034 2008-06-08  Bruno Haible  <bruno@clisp.org>
38035
38036         Add support for Cygwin ACLs.
38037         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38038         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38039         the chmod_or_fchmod call.
38040         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38041
38042 2008-06-08  Bruno Haible  <bruno@clisp.org>
38043
38044         Fix bug with setuid modes in Solaris 10+ code.
38045         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38046         succeeded, when the mode contains some special bits.
38047
38048 2008-06-08  Bruno Haible  <bruno@clisp.org>
38049
38050         Add support for Solaris 7..10 ACLs.
38051         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38052         declarations.
38053         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38054         functions.
38055         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38056         * lib/set-mode-acl.c (qset_acl): Likewise.
38057         * lib/copy-acl.c (qcopy_acl): Likewise.
38058
38059 2008-06-08  Bruno Haible  <bruno@clisp.org>
38060
38061         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38062         declaration.
38063         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38064         (acl_access_nontrivial): Remove MacOS X case.
38065         (file_has_acl): Use acl_extended_nontrivial.
38066         * lib/copy-acl.c (qcopy_acl): Likewise.
38067
38068 2008-06-08  Bruno Haible  <bruno@clisp.org>
38069
38070         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38071
38072 2008-06-08  Jim Meyering  <meyering@redhat.com>
38073
38074         * modules/acl (Maintainer): Add Bruno Haible.
38075
38076 2008-06-07  Bruno Haible  <bruno@clisp.org>
38077
38078         Improve support for Tru64 ACLs.
38079         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38080         ACL on OSF/1.
38081
38082 2008-06-07  Bruno Haible  <bruno@clisp.org>
38083
38084         Add support for MacOS X ACLs.
38085         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38086         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38087         * lib/set-mode-acl.c (qset_acl): Likewise.
38088         * lib/copy-acl.c (qcopy_acl): Likewise.
38089
38090 2008-06-07  Bruno Haible  <bruno@clisp.org>
38091
38092         Fix memory leak introduced on 2008-05-22.
38093         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38094         use.
38095
38096 2008-06-07  Bruno Haible  <bruno@clisp.org>
38097
38098         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38099         to construct an empty ACL.
38100
38101 2008-06-07  Bruno Haible  <bruno@clisp.org>
38102
38103         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38104         precisely.
38105         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38106
38107 2008-06-07  Bruno Haible  <bruno@clisp.org>
38108
38109         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38110         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38111
38112 2008-06-07  Bruno Haible  <bruno@clisp.org>
38113
38114         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38115         regardless of POSIX.
38116         * doc/posix-functions/_longjmp.texi: Likewise.
38117         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38118         SystemV platform in this case.
38119
38120 2008-06-06  Eric Blake  <ebb9@byu.net>
38121
38122         Document abort() bugs.
38123         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38124
38125         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38126         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38127         sigsetjmp.
38128         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38129         siglongjmp, but only as a macro.
38130         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38131         is obsolete.
38132         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38133
38134         Tweak documentation to cover cygwin argz bugs.
38135         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38136         argz bug fix; no code change needed since no cygwin releases
38137         occurred between the last fix and the bug being tested.
38138         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38139         module and recently fixed cygwin bugs.
38140         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38141         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38142         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38143         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38144         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38145         Likewise.
38146         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38147         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38148         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38149         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38150         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38151         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38152         Likewise.
38153
38154         Avoid gcc warning on cygwin.
38155         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38156         !ACL_NO_TRIVIAL]: Avoid unused variable.
38157
38158 2008-06-05  Eric Blake  <ebb9@byu.net>
38159
38160         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38161         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38162         git-version-gen fails to come up with a version.
38163         Reported by Simon Josefsson.
38164
38165 2008-06-05  Jim Meyering  <meyering@redhat.com>
38166             Paul Eggert  <eggert@cs.ucla.edu>
38167
38168         utimens.c: work around a probable Linux kernel bug
38169         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38170         appears to be a kernel bug that causes utimensat to return 280
38171         instead of 0, indicating success.
38172
38173 2008-06-04  Bruno Haible  <bruno@clisp.org>
38174
38175         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38176         2008-06-01 commit.
38177
38178 2008-06-04  Bruno Haible  <bruno@clisp.org>
38179
38180         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38181         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38182         (file_has_acl): Use it. Save errno afterwards.
38183         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38184
38185 2008-06-03  Bruno Haible  <bruno@clisp.org>
38186
38187         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38188         draft code. Simplify #ifs.
38189         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38190         Put Solaris code after POSIX-draft code. Fix comments regarding
38191         Solaris 10, HP-UX. Mention Cygwin.
38192         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38193
38194 2008-06-03  Eric Blake  <ebb9@byu.net>
38195
38196         Provide fallback for older kernels.
38197         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38198         Provide runtime fallback if kernel lacks support.
38199         Reported by Mike Frysinger.
38200
38201 2008-06-02  Bruno Haible  <bruno@clisp.org>
38202
38203         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38204         it exists.
38205
38206 2008-06-02  Bruno Haible  <bruno@clisp.org>
38207
38208         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38209         * lib/copy-acl.c (qcopy_acl): Update comment.
38210
38211 2008-06-02  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38214         like ACL APIs.
38215
38216 2008-06-02  Bruno Haible  <bruno@clisp.org>
38217
38218         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38219         * tests/test-set-mode-acl.sh: Likewise.
38220         * tests/test-copy-acl.sh: Likewise.
38221         * tests/test-copy-file.sh: Likewise.
38222
38223 2008-06-02  Bruno Haible  <bruno@clisp.org>
38224
38225         * tests/test-file-has-acl.sh: Remove unused code.
38226
38227 2008-06-01  Bruno Haible  <bruno@clisp.org>
38228
38229         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38230         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38231         messages.
38232         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38233
38234 2008-06-01  Bruno Haible  <bruno@clisp.org>
38235
38236         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38237         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38238         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38239         APIs.
38240         * modules/acl-tests (configure.ac): Remove tests now contained in
38241         m4/acl.m4.
38242
38243 2008-06-02  Jim Meyering  <meyering@redhat.com>
38244
38245         announce-gen: use a better key-server host name
38246         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38247         it may be more consistently reliable.  Suggested by Werner Koch
38248         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38249
38250 2008-06-01  Bruno Haible  <bruno@clisp.org>
38251
38252         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38253         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38254
38255 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38256
38257         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38258
38259 2008-06-01  Bruno Haible  <bruno@clisp.org>
38260
38261         New ACL tests.
38262         * tests/test-file-has-acl.sh: New file.
38263         * tests/test-file-has-acl.c: New file.
38264         * tests/test-set-mode-acl.sh: New file.
38265         * tests/test-set-mode-acl.c: New file.
38266         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38267         * tests/test-copy-acl.c: New file.
38268         * modules/acl-tests: New file, based on modules/copy-file-tests.
38269         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38270         (Depends-on): Add acl-tests.
38271         (configure.ac): Remove checks.
38272         (Makefile.am): Don't create test-sameacls program here any more.
38273
38274 2008-06-01  Bruno Haible  <bruno@clisp.org>
38275
38276         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38277         * tests/test-sameacls.c: Include progname.h.
38278         (main): Invoke set_program_name. Portability fixes for MacOS X,
38279         Solaris, HP-UX.
38280
38281 2008-06-01  Bruno Haible  <bruno@clisp.org>
38282
38283         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38284         function.
38285         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38286
38287 2008-06-01  Bruno Haible  <bruno@clisp.org>
38288
38289         * modules/rpmatch (Depends-on): Add strdup.
38290
38291 2008-06-01  Bruno Haible  <bruno@clisp.org>
38292
38293         * lib/pipe.c: Include unistd-safer.h.
38294         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38295         * modules/pipe (Depends-on): Add unistd-safer.
38296
38297 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38298
38299         * modules/autobuild (configure.ac): Call AB_INIT.
38300
38301 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38302
38303         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38304         Suggested by Bruno Haible <bruno@clisp.org>.
38305
38306 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38307
38308         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38309         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38310         <bruno@clisp.org>.
38311
38312 2008-05-29  Eric Blake  <ebb9@byu.net>
38313
38314         Prefer new POSIX 200x interfaces over futimesat.
38315         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38316         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38317         when available.
38318         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38319
38320 2008-05-28  Bruno Haible  <bruno@clisp.org>
38321
38322         * modules/stpcpy (License): Change to LGPLv2+.
38323         Requested by David Lutterkort <dlutter@redhat.com>.
38324
38325 2008-05-27  Bruno Haible  <bruno@clisp.org>
38326
38327         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38328         current mingw.
38329         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38330
38331 2008-05-27  Bruno Haible  <bruno@clisp.org>
38332
38333         * modules/iconv_open (Link): New section, from module 'iconv'.
38334         * modules/striconv (Link): Likewise.
38335         * modules/striconveh (Link): Likewise.
38336         * modules/xstriconv (Link): Likewise.
38337         * modules/unicodeio (Link): Likewise.
38338         * modules/propername (Link): Likewise.
38339         Reported by Jim Meyering.
38340
38341 2008-05-26  Jim Meyering  <meyering@redhat.com>
38342
38343         sha256: do not artificially restrict buffer length to be < 2^32
38344         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38345         uint32_t to size_t.
38346         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38347         to match.
38348
38349         avoid unaligned access errors, e.g., on sparc
38350         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38351         direct access through a possibly-unaligned uint64* pointer.
38352         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38353         direct access through a possibly-unaligned uint32* pointer.
38354         Prompted by this patch from Tom "spot" Callaway:
38355         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38356
38357         sha512.c: fix typo in comment
38358         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38359
38360 2008-05-25  Bruno Haible  <bruno@clisp.org>
38361
38362         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38363         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38364         (Makefile.am): Update lib_SOURCES.
38365
38366 2008-05-25  Bruno Haible  <bruno@clisp.org>
38367
38368         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38369
38370 2008-05-25  Jim Meyering  <meyering@redhat.com>
38371
38372         useless-if-before-free: freed expr may have white-space differences
38373         * build-aux/useless-if-before-free: Recognize cases in which the
38374         freed expression differs from the tested one in embedded white
38375         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38376         $1 was used, so we can't make any regexp shy.  Improved tests now
38377         detect this.
38378
38379         useless-if-before-free: accept white space in the expression.
38380         * build-aux/useless-if-before-free: For now, any white space
38381         in the expression must be identical in the free argument.
38382
38383         useless-if-before-free: efficiency tweak
38384         * build-aux/useless-if-before-free: Make the expression-matching
38385         regexp "shy".
38386         Make the *outer* regexp shy, not the expr-matching one.
38387
38388         update code-in-comment to accept cast of free arg
38389         * build-aux/useless-if-before-free: Update regexp.
38390
38391 2008-05-25  Bruno Haible  <bruno@clisp.org>
38392
38393         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38394         * modules/copy-file-tests (Files, Makefile.am): Update.
38395         * tests/test-copy-file.c (func_test_copy): Update.
38396
38397 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38398
38399         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38400
38401 2008-05-23  Bruno Haible  <bruno@clisp.org>
38402
38403         Improve support for ACLs on OSF/1.
38404         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38405         Remove fallback for unknown flavors of ACLs.
38406
38407 2008-05-22  Bruno Haible  <bruno@clisp.org>
38408
38409         Add support for ACLs on OSF/1.
38410         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38411         replacements.
38412         (acl_free_text): New macro fallback.
38413         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38414         acl_free.
38415         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38416         acl_free_text function. Require AC_C_INLINE.
38417
38418 2008-05-22  Bruno Haible  <bruno@clisp.org>
38419
38420         Make copy_acl work on MacOS X 10.5.
38421         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38422         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38423         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38424         If MODE_INSIDE_ACL, don't assume that every system has the same text
38425         representation for ACLs as FreeBSD.
38426         * lib/copy-acl.c (copy_acl): Add support for platforms with
38427         !MODE_INSIDE_ACL.
38428         * lib/file-has-acl.c (file_has_acl): Likewise.
38429         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38430         FreeBSD, MacOS X, or IRIX, respectively.
38431
38432 2008-05-22  Bruno Haible  <bruno@clisp.org>
38433
38434         * lib/acl.h: Don't include <sys/acl.h>.
38435         (GETACLCNT): Move fallback to lib/acl-internal.h.
38436         * lib/acl-internal.h: Include <sys/acl.h> here.
38437         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38438
38439 2008-05-22  Bruno Haible  <bruno@clisp.org>
38440
38441         Split off copy_acl function to separate file.
38442         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38443         * lib/acl.c (copy_acl): Moved function to separate file.
38444         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38445         * modules/acl (Files): Add lib/copy-acl.c.
38446         (Makefiles.am): Augment lib_SOURCES.
38447
38448 2008-05-22  Bruno Haible  <bruno@clisp.org>
38449
38450         * modules/copy-file-tests: New file.
38451         * tests/test-copy-file.sh: New file.
38452         * tests/test-copy-file.c: New file.
38453         * tests/test-copy-file-sameacls.c: New file.
38454
38455 2008-05-22  Eric Blake  <ebb9@byu.net>
38456
38457         Avoid gcc warning.
38458         * tests/test-memcmp.c (main): Pass NULL indirectly.
38459
38460 2008-05-21  Bruno Haible  <bruno@clisp.org>
38461
38462         Add reference doc about ACLs.
38463         * doc/acl-resources.txt: New file.
38464         * doc/acl-cygwin.txt: New file.
38465
38466 2008-05-21  Bruno Haible  <bruno@clisp.org>
38467
38468         Avoid one more warning from gcc.
38469         * lib/vasnprintf.c (IF_LINT): Update comments.
38470         (VASNPRINTF): Use it also for the 'prefix' array initializer.
38471
38472 2008-05-21  Jim Meyering  <meyering@redhat.com>
38473
38474         avoid a warning from gcc
38475         * lib/vasnprintf.c (IF_LINT): Define.
38476         (scale10_round_decimal_long_double):
38477         Use it to avoid a "may be used uninitialized" warning.
38478         (scale10_round_decimal_double): Likewise.
38479
38480 2008-05-21  Simon Josefsson  <simon@josefsson.org>
38481
38482         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
38483         declared.
38484
38485 2008-05-20  Bruno Haible  <bruno@clisp.org>
38486
38487         * tests/test-memcmp.c (main): Test also the sign of the result. Test
38488         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
38489
38490 2008-05-20  Simon Josefsson  <simon@josefsson.org>
38491
38492         * modules/memcmp-tests: New file.
38493         * tests/test-memcmp.c: New file.
38494
38495 2008-05-19  Bruno Haible  <bruno@clisp.org>
38496
38497         * modules/propername (Notice, configure.ac): Put quoted "..." into
38498         --keyword option.
38499         * lib/propername.h: Update comments accordingly.
38500         Reported by Eric Blake.
38501
38502 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
38503
38504         * modules/getpass-gnu (Depends-on): Add fseeko.
38505
38506 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38507
38508         * modules/base64-tests: New file.
38509
38510 2008-05-19  Bo Borgerson <gigabo@gmail.com>
38511
38512         * lib/base64.c (base64_decode_ctx): If a decode context structure
38513         was passed in use it to ignore newlines.  If a context structure
38514         was _not_ passed in, continue to treat newlines as garbage (this
38515         is the historical behavior).  Formerly base64_decode.
38516         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38517         takes a decode context structure.
38518         * lib/base64.h (base64_decode): Macro for four-argument calls.
38519         (base64_decode_alloc): Likewise.
38520         * lib/base64.c (base64_decode_ctx): If a decode context structure
38521         was passed in use it to ignore newlines.  If a context structure
38522         was _not_ passed in, continue to treat newlines as garbage (this
38523         is the historical behavior).  Formerly base64_decode.
38524         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38525         takes a decode context structure.
38526         * lib/base64.h (base64_decode): Macro for four-argument calls.
38527         (base64_decode_alloc): Likewise.
38528
38529 2008-05-19  Jim Meyering  <meyering@redhat.com>
38530
38531         avoid a warning from gcc
38532         * lib/trim.c (IF_LINT): Define.
38533         (trim2): Use it to avoid a "may be used uninitialized" warning.
38534
38535         Fix doc typo.
38536         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
38537
38538 2008-05-19  Bruno Haible  <bruno@clisp.org>
38539
38540         * doc/glibc-functions/getpass.texi: Document limits of other
38541         implementations.
38542
38543 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38544             Bruno Haible <bruno@clisp.org>
38545
38546         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
38547
38548 2008-05-18  Bruno Haible  <bruno@clisp.org>
38549
38550         * modules/propername: New file, from GNU gettext.
38551         * lib/propername.h: New file, from GNU gettext.
38552         * lib/propername.c: New file, from GNU gettext.
38553         * MODULES.html.sh (Internationalization functions): Add propername.
38554
38555 2008-05-16  Jim Meyering  <meyering@redhat.com>
38556             Bruno Haible  <bruno@clisp.org>
38557
38558         Avoid some warnings from "gcc -Wshadow".
38559         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
38560
38561 2008-05-15  Eric Blake  <ebb9@byu.net>
38562
38563         Extend previous patch to cygwin 1.7.0.
38564         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
38565         fast implementation in cygwin >= 1.7.0.
38566         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38568
38569 2008-05-15  Bruno Haible  <bruno@clisp.org>
38570
38571         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
38572         implementation in glibc >= 2.9.
38573         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38575
38576 2008-05-15  Bruno Haible  <bruno@clisp.org>
38577
38578         * MODULES.html.sh (Internationalization functions): Remove linebreak.
38579         (Unicode string functions): Add unilbrk/*.
38580         Reported by Karl Berry.
38581
38582 2008-05-15  Eric Blake  <ebb9@byu.net>
38583
38584         Fix violation of <stdbool.h> replacement in regex.
38585         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
38586         * lib/regexec.c (re_search_internal): Likewise.
38587         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
38588
38589 2008-05-15  Jim Meyering  <meyering@redhat.com>
38590
38591         avoid distracting test output when git or cvs is not found
38592         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
38593         * tests/test-vc-list-files-git.sh: Likewise.
38594
38595 2008-05-15  Eric Blake  <ebb9@byu.net>
38596
38597         Glibc finally accepted the memmem speedup code, bugzilla #5514.
38598         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
38599         glibc version.
38600         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38601         * doc/posix-functions/strstr.texi (strstr): Likewise.
38602         * lib/str-two-way.h (MAX): Sychronize with glibc.
38603
38604 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
38605
38606         * lib/regcomp.c (optimize_utf8): Add a note on why we test
38607         opr.ctx_type.
38608         (calc_first): Initialize constraint field.
38609         (duplicate_node_closure): Use it instead of special casing ANCHORS.
38610         Fix grammar.
38611         (duplicate_node): Merge constraint field for all node types.
38612         (calc_eclosure_iter): Look at constraint field for all node types.
38613         * lib/regex_internal.c (create_cd_newstate): Don't look at
38614         opr.ctx_type.
38615
38616 2008-05-14  Bruno Haible  <bruno@clisp.org>
38617
38618         Help GCC to do better code generation.
38619         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
38620         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
38621         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
38622         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
38623         Declare with attribute 'malloc' if supported.
38624
38625 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
38626
38627         use "echo STR|wc -c" rather than unportable "expr length STR"
38628         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
38629         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
38630
38631 2008-05-14  Jim Meyering  <meyering@redhat.com>
38632
38633         use dd ibs=$n count=1 ... rather than less-portable head -c$n
38634         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
38635         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
38636         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
38637         via Collin Lasse.
38638
38639 2008-05-14  Eric Blake  <ebb9@byu.net>
38640
38641         Avoid quadratic growth in gl_LIBSOURCES.
38642         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
38643         Suggested by Bruno Haible.
38644
38645         Test xmemdup0.
38646         * modules/xmemdup0-tests: New file.
38647         * tests/test-xmemdup0.c: Likewise.
38648
38649 2008-05-13  Eric Blake  <ebb9@byu.net>
38650
38651         Split xmemdup0 into its own module.
38652         * modules/xmemdup0: New file.
38653         * lib/xmemdup0.h: Likewise.
38654         * lib/xmemdup0.c: Likewise.
38655         * MODULES.html.sh (Memory management functions): Add xmemdup0.
38656         * lib/xalloc.h (xmemdup0): Remove.
38657         * lib/xmalloc.c (xmemdup0): Likewise.
38658
38659 2008-05-13  Eric Blake  <ebb9@byu.net>
38660             Bruno Haible  <bruno@clisp.org>
38661
38662         Reduce number of forks required during autoconf.
38663         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
38664         and gl_LIBSOURCES_DIR.
38665         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
38666         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
38667         m4_syscmd per file.
38668         <m4_foreach_w>: Move...
38669         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
38670
38671 2008-05-13  Eric Blake  <ebb9@byu.net>
38672
38673         * gnulib-tool: Fix various comment typos.
38674
38675 2008-05-12  Bruno Haible  <bruno@clisp.org>
38676
38677         Tailor the linebreaking algorithm.
38678         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
38679
38680 2008-05-12  Bruno Haible  <bruno@clisp.org>
38681
38682         Update to Unicode 5.0.0.
38683         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38684         LBP_JV, LBP_JT. Redistribute values.
38685         (unilbrk_table): Change size.
38686         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
38687         Unicode TR#14 rev. 22.
38688         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38689         LBP_JV, LBP_JT. Redistribute values.
38690         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
38691         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
38692         Update.
38693         * lib/unilbrk/lbrkprop1.h: Regenerated.
38694         * lib/unilbrk/lbrkprop2.h: Regenerated.
38695         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
38696         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
38697         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
38698         Likewise.
38699         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
38700         Likewise.
38701         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
38702         result.
38703         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38704         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38705         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38706         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
38707         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
38708         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
38709
38710 2008-05-11  Bruno Haible  <bruno@clisp.org>
38711
38712         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
38713
38714 2008-05-11  Bruno Haible  <bruno@clisp.org>
38715
38716         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
38717         * modules/unilbrk/gen-lbrk: New file.
38718
38719 2008-05-11  Bruno Haible  <bruno@clisp.org>
38720
38721         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
38722         * m4/sha512.m4 (gl_SHA512): Likewise.
38723
38724 2008-05-11  Jim Meyering  <meyering@redhat.com>
38725
38726         New modules: crypto/sha256, crypto/sha512 (from coreutils)
38727         * modules/crypto/sha256: New file.
38728         * modules/crypto/sha512: Likewise.
38729         * lib/sha256.c: Likewise.
38730         * lib/sha256.h: Likewise.
38731         * lib/sha512.c: Likewise.
38732         * lib/sha512.h: Likewise.
38733         * lib/u64.h: Likewise.
38734         * m4/sha256.m4: Likewise.
38735         * m4/sha512.m4: Likewise.
38736         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
38737
38738 2008-05-10  Bruno Haible  <bruno@clisp.org>
38739
38740         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
38741         (Input/Output <stdio.h>): Add xprintf.
38742         (Signal handling <signal.h>): Add strsignal.
38743         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
38744         (Core language properties): Add func.
38745         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
38746         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
38747         strings.
38748         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
38749         (Input/output): New section.
38750         (File system functions): Add openat-die, stat-macros.
38751         (Networking functions): Add sockets.
38752         (Unicode string functions): Add unictype/*.
38753         (Support for building libraries and executables): Add gperf.
38754         (Support for building documentation): Add agpl-3.0.
38755         (Misc): Add nocrash.
38756
38757 2008-05-10  Bruno Haible  <bruno@clisp.org>
38758
38759         * modules/unictype/gen-ctype: New file.
38760
38761 2008-05-10  Jim Meyering  <meyering@redhat.com>
38762
38763         Make chdir-safer.c more efficient on a system with no symlinks.
38764         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
38765         also if ELOOP is zero.  Suggested by Bruno Haible.
38766
38767         Make chdir-safer.c slightly safer.
38768         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
38769         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
38770
38771         Avoid compile failure on systems without ELOOP (like mingw).
38772         * lib/chdir-safer.c (ELOOP): Define if not already defined.
38773         Reported by Bruno Haible.
38774
38775 2008-05-10  Bruno Haible  <bruno@clisp.org>
38776
38777         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
38778         (is_utf8_encoding): Use a case-insensitive comparison.
38779         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
38780         streq.
38781
38782 2008-05-10  Bruno Haible  <bruno@clisp.org>
38783
38784         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
38785         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
38786         * lib/unilbrk/ulc-common.h (iconv_string_length,
38787         iconv_string_keeping_offsets): Remove declarations.
38788         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
38789         Don't include <iconv.h>, streq.h, xsize.h.
38790         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
38791         conversion.
38792         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
38793         <iconv.h>, streq.h, xsize.h.
38794         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
38795         conversion.
38796         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38797         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38798         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38799         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38800
38801 2008-05-10  Bruno Haible  <bruno@clisp.org>
38802
38803         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38804         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38805
38806         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38807         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38808
38809         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38810         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38811
38812         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38813         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38814
38815         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38816         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38817
38818         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38819         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38820
38821         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38822         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38823
38824         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38825         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38826
38827 2008-05-10  Bruno Haible  <bruno@clisp.org>
38828
38829         Split up 'linebreak' module.
38830         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38831         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38832         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38833         modifications.
38834         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38835         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38836         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38837         lib/linebreak.c.
38838         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38839         lib/linebreak.c.
38840         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38841         lib/linebreak.c.
38842         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38843         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38844         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38845         lib/linebreak.c.
38846         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38847         lib/linebreak.c.
38848         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38849         lib/linebreak.c.
38850         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38851         lib/linebreak.c.
38852         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38853         lib/linebreak.c.
38854         * modules/unilbrk/base: New file.
38855         * modules/unilbrk/tables: New file.
38856         * modules/unilbrk/u8-possible-linebreaks: New file.
38857         * modules/unilbrk/u16-possible-linebreaks: New file.
38858         * modules/unilbrk/u32-possible-linebreaks: New file.
38859         * modules/unilbrk/ulc-common: New file.
38860         * modules/unilbrk/ulc-possible-linebreaks: New file.
38861         * modules/unilbrk/u8-width-linebreaks: New file.
38862         * modules/unilbrk/u16-width-linebreaks: New file.
38863         * modules/unilbrk/u32-width-linebreaks: New file.
38864         * modules/unilbrk/ulc-width-linebreaks: New file.
38865         * lib/linebreak.h: Remove file.
38866         * lib/linebreak.c: Remove file.
38867         * m4/linebreak.m4: Remove file.
38868         * modules/linebreak: Remove file.
38869         * NEWS: Mention the changes.
38870
38871 2008-05-09  Eric Blake  <ebb9@byu.net>
38872
38873         Add xmemdup0.
38874         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38875         implementation.
38876         * lib/xmalloc.c (xmemdup0): New C implementation.
38877
38878 2008-05-08  Bruno Haible  <bruno@clisp.org>
38879
38880         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38881
38882 2008-05-07  Eric Blake  <ebb9@byu.net>
38883
38884         Support cross-compilation of <wctype.h>.
38885         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38886         AC_CACHE_CHECK.
38887
38888 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38889
38890         * build-aux/vc-list-files: Add support for bzr.
38891
38892 2008-05-03  Jim Meyering  <meyering@redhat.com>
38893
38894         avoid failed assertion with tight malloc
38895         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38896
38897 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38898
38899         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38900         are needed from arpa/inet.h.
38901         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38902         Reported by Bruno Haible.
38903
38904 2008-05-02  Jim Meyering  <meyering@redhat.com>
38905
38906         avoid compilation error on FreeBSD 6
38907         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38908
38909 2008-05-01  Jim Meyering  <meyering@redhat.com>
38910
38911         useless-if-before-free: correct --help's exit status description
38912         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38913         for one or more matches, etc.  Reported by Bruno Haible.
38914
38915         vc-list-files: make the stand-alone gnulib test work
38916         * modules/vc-list-files-tests (configure.ac):
38917         Define and AC_SUBST abs_aux_dir.
38918         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38919         $(abs_top_srcdir) to each script and having each of them
38920         duplicate the work of setting PATH, set PATH here, using
38921         the new variable, abs_aux_dir instead.
38922         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38923         * tests/test-vc-list-files-git.sh: Likewise.
38924         Reported by Bruno Haible.
38925
38926 2008-05-01  Bruno Haible  <bruno@clisp.org>
38927
38928         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38929         reallocation. Rename 'done' to 'found_delimiter'.
38930
38931 2008-05-01  Jim Meyering  <meyering@redhat.com>
38932
38933         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38934         * build-aux/vc-list-files: Use `...`, not $(...).
38935
38936 2008-04-30  Jim Meyering  <meyering@redhat.com>
38937
38938         add tests for vc-list-files
38939         * modules/vc-list-files-tests: New module.
38940         * tests/test-vc-list-files-cvs.sh: New file.
38941         * tests/test-vc-list-files-git.sh: New file.
38942
38943         avoid a warning from gcc
38944         * lib/getndelim2.c (IF_LINT): Define.
38945         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38946
38947         vc-list-files: work properly with build-aux/cvsu, too
38948         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38949         to all cvs-based clauses.
38950
38951         vc-list-files: work properly in the CVS+awk case, too
38952         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38953
38954         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38955         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38956         take more than one file argument, so .  Add quotes, just in case $dir
38957         ever contains a shell meta-character.  Prompted by Soren Hansen in
38958         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38959
38960 2008-04-29  Eric Blake  <ebb9@byu.net>
38961
38962         Optimize getndelim2 to use block operations when possible.
38963         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38964         freadseek, and memchr2.
38965         * lib/getndelim2.c (getndelim2): Use them for block reads.
38966
38967 2008-04-29  Bruno Haible  <bruno@clisp.org>
38968
38969         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38970         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38971         * modules/inet_ntop (Depends-on): Add extensions.
38972         * modules/inet_pton (Depends-on): Likewise.
38973         Reported by Simon Josefsson.
38974
38975 2008-04-29  Jim Meyering  <meyering@redhat.com>
38976
38977         When the is more than one match in a block, match all of them.
38978         * build-aux/useless-if-before-free: Iterate through each block
38979         until there are no more matches.
38980
38981         Fix broken useless-if-before-free script.
38982         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38983         the expression to match cast of argument to free-like function.
38984
38985 2008-04-29  Eric Blake  <ebb9@byu.net>
38986
38987         Use new header.
38988         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38989
38990 2008-04-29  Jim Meyering  <meyering@redhat.com>
38991
38992         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38993         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38994         by gnulib to exist and to declare e.g., inet_ntop.
38995         Don't include "inet_ntop.h", now removed.
38996
38997         * m4/arpa_inet_h.m4: Remove trailing blanks.
38998
38999 2008-04-29  Eric Blake  <ebb9@byu.net>
39000
39001         Silence valgrind on safe reads beyond potential array bounds.
39002         * lib/rawmemchr.valgrind: New file.
39003         * lib/strchrnul.valgrind: Likewise.
39004         * modules/rawmemchr (Files): Distribute new file.
39005         * modules/strchrnul (Files): Likewise.
39006         Suggested by Bruno Haible.
39007
39008 2008-04-29  Bruno Haible  <bruno@clisp.org>
39009
39010         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39011         (inet_ntop, inet_pton): Change portability warning's wording.
39012         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39013         Invoke gl_CHECK_NEXT_HEADERS.
39014         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39015         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39016         set ARPA_INET_H.
39017         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39018         * modules/arpa_inet (Description): No longer only for systems that
39019         lack it.
39020         (Depends-on): Add include_next.
39021         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39022         HAVE_ARPA_INET_H.
39023
39024 2008-04-29  Jim Meyering  <meyering@redhat.com>
39025
39026         * modules/mkdir (License): Re-license as LGPLv2+.
39027
39028 2008-04-29  Bruno Haible  <bruno@clisp.org>
39029
39030         * modules/rawmemchr (Maintainer): Set to Eric.
39031         * modules/strchrnul (Maintainer): Likewise.
39032
39033 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39034
39035         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39036         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39037
39038         * modules/arpa_inet (arpa/inet.h): Use them.
39039
39040 2008-04-28  Eric Blake  <ebb9@byu.net>
39041
39042         Test getndelim2.
39043         * modules/getndelim2-tests: New file.
39044         * tests/test-getndelim2.c: Likewise.
39045         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39046         stream.
39047         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39048
39049         * MODULES.html.sh: Document new module.
39050
39051 2008-04-20  Bruno Haible  <bruno@clisp.org>
39052
39053         * lib/c-stack.c (die): Use raise.
39054         * modules/c-stack (Depends-on): Add raise.
39055
39056 2008-04-28  Bruno Haible  <bruno@clisp.org>
39057
39058         Expect rpmatch to be declared.
39059         * lib/yesno.c (rpmatch): Remove declaration.
39060
39061         Declare rpmatch.
39062         * lib/stdlib.in.h (rpmatch): New declaration.
39063         * lib/rpmatch.c: Include <stdlib.h> first.
39064         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39065         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39067         HAVE_RPMATCH.
39068         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39069         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39070         (Include): Set to <stdlib.h>.
39071         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39072         HAVE_RPMATCH.
39073         * NEWS: Document the change.
39074
39075 2008-04-28  Bruno Haible  <bruno@clisp.org>
39076
39077         Change rpmatch to use nl_langinfo when appropriate.
39078         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39079         (N_): New macro.
39080         (localized_pattern): New function/macro.
39081         (try): Remove match, nomatch arguments. Copy the pattern into safe
39082         memory before caching it.
39083         (rpmatch): Use localized_pattern. Add translator comments.
39084         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39085         Suggested by Eric Blake.
39086         * modules/rpmatch (Depends-on): Add stdbool.
39087
39088 2008-04-28  Eric Blake  <ebb9@byu.net>
39089
39090         Add rawmemchr module, matching glibc.
39091         * modules/string (Makefile.am): New indicator.
39092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39093         * lib/string.in.h (rawmemchr): Declare when appropriate.
39094         * modules/rawmemchr: New file.
39095         * m4/rawmemchr.m4: Likewise.
39096         * lib/rawmemchr.c: Likewise.
39097         * modules/rawmemchr-tests: Likewise.
39098         * tests/test-rawmemchr.c: Likewise.
39099         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39100         module.
39101         * modules/strchrnul (Depends-on): Add rawmemchr.
39102         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39103
39104         Whitespace cleanup.
39105         * tests/test-strchrnul.c: Reindent.
39106         * lib/strchrnul.c: Likewise.
39107
39108         Optimize and test strchrnul.
39109         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39110         * modules/strchrnul-tests: New file.
39111         * tests/test-strchrnul.c: Likewise.
39112
39113         Remove intprops dependency.
39114         * modules/memchr (Depends-on): Remove intprops.
39115         * modules/memrchr (Depends-on): Likewise.
39116         * modules/memchr2 (Depends-on): Likewise.
39117         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39118         * lib/memrchr.c (__memrchr): Likewise.
39119         * lib/memrchr2.c (memchr2): Likewise.
39120         Reported by Simon Josefsson.
39121
39122 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39123
39124         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39125         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39126
39127 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39128
39129         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39130
39131         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39132
39133         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39134
39135         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39136         declarations.
39137         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39138
39139         * m4/inet_pton.m4: Don't check for header files.
39140
39141         * m4/inet_ntop.m4: Don't check for header files.
39142
39143 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39144
39145         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39146         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39147         trigger for cygwin).
39148         Reported by Bruno Haible  <bruno@clisp.org>.
39149
39150 2008-04-28  Bruno Haible  <bruno@clisp.org>
39151
39152         * doc/posix-functions/strdup.texi: Mention mingw problem.
39153
39154 2008-04-27  Bruno Haible  <bruno@clisp.org>
39155
39156         * modules/stat-time-tests (Depends-on): Add sleep.
39157         * tests/test-stat-time.c (force_unlink): New function.
39158         (cleanup): Use it.
39159         (test_mtime): Remove the ctime related tests.
39160         (test_ctime): New function, containing the ctime related tests.
39161         (main): Call test_ctime, except on native Windows platforms.
39162
39163 2008-04-27  Bruno Haible  <bruno@clisp.org>
39164
39165         * lib/rpmatch.c (rpmatch): Add some comments.
39166         Reported by James Youngman <jay@gnu.org>.
39167
39168 2008-04-27  Bruno Haible  <bruno@clisp.org>
39169
39170         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39171         quiet NaNs.
39172
39173 2008-04-27  Bruno Haible  <bruno@clisp.org>
39174
39175         Make test-yesno.sh work on mingw.
39176         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39177         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39178         (main): Set stdin to binary mode.
39179         * modules/yesno-tests (Depends-on): Add binary-io.
39180
39181 2008-04-27  Bruno Haible  <bruno@clisp.org>
39182
39183         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39184         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39185         argument that lie outside the IEEE 854 domain.
39186         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39187         (gl_ISFINITE): Use it.
39188         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39189
39190 2008-04-27  Bruno Haible  <bruno@clisp.org>
39191
39192         Allow local renaming in config.h.
39193         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39194
39195 2008-04-27  Bruno Haible  <bruno@clisp.org>
39196
39197         * lib/memchr.c (__memchr): Change type of 'i'.
39198         * lib/memchr2.c (memchr2): Likewise.
39199
39200 2008-04-26  Eric Blake  <ebb9@byu.net>
39201         and Bruno Haible  <bruno@clisp.org>
39202
39203         Optimize and test memrchr.
39204         * modules/memrchr (Depends-on): Add intprops.
39205         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39206         * modules/memrchr-tests: New file.
39207         * tests/test-memrchr.c: New file.
39208
39209 2008-04-26  Bruno Haible  <bruno@clisp.org>
39210
39211         Add tentative support for DragonFly BSD.
39212         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39213         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39214         fp.
39215         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39216         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39217         * lib/fpurge.c (fpurge): Likewise.
39218         * lib/freadable.c (freaadable): Likewise.
39219         * lib/freadahead.c (freadahead): Likewise.
39220         * lib/freading.c (freading): Likewise.
39221         * lib/freadptr.c (freadptr): Likewise.
39222         * lib/freadseek.c (freadptrinc): Likewise.
39223         * lib/fseeko.c (fseeko): Likewise.
39224         * lib/fseterr.c (fseterr): Likewise.
39225         * lib/fwritable.c (fwritable): Likewise.
39226         * lib/fwriting.c (fwriting): Likewise.
39227
39228 2008-04-26  Bruno Haible  <bruno@clisp.org>
39229
39230         * lib/stdio-impl.h: New file.
39231         * lib/fbufmode.c: Include stdio-impl.h.
39232         (fbufmode): Use fp_, remove redundant #defines.
39233         * lib/fflush.c: Include stdio-impl.h.
39234         (clear_ungetc_buffer): Remove redundant #defines.
39235         * lib/fpurge.c: Include stdio-impl.h.
39236         (fpurge): Remove redundant #defines.
39237         * lib/freadable.c: Include stdio-impl.h.
39238         (freadable): Remove redundant #defines.
39239         * lib/freadahead.c: Include stdio-impl.h.
39240         (freadahead): Remove redundant #defines.
39241         * lib/freading.c: Include stdio-impl.h.
39242         (freading): Remove redundant #defines.
39243         * lib/freadptr.c: Include stdio-impl.h.
39244         (freadptr): Remove redundant #defines.
39245         * lib/freadseek.c: Include stdio-impl.h.
39246         (freadptrinc): Remove redundant #defines.
39247         * lib/fseeko.c: Include stdio-impl.h.
39248         (rpl_fseeko): Remove redundant #defines.
39249         * lib/fseterr.c: Include stdio-impl.h.
39250         (fseterr): Remove redundant #defines.
39251         * lib/fwritable.c: Include stdio-impl.h.
39252         (fwritable: Remove redundant #defines.
39253         * lib/fwriting.c: Include stdio-impl.h.
39254         (fwriting): Remove redundant #defines.
39255         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39256         * modules/fflush (Files): Likewise.
39257         * modules/fpurge (Files): Likewise.
39258         * modules/freadable (Files): Likewise.
39259         * modules/freadahead (Files): Likewise.
39260         * modules/freading (Files): Likewise.
39261         * modules/freadptr (Files): Likewise.
39262         * modules/freadseek (Files): Likewise.
39263         * modules/fseeko (Files): Likewise.
39264         * modules/fseterr (Files): Likewise.
39265         * modules/fwritable (Files): Likewise.
39266         * modules/fwriting (Files): Likewise.
39267
39268 2008-04-26  Bruno Haible  <bruno@clisp.org>
39269
39270         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39271         restore_seek_optimization, update_fpos_cache): New functions, extracted
39272         from rpl_fflush.
39273         (rpl_fflush): Use them.
39274         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39275         (gl_REPLACE_FFLUSH): Use it.
39276
39277 2008-04-26  Bruno Haible  <bruno@clisp.org>
39278
39279         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39280         on Solaris.
39281         * tests/test-xstrtoimax.sh: Likewise.
39282         * tests/test-xstrtoumax.sh: Likewise.
39283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39284
39285 2008-04-26  Bruno Haible  <bruno@clisp.org>
39286
39287         * modules/memchr-tests: New file.
39288         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39289
39290 2008-04-26  Eric Blake  <ebb9@byu.net>
39291             Bruno Haible  <bruno@clisp.org>
39292
39293         * lib/memchr.c: Include intprops.h.
39294         (__memchr): Optimize parallel detection of matching bytes. Rename local
39295         variables. Add explanatory comments.
39296
39297 2008-04-26  Bruno Haible  <bruno@clisp.org>
39298
39299         Fix module 'memchr', broken since 2000-10-28.
39300         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39301
39302 2008-04-26  Bruno Haible  <bruno@clisp.org>
39303
39304         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39305         comments.
39306
39307 2008-04-25  Eric Blake  <ebb9@byu.net>
39308
39309         Use native fstatat on cygwin 1.7.0.
39310         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39311         first.
39312
39313 2008-04-23  Eric Blake  <ebb9@byu.net>
39314
39315         Improve memchr2 performance.
39316         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39317         NUL bytes.
39318         * modules/memchr2 (Depends-on): Use intprops.h.
39319
39320 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39321
39322         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39323         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39324         <blp@cs.stanford.edu>.
39325
39326 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39327
39328         * lib/arpa_inet.in.h: New file.
39329
39330         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39331         (Makefile.am): Sed in substitute header file.
39332
39333         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39334         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39335
39336         * modules/inet_ntop (configure.ac): Use
39337         gl_ARPA_INET_MODULE_INDICATOR.
39338
39339         * modules/inet_pton (configure.ac): Use
39340         gl_ARPA_INET_MODULE_INDICATOR.
39341
39342 2008-04-22  Jim Meyering  <meyering@redhat.com>
39343
39344         * modules/verify (License): Re-license as LGPLv2+.
39345
39346 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39347
39348         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39349         parameter to void* as per POSIX standard (MinGW uses char*).
39350
39351 2008-04-21  Bruno Haible  <bruno@clisp.org>
39352
39353         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39354         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39355         Define to replacements if REPLACE_ISWCNTRL is 1.
39356         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39357         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39358         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39359         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39360         what it fixes.
39361         * doc/posix-functions/iswalpha.texi: Likewise.
39362         * doc/posix-functions/iswblank.texi: Likewise.
39363         * doc/posix-functions/iswcntrl.texi: Likewise.
39364         * doc/posix-functions/iswdigit.texi: Likewise.
39365         * doc/posix-functions/iswgraph.texi: Likewise.
39366         * doc/posix-functions/iswlower.texi: Likewise.
39367         * doc/posix-functions/iswprint.texi: Likewise.
39368         * doc/posix-functions/iswpunct.texi: Likewise.
39369         * doc/posix-functions/iswspace.texi: Likewise.
39370         * doc/posix-functions/iswupper.texi: Likewise.
39371         * doc/posix-functions/iswxdigit.texi: Likewise.
39372         Reported by Alain Guibert.
39373
39374 2008-04-21  Bruno Haible  <bruno@clisp.org>
39375
39376         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39377         Patch by Alain Guibert.
39378
39379 2008-04-21  Bruno Haible  <bruno@clisp.org>
39380
39381         Fix test failures on mingw.
39382         * tests/test-xstrtol.c (print_no_progname): New function.
39383         (main): Install it in error_print_progname hook.
39384         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39385         * tests/test-xstrtoimax.sh: Likewise.
39386         * tests/test-xstrtoumax.sh: Likewise.
39387
39388 2008-04-21  Bruno Haible  <bruno@clisp.org>
39389
39390         Fix test failure on mingw.
39391         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39392
39393 2008-04-21  Bruno Haible  <bruno@clisp.org>
39394
39395         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39396         Actually assign a value.
39397
39398 2008-04-20  Bruno Haible  <bruno@clisp.org>
39399
39400         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39401         take 2.
39402         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39403         'canonicalize-lgpl' module is also used.
39404         * lib/canonicalize-lgpl.c: Undo last change.
39405         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39406
39407 2008-04-20  Bruno Haible  <bruno@clisp.org>
39408
39409         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39410         config.h. Provide _mkdir based fallback for mingw.
39411         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39412         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39413         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39414         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39415         rather than defining mkdir in config.h.
39416         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39417         (gl_SYS_STAT_H_DEFAULTS): New macro.
39418         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39419         HAVE_IO_H any more.
39420         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39421         HAVE_DECL_MKDIR and HAVE_IO_H.
39422
39423 2008-04-20  Bruno Haible  <bruno@clisp.org>
39424
39425         * lib/isapipe.c: Port to native Windows platforms.
39426
39427 2008-04-20  Bruno Haible  <bruno@clisp.org>
39428
39429         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39430
39431 2008-04-21  Eric Blake  <ebb9@byu.net>
39432
39433         Work around preprocessors that don't handle UINTMAX_MAX.
39434         * lib/memchr2.c (memchr2): Avoid embedded #if.
39435         Reported by Alain Guibert, fix suggested by Bruno Haible.
39436
39437 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39438
39439         * doc/posix-functions/strftime.texi (strftime): Explain better
39440         Windows incompatibility.  Suggested by Micah Cowan
39441         <micah@cowan.name>.
39442
39443 2008-04-20  Bruno Haible  <bruno@clisp.org>
39444
39445         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39446         unistr/u8-mblen.
39447
39448 2008-04-20  Bruno Haible  <bruno@clisp.org>
39449
39450         Fix test failure on platforms with non-GNU iconv.
39451         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39452         (U_TO_U8): Use it, rather than u16_to_u8.
39453         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39454         units at the end of the input string.
39455         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39456
39457 2008-04-20  Bruno Haible  <bruno@clisp.org>
39458
39459         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39460         when the resulting length is 0.
39461         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
39462
39463 2008-04-20  Bruno Haible  <bruno@clisp.org>
39464
39465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
39466         works.
39467         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
39468
39469 2008-04-20  Bruno Haible  <bruno@clisp.org>
39470
39471         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
39472         * modules/tsearch-tests (configure.ac): Test for initstate function.
39473
39474 2008-04-20  Bruno Haible  <bruno@clisp.org>
39475
39476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
39477         for nlink_t if missing.
39478         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
39479
39480 2008-04-19  Bruno Haible  <bruno@clisp.org>
39481
39482         Work around snprintf bug on Linux libc5.
39483         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
39484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39485         gl_SNPRINTF_SIZE1.
39486         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39487         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
39488         that test failed.
39489         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
39490         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
39491         * modules/snprintf (Files): Add m4/printf.m4.
39492         * modules/vsnprintf (Files): Likewise.
39493         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
39494         * doc/posix-functions/vsnprintf.texi: Likewise.
39495
39496 2008-04-19  Bruno Haible  <bruno@clisp.org>
39497
39498         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
39499         from 0.0058 to less than 10^-7.
39500
39501 2008-04-19  Bruno Haible  <bruno@clisp.org>
39502
39503         Fix rounding when a precision is given.
39504         * lib/vasnprintf.c (is_borderline): New function.
39505         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
39506         9...9x.
39507         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
39508         %e, %g.
39509         * tests/test-vasprintf-posix.c (test_function): Likewise.
39510         * tests/test-snprintf-posix.h (test_function): Likewise.
39511         * tests/test-sprintf-posix.h (test_function): Likewise.
39512         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
39513         * tests/test-printf-posix.h (test_function): Likewise.
39514         * tests/test-printf-posix.output: Update.
39515         Reported by John Darrington <john@darrington.wattle.id.au> via
39516         Ben Pfaff <blp@cs.stanford.edu>.
39517
39518 2008-04-18  Simon Josefsson  <simon@josefsson.org>
39519
39520         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
39521         Suggested by Bruno Haible <bruno@clisp.org>.
39522
39523 2008-04-17  Bruno Haible  <bruno@clisp.org>
39524
39525         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
39526         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
39527         implementation.
39528         Patch by Bruce Merry <bmerry@gmail.com>.
39529
39530 2008-04-17  Simon Josefsson  <simon@josefsson.org>
39531
39532         * doc/posix-functions/strftime.texi (strftime): Mention that %e
39533         doesn't work under Windows.
39534
39535 2008-04-16  Bruno Haible  <bruno@clisp.org>
39536
39537         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
39538         New macros.
39539         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
39540         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
39541         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
39542         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
39543         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
39544         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
39545         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
39546         macros.
39547         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
39548         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
39549         Northern Sotho, Uighur.
39550
39551 2008-04-16  Bruno Haible  <bruno@clisp.org>
39552
39553         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
39554         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
39555         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
39556         Reported by Daniel Bergström <daniel@octocode.com>.
39557
39558 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
39559             Bruno Haible  <bruno@clisp.org>
39560
39561         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
39562         function.
39563         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
39564         New functions, mostly extracted from gl_locale_name_default.
39565         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
39566
39567 2008-04-16  Eric Blake  <ebb9@byu.net>
39568
39569         Adjust strtod detection to catch glibc 2.7 bug.
39570         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
39571         Reported by John Gatewood Ham.
39572
39573 2008-04-16  Bruno Haible  <bruno@clisp.org>
39574
39575         Add tentative support for Linux libc5.
39576         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
39577         * lib/fpurge.c (fpurge): Likewise.
39578         * lib/freadable.c (freadable): Likewise.
39579         * lib/freadahead.c (freadahead): Likewise.
39580         * lib/freading.c (freading): Likewise.
39581         * lib/freadptr.c (freadptr): Likewise.
39582         * lib/freadseek.c (freadptrinc): Likewise.
39583         * lib/fseeko.c (rpl_fseeko): Likewise.
39584         * lib/fseterr.c (fseterr): Likewise.
39585         * lib/fwritable.c (fwritable): Likewise.
39586         * lib/fwriting.c (fwriting): Likewise.
39587         Reported by Alain Guibert <alguibert+bts@free.fr>.
39588
39589 2008-04-15  Bruno Haible  <bruno@clisp.org>
39590
39591         * modules/mathl (configure.ac): Define module indicator.
39592
39593 2008-04-15  Bruno Haible  <bruno@clisp.org>
39594
39595         * lib/logl.c (logl): Remove unused variables.
39596
39597 2008-04-15  Bruno Haible  <bruno@clisp.org>
39598
39599         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
39600         fails.
39601
39602 2008-04-15  Bruno Haible  <bruno@clisp.org>
39603
39604         * lib/trim.c (trim2): Fix argument of isspace() macro.
39605
39606 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
39607
39608         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
39609         to 0.
39610         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
39611
39612 2008-04-14  Bruno Haible  <bruno@clisp.org>
39613
39614         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
39615         AC_LANG_PROGRAM argument.
39616         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
39617         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
39618         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39619         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39620         * m4/math_h.m4 (gl_MATH_H): Likewise.
39621         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
39622         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39623         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39624         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
39625         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
39626         * m4/regex.m4 (gl_REGEX): Likewise.
39627         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
39628         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
39629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39630         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
39631         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39632         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39633         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39634         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39635
39636 2008-04-14  Jim Meyering  <meyering@redhat.com>
39637
39638         test-strtod: fix typos: s/abs/fabs/
39639         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
39640
39641 2008-04-13  Bruno Haible  <bruno@clisp.org>
39642
39643         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
39644         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
39645         module is also used and while not building the reloc-wrapper.
39646
39647 2008-04-13  Bruno Haible  <bruno@clisp.org>
39648
39649         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
39650
39651 2008-04-13  Bruno Haible  <bruno@clisp.org>
39652
39653         Fix AIX compilation failure introduced on 2008-04-02.
39654         * tests/test-frexp.c (exp): Undefine before redefining.
39655         * tests/test-frexpl.c (exp): Likewise.
39656
39657 2008-04-13  Bruno Haible  <bruno@clisp.org>
39658
39659         Work around a HP-UX stdio bug.
39660         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
39661         * tests/test-ftello.c (main): Likewise.
39662         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
39663         * doc/posix-functions/ftello.texi: Likewise.
39664
39665 2008-04-13  Bruno Haible  <bruno@clisp.org>
39666
39667         Make test-signbit pass on HP-UX/hppa.
39668         * tests/test-signbit.c (minus_zerol): New variable.
39669         (test_signbitl): Use it.
39670
39671 2008-04-13  Bruno Haible  <bruno@clisp.org>
39672
39673         Make truncl work on OSF/1 4.0.
39674         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
39675         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39676         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
39678         HAVE_DECL_TRUNCL.
39679         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
39680         HAVE_DECL_TRUNCL.
39681         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
39682
39683 2008-04-13  Bruno Haible  <bruno@clisp.org>
39684
39685         * lib/unictype.h: Remove trailing comma from enumeration definitions.
39686
39687 2008-04-13  Bruno Haible  <bruno@clisp.org>
39688
39689         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
39690         expression, so as to avoid HP-UX 11 cc compiler bug.
39691
39692 2008-04-13  Bruno Haible  <bruno@clisp.org>
39693
39694         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
39695
39696 2008-04-13  Bruno Haible  <bruno@clisp.org>
39697
39698         * lib/git-merge-changelog.c: Remove empty declaration outside of
39699         functions.
39700
39701 2008-04-13  Bruno Haible  <bruno@clisp.org>
39702
39703         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
39704
39705 2008-04-13  Bruno Haible  <bruno@clisp.org>
39706
39707         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
39708         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
39709         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
39710         also if it exists but lacks definitions of the SHUT_* macros.
39711         * modules/sys_socket (Description): Update.
39712         Reported by Elbert Pol <e.pol@chello.nl>.
39713
39714 2008-04-13  Bruno Haible  <bruno@clisp.org>
39715
39716         * lib/localcharset.c (OS2): Don't redefine if already defined.
39717         Reported by Elbert Pol <e.pol@chello.nl>.
39718
39719 2008-04-13  Bruno Haible  <bruno@clisp.org>
39720
39721         * lib/binary-io.h [__EMX__]: Include <io.h>.
39722         Reported by Elbert Pol <e.pol@chello.nl>.
39723
39724 2008-04-12  Bruno Haible  <bruno@clisp.org>
39725
39726         * lib/fpucw.h: Enable the definitions also for x86_64.
39727         Needed for NetBSD/x86_64.
39728         Reported by Thomas Klausner <tk@giga.or.at>.
39729
39730 2008-04-12  Bruno Haible  <bruno@clisp.org>
39731
39732         * tests/test-strtod.c: Include isnand.h.
39733         (main): Use isnand instead of isnan.
39734         Reported by Jim Meyering.
39735
39736 2008-04-12  Bruno Haible  <bruno@clisp.org>
39737
39738         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
39739         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39740
39741 2008-04-12  Jim Meyering  <meyering@redhat.com>
39742
39743         * m4/math_h.m4 (gl_MATH_H): Fix typos.
39744
39745 2008-04-12  Bruno Haible  <bruno@clisp.org>
39746
39747         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
39748         Reported by Elbert Pol <e.pol@chello.nl>.
39749
39750 2008-04-12  Eric Blake  <ebb9@byu.net>
39751
39752         Work around Solaris 10 math.h bug.
39753         * m4/math_h.m4 (gl_MATH_H): Check for bug.
39754         (gl_MATH_H_DEFAULTS): Set up default.
39755         * modules/math (Makefile.am): Replace new indicators.
39756         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
39757         * tests/test-math.c (main): Test this.
39758         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
39759         * doc/posix-headers/math.texi (math.h): Mention bug.
39760         Reported by Nelson H. F. Beebe and Jim Meyering.
39761
39762 2008-04-11  Bruno Haible  <bruno@clisp.org>
39763
39764         Adapt to future versions of Apple GCC.
39765         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
39766         Reported by Peter O'Gorman <peter@pogma.com>.
39767
39768 2008-04-11  Bruno Haible  <bruno@clisp.org>
39769
39770         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
39771
39772 2008-04-11  Bruno Haible  <bruno@clisp.org>
39773
39774         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
39775
39776         * modules/getaddrinfo-tests (Makefile.am): Define
39777         test_getaddrinfo_LDADD.
39778
39779 2008-04-11  Bruno Haible  <bruno@clisp.org>
39780
39781         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
39782         (init): Fix syntax error.
39783         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
39784         is declared.
39785
39786 2008-04-11  Bruno Haible  <bruno@clisp.org>
39787
39788         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
39789         * modules/glob (Depends-on): Add stdbool.
39790
39791 2008-04-11  Bruno Haible  <bruno@clisp.org>
39792
39793         * lib/trim.c: Include <string.h>.
39794
39795 2008-04-11  Eric Blake  <ebb9@byu.net>
39796
39797         Avoid compile failure on OS/2.
39798         * lib/regex_internal.h (internal_function): Disable optimization
39799         on OS/2 (__EMX__), where it caused compiler error.
39800         Reported by Elbert Pol.
39801
39802 2008-04-11  Bruno Haible  <bruno@clisp.org>
39803
39804         Flush the standard error stream before aborting. Needed on mingw.
39805         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39806         * tests/test-array_list.c (ASSERT): Likewise.
39807         * tests/test-array_oset.c (ASSERT): Likewise.
39808         * tests/test-avltree_list.c (ASSERT): Likewise.
39809         * tests/test-avltree_oset.c (ASSERT): Likewise.
39810         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39811         * tests/test-binary-io.c (ASSERT): Likewise.
39812         * tests/test-byteswap.c (ASSERT): Likewise.
39813         * tests/test-c-ctype.c (ASSERT): Likewise.
39814         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39815         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39816         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39817         * tests/test-c-strstr.c (ASSERT): Likewise.
39818         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39819         * tests/test-canonicalize.c (ASSERT): Likewise.
39820         * tests/test-carray_list.c (ASSERT): Likewise.
39821         * tests/test-ceilf1.c (ASSERT): Likewise.
39822         * tests/test-ceilf2.c (ASSERT): Likewise.
39823         * tests/test-ceill.c (ASSERT): Likewise.
39824         * tests/test-count-one-bits.c (ASSERT): Likewise.
39825         * tests/test-fbufmode.c (ASSERT): Likewise.
39826         * tests/test-fflush2.c (ASSERT): Likewise.
39827         * tests/test-floorf1.c (ASSERT): Likewise.
39828         * tests/test-floorf2.c (ASSERT): Likewise.
39829         * tests/test-floorl.c (ASSERT): Likewise.
39830         * tests/test-fopen.c (ASSERT): Likewise.
39831         * tests/test-fpending.c (ASSERT): Likewise.
39832         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39833         * tests/test-fpurge.c (ASSERT): Likewise.
39834         * tests/test-freadable.c (ASSERT): Likewise.
39835         * tests/test-freadahead.c (ASSERT): Likewise.
39836         * tests/test-freading.c (ASSERT): Likewise.
39837         * tests/test-freadptr.c (ASSERT): Likewise.
39838         * tests/test-freadptr2.c (ASSERT): Likewise.
39839         * tests/test-freadseek.c (ASSERT): Likewise.
39840         * tests/test-freopen.c (ASSERT): Likewise.
39841         * tests/test-frexp.c (ASSERT): Likewise.
39842         * tests/test-frexpl.c (ASSERT): Likewise.
39843         * tests/test-fseek.c (ASSERT): Likewise.
39844         * tests/test-fseeko.c (ASSERT): Likewise.
39845         * tests/test-fstrcmp.c (ASSERT): Likewise.
39846         * tests/test-ftell.c (ASSERT): Likewise.
39847         * tests/test-ftello.c (ASSERT): Likewise.
39848         * tests/test-func.c (ASSERT): Likewise.
39849         * tests/test-fwritable.c (ASSERT): Likewise.
39850         * tests/test-fwriting.c (ASSERT): Likewise.
39851         * tests/test-getdelim.c (ASSERT): Likewise.
39852         * tests/test-getline.c (ASSERT): Likewise.
39853         * tests/test-i-ring.c (ASSERT): Likewise.
39854         * tests/test-iconv-utf.c (ASSERT): Likewise.
39855         * tests/test-iconv.c (ASSERT): Likewise.
39856         * tests/test-isfinite.c (ASSERT): Likewise.
39857         * tests/test-isnand.c (ASSERT): Likewise.
39858         * tests/test-isnanf.c (ASSERT): Likewise.
39859         * tests/test-isnanl.h (ASSERT): Likewise.
39860         * tests/test-ldexpl.c (ASSERT): Likewise.
39861         * tests/test-linked_list.c (ASSERT): Likewise.
39862         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39863         * tests/test-localename.c (ASSERT): Likewise.
39864         * tests/test-lseek.c (ASSERT): Likewise.
39865         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39866         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39867         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39868         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39869         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39870         * tests/test-mbschr.c (ASSERT): Likewise.
39871         * tests/test-mbscspn.c (ASSERT): Likewise.
39872         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39873         * tests/test-mbspbrk.c (ASSERT): Likewise.
39874         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39875         * tests/test-mbsrchr.c (ASSERT): Likewise.
39876         * tests/test-mbsspn.c (ASSERT): Likewise.
39877         * tests/test-mbsstr1.c (ASSERT): Likewise.
39878         * tests/test-mbsstr2.c (ASSERT): Likewise.
39879         * tests/test-mbsstr3.c (ASSERT): Likewise.
39880         * tests/test-memchr2.c (ASSERT): Likewise.
39881         * tests/test-memmem.c (ASSERT): Likewise.
39882         * tests/test-open.c (ASSERT): Likewise.
39883         * tests/test-printf-frexp.c (ASSERT): Likewise.
39884         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39885         * tests/test-printf-posix.c (ASSERT): Likewise.
39886         * tests/test-quotearg.c (ASSERT): Likewise.
39887         * tests/test-rbtree_list.c (ASSERT): Likewise.
39888         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39889         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39890         * tests/test-round1.c (ASSERT): Likewise.
39891         * tests/test-roundf1.c (ASSERT): Likewise.
39892         * tests/test-roundl.c (ASSERT): Likewise.
39893         * tests/test-signbit.c (ASSERT): Likewise.
39894         * tests/test-sleep.c (ASSERT): Likewise.
39895         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39896         * tests/test-snprintf.c (ASSERT): Likewise.
39897         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39898         * tests/test-stat-time.c (ASSERT): Likewise.
39899         * tests/test-strcasestr.c (ASSERT): Likewise.
39900         * tests/test-strerror.c (ASSERT): Likewise.
39901         * tests/test-striconv.c (ASSERT): Likewise.
39902         * tests/test-striconveh.c (ASSERT): Likewise.
39903         * tests/test-striconveha.c (ASSERT): Likewise.
39904         * tests/test-strsignal.c (ASSERT): Likewise.
39905         * tests/test-strstr.c (ASSERT): Likewise.
39906         * tests/test-strtod.c (ASSERT): Likewise.
39907         * tests/test-trunc1.c (ASSERT): Likewise.
39908         * tests/test-trunc2.c (ASSERT): Likewise.
39909         * tests/test-truncf1.c (ASSERT): Likewise.
39910         * tests/test-truncf2.c (ASSERT): Likewise.
39911         * tests/test-truncl.c (ASSERT): Likewise.
39912         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39913         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39914         * tests/test-vasnprintf.c (ASSERT): Likewise.
39915         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39916         * tests/test-vasprintf.c (ASSERT): Likewise.
39917         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39918         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39919         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39920         * tests/test-vsnprintf.c (ASSERT): Likewise.
39921         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39922         * tests/test-wcwidth.c (ASSERT): Likewise.
39923         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39924         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39925         * tests/test-xvasprintf.c (ASSERT): Likewise.
39926         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39927         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39928         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39929         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39930         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39931         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39932         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39933         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39934         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39935         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39936         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39937         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39938         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39939         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39940         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39941         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39942         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39943         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39944         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39945         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39946         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39947         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39948         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39949         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39950         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39951         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39952         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39953         * tests/unictype/test-combining.c (ASSERT): Likewise.
39954         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39955         * tests/unictype/test-digit.c (ASSERT): Likewise.
39956         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39957         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39958         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39959         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39960         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39961         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39962         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39963         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39964         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39965         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39966         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39967         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39968         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39969         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39970         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39971         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39972         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39973         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39974         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39975         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39976         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39977         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39978         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39979         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39980         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39981         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39982         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39983         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39984         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39985         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39986         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39987         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39988         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39989         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39990         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39991         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39992         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39993         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39994         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39995         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39996         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39997         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39998         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39999         Reported by Eric Blake.
40000
40001 2008-04-11  Bruno Haible  <bruno@clisp.org>
40002
40003         * lib/wchar.in.h: Tweak comment.
40004
40005 2008-04-11  Bruno Haible  <bruno@clisp.org>
40006
40007         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40008         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40009         gl_COMMON.
40010         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40011
40012 2008-04-11  Bruno Haible  <bruno@clisp.org>
40013
40014         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40015
40016 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40017
40018         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40019         of attempting to use non-existing /dev/*random.  Based on patch
40020         from Adam Strzelecki <ono@java.pl> in
40021         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40022
40023 2008-04-08  Bruno Haible  <bruno@clisp.org>
40024
40025         Add tentative support for emx+gcc.
40026         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40027         * lib/fpurge.c (fpurge): Likewise.
40028         * lib/freadable.c (freadable): Likewise.
40029         * lib/freadahead.c (freadahead): Likewise.
40030         * lib/freading.c (freading): Likewise.
40031         * lib/freadptr.c (freadptr): Likewise.
40032         * lib/freadseek.c (freadptrinc): Likewise.
40033         * lib/fseeko.c (rpl_fseeko): Likewise.
40034         * lib/fseterr.c (fseterr): Likewise.
40035         * lib/fwritable.c (fwritable): Likewise.
40036         * lib/fwriting.c (fwriting): Likewise.
40037         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40038
40039 2008-04-09  Eric Blake  <ebb9@byu.net>
40040
40041         Avoid some autoconf warnings.
40042         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40043         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40044         * m4/afs.m4 (gl_AFS): Likewise.
40045         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40046         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40047         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40048         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40049         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40050         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40051         (AC_CHECK_DECLS_ONCE): Likewise.
40052         Rename file...
40053         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40054         gnulib-tool requires autoconf 2.59 or better.
40055         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40056
40057 2008-04-08  Eric Blake  <ebb9@byu.net>
40058
40059         Use 'git describe --match' if present (added in git 1.5.5).
40060         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40061         if possible.
40062
40063 2008-04-08  Bruno Haible  <bruno@clisp.org>
40064
40065         Add tentative support for OpenServer.
40066         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40067         _ptr, _cnt.
40068         * lib/fpurge.c (fpurge): Likewise.
40069         * lib/freadable.c (freadable): Likewise.
40070         * lib/freadahead.c (freadahead): Likewise.
40071         * lib/freading.c (freading): Likewise.
40072         * lib/freadptr.c (freadptr): Likewise.
40073         * lib/freadseek.c (freadptrinc): Likewise.
40074         * lib/fseeko.c (rpl_fseeko): Likewise.
40075         * lib/fseterr.c (fseterr): Likewise.
40076         * lib/fwritable.c (fwritable): Likewise.
40077         * lib/fwriting.c (fwriting): Likewise.
40078         Reported by Roger Cornelius <rac@tenzing.org> and
40079         Brian K. White <brian@aljex.com>.
40080
40081 2008-04-06  Jim Meyering  <meyering@redhat.com>
40082
40083         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40084
40085 2008-04-06  Bruno Haible  <bruno@clisp.org>
40086
40087         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40088         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40089         * tests/test-printf-posix.sh: Likewise.
40090         * tests/test-vfprintf-posix.sh: Likewise.
40091         * tests/test-vprintf-posix.sh: Likewise.
40092         * tests/test-xprintf-posix.sh: Likewise.
40093
40094 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40095
40096         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40097         hide error from 'ls', needed on OS/2.
40098         Report by Elbert Pol <elbert.pol@gmail.com>.
40099
40100 2008-04-04  Eric Blake  <ebb9@byu.net>
40101
40102         Make test-fseeko.c failures meaningful.
40103         * tests/test-fseeko.c: Print line number on failure.
40104         * tests/test-fseek.c: Likewise.
40105         Reported by Nelson H. F. Beebe.
40106
40107         Improve strtod bug detection check.
40108         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40109         required for Solaris 10.
40110         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40111
40112 2008-04-04  Bruno Haible  <bruno@clisp.org>
40113
40114         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40115         by m4/setenv.m4.
40116
40117 2008-04-03  Eric Blake  <ebb9@byu.net>
40118
40119         Ensure sane .version contents.
40120         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40121         version string.
40122         * build-aux/git-version-gen: Improve documentation.
40123
40124         Make GNU make output nicer.
40125         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40126         MAKECMDGOALS to enforce message for all command line targets.  Set
40127         srcdir for use in maint.mk.
40128
40129         Another maintainer tweak.
40130         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40131         a target that regenerates version.
40132
40133 2008-04-03  Jim Meyering  <meyering@redhat.com>
40134
40135         vc-list-files: don't cause coreutils "make po-check" failure
40136         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40137
40138 2008-04-03  Eric Blake  <ebb9@byu.net>
40139
40140         Allow VPATH usage of vc-list-files.
40141         * build-aux/vc-list-files (scriptversion): Add timestamp.
40142         (options): Add --help, --version, -C.
40143         (CVS): Support installed cvsu.
40144
40145 2008-04-02  Bruno Haible  <bruno@clisp.org>
40146
40147         Avoid some "statement with no effect" warnings from gcc.
40148         * tests/test-wctype.c (main): Explicitly ignore unused values.
40149         Reported by Jim Meyering.
40150
40151 2008-04-02  Jim Meyering  <meyering@redhat.com>
40152
40153         Avoid some warnings from "gcc -Wshadow".
40154         * tests/test-frexp.c (exp): Define to a different identifier.
40155         * tests/test-frexpl.c (exp): Likewise.
40156
40157 2008-04-03  Jim Meyering  <meyering@redhat.com>
40158
40159         bootstrap: remove dangling *.[ch] symlinks from lib
40160         * build-aux/bootstrap [dangling symlink removal]: Move find's
40161         -depth option to precede all others, to avoid a warning.
40162         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40163
40164 2008-04-02  Bruno Haible  <bruno@clisp.org>
40165
40166         Avoid some warnings from "gcc -Wshadow".
40167         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40168         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40169         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40170         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40171         Reported by Jim Meyering.
40172
40173 2008-04-01  Bruno Haible  <bruno@clisp.org>
40174
40175         Fix test to work on IRIX 6.5 with cc.
40176         * tests/test-math.c (numeric_equal): New function.
40177         (main): Use it.
40178
40179 2008-04-01  Bruno Haible  <bruno@clisp.org>
40180
40181         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40182
40183 2008-04-01  Bruno Haible  <bruno@clisp.org>
40184
40185         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40186         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40187         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40188         (Depends-on): Remove math.
40189
40190         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40191         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40192         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40193         (Depends-on): Remove math.
40194
40195         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40196         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40197         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40198         (Depends-on): Remove math.
40199         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40200         (Depends-on): Remove math.
40201
40202         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40203         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40204         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40205         (Depends-on): Remove math.
40206         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40207         (Depends-on): Remove math.
40208
40209         * tests/test-round1.c: Include nan.h.
40210         (main): Use NaNd instead of NAN.
40211         * modules/round-tests (Files): Add tests/nan.h.
40212
40213         * tests/test-trunc1.c: Include nan.h.
40214         (main): Use NaNd instead of NAN.
40215         * modules/trunc-tests (Files): Add tests/nan.h.
40216
40217         * tests/test-roundf1.c: Include nan.h.
40218         (main): Use NaNf instead of NAN.
40219         * modules/roundf-tests (Files): Add tests/nan.h.
40220
40221         * tests/test-truncf1.c: Include nan.h.
40222         (main): Use NaNf instead of NAN.
40223         * modules/truncf-tests (Files): Add tests/nan.h.
40224
40225         * tests/test-ceilf1.c: Include nan.h.
40226         (main): Use NaNf instead of NAN.
40227         * modules/ceilf-tests (Files): Add tests/nan.h.
40228
40229         * tests/test-floorf1.c: Include nan.h.
40230         (main): Use NaNf instead of NAN.
40231         * modules/floorf-tests (Files): Add tests/nan.h.
40232
40233         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40234         (main): Use NaNf instead of NAN.
40235         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40236
40237         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40238         (main): Use NaNd instead of NAN.
40239         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40240
40241         * tests/test-frexp.c: Include nan.h.
40242         (main): Use NaNd instead of NAN.
40243         * modules/frexp-tests (Files): Add tests/nan.h.
40244
40245         * lib/isnan.c: Don't include <math.h>.
40246         (FUNC): Don't use NAN macro.
40247         * modules/isnand-nolibm (Depends-on): Remove math.
40248         * modules/isnanf-nolibm (Depends-on): Remove math.
40249         * modules/isnanl (Depends-on): Remove math.
40250         * modules/isnanl-nolibm (Depends-on): Remove math.
40251
40252         * tests/nan.h: New file.
40253
40254 2008-04-01  Eric Blake  <ebb9@byu.net>
40255
40256         Fix typos.
40257         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40258         values to be the right type.
40259
40260         For now, cater to gnulib strtod inaccuracies.
40261         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40262         fractional results.  While not as nice from a QoI perspective, it
40263         is a quicker patch than correctly implementing decimal to binary
40264         rounding.
40265
40266 2008-03-31  Eric Blake  <ebb9@byu.net>
40267
40268         Guarantee a definition of NAN.
40269         * lib/math.in.h (NAN): Define if missing.
40270         * tests/test-math.c (main): Test it.
40271         * doc/posix-headers/math.texi (math.h): Document this.
40272         * lib/isnan.c (rpl_isnand): Use it.
40273         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40274         * tests/test-floorf1.c (NaN): Likewise.
40275         * tests/test-frexp.c (NaN): Likewise.
40276         * tests/test-isnand.c (NaN): Likewise.
40277         * tests/test-isnanf.c (NaN): Likewise.
40278         * tests/test-round1.c (NaN): Likewise.
40279         * tests/test-roundf1.c (NaN): Likewise.
40280         * tests/test-snprintf-posix.h (NaN): Likewise.
40281         * tests/test-sprintf-posix.h (NaN): Likewise.
40282         * tests/test-trunc1.c (NaN): Likewise.
40283         * tests/test-truncf1.c (NaN): Likewise.
40284         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40285         * tests/test-vasprintf-posix.c (NaN): Likewise.
40286         * modules/isnand-nolibm (Depends-on): Add math.
40287         * modules/isnanf-nolibm (Depends-on): Likewise.
40288         * modules/isnanl (Depends-on): Likewise.
40289         * modules/isnanl-nolibm (Depends-on): Likewise.
40290         * modules/snprintf-posix-tests (Depends-on): Likewise.
40291         * modules/sprintf-posix-tests (Depends-on): Likewise.
40292         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40293         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40294         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40295         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40296
40297 2008-03-31  Bruno Haible  <bruno@clisp.org>
40298
40299         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40300         * doc/posix-functions/strtod.texi: Likewise.
40301
40302 2008-03-31  Bruno Haible  <bruno@clisp.org>
40303
40304         * tests/test-strtod.c (main): Don't use C99 syntax.
40305
40306 2008-03-31  Bruno Haible  <bruno@clisp.org>
40307
40308         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40309         Reported by Eric Blake.
40310
40311 2008-03-31  Jim Meyering  <meyering@redhat.com>
40312
40313         Don't compare actual signbit return values.
40314         * tests/test-strtod.c (main): Rather, compare only their
40315         zero/non-zero nature.
40316
40317 2008-03-31  Eric Blake  <ebb9@byu.net>
40318
40319         More strtod documentation.
40320         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40321         failures as distinct bugs.
40322
40323 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40324
40325         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40326         Problem reported by Erik Benada in
40327         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40328
40329 2008-03-30  Bruno Haible  <bruno@clisp.org>
40330
40331         * tests/test-strtod.c: Add comments about which assertion fails on which
40332         platform.
40333         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40334
40335 2008-03-30  Eric Blake  <ebb9@byu.net>
40336
40337         Test signbit behavior on zeros.
40338         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40339         (test_signbitd, test_signbitl): Likewise.
40340
40341         More strtod touchups.
40342         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40343         sign of negative underflow, for now.  Use .5, not .1.
40344         * doc/posix-functions/strtod.texi (strtod): Mention these
40345         limitations.
40346         Reported by Jim Meyering.
40347
40348 2008-03-30  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40351         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40352
40353 2008-03-30  Bruno Haible  <bruno@clisp.org>
40354
40355         Avoid failure when attempting to return empty iconv results on some
40356         platforms.
40357         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40358         allocation, don't report ENOMEM when the resulting string is empty.
40359
40360 2008-03-30  Bruno Haible  <bruno@clisp.org>
40361
40362         Fix buffer overrun.
40363         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40364         Don't consider the width for tmp_length. Check count against tmp_length
40365         before doing the padding. Ensure enough allocation during padding.
40366
40367 2008-03-30  Eric Blake  <ebb9@byu.net>
40368
40369         strtod touchups.
40370         * lib/strtod.c (strtod): Avoid compiler warnings.
40371         Reported by Jim Meyering.
40372
40373 2008-03-30  Bruno Haible  <bruno@clisp.org>
40374
40375         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40376         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40377         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40378         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40379         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40380         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40381         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40382         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40383
40384         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40385         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40386         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40387         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40388         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40389         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40390         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40391         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40392
40393         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40394         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40395         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40396         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40397         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40398         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40399         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40400         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40401
40402         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40403         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40404
40405         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40406         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40407
40408         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40409         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40410
40411         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40413         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40414
40415         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40417         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40418
40419         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40420         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40421         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40422
40423         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40424         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40425         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40426
40427         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40428         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40430         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40431         (Depends-on): Add EOVERFLOW.
40432         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40433         (Depends-on): Add EOVERFLOW.
40434         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40435         (Depends-on): Add EOVERFLOW.
40436         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40437         (Depends-on): Add EOVERFLOW.
40438         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40439         (Depends-on): Add EOVERFLOW.
40440         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40441         (Depends-on): Add EOVERFLOW.
40442         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40443         (Depends-on): Add EOVERFLOW.
40444         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40445         (Depends-on): Add EOVERFLOW.
40446
40447         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40449         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40450
40451         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40453         * modules/snprintf (Depends-on): Add EOVERFLOW.
40454
40455         * lib/poll.c (EOVERFLOW): Remove fallback.
40456         * modules/poll (Depends-on): Add EOVERFLOW.
40457
40458         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40459         * modules/getugroups (Depends-on): Add EOVERFLOW.
40460
40461         * lib/getdelim.c (EOVERFLOW): Remove fallback.
40462         * modules/getdelim (Depends-on): Add EOVERFLOW.
40463
40464         * lib/ftell.c (EOVERFLOW): Remove fallback.
40465         * modules/ftell (Depends-on): Add EOVERFLOW.
40466
40467         * lib/fprintf.c (EOVERFLOW): Remove fallback.
40468         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
40469         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
40470
40471         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
40472
40473         * modules/EOVERFLOW-tests: New file.
40474         * tests/test-EOVERFLOW.c: New file.
40475
40476         * modules/EOVERFLOW: New file.
40477         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
40478
40479 2008-03-30  Bruno Haible  <bruno@clisp.org>
40480
40481         Fix bug introduced on 2007-06-10.
40482         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
40483         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
40484
40485 2008-03-30  Bruno Haible  <bruno@clisp.org>
40486
40487         Improve freadseek's efficiency after ungetc.
40488         * lib/freadseek.c: Include freadahead.h.
40489         (freadptrinc): New function, extracted from freadseek.
40490         (freadseek): Use it in a loop. Use freadahead to determine the number
40491         of loop iterations.
40492         * modules/freadseek (Depends-on): Add freadahead.
40493         (configure.ac): Require AC_C_INLINE.
40494
40495 2008-03-30  Bruno Haible  <bruno@clisp.org>
40496
40497         * lib/freadseek.c (freadseek): Don't ignore the return value of
40498         freadptr.
40499
40500 2008-03-29  Eric Blake  <ebb9@byu.net>
40501
40502         Add hex float support.
40503         * modules/strtod (Depends-on): Add c-ctype.
40504         (Link): Mention POW_LIB.
40505         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
40506         whitespace between 'e' and exponent.
40507         * tests/test-strtod.c (main): Enable hex float tests.
40508         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
40509         now provides.
40510
40511         Document various strtod bugs, with some fixes.
40512         * doc/posix-functions/strtod.texi (strtod): Document bugs with
40513         "-0x", "inf", "nan", and hex constants.
40514         * doc/posix-functions/atof.texi (atof): Likewise.
40515         * modules/stdlib (Makefile.am): Support strtod.
40516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40517         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
40518         detect additional strtod bugs.
40519         * lib/stdlib.in.h (rpl_strtod): Add declarations.
40520         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
40521         bool where appropriate.  Parse 'inf' and 'nan'.
40522         * tests/test-strtod.c: New file.
40523         * modules/strtod (Depends-on): Add stdbool, stdlib.
40524         (configure.ac): Turn on module indicator.
40525         * modules/strtod-tests: New module.
40526
40527 2008-03-29  Eric Blake  <ebb9@byu.net>
40528
40529         Fix ftell on mingw.
40530         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
40531         * modules/ftell-tests (Depends-on): Add binary-io.
40532         * modules/ftello-tests (Depends-on): Likewise.
40533         * tests/test-ftell.c (main): Enhance test to cover behavior after
40534         ungetc.  Enforce binary mode.
40535         * tests/test-ftello.c (main): Likewise.
40536
40537         Pass test-freadseek on cygwin.
40538         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
40539         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
40540         ungetc buffer.
40541
40542         * tests/test-fflush2.c (main): Fix typo.
40543
40544 2008-03-29  Bruno Haible  <bruno@clisp.org>
40545
40546         * tests/test-fflush2.c (main): Temporarily disable the contents of
40547         this test.
40548         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
40549         Reported by Eric Blake.
40550
40551 2008-03-28  Simon Josefsson  <simon@josefsson.org>
40552
40553         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
40554         (GC_SHA224_DIGEST_SIZE): Add.
40555
40556         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
40557         (gc_hash_digest_length): Likewise.
40558         (gc_hash_buffer): Likewise.
40559
40560 2008-03-25  Bruno Haible  <bruno@clisp.org>
40561
40562         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
40563         detail which gettext release to use.
40564         Reported by Simon Josefsson.
40565
40566 2008-03-26  Jim Meyering  <meyering@redhat.com>
40567
40568         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
40569         * modules/gnumakefile (clean-GNUmakefile): Also, use
40570         test ... && ... || : syntax rather than if-then ... fi.
40571
40572         gnumakefile: Don't double-quote-expand $(VPATH) value.
40573         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
40574
40575 2008-03-24  Eric Blake  <ebb9@byu.net>
40576
40577         Alter GNUmakefile to install into top directory.
40578         * modules/maintainer-makefile: Split, and add dependency...
40579         * modules/gnumakefile: to this new module.
40580         * build-aux/GNUmakefile: Move...
40581         * top/GNUmakefile: ...here.
40582         * build-aux/maint.mk: Move...
40583         * top/maint.mk: ...here.
40584         * MODULES.html.sh (Support for maintaining...): Document new
40585         module.
40586
40587 2008-03-23  Bruno Haible  <bruno@clisp.org>
40588
40589         * gnulib-tool: New options --vc-files, --no-vc-files.
40590         (func_usage): Document them.
40591         (vc_files): New variable.
40592         (func_import): Consider vc_files.
40593         (func_create_testdir): Set vc_files to empty.
40594         Suggested by Jim Meyering and Karl Berry.
40595
40596 2008-03-23  Bruno Haible  <bruno@clisp.org>
40597
40598         Fix regex compilation error on HP-UX 11.
40599         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
40600         * modules/regex (Files): Add m4/mbstate_t.m4.
40601         Reported by Ton Voon <ton.voon@altinity.com>.
40602
40603 2008-03-23  Bruno Haible  <bruno@clisp.org>
40604
40605         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
40606
40607 2008-03-23  Eric Blake  <ebb9@byu.net>
40608             Bruno Haible  <bruno@clisp.org>
40609
40610         Install files from top/ in the destination directory.
40611         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40612         augmentation also for the files from top/.
40613         (func_import, func_create_testdir): Rewrite file names:
40614         top/filename -> filename.
40615
40616 2008-03-23  Bruno Haible  <bruno@clisp.org>
40617
40618         Tweak "gnulib --version" output.
40619         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
40620
40621 2008-03-23  Bruno Haible  <bruno@clisp.org>
40622
40623         Tweak "gnulib --version" output.
40624         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
40625         rather than contents of ChangeLog, when possible.
40626
40627 2008-03-21  Eric Blake  <ebb9@byu.net>
40628
40629         More --version tweaks.
40630         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
40631         date of last ChangeLog entry.
40632
40633 2008-03-21  Jim Meyering  <meyering@redhat.com>
40634
40635         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
40636
40637 2008-03-20  Eric Blake  <ebb9@byu.net>
40638
40639         VPATH fix.
40640         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
40641
40642 2008-03-20  Simon Josefsson  <simon@josefsson.org>
40643
40644         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
40645         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
40646
40647 2008-03-20  Eric Blake  <ebb9@byu.net>
40648
40649         Sync GNUmakefile with coreutils.
40650         * build-aux/GNUmakefile (have-Makefile): Rename...
40651         (_have-Makefile): ...to this, for namespace consideration.
40652         (GNUmakefile.cfg): Include, if present.
40653         (_autoreconf): Define a default.
40654         (_is-dist-target): New rule for rebuilds to pick up intra-release
40655         version.
40656         (maint-cfg.mk): Rename...
40657         (cfg.mk): ...to this.
40658
40659 2008-03-18  Jim Meyering  <meyering@redhat.com>
40660
40661         New script and module: mktempd
40662         * MODULES.html.sh (maint+release support): Add mktempd.
40663         * build-aux/mktempd: New file.
40664         * modules/mktempd: New file.
40665
40666 2008-03-15  Jim Meyering  <meyering@redhat.com>
40667
40668         Undo last change.
40669         * lib/sha1.c, lib/md5.c: 63 != ~63.
40670         Reported by Andreas Schwab.
40671
40672         sha1.c, md5.c: Hoist a redundant expression.
40673         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
40674         "ctx->buflen" only once, before calling *_process_block.
40675         * lib/md5.c (md5_process_bytes): Likewise.
40676
40677 2008-03-14  Eric Blake  <ebb9@byu.net>
40678
40679         Bump copyright year in files generated by gnulib-tool.
40680         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
40681         gnulib-tool, rather than hard-coding it.
40682
40683         Fix 'gnulib-tool --version' output to work with git.
40684         * gnulib-tool (func_gnulib_dir): New function, extracted from...
40685         (startup): ...here.
40686         (func_version): Use it to invoke git-version-gen, rather than
40687         relying on CVS keyword expansion.  Modernize wording.
40688         (cvsdatestamp, last_checkin_date, version): Kill unused
40689         variables.
40690
40691 2008-03-12  Jim Meyering  <meyering@redhat.com>
40692
40693         Recognize optional cast of the argument to free.
40694         * build-aux/useless-if-before-free: Update regexps.
40695
40696         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
40697
40698 2008-03-11  Bruno Haible  <bruno@clisp.org>
40699
40700         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
40701         by a single package.
40702         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
40703         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
40704         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
40705         Reported by Sam Steingold <sds@gnu.org>.
40706
40707 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40708
40709         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
40710         repositories.
40711
40712 2008-03-11  Bruno Haible  <bruno@clisp.org>
40713
40714         Avoid conflicts between local macro definitions.
40715         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40716         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
40717
40718 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
40719             Bruno Haible  <bruno@clisp.org>
40720
40721         Make va_copy work with some version of xlc on AIX 5.1.
40722         * lib/stdarg.in.h: New file.
40723         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
40724         On AIX, use a <stdarg.h> file substitute.
40725         * modules/stdarg (Files): Add lib/stdarg.in.h.
40726         (Depends-on): Add include_next.
40727         (Makefile.am): Build a stdarg.h substitute if requested.
40728         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
40729
40730 2008-03-10  Bruno Haible  <bruno@clisp.org>
40731
40732         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
40733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40734         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40735
40736 2008-03-10  Bruno Haible  <bruno@clisp.org>
40737
40738         * modules/stdlib (Depends-on): Add include_next, remove
40739         absolute-header.
40740
40741 2008-03-09  Bruno Haible  <bruno@clisp.org>
40742
40743         * lib/freadahead.h (freadahead): Document more precisely.
40744         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
40745         the sum of both buffer sizes.
40746         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
40747         * NEWS: Document the change.
40748
40749 2008-03-09  Bruno Haible  <bruno@clisp.org>
40750
40751         Extend freadptr to return also the buffer size.
40752         * lib/freadptr.h (freadptr): Add sizep argument.
40753         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
40754         (freadptr): Add sizep argument. Determine buffer size like freadahead
40755         does.
40756         * tests/test-freadptr.c: Don't include freadahead.h.
40757         (main): Adapt for new calling convention of freadptr.
40758         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
40759         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
40760         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
40761         tests/test-freadptr2.sh.
40762         (Depends): Remove freadahead.
40763         (TESTS): Add test-freadptr2.sh.
40764         (check_PROGRAMS): Add test-freadptr2.
40765
40766 2008-03-09  Bruno Haible  <bruno@clisp.org>
40767
40768         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
40769         Report and solution by Simon Josefsson.
40770
40771 2008-03-06  Bruno Haible  <bruno@clisp.org>
40772
40773         Make fflush after ungetc work on BSD platforms.
40774         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
40775         * tests/test-fflush2.c: New file.
40776         * tests/test-fflush2.sh: New file.
40777         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
40778         tests/test-fflush2.c.
40779         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
40780         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
40781
40782 2008-03-06  Eric Blake  <ebb9@byu.net>
40783
40784         Likewise for ftello.
40785         * modules/ftello (Dependencies): Add extensions.
40786         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
40787
40788 2008-03-06  Bruno Haible  <bruno@clisp.org>
40789
40790         * modules/fseeko (Dependencies): Add extensions.
40791         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
40792         Needed on glibc systems.
40793
40794 2008-03-06  Bruno Haible  <bruno@clisp.org>
40795
40796         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40797         email address.
40798         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40799
40800 2008-03-06  Bruno Haible  <bruno@clisp.org>
40801
40802         * users.txt: Add libgnupdf.
40803
40804 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40805
40806         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40807         (Header File Substitutes, Function Substitutes,
40808         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40809         (Build robot for gnulib): Fix typo.
40810
40811 2008-03-06  Bruno Haible  <bruno@clisp.org>
40812
40813         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40814         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40815
40816 2008-03-06  Bruno Haible  <bruno@clisp.org>
40817
40818         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40819         * doc/gnulib.texi: Include it.
40820
40821 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40822
40823         * modules/func (License): Change license to unlimited; there was
40824         no LGPL parts in the module anyway.
40825
40826 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40827
40828         * modules/__func__: Renamed to modules/func.
40829         * modules/__func__-tests: Renamed to modules/func-tests.
40830         * tests/test-__func__.c: Renamed to tests/test-func.c.
40831         * m4/__func__.m4: Renamed to m4/func.m4.
40832         * doc/gnulib.texi (__func__): Section renamed to func.
40833         Suggested by Eric Blake <ebb9@byu.net>.
40834
40835 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40836
40837         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40838         about __func__.  Make example self-contained.  Suggested by Eric
40839         Blake <ebb9@byu.net>.
40840
40841         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40842         Suggested by Eric Blake <ebb9@byu.net>.
40843
40844 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40845
40846         * modules/__func__: New file.
40847         * modules/__func__-tests: New file.
40848         * tests/test-__func__.c: New file.
40849         * m4/__func__.m4: New file.
40850         * doc/gnulib.texi (__func__): Document __func__ module.
40851
40852 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40853
40854         * modules/byteswap (License): Re-license as LGPLv2+.
40855
40856 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40857
40858         * doc/Makefile: Add pdf target.
40859
40860 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40861
40862         * modules/inline (License): Use 'unlimited', since there are only
40863         *.m4 files in this module.
40864
40865 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40866             Bruno Haible  <bruno@clisp.org>
40867
40868         Add support for HP C 7.1 on OpenVMS 8.3.
40869         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40870
40871 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40872
40873         Update VMS specifics.
40874         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40875
40876 2008-03-02  Jim Meyering  <meyering@redhat.com>
40877
40878         Remove the last dependency on the "free" module.
40879         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40880         Reported by Bob Proulx.
40881
40882         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40883
40884         Remove useless "if" tests before free.  Deprecate "free" module.
40885         * doc/posix-functions/free.texi: Mention that this
40886         module is no longer useful.
40887         * modules/free (Notice): Say this module is obsolete.
40888         * modules/readutmp (Depends-on): Remove free.
40889         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40890         * lib/putenv.c (putenv): Likewise.
40891         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40892         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40893         * tests/test-c-strcasestr.c (main): Likewise.
40894         * tests/test-c-strstr.c (main): Likewise.
40895         * tests/test-mbscasestr1.c (main): Likewise.
40896         * tests/test-mbscasestr2.c (main): Likewise.
40897         * tests/test-mbsstr1.c (main): Likewise.
40898         * tests/test-mbsstr2.c (main): Likewise.
40899         * tests/test-memmem.c (main): Likewise.
40900         * tests/test-strcasestr.c (main): Likewise.
40901         * tests/test-striconv.c (main): Likewise.
40902         * tests/test-striconveh.c (main): Likewise.
40903         * tests/test-striconveha.c (main): Likewise.
40904         * tests/test-strstr.c (main): Likewise.
40905
40906         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40907
40908         bootstrap: sync from coreutils again
40909         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40910
40911 2008-03-01  Jim Meyering  <meyering@redhat.com>
40912
40913         bootstrap: sync from coreutils
40914         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40915         also when the target doesn't exist.
40916
40917 2008-03-01  Eric Blake  <ebb9@byu.net>
40918
40919         Fix bugs in last patch.
40920         * lib/memchr2.c (memchr2): Fix typo.
40921         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40922         extension.
40923         Reported by Bruce Korb.
40924
40925         New module 'memchr2'.
40926         * modules/memchr2: New file.
40927         * modules/memchr2-tests: Likewise.
40928         * lib/memchr2.h: Likewise.
40929         * lib/memchr2.c: Likewise, based on memchr.c.
40930         * tests/test-memchr2.c: New test.
40931         * MODULES.html.sh (String handling): Add memchr2.
40932
40933 2008-02-29  Bruno Haible  <bruno@clisp.org>
40934
40935         * modules/freadseek-tests: New file.
40936         * tests/test-freadseek.sh: New file.
40937         * tests/test-freadseek.c: New file.
40938
40939         New module 'freadseek'.
40940         * modules/freadseek: New file.
40941         * lib/freadseek.h: New file.
40942         * lib/freadseek.c: New file.
40943         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40944
40945 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40946
40947         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40948         wydawca.
40949
40950         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40951         program_invocation_name and program_invocation_short_name are
40952         present.
40953
40954 2008-02-28  Bruno Haible  <bruno@clisp.org>
40955
40956         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40957         * tests/test-freadptr.sh: Also test non-seekable stdin.
40958
40959 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40960
40961         * build-aux/bootstrap (source_base, m4_base)
40962         (doc_base, tests_base): New variables.
40963         (gnulib_tool_options): Do not hardcode base directories, use
40964         the above variables instead.
40965
40966 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40967
40968         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40969
40970 2008-02-28  Bruno Haible  <bruno@clisp.org>
40971
40972         * modules/freadptr-tests: New file.
40973         * tests/test-freadptr.sh: New file.
40974         * tests/test-freadptr.c: New file.
40975
40976         New module 'freadptr'.
40977         * modules/freadptr: New file.
40978         * lib/freadptr.h: New file.
40979         * lib/freadptr.c: New file.
40980         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40981
40982 2008-02-26  Karl Berry  <karl@freefriends.org>
40983
40984         Sync from Libtool:
40985         * libltdl/argz.c (argz_add, argz_count): New functions.
40986         * libltdl/argz.in.h: Declare them.
40987         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40988
40989 2008-02-22  Bruno Haible  <bruno@clisp.org>
40990
40991         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40992         is a pointer type.  Needed for HP-UX 10.
40993         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40994         * doc/posix-functions/gmtime_r.texi: Likewise.
40995         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40996
40997 2008-02-24  Bruno Haible  <bruno@clisp.org>
40998
40999         * modules/environ-tests: New file.
41000         * tests/test-environ.c: New file.
41001
41002         New module 'environ'.
41003         * modules/environ: New file.
41004         * lib/unistd.in.h (environ): New declaration.
41005         * m4/environ.m4: New file.
41006         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41007         after use.
41008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41009         HAVE_DECL_ENVIRON.
41010         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41011         HAVE_DECL_ENVIRON.
41012         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41013         wrong claim that 'environ' is missing on some systems.
41014         * modules/execute (Depends-on): Add environ.
41015         * lib/execute.c (environ): Remove fallback declaration.
41016         * modules/pipe (Depends-on): Add environ.
41017         * lib/pipe.c (environ): Remove fallback declaration.
41018         * modules/setenv (Depends-on): Add environ.
41019         * lib/setenv.c (environ): Remove fallback declaration.
41020         * modules/unsetenv (Depends-on): Add environ.
41021         * lib/unsetenv.c (environ): Remove fallback declaration.
41022         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41023         m4/environ.m4.
41024         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41025         (gl_PREREQ_UNSETENV): Likewise.
41026
41027 2008-02-24  Bruno Haible  <bruno@clisp.org>
41028
41029         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41030
41031 2008-02-20  Bob Proulx  <bob@proulx.com>
41032
41033         Enable use of older two part flavor 'git describe'.
41034         * build-aux/git-version-gen: If using the older two part flavor of
41035         git version then recreate the third part now present in the
41036         newer three part flavor of git describe.
41037
41038 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41039
41040         * lib/fts.c (fts_build): Typo correction to comment.
41041
41042 2008-02-17  Bruno Haible  <bruno@clisp.org>
41043
41044         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41045         generating no-op conflicts.
41046
41047 2008-02-17  Bruno Haible  <bruno@clisp.org>
41048
41049         Speed up by 10%.
41050         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41051         result_entries, rather than an index-based loop.
41052
41053 2008-02-17  Bruno Haible  <bruno@clisp.org>
41054
41055         Speed up by 25%.
41056         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41057         'hashcode_cached'.
41058         (entry_create): New function.
41059         (entry_hashcode): Use the cached hashcode if possible.
41060         (read_changelog_file, try_split_merged_entry): Use entry_create.
41061
41062 2008-02-17  Bruno Haible  <bruno@clisp.org>
41063
41064         Speed up from O(n^2) to O(n) for long ChangeLog files.
41065         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41066         (read_changelog_file): Change implementation of entries_reversed list
41067         to rbtreehash.
41068         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41069
41070 2008-02-17  Bruno Haible  <bruno@clisp.org>
41071
41072         New option --split-merged-entry.
41073         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41074         (find_paragraph_end, try_split_merged_entry): New functions.
41075         (long_options): Add option --split-merged-entry.
41076         (usage): Document option --split-merged-entry.
41077         (main): Implement option --split-merged-entry.
41078         Reported by Eric Blake.
41079
41080 2008-02-17  Bruno Haible  <bruno@clisp.org>
41081
41082         * lib/git-merge-changelog.c: Include c-strstr.h.
41083         (main): Support the "git pull --rebase" situation.
41084         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41085         Reported by Eric Blake.
41086
41087 2008-02-16  Eric Blake  <ebb9@byu.net>
41088
41089         Avoid doubling \ in common case of "c-maybe" quoting style.
41090         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41091         eliding outer quotes.
41092         * lib/quotearg.h: Document this.
41093         * tests/test-quotearg.c (result_strings, inputs, results_g)
41094         (flag_results, locale_results): Test it by adding a new string to
41095         each test group.
41096         (compare_strings): Test new string.
41097
41098 2008-02-13  Eric Blake  <ebb9@byu.net>
41099
41100         Avoid trigraph quoting in default output.
41101         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41102         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41103         unless explicitly requested.
41104         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41105
41106 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41107
41108         Don't rely on signed integer overflowing to negative value.
41109         * lib/getugroups.c (getugroups): Include <limits.h>.
41110         Instead, compare against INT_MAX, and increment only if the test passes.
41111
41112 2008-02-13  Jim Meyering  <meyering@redhat.com>
41113         and Eric Blake  <ebb9@byu.net>
41114
41115         Avoid shadowing warning and compile errors on Linux.
41116         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41117         forwarding macros on Linux.
41118         (dcgettext): Define a stub, for Linux.
41119         (results_g, main): Avoid warnings.
41120
41121 2008-02-12  Eric Blake  <ebb9@byu.net>
41122
41123         Silence warning in last patch.
41124         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41125
41126         Quotearg part 4: add tests, fix c-maybe colon quoting.
41127         * lib/quotearg.h: Improve documentation.
41128         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41129         escapes when adding outer quotes.  When quoting trigraphs, use
41130         valid C notation.  When quoting NUL, omit extra characters if next
41131         character is not digit.  Alter prototype.
41132         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41133         callers.
41134         * modules/quotearg-tests: New module.
41135         * tests/test-quotearg.c: New test.
41136
41137 2008-02-07  Eric Blake  <ebb9@byu.net>
41138
41139         Quotearg part 3: add flag to control outer quote elision.
41140         * lib/quotearg.h (c_maybe_quoting_style): New style.
41141         (enum quoting_flags): Better documentation of flags.
41142         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41143         c-maybe style.
41144         (quotearg_buffer_restyled): Handle new flag to elide outer
41145         quotes.
41146
41147         Quotearg part 2: add flag that can control NUL elision.
41148         * lib/quotearg.h (set_quoting_flags): New prototype.
41149         * lib/quotearg.c (struct quoting_options): Add flag field.
41150         (set_quoting_flags): New function.
41151         (quotearg_buffer_restyled): Add flags parameter.
41152         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41153         (quotearg_n_options): Set the flag, since length cannot be
41154         returned.
41155         (quoting_options_from_style): Default flags correctly.
41156
41157         Quotearg part 1: more wrappers, restore quotearg_char state.
41158         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41159         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41160         (quotearg_colon_mem): New wrappers.
41161         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41162         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41163         functions.
41164         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41165         (quotearg_colon_mem): New functions.
41166
41167 2008-02-11  Bruno Haible  <bruno@clisp.org>
41168
41169         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41170         library in the current directory: it does not work with parallel make.
41171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41172
41173 2008-02-11  Bruno Haible  <bruno@clisp.org>
41174
41175         * .gitattributes: New file.
41176
41177 2008-02-11  Jim Meyering  <meyering@redhat.com>
41178
41179         useless-if-before-free: Fix reversed exit values.
41180         * build-aux/useless-if-before-free: Use correct values
41181         for EXIT_MATCH and EXIT_NO_MATCH.
41182
41183         * build-aux/useless-if-before-free: Close stdout carefully.
41184
41185 2008-02-10  Bruno Haible  <bruno@clisp.org>
41186
41187         New module 'git-merge-changelog'.
41188         * modules/git-merge-changelog: New file.
41189         * lib/git-merge-changelog.c: New file.
41190
41191 2008-02-10  Jim Meyering  <meyering@redhat.com>
41192
41193         useless-if-before-free: New option: --list (-l).
41194
41195         useless-if-before-free: Don't exit immediately upon open failure.
41196         * build-aux/useless-if-before-free: Exit 2 for errors.
41197         Upon failure to open a file, don't exit immediately.
41198         Rather, just warn and continue with any remaining files.
41199
41200 2008-02-10  Bruno Haible  <bruno@clisp.org>
41201
41202         New abstract list operation 'node_set_value'.
41203         * lib/gl_list.h (gl_list_node_set_value): New function.
41204         (struct gl_list_implementation): New field node_set_value.
41205         * lib/gl_list.c (gl_list_node_set_value): New function.
41206         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41207         (gl_array_list_implementation): Update.
41208         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41209         (gl_carray_list_implementation): Update.
41210         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41211         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41212         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41213         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41214         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41215         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41216         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41217         Update.
41218         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41219         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41220         (gl_sublist_list_implementation): Update.
41221
41222 2008-02-10  Bruno Haible  <bruno@clisp.org>
41223
41224         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41225         Needed when ELEMENT is #defined to 'some_type *'.
41226
41227 2008-02-10  Jim Meyering  <meyering@redhat.com>
41228
41229         New script and module: useless-if-before-free
41230         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41231         * build-aux/useless-if-before-free: New file.
41232         * modules/useless-if-before-free: New file.
41233
41234         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41235
41236         xstrtol_error: Fix typo.
41237         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41238         s/exit_failure/exit_status/.
41239
41240 2008-02-09  Jim Meyering  <meyering@redhat.com>
41241
41242         New script and module: gitlog-to-changelog
41243         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41244         * modules/gitlog-to-changelog: New file.
41245         * build-aux/gitlog-to-changelog: New file.
41246
41247 2008-02-08  Jim Meyering  <meyering@redhat.com>
41248
41249         Avoid two "parameter unused" warnings.
41250         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41251         Mark "st" as used.
41252
41253         Use "git COMMAND", not "git-COMMAND".
41254         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41255         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41256         * build-aux/git-version-gen: Use "git status", not "git-status".
41257
41258 2008-02-07  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41261         Avoids a crash on Windows Vista.
41262         Reported by Adam Strzelecki <ono@java.pl> via
41263         Simon Josefsson <simon@josefsson.org>.
41264
41265 2008-02-06  Bruno Haible  <bruno@clisp.org>
41266
41267         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41268         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41269         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41271         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41272         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41273         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41274         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41276         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41277         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41278         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41279         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41280         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41281         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41282         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41283         left-adjust flag.
41284         * tests/test-snprintf-posix.h (test_function): Likewise.
41285         * tests/test-sprintf-posix.h (test_function): Likewise.
41286         * tests/test-vasprintf-posix.c (test_function): Likewise.
41287         * doc/posix-functions/fprintf.texi: Update.
41288         * doc/posix-functions/printf.texi: Update.
41289         * doc/posix-functions/snprintf.texi: Update.
41290         * doc/posix-functions/sprintf.texi: Update.
41291         * doc/posix-functions/vfprintf.texi: Update.
41292         * doc/posix-functions/vprintf.texi: Update.
41293         * doc/posix-functions/vsnprintf.texi: Update.
41294         * doc/posix-functions/vsprintf.texi: Update.
41295         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41296
41297 2008-02-06  Bruno Haible  <bruno@clisp.org>
41298
41299         Fix bug introduced on 2008-01-26.
41300         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41301
41302 2008-02-06  Bruno Haible  <bruno@clisp.org>
41303
41304         Fix bug introduced on 2007-06-10.
41305         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41306         !NEED_PRINTF_FLAG_ZERO.
41307
41308 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41309
41310         getloadavg: use libperfstat on AIX5
41311         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41312
41313 2008-02-03  Bruno Haible  <bruno@clisp.org>
41314
41315         * lib/diffseq.h: Add comments about required #includes.
41316         Reported by Michael Biggs <gnulib@doubleplum.net>.
41317
41318 2008-02-01  Bruno Haible  <bruno@clisp.org>
41319
41320         * users.txt: Add gnuit.
41321
41322 2008-01-31  Bruno Haible  <bruno@clisp.org>
41323
41324         * lib/md4.c (set_uint32): Mark as inline.
41325         * lib/md5.c (set_uint32): Likewise.
41326         * lib/sha1.c (set_uint32): Likewise.
41327         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41328         * m4/md5.m4 (gl_MD5): Likewise.
41329         * m4/sha1.m4 (gl_SHA1): Likewise.
41330
41331 2008-01-31  Jim Meyering  <meyering@redhat.com>
41332
41333         Use "sizeof VAR", rather than a literal "4".
41334         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41335         * lib/md4.c (md4_read_ctx): Likewise.
41336         * lib/sha1.c (sha1_read_ctx): Likewise.
41337
41338 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41339
41340         * tests/test-sha1.c: New file, based on test-md5.c.
41341
41342         * modules/crypto/sha1-tests: New file.
41343
41344 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41345
41346         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41347
41348 2008-01-31  Jim Meyering  <meyering@redhat.com>
41349
41350         Prefer "sizeof v" over the equivalent "4".
41351         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41352         * lib/md5.c (set_uint32): Likewise.
41353         * lib/sha1.c (set_uint32): Likewise.
41354
41355 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41356
41357         * lib/sha1.c (set_uint32): Mark function as static.
41358
41359 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41360
41361         md2: clarify comments to say that alignment is not required.
41362         * lib/md2.h: Remove warning about alignment in comment.
41363         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41364         never been required.
41365
41366 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41367
41368         md4: adapt alignment constraint fix from sha1.
41369         * lib/md4.c (set_uint32): New function, from sha1.c
41370         (md4_read_ctx): Use it.
41371         (md4_finish_ctx): Doc fix.
41372         * lib/md4.h: Doc fix.
41373
41374 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41375
41376         md5: adapt alignment constraint fix from sha1.
41377         * lib/md5.c (set_uint32): New function, from sha1.c
41378         (md5_read_ctx): Use it.
41379         (md5_finish_ctx): Doc fix.
41380         * lib/md5.h: Doc fix.
41381
41382 2008-01-30  Peter Palfrader  <weasel@debian.org>
41383
41384         sha1: remove the result buffer alignment constraint
41385         * lib/sha1.c (set_uint32): New function.
41386         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41387         constraint.
41388         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41389         * lib/sha1.h: Likewise.
41390
41391 2008-01-30  Andreas Schwab  <schwab@suse.de>
41392             Bruno Haible  <bruno@clisp.org>
41393
41394         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41395         correct definition of LDBL_MIN_EXP.
41396
41397 2008-01-30  Karl Berry  <karl@gnu.org>
41398
41399         * config/srclist-update: try to preserve x bit on updates.
41400         * config/srclistvars.sh: update for karl.
41401
41402 2008-01-29  Jim Meyering  <meyering@redhat.com>
41403
41404         vasnprintf.c: Avoid warning about unused label
41405         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41406         "overflow" label definition and associated code with the
41407         same cpp condition that guards the sole use of that label.
41408
41409 2008-01-26  Bruno Haible  <bruno@clisp.org>
41410
41411         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41412         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41413         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41414         * lib/isnanl-nolibm.h (isnanl): Likewise.
41415         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41416
41417 2008-01-26  Bruno Haible  <bruno@clisp.org>
41418
41419         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41420         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41421
41422 2008-01-26  Bruno Haible  <bruno@clisp.org>
41423
41424         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41425         GCC >= 4.0 built-in.
41426         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41427
41428 2008-01-26  Bruno Haible  <bruno@clisp.org>
41429
41430         Rename isnan, applicable to 'double' only, to isnand.
41431         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41432         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41433         (configure.ac): Update.
41434         (Include): Replace "isnan.h" with "isnand.h".
41435         * m4/isnand.m4: Renamed from m4/isnan.m4.
41436         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41437         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41438         instead of isnan.c.
41439         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41440         instead of HAVE_ISNAN_IN_LIBC.
41441         (isnand): Renamed from isnan.
41442         * lib/isnand.c: New file.
41443         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41444         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41445         (Makefile.am): Update.
41446         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41447         Include isnand.h instead of isnan.h.
41448         (main): Test isnand instead of isnan.
41449         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41450         isnan-nolibm.
41451         * modules/frexp (Depends-on): Likewise.
41452         * modules/frexp-tests (Depends-on): Likewise.
41453         * modules/frexp-nolibm (Depends-on): Likewise.
41454         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41455         * modules/isfinite (Depends-on): Likewise.
41456         * modules/round-tests (Depends-on): Likewise.
41457         * modules/signbit (Depends-on): Likewise.
41458         * modules/signbit-tests (Depends-on): Likewise.
41459         * modules/snprintf-posix (Depends-on): Likewise.
41460         * modules/sprintf-posix (Depends-on): Likewise.
41461         * modules/trunc-tests (Depends-on): Likewise.
41462         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41463         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41464         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41465         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41466         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41467         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41468         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41469         * modules/vasnprintf-posix (Depends-on): Likewise.
41470         * modules/vasprintf-posix (Depends-on): Likewise.
41471         * modules/vfprintf-posix (Depends-on): Likewise.
41472         * modules/vsnprintf-posix (Depends-on): Likewise.
41473         * modules/vsprintf-posix (Depends-on): Likewise.
41474         * lib/frexp.c: Include isnand.h instead of isnan.h.
41475         (ISNAN): Set to isnand instead of isnan.
41476         * lib/isfinite.c: Include isnand.h instead of isnan.h.
41477         (gl_isfinited): Use isnand instead of isnan.
41478         * lib/signbitd.c: Include isnand.h instead of isnan.h.
41479         (gl_signbitd): Use isnand instead of isnan.
41480         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
41481         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
41482         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
41483         (main): Use isnand instead of isnan.
41484         * tests/test-round1.c: Include isnand.h.
41485         (main): Use isnand instead of isnan.
41486         * tests/test-round2.c: Include isnand.h instead of isnan.h.
41487         (ISNAN): Set to isnand instead of isnan.
41488         * tests/test-trunc1.c: Include isnand.h.
41489         (main): Use isnand instead of isnan.
41490         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
41491         (equal): Use isnand instead of isnan.
41492         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
41493         isnand-nolibm.
41494         * NEWS: Mention the change.
41495
41496 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41497             Bruno Haible  <bruno@clisp.org>
41498
41499         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
41500         the GCC builtins for signbits are present and set
41501         REPLACE_SIGNBIT_USING_GCC if so.
41502         * lib/math.in.h (signbit): Define using GCC builtins if
41503         REPLACE_SIGNBIT_USING_GCC is set.
41504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
41505         REPLACE_SIGNBIT_USING_GCC.
41506         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
41507
41508 2008-01-25  Jim Meyering  <meyering@redhat.com>
41509
41510         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
41511         * lib/poll.c: Include <config.h>, not "config.h".
41512         * tests/test-getaddrinfo.c: Likewise.
41513
41514 2008-01-25  Simon Josefsson  <simon@josefsson.org>
41515
41516         * modules/sockets-tests: New file.
41517
41518 2008-01-24  Simon Josefsson  <simon@josefsson.org>
41519
41520         * modules/sockets: New module, can be used to call WSA_Startup and
41521         WSA_Cleanup when needed.
41522
41523         * lib/sockets.h, lib/sockets.c: New files.
41524
41525         * m4/sockets.m4: New file.
41526
41527         * tests/test-sockets.c: New file.
41528
41529 2008-01-19  Bruno Haible  <bruno@clisp.org>
41530
41531         * doc/posix-headers: Renamed from doc/headers.
41532         * doc/posix-functions: Renamed from doc/functions.
41533         * doc/gnulib.texi: Update.
41534
41535 2008-01-19  Bruno Haible  <bruno@clisp.org>
41536
41537         * doc/glibc-functions/strcasestr.texi: Include contents of
41538         doc/functions/strcasestr.texi, fixing the list of platforms.
41539         * doc/functions/strcasestr.texi: Remove file.
41540
41541 2008-01-19  Bruno Haible  <bruno@clisp.org>
41542
41543         * doc/glibc-functions/memmem.texi: Include contents of
41544         doc/functions/memmem.texi.
41545         * doc/functions/memmem.texi: Remove file.
41546
41547 2008-01-18  Bruno Haible  <bruno@clisp.org>
41548
41549         * doc/glibc-functions/*.texi: New files.
41550         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
41551         to use the new files.
41552
41553 2008-01-17  Bruno Haible  <bruno@clisp.org>
41554
41555         * tests/test-gethostname.c (main): Fix printf statement.
41556
41557 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41558
41559         * modules/gethostname-tests: New file.
41560
41561         * tests/test-gethostname.c: New file.
41562
41563 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41564
41565         * lib/gethostname.c: Include string.h unconditionally, strncpy is
41566         used by the UNAME case.  Reported by Bruno Haible
41567         <bruno@clisp.org>.
41568
41569 2008-01-17  Eric Blake  <ebb9@byu.net>
41570
41571         Convert c-strcasestr to be more efficient.
41572         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
41573         (Depends-on): Add c-strcase, remove malloca, strnlen.
41574         * tests/test-c-strcasestr.c (main): Enhance test.
41575         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
41576
41577 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
41578
41579         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
41580         Use it in creating po/Makevars.
41581
41582 2008-01-15  Simon Josefsson  <simon@josefsson.org>
41583
41584         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
41585         Applications that requires it should initialize libgcrypt
41586         manually.
41587
41588 2008-01-16  Simon Josefsson  <simon@josefsson.org>
41589
41590         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
41591
41592 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
41593
41594         Fix problem with getdate on mingw32 reported by Simon Josefsson
41595         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
41596         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
41597         tzname", when deciding whether to declare tzname.
41598         * lib/strftime.c (tzname): Likewise.
41599
41600 2008-01-15  Bruno Haible  <bruno@clisp.org>
41601
41602         Work around a MacOS X 10.5 bug in frexpl().
41603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
41604         * doc/functions/frexpl.texi: Document the bug.
41605         Reported by Elias Pipping <pipping@gentoo.org>.
41606
41607 2008-01-14  Eric Blake  <ebb9@byu.net>
41608
41609         Touch up previous patch.
41610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
41611         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
41612
41613         Convert strcasestr module to use Two-Way algorithm.
41614         * modules/strcasestr-simple: New module, based on the old
41615         strcasestr, but with Two-Way rather than KMP.
41616         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
41617         * lib/string.in.h (rpl_strcasestr): Declare.
41618         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
41619         performance.
41620         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
41621         * modules/string (Makefile.am): Support strcasestr.
41622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41623         * modules/strcasestr-tests (Depends-on): Check for alarm.
41624         * tests/test-strcasestr.c: Augment test.
41625         * lib/str-two-way.h: Clean up stray macro.
41626         * NEWS: Document new module.
41627         * MODULES.html.sh (string handling): Likewise.
41628         * doc/functions/strcasestr.texi: New file.
41629         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
41630         here, since it is not a POSIX function.
41631
41632 2008-01-14  Colin Watson  <cjwatson@debian.org>
41633             Bruno Haible  <bruno@clisp.org>
41634
41635         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
41636         works fine; if not, set REPLACE_STRSIGNAL.
41637         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
41638         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41639         REPLACE_STRSIGNAL.
41640         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
41641         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
41642         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
41643
41644 2008-01-14  Bruno Haible  <bruno@clisp.org>
41645
41646         * modules/strsignal (Include): Change to <string.h>.
41647
41648 2008-01-14  Colin Watson  <cjwatson@debian.org>
41649
41650         * modules/argp (Notice): Add a notice recommending to change
41651         XGETTEXT_OPTIONS.
41652         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
41653
41654 2008-01-13  Colin Watson  <cjwatson@debian.org>
41655
41656         * modules/strsignal-tests: New file.
41657         * tests/test-strsignal.c: New file.
41658
41659         * lib/strsignal.c: New file, from glibc with modifications.
41660         * lib/siglist.h: New file, from glibc with modifications.
41661         * lib/string.in.h (strsignal): New declaration.
41662         * m4/strsignal.m4: New file.
41663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41664         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
41665         * modules/strsignal: New file.
41666         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
41667         HAVE_DECL_STRSIGNAL.
41668
41669 2008-01-13  Bruno Haible  <bruno@clisp.org>
41670
41671         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
41672         locale encoding is not ASCII. Needed for OpenBSD 4.0.
41673         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41674         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41675
41676 2008-01-13  Bruno Haible  <bruno@clisp.org>
41677
41678         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
41679         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
41680         * lib/argp.h (__attribute__): Likewise.
41681         * lib/c-stack.c (__attribute__): Likewise.
41682         * lib/error.h (__attribute__): Likewise.
41683         * lib/fts.c (__attribute__): Likewise.
41684         * lib/openat.h (__attribute__): Likewise.
41685         * lib/stdio.in.h (__attribute__): Likewise.
41686         * lib/string.in.h (__attribute__): Likewise.
41687         * lib/utimens.c (__attribute__): Likewise.
41688         * lib/vasnprintf.h (__attribute__): Likewise.
41689         * lib/xalloc.h (__attribute__): Likewise.
41690         * lib/xprintf.h (__attribute__): Likewise.
41691         * lib/xstrtol.h (__attribute__): Likewise.
41692         * lib/xvasprintf.h (__attribute__): Likewise.
41693
41694 2008-01-12  Bruno Haible  <bruno@clisp.org>
41695
41696         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
41697         * doc/glibc-headers/a.out.texi: New file.
41698         * doc/glibc-headers/aliases.texi: New file.
41699         * doc/glibc-headers/alloca.texi: New file.
41700         * doc/glibc-headers/ar.texi: New file.
41701         * doc/glibc-headers/argp.texi: New file.
41702         * doc/glibc-headers/argz.texi: New file.
41703         * doc/glibc-headers/byteswap.texi: New file.
41704         * doc/glibc-headers/crypt.texi: New file.
41705         * doc/glibc-headers/endian.texi: New file.
41706         * doc/glibc-headers/envz.texi: New file.
41707         * doc/glibc-headers/err.texi: New file.
41708         * doc/glibc-headers/error.texi: New file.
41709         * doc/glibc-headers/execinfo.texi: New file.
41710         * doc/glibc-headers/fpu_control.texi: New file.
41711         * doc/glibc-headers/fstab.texi: New file.
41712         * doc/glibc-headers/fts.texi: New file.
41713         * doc/glibc-headers/getopt.texi: New file.
41714         * doc/glibc-headers/ieee754.texi: New file.
41715         * doc/glibc-headers/ifaddrs.texi: New file.
41716         * doc/glibc-headers/libintl.texi: New file.
41717         * doc/glibc-headers/mcheck.texi: New file.
41718         * doc/glibc-headers/mntent.texi: New file.
41719         * doc/glibc-headers/obstack.texi: New file.
41720         * doc/glibc-headers/paths.texi: New file.
41721         * doc/glibc-headers/printf.texi: New file.
41722         * doc/glibc-headers/pty.texi: New file.
41723         * doc/glibc-headers/resolv.texi: New file.
41724         * doc/glibc-headers/shadow.texi: New file.
41725         * doc/glibc-headers/sysexits.texi: New file.
41726         * doc/glibc-headers/ttyent.texi: New file.
41727
41728 2008-01-12  Jim Meyering  <meyering@redhat.com>
41729
41730         announce-gen: emit Gnulib's git-based version string.
41731         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
41732         New option --gnulib-version=V, where V is expected to be
41733         the output of running git describe in the gnulib directory.
41734         (get_tool_versions): Request feedback on xdelta.  I suspect it's
41735         not useful, and plan to stop publishing an xdelta file with each
41736         coreutils release.
41737
41738         * build-aux/announce-gen: Also check for lzma-compressed files.
41739
41740 2008-01-11  Bruno Haible  <bruno@clisp.org>
41741
41742         * tests/test-memmem.c (main): Increase maximum allowed time.
41743         * tests/test-strstr.c (main): Likewise.
41744
41745 2008-01-11  Bruno Haible  <bruno@clisp.org>
41746
41747         * doc/functions/memmem.texi: Add more precisions about platforms.
41748         * doc/functions/strstr.texi: Likewise.
41749
41750 2008-01-10  Eric Blake  <ebb9@byu.net>
41751
41752         * m4/strstr.m4: Delete cruft from copy-n-paste.
41753         Reported by Bruno Haible.
41754
41755 2008-01-10  Bruno Haible  <bruno@clisp.org>
41756
41757         Make c-strstr rely on strstr.
41758         * lib/c-strstr.c: Don't include str-kmp.h.
41759         (c_strstr): Define in terms of strstr.
41760         * modules/c-strstr (Files): Remove lib/str-kmp.h.
41761         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
41762
41763 2008-01-10  Bruno Haible  <bruno@clisp.org>
41764
41765         * doc/gnulib.texi (String Functions in C Locale): New section.
41766         * doc/c-ctype.texi: New file.
41767         * doc/c-strcase.texi: New file.
41768         * doc/c-strcaseeq.texi: New file.
41769         * doc/c-strcasestr.texi: New file.
41770         * doc/c-strstr.texi: New file.
41771         * doc/c-strtod.texi: New file.
41772         * doc/c-strtold.texi: New file.
41773
41774 2008-01-10  Eric Blake  <ebb9@byu.net>
41775
41776         * lib/relocatable.h: Fix a comment.
41777
41778 2008-01-10  Eric Blake  <ebb9@byu.net>
41779
41780         Share two-way algorithm.
41781         * lib/str-two-way.h: New file, merged from...
41782         * lib/memmem.c: ...here...
41783         * lib/strstr.c: ...and here.
41784         * modules/memmem (Files): Use it.
41785         * modules/strstr (Files): Likewise.
41786
41787         Avoid quadratic strstr implementations.
41788         * lib/strstr.c: New file.
41789         * m4/strstr.m4: Likewise.
41790         * modules/strstr: Likewise.
41791         * modules/strstr-tests: Likewise.
41792         * tests/test-strstr.c: Likewise.
41793         * lib/string.in.h (rpl_strstr): Declare.
41794         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
41795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
41796         * modules/string (Makefile.am): Likewise.
41797         * MODULES.html.sh (string handling): Mention new module.
41798         * doc/functions/strstr.texi (strstr): Document the bug.
41799
41800 2008-01-10  Bruno Haible  <bruno@clisp.org>
41801
41802         * lib/relocatable.h (relocate): State whether result is freshly
41803         allocated or not.
41804         * lib/relocatable.c (relocate): Return a freshly allocated string
41805         instead of a pointer to a privately held string.
41806         Reported by Sylvain Beucler <beuc@gnu.org>.
41807
41808 2008-01-10  Colin Watson  <cjwatson@debian.org>
41809
41810         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41811         s/S_ISNLK/S_ISLNK/.
41812
41813 2008-01-09  Bruno Haible  <bruno@clisp.org>
41814
41815         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41816         and other files.
41817         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41818         if it's only a guess.
41819         * modules/memmem: Simplify by depending on memmem-simple.
41820
41821 2008-01-09  Bruno Haible  <bruno@clisp.org>
41822
41823         Work around OpenBSD 4.0 tdelete() bug.
41824         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41825         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41826         macros and don't redefine the enum values.
41827         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41828         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41829         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41830
41831 2008-01-09  Bruno Haible  <bruno@clisp.org>
41832
41833         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41834         (main): Don't perform the tests if setlocale did not install a UTF-8
41835         locale. Needed on OpenBSD 4.0.
41836         * modules/wcwidth-tests (Depends-on): Add localcharset.
41837
41838 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41839
41840         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41841         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41842         * NEWS: announce this.
41843         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41844
41845 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41846         and Eric Blake  <ebb9@byu.net>
41847
41848         Add memmem-simple module.
41849         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41850         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41851         * modules/memmem-simple: New file.
41852         * modules/memmem (Description): Tweak.
41853         * MODULES.html.sh (string handling): Mention new module.
41854         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41855         addressed by memmem-simple.
41856         * NEWS: Document the difference.
41857
41858 2008-01-09  Eric Blake  <ebb9@byu.net>
41859
41860         Give gcc some memmem optimization hints.
41861         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41862         (strcasestr): Declare as pure.
41863         * modules/memmem (Maintainer): Claim my implementation.
41864
41865 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41866
41867         Support AIX 6.1 and higher.
41868         * build-aux/config.libpath: Likewise.
41869         * build-aux/config.rpath: Likewise.
41870
41871 2008-01-08  Jim Meyering  <meyering@redhat.com>
41872             Bruno Haible  <bruno@clisp.org>
41873
41874         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41875         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41876         Reported by Peter Fales in
41877         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41878
41879 2008-01-08  Bruno Haible  <bruno@clisp.org>
41880
41881         * modules/unictype/category-of (Depends-on): Add
41882         unictype/category-none.
41883         * modules/unictype/category-and-tests (Depends-on): Add
41884         unictype/category-{L,N,Lu,Nd}.
41885         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41886         * modules/unictype/category-or-tests (Depends-on): Add
41887         unictype/category-{L,N}.
41888         * modules/unictype/category-name-tests (Depends-on): Add
41889         unictype/category-{Z,Nl}.
41890         Reported by Simon Josefsson.
41891
41892 2008-01-08  Bruno Haible  <bruno@clisp.org>
41893
41894         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41895         convention better.
41896         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41897         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41898         Reported by Peter Miller <millerp@canb.auug.org.au>.
41899
41900 2008-01-08  Eric Blake  <ebb9@byu.net>
41901
41902         Rewrite memmem to guarantee linear complexity without malloc.
41903         * lib/memmem.c (memmem): Use Two-Way rather than
41904         Knuth-Morris-Pratt, to allow O(1) space usage.
41905         (critical_factorization, two_way_short_needle)
41906         (two_way_long_needle): New functions.
41907         (knuth_morris_pratt): Delete.
41908         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41909         Add stdint.
41910         * tests/test-memmem.c (main): Add tests for periodic needle and
41911         sublinear performance.
41912         * doc/functions/memmem.texi (memmem): Document other deficiencies
41913         in cygwin and older glibc.
41914
41915 2008-01-08  Bruno Haible  <bruno@clisp.org>
41916
41917         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41918         augmentation.
41919
41920 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41921
41922         Add a configure time option: --disable-acl.
41923         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41924         AC_ARG_ENABLE(acl).
41925
41926 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41927
41928         * tests/test-localename.c: Don't include obsolete "setenv.h".
41929
41930         * modules/localename-tests (Depends-on): Need unsetenv.
41931
41932 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41933
41934         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41935
41936 2008-01-06  Colin Watson  <cjwatson@debian.org>
41937
41938         * users.txt: Add man-db.
41939
41940 2008-01-07  Bruno Haible  <bruno@clisp.org>
41941
41942         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41943         previous section name.
41944
41945 2008-01-07  Bruno Haible  <bruno@clisp.org>
41946
41947         * lib/progname.c (set_program_name): Don't strip off a leading
41948         "lt-" prefix outside a .libs directory.
41949         Suggested by Paul Eggert.
41950
41951 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41952             Bruno Haible  <bruno@clisp.org>
41953
41954         Improve memory cleanup in 'relocatable' module.
41955         * lib/relocatable.h (compute_curr_prefix): Change return type to
41956         'char *'.
41957         * lib/relocatable.c (compute_curr_prefix): Change return type to
41958         'char *'. Free curr_installdir after use.
41959         (relocate): Free curr_prefix_better after use.
41960         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41961
41962 2008-01-01  Bruno Haible  <bruno@clisp.org>
41963
41964         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41965         failure on older glibc systems.
41966         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41967
41968 2008-01-05  Eric Blake  <ebb9@byu.net>
41969
41970         Avoid quadratic system memmem.
41971         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41972         Reported by Ralf Wildenhues.
41973
41974         Fix memmem test for mingw.
41975         * modules/memmem-tests (configure.ac): Check for alarm.
41976         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41977         it.
41978         * doc/functions/memmem.texi: New file.
41979         * doc/gnulib.texi (Function Substitutes): Add memmem.
41980         Reported by Bruno Haible.
41981
41982 2008-01-04  Bruno Haible  <bruno@clisp.org>
41983
41984         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41985         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41986         gl_HEADER_STRING_H_DEFAULTS.
41987
41988 2008-01-04  Eric Blake  <ebb9@byu.net>
41989
41990         Shorten duration of memmem test.
41991         * tests/test-memmem.c (main): Use alarm to declare failure if test
41992         is taking too long.
41993         Reported by Ralf Wildenhues.
41994
41995 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41996
41997         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41998         string, needed by strerror.
41999
42000 2008-01-03  Colin Watson  <cjwatson@debian.org>
42001             Bruno Haible  <bruno@clisp.org>
42002
42003         * doc/gnulib-tool.texi (Localization): New section.
42004
42005 2008-01-02  Bruno Haible  <bruno@clisp.org>
42006
42007         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42008         variables to 'unsigned char *' type.
42009         Reported by Paul Eggert.
42010
42011 2008-01-02  Jim Meyering  <jim@meyering.net>
42012
42013         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42014
42015 2007-12-31  Jim Meyering  <jim@meyering.net>
42016
42017         Avoid use of private FTS type name.
42018         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42019
42020 2007-12-30  Karl Berry  <karl@gnu.org>
42021
42022         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42023         work around defect in Texinfo and/or the standalone Info browser.
42024
42025 2007-12-30  Bruno Haible  <bruno@clisp.org>
42026
42027         Unify 5 copies of the KMP code.
42028         * lib/str-kmp.h: New file.
42029         * lib/c-strcasestr.c: Include str-kmp.h.
42030         (knuth_morris_pratt): Remove function.
42031         (c_strcasestr): Update.
42032         * lib/c-strstr.c: Include str-kmp.h.
42033         (knuth_morris_pratt): Remove function.
42034         (c_strcasestr): Update.
42035         * lib/mbscasestr.c: Include str-kmp.h.
42036         (knuth_morris_pratt_unibyte): Remove function.
42037         * lib/mbsstr.c: Include str-kmp.h.
42038         (knuth_morris_pratt_unibyte): Remove function.
42039         * lib/strcasestr.c: Include str-kmp.h.
42040         (knuth_morris_pratt): Remove function.
42041         (strcasestr): Update.
42042         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42043         * modules/c-strstr (Files): Likewise.
42044         * modules/mbscasestr (Files): Likewise.
42045         * modules/mbsstr (Files): Likewise.
42046         * modules/strcasestr (Files): Likewise.
42047         Suggested by Paul Eggert.
42048
42049 2007-12-30  Bruno Haible  <bruno@clisp.org>
42050
42051         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42052         defined.
42053
42054 2007-12-30  Bruno Haible  <bruno@clisp.org>
42055
42056         * lib/xmalloca.h: Include xalloc.h.
42057         (xnmalloca): New macro.
42058
42059 2007-12-30  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/malloca.h (nmalloca): New macro.
42062         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42063         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42064         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42065         knuth_morris_pratt_multibyte): Likewise.
42066         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42067         knuth_morris_pratt_multibyte): Likewise.
42068         * lib/memmem.c (knuth_morris_pratt): Likewise.
42069         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42070
42071 2007-12-25  Bruno Haible  <bruno@clisp.org>
42072
42073         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42074         * lib/glob.c: Don't include openat.h.
42075         (link_exists2_p): Add back the code that deals with the
42076         !GLOB_ALTDIRFUNC case.
42077         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42078         let it do the filename concatenation.
42079         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42080         * modules/glob (Depends-on): Remove openat.
42081
42082 2007-12-31  Bruno Haible  <bruno@clisp.org>
42083
42084         * modules/dirfd (License): Change to LGPLv2+.
42085         Approved by Jim Meyering.
42086
42087 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42088
42089         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42090         when multiplying M by sizeof (size_t).
42091
42092 2007-12-10  Martin Lambers  <marlam@marlam.de>
42093
42094         Override getpagesize on mingw.
42095         * lib/getpagesize.c: New file.
42096         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42097         * modules/getpagesize (Files): Add lib/getpagesize.c.
42098         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42100         REPLACE_GETPAGESIZE.
42101         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42102
42103 2007-12-25  Bruno Haible  <bruno@clisp.org>
42104
42105         * modules/localcharset (Notice): New field.
42106         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42107         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42108
42109 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42110             Bruno Haible  <bruno@clisp.org>
42111
42112         Avoid using the syntax symbol() in formatted documentation.
42113         * MODULES.html.sh (func_module): When replacing symbol() with a
42114         hyperlink, remove the parentheses. Show an error if some remain.
42115         Recognize and render the '...' syntax.
42116         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42117         Rework. Add paragraph about GCC's inlining.
42118         * doc/alloca.texi: Likewise.
42119         * doc/error.texi: Remove parentheses from symbol reference.
42120         * doc/gnulib-intro.texi: Likewise.
42121         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42122         * modules/fnmatch (Description): Reword to say "the ... function".
42123         * modules/full-read (Description): Likewise.
42124         * modules/full-write (Description): Likewise.
42125         * modules/safe-read (Description): Likewise.
42126         * modules/safe-write (Description): Likewise.
42127         * modules/strchrnul (Description): Likewise.
42128         * modules/trim (Description): Likewise.
42129         * modules/error (Description): Remove parentheses from symbol
42130         references.
42131         * modules/verror (Description): Likewise.
42132         Reported by Karl Berry.
42133
42134 2007-12-25  Bruno Haible  <bruno@clisp.org>
42135
42136         Fixup after 2007-10-16 commit.
42137         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42138
42139 2007-12-24  Bruno Haible  <bruno@clisp.org>
42140
42141         Make --enable-relocatable work with DESTDIR.
42142         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42143         to compute installdir from destprog.
42144         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42145         also set the RELOC_DESTDIR variable.
42146         Reported by Левашев Иван <octagram@bluebottle.com>.
42147
42148 2007-12-24  Bruno Haible  <bruno@clisp.org>
42149
42150         Fix link error due to xalloc_die().
42151         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42152         of xreadlink.
42153         * lib/relocwrapper.c: Update comments.
42154         * build-aux/install-reloc: Remove xreadlink.c from file list.
42155         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42156         xreadlink.c.
42157         Reported by Левашев Иван <octagram@bluebottle.com>.
42158
42159 2007-12-24  Bruno Haible  <bruno@clisp.org>
42160
42161         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42162         * lib/setenv.h: Remove file.
42163         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42164         lib/setenv.h.
42165         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42166         (Depends-on): Add stdlib.
42167         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42168         gl_FUNC_UNSETENV.
42169         (Include): Replace setenv.h with <stdlib.h>.
42170         * modules/unsetenv: New file.
42171         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42172         * lib/unsetenv.c: Include <stdlib.h> first.
42173         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42174         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42175         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42176         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42177         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42178         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42180         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42181         * doc/functions/unsetenv.texi: Update.
42182         * modules/xsetenv (Depends-on): Add unsetenv.
42183         * modules/getdate (Depends-on): Likewise.
42184         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42185         * lib/xsetenv.c: Don't include setenv.h.
42186         * lib/getdate.y: Likewise.
42187         * lib/relocwrapper.c: Likewise.
42188         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42189         (Depends-on): Add stdlib.
42190         * NEWS: Mention the changes.
42191         Reported by Левашев Иван <octagram@bluebottle.com>.
42192
42193 2007-12-23  Bruno Haible  <bruno@clisp.org>
42194
42195         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42196         indentation.
42197
42198 2007-12-23  Bruno Haible  <bruno@clisp.org>
42199
42200         * lib/c-strcasestr.c: Add more comments.
42201         * lib/c-strstr.c: Likewise.
42202         * lib/mbscasestr.c: Likewise.
42203         * lib/mbsstr.c: Likewise.
42204         * lib/strcasestr.c: Likewise.
42205         * lib/memmem.c: Likewise.
42206
42207 2007-12-23  Bruno Haible  <bruno@clisp.org>
42208
42209         * tests/test-memmem.c: Include <string.h> first.
42210
42211 2007-12-22  Bruno Haible  <bruno@clisp.org>
42212
42213         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42214         the contents of $testsbase.
42215         Reported by Ralf Wildenhues.
42216
42217 2007-12-22  Bruno Haible  <bruno@clisp.org>
42218
42219         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42220         two variables local_ldadd_before, local_ldadd_last.
42221
42222 2007-12-20  Eric Blake  <ebb9@byu.net>
42223
42224         Work around circular library issue when cross-compiling.
42225         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42226         that progname.o does not need to pull in rpl_memcmp.
42227
42228 2007-12-19  Eric Blake  <ebb9@byu.net>
42229
42230         Fix memmem to avoid O(n^2) worst-case complexity.
42231         * lib/memmem.c (knuth_morris_pratt): New function.
42232         (memmem): Use it if first few naive iterations fail.
42233         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42234         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42235         * modules/memchr (License): Likewise.
42236         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42237         malloca.
42238         * tests/test-memmem.c: Rewrite, borrowing ideas from
42239         test-mbsstr1.c; the old version wouldn't even compile!
42240         * modules/memmem-tests: New file.
42241         * lib/string.in.h (rpl_memmem): Add declaration.
42242         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42244         REPLACE_MEMMEM.
42245
42246 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42247
42248         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42249         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42250         before any system include files, and undef after them all.  This
42251         should fix a problem on VMS reported by John E. Malmberg in
42252         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42253
42254 2007-12-17  Eric Blake  <ebb9@byu.net>
42255
42256         Revert addition of verify, for BSD/OS.
42257         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42258         can't handle large files, for the sake of obsolete platforms.
42259         * modules/fseeko (Depends-on): Remove verify.
42260         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42261         * doc/functions/ftello.texi (ftello): Likewise.
42262         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42263         Reported by Larry Jones.
42264
42265 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42266
42267         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42268         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42269
42270 2007-12-17  Jim Meyering  <meyering@redhat.com>
42271
42272         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42273         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42274         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42275         * modules/getcwd (Depends-on): Add openat.
42276         Reported by Petr Salinger.
42277
42278 2007-12-17  Bruno Haible  <bruno@clisp.org>
42279
42280         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42281         avoid a segmentation fault of the configure test on x86_64 systems.
42282
42283 2007-12-15  Jim Meyering  <meyering@redhat.com>
42284
42285         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42286
42287 2007-12-13  Eric Blake  <ebb9@byu.net>
42288
42289         Another fseek test.
42290         * tests/test-fseek.c (main): Also test ungetc handling.
42291         * tests/test-fseeko.c (main): Likewise.
42292         * modules/fseeko (Depends-on): Add verify.
42293         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42294         large.
42295         Reported by Larry Jones.
42296
42297         Fix fseeko on mingw.
42298         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42299         seek.
42300
42301         Beef up fseek tests.
42302         * tests/test-fseek.c (main): Also test eof handling.
42303         * tests/test-fseeko.c (main): Likewise.
42304         Reported by Larry Jones.
42305
42306 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42307
42308         Fix fseeko on BSD-based platforms.
42309         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42310         successful seek.
42311
42312 2007-12-12  Eric Blake  <ebb9@byu.net>
42313
42314         Allow circular dependency of separate libtests.a
42315         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42316         when use_libtests.
42317
42318 2007-12-11  Eric Blake  <ebb9@byu.net>
42319
42320         Fix bug with -0.0L in previous patch.
42321         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42322         * tests/test-isnan.c (main): Also test on zeroes.
42323         * tests/test-isnanf.c (main): Likewise.
42324         * tests/test-isnanl.h (main): Likewise.
42325
42326         Detect pseudo-denormals on x86 even when cross-compiling.
42327         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42328         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42329         invalid bit patterns that happen to satisfy ==.
42330
42331         Avoid link failures with separate libtests.a.
42332         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42333         last, to satisfy circular dependencies.
42334
42335 2007-12-11  Eric Blake  <ebb9@byu.net>
42336         and Bruno Haible  <bruno@clisp.org>
42337
42338         Fix OpenBSD 4.0 <float.h> handling of long double.
42339         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42340         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42341         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42342
42343 2007-12-11  Jim Meyering  <meyering@redhat.com>
42344
42345         * users.txt: Add libvirt.
42346
42347         Support versions of autoconf prior to 2.59c.
42348         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42349         if it is not already defined.
42350
42351 2007-12-09  Bruno Haible  <bruno@clisp.org>
42352
42353         Let 'gnulib-tool --import' collect sources needed for the tests in
42354         tests/ rather than in lib/.
42355         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42356         argument. If true, add rules to generate libtests.a, and put libtests.a
42357         into $(LDADD). Consider source files in subdirectories and set
42358         uses_subdirs.
42359         (func_emit_initmacro_start, func_emit_initmacro_end,
42360         func_emit_initmacro_done): Pass all arguments explicitly.
42361         (func_import): Determine two module lists main_modules,
42362         testsrelated_modules. Determine use_libtests. Determine two variables
42363         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42364         instead of just sed_transform_lib_file. Determine two variables
42365         main_files and testsrelated_files. Compute 'files' as the union of
42366         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42367         func_add_or_update. In the generated gnulib-comp.m4, collect the
42368         object files for tests/ in different variables than those for lib/.
42369         Substitute LIBTESTS_LIBDEPS.
42370         (func_create_testdir): Combine the uses_subdirs results from
42371         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42372
42373 2007-12-09  Bruno Haible  <bruno@clisp.org>
42374
42375         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42376         the build-aux directory.
42377
42378 2007-12-09  Bruno Haible  <bruno@clisp.org>
42379
42380         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42381         introduced on 2006-09-09.
42382
42383 2007-12-07  Jim Meyering  <meyering@redhat.com>
42384
42385         Let these macros work also with autoconf-2.59.
42386         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42387         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42388         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42389
42390 2007-12-06  Jim Meyering  <meyering@redhat.com>
42391
42392         Avoid a configure-time syntax error in gl_FUNC_ACL.
42393         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42394         function in each branch, before testing the cache variable.
42395
42396 2007-12-04  Eric Blake  <ebb9@byu.net>
42397
42398         Make scripts executable.
42399         * build-aux/config.guess: Add execute permissions.
42400         * build-aux/config.sub: Likewise.
42401         * build-aux/gendocs.sh: Likewise.
42402
42403         Fix frexp on mingw.
42404         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42405         cross-compiling.
42406         * doc/functions/frexp.texi (frexp): Document the bug.
42407
42408         Make cygwin fseeko check more reliable.
42409         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42410         version numbers, rather than unrelated feature check.
42411         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42412         * doc/functions/ftello.texi (ftello): Likewise.
42413         Reported by Bruno Haible.
42414
42415         * m4/strerror.m4: Bump version number.
42416
42417 2007-12-03  Bruno Haible  <bruno@clisp.org>
42418
42419         * doc/functions/mprotect.texi: Mention the mingw problem.
42420
42421 2007-12-03  Eric Blake  <ebb9@byu.net>
42422
42423         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42424         REPLACE_STRERROR is initialized before this macro.
42425
42426 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42427
42428         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42429         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42430         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42431         put -lsec in even for programs other than 'ls'.  This fixes a problem
42432         for gettext reported by Bruno Haible in
42433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42434         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42435         Add support for Solaris 10.  This isn't efficient, but should get the
42436         job done for now.
42437
42438 2007-12-03  James Youngman  <jay@gnu.org>
42439
42440         * doc/regexprops-generic.texi: change "an close-group" to "a
42441         close-group" and "illegal" to "not allowed".
42442
42443 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42444
42445         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42446         pr_byname.h. Needed for the rare case when the maintainer has done
42447         "make maintainer-clean" in the source directory and then attempts a
42448         build outside the source directory.
42449         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42450         scripts_byname.h.
42451
42452 2007-12-02  Martin Lambers <marlam@marlam.de>
42453             Bruno Haible  <bruno@clisp.org>
42454
42455         * lib/getpagesize.h: Remove file.
42456         * lib/unistd.in.h: Include declaration of getpagesize here.
42457         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42458         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42459         HAVE_SYS_PARAM_H.
42460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
42461         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42462         * modules/getpagesize (Files): Remove lib/getpagesize.h.
42463         (Depends-on): Add unistd.
42464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42465         (Include): Use <unistd.h> instead of getpagesize.h.
42466         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
42467         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42468         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
42469         gl_GETPAGESIZE invocation, already handled by module dependency.
42470         * lib/pagealign_alloc.c: Don't include getpagesize.h.
42471
42472 2007-12-02  Bruno Haible  <bruno@clisp.org>
42473
42474         * modules/strings-tests: New file.
42475         * tests/test-strings.c: New file.
42476
42477         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
42478         * lib/strings.in.h: New file.
42479         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
42480         * m4/strings_h.m4: New file.
42481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
42482         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
42483         * modules/strings: New file.
42484         * modules/string (Makefile.am): Update.
42485         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
42486         Reported by Karl Berry.
42487
42488 2007-12-01  Eric Blake  <ebb9@byu.net>
42489
42490         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
42491         accomodate fix in cygwin 1.5.25.
42492
42493 2007-12-01  Jim Meyering  <meyering@redhat.com>
42494
42495         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
42496         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
42497         that would inhibit utf8-optimization of a regexp containing line-
42498         or buffer-anchors, e.g., `^', `$'.
42499
42500 2007-11-30  Bruno Haible  <bruno@clisp.org>
42501
42502         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
42503         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
42504         glthread_recursive_lock_init.
42505         * lib/lock.c (glthread_recursive_lock_init)
42506         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
42507         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42508
42509 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
42510
42511         New function qset_acl, like set_acl but with syscall semantics.
42512         * lib/acl.h (qset_acl): New decl.
42513         * lib/acl.c (qset_acl): New function.
42514         (set_acl): Use new function.  Use more-consistent diagnostics.
42515
42516 2007-11-28  Jim Meyering  <meyering@redhat.com>
42517
42518         * modules/physmem (License): Change from GPL to LGPLv2+.
42519
42520 2007-11-26  Bruno Haible  <bruno@clisp.org>
42521
42522         * lib/vasnprintf.c (decode_long_double): Don't abort if the
42523         'long double' type has excess precision.
42524         Reported by Jim Meyering in
42525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
42526
42527 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42528
42529         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
42530         Sync from <http://gnu.org/licenses>.
42531         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
42532         with license text from same location.
42533         * doc/maintain.texi, doc/standards.texi:  Sync from
42534         <http://savannah.gnu.org/projects/gnustandards>.
42535
42536 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
42537         and Jim Meyering  <meyering@redhat.com>
42538
42539         Adjust getdate' grammar to accept a slightly more regular language.
42540         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
42541         Before, the former was rejected.
42542         * lib/getdate.y (digits_to_date_time): New function, factored
42543         out of ...
42544         (number): ...here.  Just call digits_to_date_time.
42545         (hybrid): New non-terminal to handle an <unsigned number,
42546         signed relative offset> sequence consistently.
42547
42548 2007-11-18  Jim Meyering  <meyering@redhat.com>
42549
42550         Pull my changes from coreutils:
42551         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
42552         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
42553         use of $gnulib_tool_option_extras, so that it's separated from the
42554         preceding argument.
42555
42556         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
42557         * build-aux/bootstrap (cp_mark_as_generated): Create any required
42558         parent destination directories before copying a file into place.
42559
42560 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42561
42562         bootstrap: work also with 4-argument variant of AC_INIT
42563         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
42564
42565 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42566
42567         Port test-getaddrinfo to Solaris.
42568         Problem reported by Bruno Haible in
42569         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
42570         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
42571         explanation of setting 'hints'.
42572         Don't reject an implementation merely because it returns EAI_SERVICE.
42573         (EAI_SERVICE): Define to 0 if not defined.
42574
42575 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42576
42577         The license of gnu-make and posix-shell is now "GPLed build tool".
42578         * modules/gnu-make (License): Likewise.
42579         * modules/posix-shell (License): Likewise.
42580
42581         New module posix-shell, for determining a POSIX shell
42582         or perhaps something that is close enough to a POSIX shell.
42583         * m4/posix-shell.m4: New file.
42584         * modules/posix-shell: New file.
42585
42586         * MODULES.html.sh: Mention new module.
42587
42588         New module gnu-make, for determining whether we're using GNU Make.
42589         * m4/gnu-make.m4: New file.
42590         * modules/gnu-make: New file.
42591         * MODULES.html.sh: Mention new module.
42592
42593 2007-11-14  Jim Meyering  <meyering@redhat.com>
42594
42595         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
42596         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
42597         use this macro to create a function _definition_.
42598         Remove useless "#undef ARGMATCH_DIE".
42599
42600 2007-11-14  Bruno Haible  <bruno@clisp.org>
42601
42602         * lib/config.charset: Update for OpenBSD 4.1.
42603         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
42604
42605 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
42606
42607         Document 64-bit #if problems in stdint.texi.
42608         * doc/headers/stdint.texi (stdint.h): Mention problems with
42609         64-bit-#if, and how to work around them.
42610
42611         Don't insist on 'long long int' support in the preprocessor.  It
42612         breaks too many things.  For example, PRIdMAX still uses a 'long
42613         long int' format with the latest Sun compiler, even though
42614         HAVE_LONG_LONG_INT isn't defined due to that compiler's
42615         preprocessor problem.  This causes the latest coreutils to dump
42616         core on Solaris 10 sparc with the Sun C compiler.
42617         Instead, fix the 2007-10-16 problem in a different way, by evaluating
42618         the troublesome expressions at configure-time, not at #if-time.
42619         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
42620         preprocessor.
42621         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
42622         compile-time C checks, done at 'configure'-time.
42623         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
42624         * modules/inttypes (Makefile): Substitute the new symbols that
42625         gl_INTTYPES_H now generates.
42626         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
42627
42628 2007-11-12  Bruno Haible  <bruno@clisp.org>
42629
42630         Tests for Unicode character classification functions.
42631
42632         * modules/unictype/bidicategory-byname-tests: New file.
42633         * modules/unictype/bidicategory-name-tests: New file.
42634         * modules/unictype/bidicategory-of-tests: New file.
42635         * modules/unictype/bidicategory-test-tests: New file.
42636         * modules/unictype/block-list-tests: New file.
42637         * modules/unictype/block-of-tests: New file.
42638         * modules/unictype/block-test-tests: New file.
42639         * modules/unictype/category-C-tests: New file.
42640         * modules/unictype/category-Cc-tests: New file.
42641         * modules/unictype/category-Cf-tests: New file.
42642         * modules/unictype/category-Cn-tests: New file.
42643         * modules/unictype/category-Co-tests: New file.
42644         * modules/unictype/category-Cs-tests: New file.
42645         * modules/unictype/category-L-tests: New file.
42646         * modules/unictype/category-Ll-tests: New file.
42647         * modules/unictype/category-Lm-tests: New file.
42648         * modules/unictype/category-Lo-tests: New file.
42649         * modules/unictype/category-Lt-tests: New file.
42650         * modules/unictype/category-Lu-tests: New file.
42651         * modules/unictype/category-M-tests: New file.
42652         * modules/unictype/category-Mc-tests: New file.
42653         * modules/unictype/category-Me-tests: New file.
42654         * modules/unictype/category-Mn-tests: New file.
42655         * modules/unictype/category-N-tests: New file.
42656         * modules/unictype/category-Nd-tests: New file.
42657         * modules/unictype/category-Nl-tests: New file.
42658         * modules/unictype/category-No-tests: New file.
42659         * modules/unictype/category-P-tests: New file.
42660         * modules/unictype/category-Pc-tests: New file.
42661         * modules/unictype/category-Pd-tests: New file.
42662         * modules/unictype/category-Pe-tests: New file.
42663         * modules/unictype/category-Pf-tests: New file.
42664         * modules/unictype/category-Pi-tests: New file.
42665         * modules/unictype/category-Po-tests: New file.
42666         * modules/unictype/category-Ps-tests: New file.
42667         * modules/unictype/category-S-tests: New file.
42668         * modules/unictype/category-Sc-tests: New file.
42669         * modules/unictype/category-Sk-tests: New file.
42670         * modules/unictype/category-Sm-tests: New file.
42671         * modules/unictype/category-So-tests: New file.
42672         * modules/unictype/category-Z-tests: New file.
42673         * modules/unictype/category-Zl-tests: New file.
42674         * modules/unictype/category-Zp-tests: New file.
42675         * modules/unictype/category-Zs-tests: New file.
42676         * modules/unictype/category-and-not-tests: New file.
42677         * modules/unictype/category-and-tests: New file.
42678         * modules/unictype/category-byname-tests: New file.
42679         * modules/unictype/category-name-tests: New file.
42680         * modules/unictype/category-none-tests: New file.
42681         * modules/unictype/category-of-tests: New file.
42682         * modules/unictype/category-or-tests: New file.
42683         * modules/unictype/category-test-withtable-tests: New file.
42684         * modules/unictype/combining-class-tests: New file.
42685         * modules/unictype/ctype-alnum-tests: New file.
42686         * modules/unictype/ctype-alpha-tests: New file.
42687         * modules/unictype/ctype-blank-tests: New file.
42688         * modules/unictype/ctype-cntrl-tests: New file.
42689         * modules/unictype/ctype-digit-tests: New file.
42690         * modules/unictype/ctype-graph-tests: New file.
42691         * modules/unictype/ctype-lower-tests: New file.
42692         * modules/unictype/ctype-print-tests: New file.
42693         * modules/unictype/ctype-punct-tests: New file.
42694         * modules/unictype/ctype-space-tests: New file.
42695         * modules/unictype/ctype-upper-tests: New file.
42696         * modules/unictype/ctype-xdigit-tests: New file.
42697         * modules/unictype/decimal-digit-tests: New file.
42698         * modules/unictype/digit-tests: New file.
42699         * modules/unictype/mirror-tests: New file.
42700         * modules/unictype/numeric-tests: New file.
42701         * modules/unictype/property-alphabetic-tests: New file.
42702         * modules/unictype/property-ascii-hex-digit-tests: New file.
42703         * modules/unictype/property-bidi-arabic-digit-tests: New file.
42704         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
42705         * modules/unictype/property-bidi-block-separator-tests: New file.
42706         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
42707         * modules/unictype/property-bidi-common-separator-tests: New file.
42708         * modules/unictype/property-bidi-control-tests: New file.
42709         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
42710         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
42711         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
42712         * modules/unictype/property-bidi-european-digit-tests: New file.
42713         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
42714         * modules/unictype/property-bidi-left-to-right-tests: New file.
42715         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
42716         * modules/unictype/property-bidi-other-neutral-tests: New file.
42717         * modules/unictype/property-bidi-pdf-tests: New file.
42718         * modules/unictype/property-bidi-segment-separator-tests: New file.
42719         * modules/unictype/property-bidi-whitespace-tests: New file.
42720         * modules/unictype/property-byname-tests: New file.
42721         * modules/unictype/property-combining-tests: New file.
42722         * modules/unictype/property-composite-tests: New file.
42723         * modules/unictype/property-currency-symbol-tests: New file.
42724         * modules/unictype/property-dash-tests: New file.
42725         * modules/unictype/property-decimal-digit-tests: New file.
42726         * modules/unictype/property-default-ignorable-code-point-tests: New file.
42727         * modules/unictype/property-deprecated-tests: New file.
42728         * modules/unictype/property-diacritic-tests: New file.
42729         * modules/unictype/property-extender-tests: New file.
42730         * modules/unictype/property-format-control-tests: New file.
42731         * modules/unictype/property-grapheme-base-tests: New file.
42732         * modules/unictype/property-grapheme-extend-tests: New file.
42733         * modules/unictype/property-grapheme-link-tests: New file.
42734         * modules/unictype/property-hex-digit-tests: New file.
42735         * modules/unictype/property-hyphen-tests: New file.
42736         * modules/unictype/property-id-continue-tests: New file.
42737         * modules/unictype/property-id-start-tests: New file.
42738         * modules/unictype/property-ideographic-tests: New file.
42739         * modules/unictype/property-ids-binary-operator-tests: New file.
42740         * modules/unictype/property-ids-trinary-operator-tests: New file.
42741         * modules/unictype/property-ignorable-control-tests: New file.
42742         * modules/unictype/property-iso-control-tests: New file.
42743         * modules/unictype/property-join-control-tests: New file.
42744         * modules/unictype/property-left-of-pair-tests: New file.
42745         * modules/unictype/property-line-separator-tests: New file.
42746         * modules/unictype/property-logical-order-exception-tests: New file.
42747         * modules/unictype/property-lowercase-tests: New file.
42748         * modules/unictype/property-math-tests: New file.
42749         * modules/unictype/property-non-break-tests: New file.
42750         * modules/unictype/property-not-a-character-tests: New file.
42751         * modules/unictype/property-numeric-tests: New file.
42752         * modules/unictype/property-other-alphabetic-tests: New file.
42753         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
42754         * modules/unictype/property-other-grapheme-extend-tests: New file.
42755         * modules/unictype/property-other-id-continue-tests: New file.
42756         * modules/unictype/property-other-id-start-tests: New file.
42757         * modules/unictype/property-other-lowercase-tests: New file.
42758         * modules/unictype/property-other-math-tests: New file.
42759         * modules/unictype/property-other-uppercase-tests: New file.
42760         * modules/unictype/property-paired-punctuation-tests: New file.
42761         * modules/unictype/property-paragraph-separator-tests: New file.
42762         * modules/unictype/property-pattern-syntax-tests: New file.
42763         * modules/unictype/property-pattern-white-space-tests: New file.
42764         * modules/unictype/property-private-use-tests: New file.
42765         * modules/unictype/property-punctuation-tests: New file.
42766         * modules/unictype/property-quotation-mark-tests: New file.
42767         * modules/unictype/property-radical-tests: New file.
42768         * modules/unictype/property-sentence-terminal-tests: New file.
42769         * modules/unictype/property-soft-dotted-tests: New file.
42770         * modules/unictype/property-space-tests: New file.
42771         * modules/unictype/property-terminal-punctuation-tests: New file.
42772         * modules/unictype/property-test-tests: New file.
42773         * modules/unictype/property-titlecase-tests: New file.
42774         * modules/unictype/property-unassigned-code-value-tests: New file.
42775         * modules/unictype/property-unified-ideograph-tests: New file.
42776         * modules/unictype/property-uppercase-tests: New file.
42777         * modules/unictype/property-variation-selector-tests: New file.
42778         * modules/unictype/property-white-space-tests: New file.
42779         * modules/unictype/property-xid-continue-tests: New file.
42780         * modules/unictype/property-xid-start-tests: New file.
42781         * modules/unictype/property-zero-width-tests: New file.
42782         * modules/unictype/scripts-tests: New file.
42783         * modules/unictype/syntax-c-ident-tests: New file.
42784         * modules/unictype/syntax-c-whitespace-tests: New file.
42785         * modules/unictype/syntax-java-ident-tests: New file.
42786         * modules/unictype/syntax-java-whitespace-tests: New file.
42787         * tests/unictype/test-bidi_byname.c: New file.
42788         * tests/unictype/test-bidi_name.c: New file.
42789         * tests/unictype/test-bidi_of.c: New file.
42790         * tests/unictype/test-bidi_test.c: New file.
42791         * tests/unictype/test-block_list.c: New file.
42792         * tests/unictype/test-block_of.c: New file.
42793         * tests/unictype/test-block_test.c: New file.
42794         * tests/unictype/test-categ_and.c: New file.
42795         * tests/unictype/test-categ_and_not.c: New file.
42796         * tests/unictype/test-categ_byname.c: New file.
42797         * tests/unictype/test-categ_name.c: New file.
42798         * tests/unictype/test-categ_none.c: New file.
42799         * tests/unictype/test-categ_of.c: New file.
42800         * tests/unictype/test-categ_or.c: New file.
42801         * tests/unictype/test-categ_test_withtable.c: New file.
42802         * tests/unictype/test-combining.c: New file.
42803         * tests/unictype/test-decdigit.c: New file.
42804         * tests/unictype/test-digit.c: New file.
42805         * tests/unictype/test-mirror.c: New file.
42806         * tests/unictype/test-numeric.c: New file.
42807         * tests/unictype/test-pr_byname.c: New file.
42808         * tests/unictype/test-pr_test.c: New file.
42809         * tests/unictype/test-predicate-part1.h: New file.
42810         * tests/unictype/test-predicate-part2.h: New file.
42811         * tests/unictype/test-scripts.c: New file.
42812         * tests/unictype/test-sy_c_ident.c: New file.
42813         * tests/unictype/test-sy_java_ident.c: New file.
42814
42815         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42816         for Unicode 5.0.0.
42817         * tests/unictype/test-categ_Cc.c: Likewise.
42818         * tests/unictype/test-categ_Cf.c: Likewise.
42819         * tests/unictype/test-categ_Cn.c: Likewise.
42820         * tests/unictype/test-categ_Co.c: Likewise.
42821         * tests/unictype/test-categ_Cs.c: Likewise.
42822         * tests/unictype/test-categ_L.c: Likewise.
42823         * tests/unictype/test-categ_Ll.c: Likewise.
42824         * tests/unictype/test-categ_Lm.c: Likewise.
42825         * tests/unictype/test-categ_Lo.c: Likewise.
42826         * tests/unictype/test-categ_Lt.c: Likewise.
42827         * tests/unictype/test-categ_Lu.c: Likewise.
42828         * tests/unictype/test-categ_M.c: Likewise.
42829         * tests/unictype/test-categ_Mc.c: Likewise.
42830         * tests/unictype/test-categ_Me.c: Likewise.
42831         * tests/unictype/test-categ_Mn.c: Likewise.
42832         * tests/unictype/test-categ_N.c: Likewise.
42833         * tests/unictype/test-categ_Nd.c: Likewise.
42834         * tests/unictype/test-categ_Nl.c: Likewise.
42835         * tests/unictype/test-categ_No.c: Likewise.
42836         * tests/unictype/test-categ_P.c: Likewise.
42837         * tests/unictype/test-categ_Pc.c: Likewise.
42838         * tests/unictype/test-categ_Pd.c: Likewise.
42839         * tests/unictype/test-categ_Pe.c: Likewise.
42840         * tests/unictype/test-categ_Pf.c: Likewise.
42841         * tests/unictype/test-categ_Pi.c: Likewise.
42842         * tests/unictype/test-categ_Po.c: Likewise.
42843         * tests/unictype/test-categ_Ps.c: Likewise.
42844         * tests/unictype/test-categ_S.c: Likewise.
42845         * tests/unictype/test-categ_Sc.c: Likewise.
42846         * tests/unictype/test-categ_Sk.c: Likewise.
42847         * tests/unictype/test-categ_Sm.c: Likewise.
42848         * tests/unictype/test-categ_So.c: Likewise.
42849         * tests/unictype/test-categ_Z.c: Likewise.
42850         * tests/unictype/test-categ_Zl.c: Likewise.
42851         * tests/unictype/test-categ_Zp.c: Likewise.
42852         * tests/unictype/test-categ_Zs.c: Likewise.
42853         * tests/unictype/test-ctype_alnum.c: Likewise.
42854         * tests/unictype/test-ctype_alpha.c: Likewise.
42855         * tests/unictype/test-ctype_blank.c: Likewise.
42856         * tests/unictype/test-ctype_cntrl.c: Likewise.
42857         * tests/unictype/test-ctype_digit.c: Likewise.
42858         * tests/unictype/test-ctype_graph.c: Likewise.
42859         * tests/unictype/test-ctype_lower.c: Likewise.
42860         * tests/unictype/test-ctype_print.c: Likewise.
42861         * tests/unictype/test-ctype_punct.c: Likewise.
42862         * tests/unictype/test-ctype_space.c: Likewise.
42863         * tests/unictype/test-ctype_upper.c: Likewise.
42864         * tests/unictype/test-ctype_xdigit.c: Likewise.
42865         * tests/unictype/test-decdigit.h: Likewise.
42866         * tests/unictype/test-digit.h: Likewise.
42867         * tests/unictype/test-numeric.h: Likewise.
42868         * tests/unictype/test-pr_alphabetic.c: Likewise.
42869         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42870         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42871         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42872         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42873         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42874         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42875         * tests/unictype/test-pr_bidi_control.c: Likewise.
42876         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42877         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42878         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42879         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42880         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42881         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42882         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42883         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42884         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42885         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42886         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42887         * tests/unictype/test-pr_combining.c: Likewise.
42888         * tests/unictype/test-pr_composite.c: Likewise.
42889         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42890         * tests/unictype/test-pr_dash.c: Likewise.
42891         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42892         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42893         * tests/unictype/test-pr_deprecated.c: Likewise.
42894         * tests/unictype/test-pr_diacritic.c: Likewise.
42895         * tests/unictype/test-pr_extender.c: Likewise.
42896         * tests/unictype/test-pr_format_control.c: Likewise.
42897         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42898         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42899         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42900         * tests/unictype/test-pr_hex_digit.c: Likewise.
42901         * tests/unictype/test-pr_hyphen.c: Likewise.
42902         * tests/unictype/test-pr_id_continue.c: Likewise.
42903         * tests/unictype/test-pr_id_start.c: Likewise.
42904         * tests/unictype/test-pr_ideographic.c: Likewise.
42905         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42906         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42907         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42908         * tests/unictype/test-pr_iso_control.c: Likewise.
42909         * tests/unictype/test-pr_join_control.c: Likewise.
42910         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42911         * tests/unictype/test-pr_line_separator.c: Likewise.
42912         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42913         * tests/unictype/test-pr_lowercase.c: Likewise.
42914         * tests/unictype/test-pr_math.c: Likewise.
42915         * tests/unictype/test-pr_non_break.c: Likewise.
42916         * tests/unictype/test-pr_not_a_character.c: Likewise.
42917         * tests/unictype/test-pr_numeric.c: Likewise.
42918         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42919         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42920         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42921         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42922         * tests/unictype/test-pr_other_id_start.c: Likewise.
42923         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42924         * tests/unictype/test-pr_other_math.c: Likewise.
42925         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42926         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42927         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42928         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42929         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42930         * tests/unictype/test-pr_private_use.c: Likewise.
42931         * tests/unictype/test-pr_punctuation.c: Likewise.
42932         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42933         * tests/unictype/test-pr_radical.c: Likewise.
42934         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42935         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42936         * tests/unictype/test-pr_space.c: Likewise.
42937         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42938         * tests/unictype/test-pr_titlecase.c: Likewise.
42939         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42940         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42941         * tests/unictype/test-pr_uppercase.c: Likewise.
42942         * tests/unictype/test-pr_variation_selector.c: Likewise.
42943         * tests/unictype/test-pr_white_space.c: Likewise.
42944         * tests/unictype/test-pr_xid_continue.c: Likewise.
42945         * tests/unictype/test-pr_xid_start.c: Likewise.
42946         * tests/unictype/test-pr_zero_width.c: Likewise.
42947         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42948         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42949
42950 2007-11-12  Bruno Haible  <bruno@clisp.org>
42951
42952         Unicode character classification functions.
42953         * lib/unictype.h: New file.
42954         * modules/unictype/base: New file.
42955         * modules/unictype/category-L: New file.
42956         * modules/unictype/category-Lu: New file.
42957         * modules/unictype/category-Ll: New file.
42958         * modules/unictype/category-Lt: New file.
42959         * modules/unictype/category-Lm: New file.
42960         * modules/unictype/category-Lo: New file.
42961         * modules/unictype/category-M: New file.
42962         * modules/unictype/category-Mn: New file.
42963         * modules/unictype/category-Mc: New file.
42964         * modules/unictype/category-Me: New file.
42965         * modules/unictype/category-N: New file.
42966         * modules/unictype/category-Nd: New file.
42967         * modules/unictype/category-Nl: New file.
42968         * modules/unictype/category-No: New file.
42969         * modules/unictype/category-P: New file.
42970         * modules/unictype/category-Pc: New file.
42971         * modules/unictype/category-Pd: New file.
42972         * modules/unictype/category-Ps: New file.
42973         * modules/unictype/category-Pe: New file.
42974         * modules/unictype/category-Pi: New file.
42975         * modules/unictype/category-Pf: New file.
42976         * modules/unictype/category-Po: New file.
42977         * modules/unictype/category-S: New file.
42978         * modules/unictype/category-Sm: New file.
42979         * modules/unictype/category-Sc: New file.
42980         * modules/unictype/category-Sk: New file.
42981         * modules/unictype/category-So: New file.
42982         * modules/unictype/category-Z: New file.
42983         * modules/unictype/category-Zs: New file.
42984         * modules/unictype/category-Zl: New file.
42985         * modules/unictype/category-Zp: New file.
42986         * modules/unictype/category-C: New file.
42987         * modules/unictype/category-Cc: New file.
42988         * modules/unictype/category-Cf: New file.
42989         * modules/unictype/category-Cs: New file.
42990         * modules/unictype/category-Co: New file.
42991         * modules/unictype/category-Cn: New file.
42992         * modules/unictype/category-or: New file.
42993         * modules/unictype/category-of: New file.
42994         * modules/unictype/category-test: New file.
42995         * modules/unictype/category-test-withtable: New file.
42996         * modules/unictype/category-byname: New file.
42997         * modules/unictype/category-none: New file.
42998         * modules/unictype/category-and: New file.
42999         * modules/unictype/category-and-not: New file.
43000         * modules/unictype/category-name: New file.
43001         * modules/unictype/combining-class: New file.
43002         * modules/unictype/category-all: New file.
43003         * modules/unictype/bidicategory-all: New file.
43004         * modules/unictype/bidicategory-byname: New file.
43005         * modules/unictype/bidicategory-name: New file.
43006         * modules/unictype/bidicategory-of: New file.
43007         * modules/unictype/bidicategory-test: New file.
43008         * modules/unictype/decimal-digit: New file.
43009         * modules/unictype/digit: New file.
43010         * modules/unictype/numeric: New file.
43011         * modules/unictype/mirror: New file.
43012         * modules/unictype/property-white-space: New file.
43013         * modules/unictype/property-alphabetic: New file.
43014         * modules/unictype/property-other-alphabetic: New file.
43015         * modules/unictype/property-not-a-character: New file.
43016         * modules/unictype/property-default-ignorable-code-point: New file.
43017         * modules/unictype/property-other-default-ignorable-code-point: New
43018         file.
43019         * modules/unictype/property-deprecated: New file.
43020         * modules/unictype/property-logical-order-exception: New file.
43021         * modules/unictype/property-variation-selector: New file.
43022         * modules/unictype/property-private-use: New file.
43023         * modules/unictype/property-unassigned-code-value: New file.
43024         * modules/unictype/property-uppercase: New file.
43025         * modules/unictype/property-other-uppercase: New file.
43026         * modules/unictype/property-lowercase: New file.
43027         * modules/unictype/property-other-lowercase: New file.
43028         * modules/unictype/property-titlecase: New file.
43029         * modules/unictype/property-soft-dotted: New file.
43030         * modules/unictype/property-id-start: New file.
43031         * modules/unictype/property-other-id-start: New file.
43032         * modules/unictype/property-id-continue: New file.
43033         * modules/unictype/property-other-id-continue: New file.
43034         * modules/unictype/property-xid-start: New file.
43035         * modules/unictype/property-xid-continue: New file.
43036         * modules/unictype/property-pattern-white-space: New file.
43037         * modules/unictype/property-pattern-syntax: New file.
43038         * modules/unictype/property-join-control: New file.
43039         * modules/unictype/property-grapheme-base: New file.
43040         * modules/unictype/property-grapheme-extend: New file.
43041         * modules/unictype/property-other-grapheme-extend: New file.
43042         * modules/unictype/property-grapheme-link: New file.
43043         * modules/unictype/property-bidi-control: New file.
43044         * modules/unictype/property-bidi-left-to-right: New file.
43045         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43046         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43047         * modules/unictype/property-bidi-european-digit: New file.
43048         * modules/unictype/property-bidi-eur-num-separator: New file.
43049         * modules/unictype/property-bidi-eur-num-terminator: New file.
43050         * modules/unictype/property-bidi-arabic-digit: New file.
43051         * modules/unictype/property-bidi-common-separator: New file.
43052         * modules/unictype/property-bidi-block-separator: New file.
43053         * modules/unictype/property-bidi-segment-separator: New file.
43054         * modules/unictype/property-bidi-whitespace: New file.
43055         * modules/unictype/property-bidi-non-spacing-mark: New file.
43056         * modules/unictype/property-bidi-boundary-neutral: New file.
43057         * modules/unictype/property-bidi-pdf: New file.
43058         * modules/unictype/property-bidi-embedding-or-override: New file.
43059         * modules/unictype/property-bidi-other-neutral: New file.
43060         * modules/unictype/property-hex-digit: New file.
43061         * modules/unictype/property-ascii-hex-digit: New file.
43062         * modules/unictype/property-ideographic: New file.
43063         * modules/unictype/property-unified-ideograph: New file.
43064         * modules/unictype/property-radical: New file.
43065         * modules/unictype/property-ids-binary-operator: New file.
43066         * modules/unictype/property-ids-trinary-operator: New file.
43067         * modules/unictype/property-zero-width: New file.
43068         * modules/unictype/property-space: New file.
43069         * modules/unictype/property-non-break: New file.
43070         * modules/unictype/property-iso-control: New file.
43071         * modules/unictype/property-format-control: New file.
43072         * modules/unictype/property-dash: New file.
43073         * modules/unictype/property-hyphen: New file.
43074         * modules/unictype/property-punctuation: New file.
43075         * modules/unictype/property-line-separator: New file.
43076         * modules/unictype/property-paragraph-separator: New file.
43077         * modules/unictype/property-quotation-mark: New file.
43078         * modules/unictype/property-sentence-terminal: New file.
43079         * modules/unictype/property-terminal-punctuation: New file.
43080         * modules/unictype/property-currency-symbol: New file.
43081         * modules/unictype/property-math: New file.
43082         * modules/unictype/property-other-math: New file.
43083         * modules/unictype/property-paired-punctuation: New file.
43084         * modules/unictype/property-left-of-pair: New file.
43085         * modules/unictype/property-combining: New file.
43086         * modules/unictype/property-composite: New file.
43087         * modules/unictype/property-decimal-digit: New file.
43088         * modules/unictype/property-numeric: New file.
43089         * modules/unictype/property-diacritic: New file.
43090         * modules/unictype/property-extender: New file.
43091         * modules/unictype/property-ignorable-control: New file.
43092         * modules/unictype/property-test: New file.
43093         * modules/unictype/property-byname: New file.
43094         * modules/unictype/property-all: New file.
43095         * modules/unictype/scripts: New file.
43096         * modules/unictype/scripts-all: New file.
43097         * modules/unictype/block-of: New file.
43098         * modules/unictype/block-test: New file.
43099         * modules/unictype/block-list: New file.
43100         * modules/unictype/block-all: New file.
43101         * modules/unictype/syntax-c-whitespace: New file.
43102         * modules/unictype/syntax-java-whitespace: New file.
43103         * modules/unictype/syntax-c-ident: New file.
43104         * modules/unictype/syntax-java-ident: New file.
43105         * modules/unictype/ctype-alnum: New file.
43106         * modules/unictype/ctype-alpha: New file.
43107         * modules/unictype/ctype-cntrl: New file.
43108         * modules/unictype/ctype-digit: New file.
43109         * modules/unictype/ctype-graph: New file.
43110         * modules/unictype/ctype-lower: New file.
43111         * modules/unictype/ctype-print: New file.
43112         * modules/unictype/ctype-punct: New file.
43113         * modules/unictype/ctype-space: New file.
43114         * modules/unictype/ctype-upper: New file.
43115         * modules/unictype/ctype-xdigit: New file.
43116         * modules/unictype/ctype-blank: New file.
43117         * lib/unictype/bidi_byname.c: New file.
43118         * lib/unictype/bidi_name.c: New file.
43119         * lib/unictype/bidi_of.c: New file.
43120         * lib/unictype/bidi_test.c: New file.
43121         * lib/unictype/bitmap.h: New file.
43122         * lib/unictype/block_test.c: New file.
43123         * lib/unictype/blocks.c: New file.
43124         * lib/unictype/categ_C.c: New file.
43125         * lib/unictype/categ_Cc.c: New file.
43126         * lib/unictype/categ_Cf.c: New file.
43127         * lib/unictype/categ_Cn.c: New file.
43128         * lib/unictype/categ_Co.c: New file.
43129         * lib/unictype/categ_Cs.c: New file.
43130         * lib/unictype/categ_L.c: New file.
43131         * lib/unictype/categ_Ll.c: New file.
43132         * lib/unictype/categ_Lm.c: New file.
43133         * lib/unictype/categ_Lo.c: New file.
43134         * lib/unictype/categ_Lt.c: New file.
43135         * lib/unictype/categ_Lu.c: New file.
43136         * lib/unictype/categ_M.c: New file.
43137         * lib/unictype/categ_Mc.c: New file.
43138         * lib/unictype/categ_Me.c: New file.
43139         * lib/unictype/categ_Mn.c: New file.
43140         * lib/unictype/categ_N.c: New file.
43141         * lib/unictype/categ_Nd.c: New file.
43142         * lib/unictype/categ_Nl.c: New file.
43143         * lib/unictype/categ_No.c: New file.
43144         * lib/unictype/categ_P.c: New file.
43145         * lib/unictype/categ_Pc.c: New file.
43146         * lib/unictype/categ_Pd.c: New file.
43147         * lib/unictype/categ_Pe.c: New file.
43148         * lib/unictype/categ_Pf.c: New file.
43149         * lib/unictype/categ_Pi.c: New file.
43150         * lib/unictype/categ_Po.c: New file.
43151         * lib/unictype/categ_Ps.c: New file.
43152         * lib/unictype/categ_S.c: New file.
43153         * lib/unictype/categ_Sc.c: New file.
43154         * lib/unictype/categ_Sk.c: New file.
43155         * lib/unictype/categ_Sm.c: New file.
43156         * lib/unictype/categ_So.c: New file.
43157         * lib/unictype/categ_Z.c: New file.
43158         * lib/unictype/categ_Zl.c: New file.
43159         * lib/unictype/categ_Zp.c: New file.
43160         * lib/unictype/categ_Zs.c: New file.
43161         * lib/unictype/categ_and.c: New file.
43162         * lib/unictype/categ_and_not.c: New file.
43163         * lib/unictype/categ_byname.c: New file.
43164         * lib/unictype/categ_name.c: New file.
43165         * lib/unictype/categ_none.c: New file.
43166         * lib/unictype/categ_of.c: New file.
43167         * lib/unictype/categ_or.c: New file.
43168         * lib/unictype/categ_test.c: New file.
43169         * lib/unictype/combining.c: New file.
43170         * lib/unictype/ctype_alnum.c: New file.
43171         * lib/unictype/ctype_alpha.c: New file.
43172         * lib/unictype/ctype_blank.c: New file.
43173         * lib/unictype/ctype_cntrl.c: New file.
43174         * lib/unictype/ctype_digit.c: New file.
43175         * lib/unictype/ctype_graph.c: New file.
43176         * lib/unictype/ctype_lower.c: New file.
43177         * lib/unictype/ctype_print.c: New file.
43178         * lib/unictype/ctype_punct.c: New file.
43179         * lib/unictype/ctype_space.c: New file.
43180         * lib/unictype/ctype_upper.c: New file.
43181         * lib/unictype/ctype_xdigit.c: New file.
43182         * lib/unictype/decdigit.c: New file.
43183         * lib/unictype/digit.c: New file.
43184         * lib/unictype/identsyntaxmap.h: New file.
43185         * lib/unictype/mirror.c: New file.
43186         * lib/unictype/numeric.c: New file.
43187         * lib/unictype/pr_alphabetic.c: New file.
43188         * lib/unictype/pr_ascii_hex_digit.c: New file.
43189         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43190         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43191         * lib/unictype/pr_bidi_block_separator.c: New file.
43192         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43193         * lib/unictype/pr_bidi_common_separator.c: New file.
43194         * lib/unictype/pr_bidi_control.c: New file.
43195         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43196         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43197         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43198         * lib/unictype/pr_bidi_european_digit.c: New file.
43199         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43200         * lib/unictype/pr_bidi_left_to_right.c: New file.
43201         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43202         * lib/unictype/pr_bidi_other_neutral.c: New file.
43203         * lib/unictype/pr_bidi_pdf.c: New file.
43204         * lib/unictype/pr_bidi_segment_separator.c: New file.
43205         * lib/unictype/pr_bidi_whitespace.c: New file.
43206         * lib/unictype/pr_byname.c: New file.
43207         * lib/unictype/pr_byname.gperf: New file.
43208         * lib/unictype/pr_combining.c: New file.
43209         * lib/unictype/pr_composite.c: New file.
43210         * lib/unictype/pr_currency_symbol.c: New file.
43211         * lib/unictype/pr_dash.c: New file.
43212         * lib/unictype/pr_decimal_digit.c: New file.
43213         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43214         * lib/unictype/pr_deprecated.c: New file.
43215         * lib/unictype/pr_diacritic.c: New file.
43216         * lib/unictype/pr_extender.c: New file.
43217         * lib/unictype/pr_format_control.c: New file.
43218         * lib/unictype/pr_grapheme_base.c: New file.
43219         * lib/unictype/pr_grapheme_extend.c: New file.
43220         * lib/unictype/pr_grapheme_link.c: New file.
43221         * lib/unictype/pr_hex_digit.c: New file.
43222         * lib/unictype/pr_hyphen.c: New file.
43223         * lib/unictype/pr_id_continue.c: New file.
43224         * lib/unictype/pr_id_start.c: New file.
43225         * lib/unictype/pr_ideographic.c: New file.
43226         * lib/unictype/pr_ids_binary_operator.c: New file.
43227         * lib/unictype/pr_ids_trinary_operator.c: New file.
43228         * lib/unictype/pr_ignorable_control.c: New file.
43229         * lib/unictype/pr_iso_control.c: New file.
43230         * lib/unictype/pr_join_control.c: New file.
43231         * lib/unictype/pr_left_of_pair.c: New file.
43232         * lib/unictype/pr_line_separator.c: New file.
43233         * lib/unictype/pr_logical_order_exception.c: New file.
43234         * lib/unictype/pr_lowercase.c: New file.
43235         * lib/unictype/pr_math.c: New file.
43236         * lib/unictype/pr_non_break.c: New file.
43237         * lib/unictype/pr_not_a_character.c: New file.
43238         * lib/unictype/pr_numeric.c: New file.
43239         * lib/unictype/pr_other_alphabetic.c: New file.
43240         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43241         * lib/unictype/pr_other_grapheme_extend.c: New file.
43242         * lib/unictype/pr_other_id_continue.c: New file.
43243         * lib/unictype/pr_other_id_start.c: New file.
43244         * lib/unictype/pr_other_lowercase.c: New file.
43245         * lib/unictype/pr_other_math.c: New file.
43246         * lib/unictype/pr_other_uppercase.c: New file.
43247         * lib/unictype/pr_paired_punctuation.c: New file.
43248         * lib/unictype/pr_paragraph_separator.c: New file.
43249         * lib/unictype/pr_pattern_syntax.c: New file.
43250         * lib/unictype/pr_pattern_white_space.c: New file.
43251         * lib/unictype/pr_private_use.c: New file.
43252         * lib/unictype/pr_punctuation.c: New file.
43253         * lib/unictype/pr_quotation_mark.c: New file.
43254         * lib/unictype/pr_radical.c: New file.
43255         * lib/unictype/pr_sentence_terminal.c: New file.
43256         * lib/unictype/pr_soft_dotted.c: New file.
43257         * lib/unictype/pr_space.c: New file.
43258         * lib/unictype/pr_terminal_punctuation.c: New file.
43259         * lib/unictype/pr_test.c: New file.
43260         * lib/unictype/pr_titlecase.c: New file.
43261         * lib/unictype/pr_unassigned_code_value.c: New file.
43262         * lib/unictype/pr_unified_ideograph.c: New file.
43263         * lib/unictype/pr_uppercase.c: New file.
43264         * lib/unictype/pr_variation_selector.c: New file.
43265         * lib/unictype/pr_white_space.c: New file.
43266         * lib/unictype/pr_xid_continue.c: New file.
43267         * lib/unictype/pr_xid_start.c: New file.
43268         * lib/unictype/pr_zero_width.c: New file.
43269         * lib/unictype/scripts.c: New file.
43270         * lib/unictype/sy_c_ident.c: New file.
43271         * lib/unictype/sy_c_whitespace.c: New file.
43272         * lib/unictype/sy_java_ident.c: New file.
43273         * lib/unictype/sy_java_whitespace.c: New file.
43274
43275         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43276         Unicode 5.0.0.
43277         * lib/unictype/blocks.h: Likewise.
43278         * lib/unictype/categ_C.h: Likewise.
43279         * lib/unictype/categ_Cc.h: Likewise.
43280         * lib/unictype/categ_Cf.h: Likewise.
43281         * lib/unictype/categ_Cn.h: Likewise.
43282         * lib/unictype/categ_Co.h: Likewise.
43283         * lib/unictype/categ_Cs.h: Likewise.
43284         * lib/unictype/categ_L.h: Likewise.
43285         * lib/unictype/categ_Ll.h: Likewise.
43286         * lib/unictype/categ_Lm.h: Likewise.
43287         * lib/unictype/categ_Lo.h: Likewise.
43288         * lib/unictype/categ_Lt.h: Likewise.
43289         * lib/unictype/categ_Lu.h: Likewise.
43290         * lib/unictype/categ_M.h: Likewise.
43291         * lib/unictype/categ_Mc.h: Likewise.
43292         * lib/unictype/categ_Me.h: Likewise.
43293         * lib/unictype/categ_Mn.h: Likewise.
43294         * lib/unictype/categ_N.h: Likewise.
43295         * lib/unictype/categ_Nd.h: Likewise.
43296         * lib/unictype/categ_Nl.h: Likewise.
43297         * lib/unictype/categ_No.h: Likewise.
43298         * lib/unictype/categ_P.h: Likewise.
43299         * lib/unictype/categ_Pc.h: Likewise.
43300         * lib/unictype/categ_Pd.h: Likewise.
43301         * lib/unictype/categ_Pe.h: Likewise.
43302         * lib/unictype/categ_Pf.h: Likewise.
43303         * lib/unictype/categ_Pi.h: Likewise.
43304         * lib/unictype/categ_Po.h: Likewise.
43305         * lib/unictype/categ_Ps.h: Likewise.
43306         * lib/unictype/categ_S.h: Likewise.
43307         * lib/unictype/categ_Sc.h: Likewise.
43308         * lib/unictype/categ_Sk.h: Likewise.
43309         * lib/unictype/categ_Sm.h: Likewise.
43310         * lib/unictype/categ_So.h: Likewise.
43311         * lib/unictype/categ_Z.h: Likewise.
43312         * lib/unictype/categ_Zl.h: Likewise.
43313         * lib/unictype/categ_Zp.h: Likewise.
43314         * lib/unictype/categ_Zs.h: Likewise.
43315         * lib/unictype/categ_of.h: Likewise.
43316         * lib/unictype/combining.h: Likewise.
43317         * lib/unictype/ctype_alnum.h: Likewise.
43318         * lib/unictype/ctype_alpha.h: Likewise.
43319         * lib/unictype/ctype_blank.h: Likewise.
43320         * lib/unictype/ctype_cntrl.h: Likewise.
43321         * lib/unictype/ctype_digit.h: Likewise.
43322         * lib/unictype/ctype_graph.h: Likewise.
43323         * lib/unictype/ctype_lower.h: Likewise.
43324         * lib/unictype/ctype_print.h: Likewise.
43325         * lib/unictype/ctype_punct.h: Likewise.
43326         * lib/unictype/ctype_space.h: Likewise.
43327         * lib/unictype/ctype_upper.h: Likewise.
43328         * lib/unictype/ctype_xdigit.h: Likewise.
43329         * lib/unictype/decdigit.h: Likewise.
43330         * lib/unictype/digit.h: Likewise.
43331         * lib/unictype/mirror.h: Likewise.
43332         * lib/unictype/numeric.h: Likewise.
43333         * lib/unictype/pr_alphabetic.h: Likewise.
43334         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43335         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43336         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43337         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43338         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43339         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43340         * lib/unictype/pr_bidi_control.h: Likewise.
43341         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43342         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43343         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43344         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43345         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43346         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43347         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43348         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43349         * lib/unictype/pr_bidi_pdf.h: Likewise.
43350         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43351         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43352         * lib/unictype/pr_combining.h: Likewise.
43353         * lib/unictype/pr_composite.h: Likewise.
43354         * lib/unictype/pr_currency_symbol.h: Likewise.
43355         * lib/unictype/pr_dash.h: Likewise.
43356         * lib/unictype/pr_decimal_digit.h: Likewise.
43357         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43358         * lib/unictype/pr_deprecated.h: Likewise.
43359         * lib/unictype/pr_diacritic.h: Likewise.
43360         * lib/unictype/pr_extender.h: Likewise.
43361         * lib/unictype/pr_format_control.h: Likewise.
43362         * lib/unictype/pr_grapheme_base.h: Likewise.
43363         * lib/unictype/pr_grapheme_extend.h: Likewise.
43364         * lib/unictype/pr_grapheme_link.h: Likewise.
43365         * lib/unictype/pr_hex_digit.h: Likewise.
43366         * lib/unictype/pr_hyphen.h: Likewise.
43367         * lib/unictype/pr_id_continue.h: Likewise.
43368         * lib/unictype/pr_id_start.h: Likewise.
43369         * lib/unictype/pr_ideographic.h: Likewise.
43370         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43371         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43372         * lib/unictype/pr_ignorable_control.h: Likewise.
43373         * lib/unictype/pr_iso_control.h: Likewise.
43374         * lib/unictype/pr_join_control.h: Likewise.
43375         * lib/unictype/pr_left_of_pair.h: Likewise.
43376         * lib/unictype/pr_line_separator.h: Likewise.
43377         * lib/unictype/pr_logical_order_exception.h: Likewise.
43378         * lib/unictype/pr_lowercase.h: Likewise.
43379         * lib/unictype/pr_math.h: Likewise.
43380         * lib/unictype/pr_non_break.h: Likewise.
43381         * lib/unictype/pr_not_a_character.h: Likewise.
43382         * lib/unictype/pr_numeric.h: Likewise.
43383         * lib/unictype/pr_other_alphabetic.h: Likewise.
43384         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43385         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43386         * lib/unictype/pr_other_id_continue.h: Likewise.
43387         * lib/unictype/pr_other_id_start.h: Likewise.
43388         * lib/unictype/pr_other_lowercase.h: Likewise.
43389         * lib/unictype/pr_other_math.h: Likewise.
43390         * lib/unictype/pr_other_uppercase.h: Likewise.
43391         * lib/unictype/pr_paired_punctuation.h: Likewise.
43392         * lib/unictype/pr_paragraph_separator.h: Likewise.
43393         * lib/unictype/pr_pattern_syntax.h: Likewise.
43394         * lib/unictype/pr_pattern_white_space.h: Likewise.
43395         * lib/unictype/pr_private_use.h: Likewise.
43396         * lib/unictype/pr_punctuation.h: Likewise.
43397         * lib/unictype/pr_quotation_mark.h: Likewise.
43398         * lib/unictype/pr_radical.h: Likewise.
43399         * lib/unictype/pr_sentence_terminal.h: Likewise.
43400         * lib/unictype/pr_soft_dotted.h: Likewise.
43401         * lib/unictype/pr_space.h: Likewise.
43402         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43403         * lib/unictype/pr_titlecase.h: Likewise.
43404         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43405         * lib/unictype/pr_unified_ideograph.h: Likewise.
43406         * lib/unictype/pr_uppercase.h: Likewise.
43407         * lib/unictype/pr_variation_selector.h: Likewise.
43408         * lib/unictype/pr_white_space.h: Likewise.
43409         * lib/unictype/pr_xid_continue.h: Likewise.
43410         * lib/unictype/pr_xid_start.h: Likewise.
43411         * lib/unictype/pr_zero_width.h: Likewise.
43412         * lib/unictype/scripts.h: Likewise.
43413         * lib/unictype/scripts_byname.gperf: Likewise.
43414         * lib/unictype/sy_c_ident.h: Likewise.
43415         * lib/unictype/sy_c_whitespace.h: Likewise.
43416         * lib/unictype/sy_java_ident.h: Likewise.
43417         * lib/unictype/sy_java_whitespace.h: Likewise.
43418
43419         * lib/unictype/Makefile: New file.
43420         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43421         glibc.
43422         * lib/unictype/3level.h: New file, copied from glibc.
43423         * lib/unictype/3levelbit.h: New file.
43424
43425 2007-11-11  Bruno Haible  <bruno@clisp.org>
43426
43427         * modules/gperf: New file.
43428         * modules/iconv_open (Depends-on): Add it.
43429         (Makefile.am): Remove the GPERF definition.
43430
43431 2007-11-11  Bruno Haible  <bruno@clisp.org>
43432
43433         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43434         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43435
43436 2007-11-11  Bruno Haible  <bruno@clisp.org>
43437
43438         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43439         (usage): Remove function.
43440
43441 2007-11-11  Bruno Haible  <bruno@clisp.org>
43442
43443         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43444         gl_FUNC_CEILF_LIBS.
43445         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43446         gl_FUNC_CEIL_LIBS.
43447         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43448         gl_FUNC_CEILL_LIBS.
43449         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43450         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43451         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43452
43453 2007-11-11  Bruno Haible  <bruno@clisp.org>
43454
43455         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43456         roundf were declared but do not exist on functions.
43457         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43458         roundl were declared but do not exist on functions.
43459         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43460         HAVE_FLOORL_AND_CEILL, respectively.
43461         Needed for Sun C on Solaris 10.
43462
43463 2007-11-11  Bruno Haible  <bruno@clisp.org>
43464
43465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
43466         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43467         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
43468         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
43469         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
43470         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
43471         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
43472         HAVE_DECL_ROUNDF.
43473         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
43474         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
43475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
43476         of HAVE_DECL_ROUND*.
43477         * modules/math (Makefile.am): Update.
43478
43479 2007-11-10  Bruno Haible  <bruno@clisp.org>
43480
43481         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
43482         ptrdiff_t as m4/intl.m4.
43483
43484 2007-11-10  Jim Meyering  <meyering@redhat.com>
43485
43486         Avoid link failure for the argmatch test.
43487         * tests/test-argmatch.c (usage): Define function to avoid a link
43488         failure: argmatch_die requires a usage function.
43489
43490 2007-11-09  Bruno Haible  <bruno@clisp.org>
43491
43492         * doc/functions/snprintf.texi: Mention BeOS deficiency.
43493         * doc/functions/vsnprintf.texi: Likewise.
43494         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
43495         with a size argument < 2.
43496
43497 2007-11-09  Bruno Haible  <bruno@clisp.org>
43498
43499         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
43500         buffer. Fixes an inefficiency introduced on 2007-11-03.
43501
43502 2007-11-09  Bruno Haible  <bruno@clisp.org>
43503
43504         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
43505         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
43506
43507 2007-11-08  Jim Meyering  <meyering@redhat.com>
43508
43509         Change cache variable name prefix "jm_" to "gl_" everywhere.
43510         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
43511         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
43512         * m4/uptime.m4: s/gl_/jm_/
43513
43514 2007-11-07  Bruno Haible  <bruno@clisp.org>
43515
43516         Update to GNU gettext 0.17.
43517         * m4/intl.m4: Update to GNU gettext 0.17.
43518         * m4/po.m4: Likewise.
43519         * modules/gettext (Files): Remove m4/ulonglong.m4.
43520         (configure.ac): Require gettext infrastructure from version 0.17.
43521
43522 2007-11-06  Bruno Haible  <bruno@clisp.org>
43523
43524         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
43525         symbolic values are not defined in a public header.
43526         * lib/freadable.c (freadable) [QNX]: Likewise.
43527         * lib/freadahead.c (freadahead) [QNX]: Likewise.
43528         * lib/freading.c (freading) [QNX]: Likewise.
43529         * lib/fseterr.c (fseterr) [QNX]: Likewise.
43530         * lib/fwritable.c (fwritable) [QNX]: Likewise.
43531         * lib/fwriting.c (fwriting) [QNX]: Likewise.
43532         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
43533         Reported by Alain Magloire.
43534
43535         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
43536
43537 2007-11-05  Bruno Haible  <bruno@clisp.org>
43538
43539         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
43540         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
43541         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
43542         Reported by Eric Blake.
43543
43544 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43545             Bruno Haible  <bruno@clisp.org>
43546
43547         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
43548         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
43549         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
43550         (malloc): Undefine also before including <stdlib.h>.
43551         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
43552         Needed on OSF/1 4.0.
43553
43554 2007-11-05  Jim Meyering  <meyering@redhat.com>
43555
43556         git-version-gen: sync from coreutils.
43557         * build-aux/git-version-gen: Add comments.
43558         Change the first '-' to '.' in the snapshot version string,
43559         e.g., 6.9-377-08144 -> 6.9.377-08144
43560         Remove first parameter.
43561         Don't declare a version "-dirty" merely because a time
43562         stamp has changed.
43563
43564 2007-11-04  Bruno Haible  <bruno@clisp.org>
43565
43566         * lib/lock.h: Protect all macro definitions containing an 'if'
43567         statement through a "do { ... } while (0)".
43568         * lib/tls.h: Likewise.
43569
43570 2007-11-04  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
43573
43574 2007-11-04  Bruno Haible  <bruno@clisp.org>
43575
43576         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
43577         * modules/fprintf-posix (Depends-on): Add nocrash.
43578         * modules/snprintf-posix (Depends-on): Likewise.
43579         * modules/sprintf-posix (Depends-on): Likewise.
43580         * modules/vasnprintf-posix (Depends-on): Likewise.
43581         * modules/vasprintf-posix (Depends-on): Likewise.
43582         * modules/vfprintf-posix (Depends-on): Likewise.
43583         * modules/vsnprintf-posix (Depends-on): Likewise.
43584         * modules/vsprintf-posix (Depends-on): Likewise.
43585         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43586         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43587         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43588         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43589         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43590         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43591         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43592
43593 2007-11-04  Bruno Haible  <bruno@clisp.org>
43594
43595         * modules/nocrash: New file.
43596         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
43597         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
43598
43599 2007-11-04  Bruno Haible  <bruno@clisp.org>
43600
43601         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
43602         precision handling.
43603         * tests/test-vasprintf-posix.c (test_function): Likewise.
43604         * tests/test-snprintf-posix.h (test_function): Likewise.
43605         * tests/test-sprintf-posix.h (test_function): Likewise.
43606
43607         Fix *printf behaviour for large precisions on mingw and BeOS.
43608         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
43609         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
43610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
43611         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43612         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43613         gl_PRINTF_PRECISION and test its result. Invoke
43614         gl_PREREQ_VASNPRINTF_PRECISION.
43615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43622         * doc/functions/fprintf.texi: Update.
43623         * doc/functions/printf.texi: Update.
43624         * doc/functions/snprintf.texi: Update.
43625         * doc/functions/sprintf.texi: Update.
43626         * doc/functions/vfprintf.texi: Update.
43627         * doc/functions/vprintf.texi: Update.
43628         * doc/functions/vsnprintf.texi: Update.
43629         * doc/functions/vsprintf.texi: Update.
43630
43631 2007-11-04  Bruno Haible  <bruno@clisp.org>
43632
43633         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
43634
43635 2007-11-04  Bruno Haible  <bruno@clisp.org>
43636
43637         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
43638         Reported by Sylvain Beucler <beuc@gnu.org>.
43639
43640 2007-11-03  Bruno Haible  <bruno@clisp.org>
43641
43642         * tests/test-fprintf-posix2.sh: New file.
43643         * tests/test-fprintf-posix2.c: New file.
43644         * modules/fprintf-posix-tests (Files): Add them.
43645         (TESTS): Add test-fprintf-posix2.sh.
43646         (configure.ac): Check for getrlimit and setrlimit.
43647         (check_PROGRAMS): Add test-fprintf-posix2.
43648
43649         * tests/test-printf-posix2.sh: New file.
43650         * tests/test-printf-posix2.c: New file.
43651         * modules/printf-posix-tests (Files): Add them.
43652         (TESTS): Add test-printf-posix2.sh.
43653         (configure.ac): Check for getrlimit and setrlimit.
43654         (check_PROGRAMS): Add test-printf-posix2.
43655
43656         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
43657         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
43658         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
43659         (decode_double): New function, copied from decode_long_double.
43660         (scale10_round_decimal_decoded): New function, extracted from
43661         scale10_round_decimal_long_double.
43662         (scale10_round_decimal_long_double): Use it.
43663         (scale10_round_decimal_double): New function.
43664         (floorlog10): New function.
43665         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
43666         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
43667         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43668         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43669         gl_PRINTF_ENOMEM and test its result. Invoke
43670         gl_PREREQ_VASNPRINTF_ENOMEM.
43671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43673         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43678         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
43679         * modules/snprintf-posix (Depends-on): Likewise.
43680         * modules/sprintf-posix (Depends-on): Likewise.
43681         * modules/vasnprintf-posix (Depends-on): Likewise.
43682         * modules/vasprintf-posix (Depends-on): Likewise.
43683         * modules/vfprintf-posix (Depends-on): Likewise.
43684         * modules/vsnprintf-posix (Depends-on): Likewise.
43685         * modules/vsprintf-posix (Depends-on): Likewise.
43686         * doc/functions/fprintf.texi: Update.
43687         * doc/functions/printf.texi: Update.
43688         * doc/functions/snprintf.texi: Update.
43689         * doc/functions/sprintf.texi: Update.
43690         * doc/functions/vfprintf.texi: Update.
43691         * doc/functions/vprintf.texi: Update.
43692         * doc/functions/vsnprintf.texi: Update.
43693         * doc/functions/vsprintf.texi: Update.
43694
43695 2007-11-03  Bruno Haible  <bruno@clisp.org>
43696
43697         * modules/frexp-nolibm-tests: New file.
43698
43699         * modules/frexp-nolibm: New file.
43700         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
43701
43702 2007-11-03  Bruno Haible  <bruno@clisp.org>
43703
43704         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
43705         value is C99 compliant.
43706         Needed for OSF/1 5.1.
43707
43708 2007-11-03  Bruno Haible  <bruno@clisp.org>
43709
43710         Fix out-of-memory handling of vasnprintf.
43711         * lib/printf-parse.c: Include <errno.h>.
43712         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
43713         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
43714         is already set.
43715
43716 2007-11-02  Eric Blake  <ebb9@byu.net>
43717
43718         Fix tests on cygwin.
43719         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
43720
43721 2007-11-01  Bruno Haible  <bruno@clisp.org>
43722
43723         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
43724         warning.
43725         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
43726         needed for POSIX compatibility.
43727
43728 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43729
43730         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
43731         for compatibility with GNU.
43732
43733 2007-11-01  Bruno Haible  <bruno@clisp.org>
43734
43735         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
43736         (putenv): Renamed from rpl_putenv. Change argument type from
43737         'const char *' to 'char *'.
43738         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
43739         of defining putenv in config.h, just set REPLACE_PUTENV.
43740         * modules/putenv (Depends-on): Add stdlib.
43741         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43742         (Include): Use <stdlib.h>.
43743         * lib/stdlib.in.h (putenv): New declaration.
43744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
43745         REPLACE_PUTENV.
43746         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
43747         REPLACE_PUTENV.
43748         Needed for MacOS X 10.5.0.
43749         Reported by Peter O'Gorman <peter@pogma.com>.
43750
43751 2007-11-01  Jim Meyering  <meyering@redhat.com>
43752
43753         Treat an empty date string exactly like "0".
43754         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
43755         if the remaining date string (to be parsed) is empty, use "0".
43756         Reported by Mischa Molhoek and discussed in this thread:
43757         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
43758
43759 2007-10-31  Bruno Haible  <bruno@clisp.org>
43760
43761         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
43762         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
43763         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
43764         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
43765         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
43766         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
43767
43768 2007-10-31  Bruno Haible  <bruno@clisp.org>
43769
43770         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
43771         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
43772         (AC_TYPE_LONG_LONG_INT): Use it.
43773         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
43774         it as well.
43775         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
43776         to m4/longlong.m4.
43777         * modules/stdint (Files): Remove m4/ulonglong.m4.
43778         * modules/strtoull (Files): Use m4/longlong.m4 instead of
43779         m4/ulonglong.m4.
43780         * modules/strtoumax (Files): Likewise.
43781
43782 2007-10-30  Bruno Haible  <bruno@clisp.org>
43783
43784         * modules/xvasprintf-posix: New file.
43785         Suggested by Eric Blake.
43786
43787 2007-10-30  Bruno Haible  <bruno@clisp.org>
43788
43789         * modules/xprintf-posix-tests: New file.
43790         * tests/test-xprintf-posix.sh: New file.
43791         * tests/test-xprintf-posix.c: New file.
43792         * tests/test-xfprintf-posix.c: New file.
43793
43794         * modules/xprintf-posix: New file.
43795
43796 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43797
43798         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43799         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43800         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43801
43802 2007-10-29  Bruno Haible  <bruno@clisp.org>
43803
43804         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43805         contain the special marker '_cv_'.
43806         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43807         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43808         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43809         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43810         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43811         Reported by Ralf Wildenhues.
43812
43813 2007-10-29  Bruno Haible  <bruno@clisp.org>
43814
43815         * gnulib-tool (func_import): When --lgpl is not specified, set
43816         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43817         GPLv3.
43818         Reported by Simon Josefsson.
43819
43820 2007-10-28  Bruno Haible  <bruno@clisp.org>
43821
43822         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43823         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43824         HAVE_DECL_ISFINITE.
43825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43826         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43827         HAVE_DECL_ISFINITE.
43828
43829 2007-10-28  Bruno Haible  <bruno@clisp.org>
43830
43831         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43832         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43833
43834 2007-10-28  Bruno Haible  <bruno@clisp.org>
43835
43836         Fix link errors with Sun C 5.0 on Solaris 10.
43837         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43838         function is declared but not present in the compiler's libm.
43839         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43840         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43841         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43842         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43843         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43844         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43845         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43847         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43848         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43849         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43850         HAVE_DECL_FLOORL.
43851
43852 2007-10-28  Bruno Haible  <bruno@clisp.org>
43853
43854         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43855         gl_FUNC_FLOORL. Cache the result.
43856         (gl_FUNC_FLOORL): Use it.
43857         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43858         gl_FUNC_CEILL. Cache the result.
43859         (gl_FUNC_CEILL): Use it.
43860
43861         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43862         gl_FUNC_FLOOR. Cache the result.
43863         (gl_FUNC_FLOOR): Use it.
43864         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43865         gl_FUNC_CEIL. Cache the result.
43866         (gl_FUNC_CEIL): Use it.
43867
43868         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43869         gl_FUNC_FLOORF. Cache the result.
43870         (gl_FUNC_FLOORF): Use it.
43871         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43872         gl_FUNC_CEILF. Cache the result.
43873         (gl_FUNC_CEILF): Use it.
43874
43875 2007-10-28  Bruno Haible  <bruno@clisp.org>
43876
43877         * gnulib-tool: Allow specifying the LGPL version number through
43878         --lgpl=2 or --lgpl=3.
43879         (func_usage): Document --lgpl with argument.
43880         Handle --lgpl=... arguments.
43881         (func_import): Recognize also gl_LGPL calls with an argument. When
43882         --lgpl=2 is used and the module's license is just LGPL, report an
43883         error. Set sed_transform_lib_file according to the lgpl variable. In
43884         the generated files, use --lgpl or gl_LGPL invocations with argument,
43885         if necessary.
43886         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43887         an LGPv2+ license.
43888         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43889         gl_LGPL macro.
43890
43891 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43892             Bruno Haible  <bruno@clisp.org>
43893
43894         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43895         (u16_uctomb_aux): Likewise.
43896         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43897         !HAVE_INLINE.
43898         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43899
43900 2007-10-28  Bruno Haible  <bruno@clisp.org>
43901
43902         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43903         Invoke AM_GETTEXT_OPTION if it exists.
43904         * modules/vasprintf: Likewise.
43905         * modules/verror: Likewise.
43906         * modules/xprintf: Likewise.
43907         * modules/xvasprintf: Likewise.
43908
43909 2007-10-27  Ben Pfaff  <blp@gnu.org>
43910
43911         * lib/math.in.h: Define isfinite macro and prototypes for
43912         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43913         implementations.
43914         * m4/math_h.m4: New substitutions for isfinite module.
43915         * lib/isfinite.c: New file.
43916         * m4/isfinite.m4: New file.
43917         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43918         * modules/isfinite: New file.
43919         * modules/isfinite-tests: New file.
43920         * tests/tests-isfinite.c: New file.
43921         * doc/functions/isfinite.texi: Mention isfinite module.
43922         * MODULES.html.sh: Mention new module.
43923
43924 2007-10-27  Ben Pfaff  <blp@gnu.org>
43925
43926         Ralf Wildenhues reported that Tru64 4.0D declares the round
43927         functions but does not have definitions.
43928         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43929         cannot be found in any library, set the output variable to
43930         "missing" instead of "".
43931         * m4/round.m4: Also use our substitute if we cannot find round in
43932         any library, even if it is declared.
43933         * m4/roundf.m4: Likewise for roundf.
43934         * m4/roundl.m4: Likewise for roundl.
43935         * lib/math.in.h: Undefine roundf, round, roundl before defining
43936         their replacements, to allow for hypothetical systems where these
43937         may be defined as macros but not available in libraries.
43938
43939 2007-10-27  Bruno Haible  <bruno@clisp.org>
43940
43941         * doc/gnulib.texi: Invoke @firstparagraphindent.
43942         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43943         changes in gnulib.
43944         (Source changes): New section.
43945
43946 2007-10-26  Bruno Haible  <bruno@clisp.org>
43947
43948         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43949         borrowed from autoconf.
43950
43951 2007-10-26  Bruno Haible  <bruno@clisp.org>
43952
43953         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43954         strerror returned the empty string. Needed on HP-UX 11.00.
43955
43956 2007-10-24  Micah Cowan  <micah@cowan.name>
43957
43958         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43959         * build-aux/bootstrap: Remove support for now-unnecessary option,
43960         --cvs-user, and envvars CVS_USER, CVS_RSH.
43961
43962 2007-10-24  Jim Meyering  <meyering@redhat.com>
43963
43964         Avoid diagnostics from sha1sum when there is no cached checksum.
43965         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43966         if the po.s1 file hasn't been created yet.
43967
43968         * build-aux/bootstrap: Sync from coreutils:
43969         2007-10-24  Jim Meyering  <meyering@redhat.com>
43970         Get gnulib from the git repository, not from an obsolete cvs one.
43971         * build-aux/bootstrap: Suggestion from Micah Cowan.
43972         2007-10-04  Jim Meyering  <jim@meyering.net>
43973         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43974         (update_po_files): Work also when there are no .po files in po/.
43975
43976 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43977
43978         * README: Append ".git" to git and cg examples.
43979         Problem reported by Benoit Sigoure.
43980
43981 2007-10-23  Micah Cowan  <micah@cowan.name>
43982
43983         * users.txt: Add wget.
43984
43985 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43986
43987         Fix linking of some unistdio tests on FreeBSD.
43988         * modules/unistdio/u16-vsnprintf-tests
43989         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43990         * modules/unistdio/u16-vsprintf-tests
43991         (test_u16_vsnprintf1_LDADD): Likewise.
43992         * modules/unistdio/u32-vsnprintf-tests
43993         (test_u32_vsnprintf1_LDADD): Likewise.
43994         * modules/unistdio/u32-vsprintf-tests
43995         (test_u32_vsprintf1_LDADD): Likewise.
43996         * modules/unistdio/u8-vsnprintf-tests
43997         (test_u8_vsnprintf1_LDADD): Likewise.
43998         * modules/unistdio/u8-vsprintf-tests
43999         (test_u8_vsprintf1_LDADD): Likewise.
44000         * modules/unistdio/ulc-vsnprintf-tests
44001         (test_ulc_vsnprintf1_LDADD): Likewise.
44002         * modules/unistdio/ulc-vsprintf-tests
44003         (test_ulc_vsprintf1_LDADD): Likewise.
44004
44005         Fix linking of some uniconv tests on FreeBSD.
44006         * modules/uniconv/u16-conv-from-enc-tests
44007         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44008         * modules/uniconv/u16-conv-to-enc-tests
44009         (test_u16_conv_to_enc_LDADD): Likewise.
44010         * modules/uniconv/u16-strconv-from-enc-tests
44011         (test_u16_strconv_from_enc_LDADD): Likewise.
44012         * modules/uniconv/u16-strconv-to-enc-tests
44013         (test_u16_strconv_to_enc_LDADD): Likewise.
44014         * modules/uniconv/u32-conv-from-enc-tests
44015         (test_u32_conv_from_enc_LDADD): Likewise.
44016         * modules/uniconv/u32-conv-to-enc-tests
44017         (test_u32_conv_to_enc_LDADD): Likewise.
44018         * modules/uniconv/u32-strconv-from-enc-tests
44019         (test_u32_strconv_from_enc_LDADD): Likewise.
44020         * modules/uniconv/u32-strconv-to-enc-tests
44021         (test_u32_strconv_to_enc_LDADD): Likewise.
44022         * modules/uniconv/u8-conv-from-enc-tests
44023         (test_u8_conv_from_enc_LDADD): Likewise.
44024         * modules/uniconv/u8-conv-to-enc-tests
44025         (test_u8_conv_to_enc_LDADD): Likewise.
44026         * modules/uniconv/u8-strconv-from-enc-tests
44027         (test_u8_strconv_from_enc_LDADD): Likewise.
44028         * modules/uniconv/u8-strconv-to-enc-tests
44029         (test_u8_strconv_to_enc_LDADD): Likewise.
44030
44031 2007-10-22  Bruno Haible  <bruno@clisp.org>
44032
44033         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44034         size.
44035
44036 2007-10-22  Eric Blake  <ebb9@byu.net>
44037
44038         Tweak x*printf documentation.
44039         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44040         variable name and comments.
44041         Suggested by Bruno Haible.
44042
44043 2007-10-22  Bruno Haible  <bruno@clisp.org>
44044
44045         * lib/acl.c (copy_acl): Fix file name in comment.
44046
44047 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44048
44049         Fix Tru64 problem with stdbool.h.
44050         * lib/stdbool.in.h (false, true):
44051         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44052         Don't declare as an enum in this situation; it runs afoul of Tru64.
44053         Problem reported by Steven M. Schweda in
44054         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44055
44056 2007-10-22  Eric Blake  <ebb9@byu.net>
44057
44058         Also wrap vf?printf.
44059         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44060         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44061         (xvprintf, xvfprintf): New functions.
44062
44063 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44064
44065         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44066         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44067
44068         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44069         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44070
44071 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44072
44073         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44074         by Bruno Haible.
44075
44076 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44077
44078         * lib/getloadavg.c
44079         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44080         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44081
44082         * tests/test-i-ring.c: Work for C89.
44083
44084 2007-10-22  Bruno Haible  <bruno@clisp.org>
44085
44086         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44087         -1u, in preprocessor expression, so that we don't test for the bug
44088         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44089         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44090
44091 2007-10-22  Eric Blake  <ebb9@byu.net>
44092
44093         * tests/test-yesno.sh: Silence stderr during test.
44094
44095 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44096
44097         * modules/crypto/gc-camellia: New file.
44098
44099         * m4/gc-camellia.m4: New file.
44100
44101         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44102
44103         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44104
44105 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44106
44107         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44108         --help to stdout.  Reported by sms@antinode.org (Steven
44109         M. Schweda).
44110
44111 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44112
44113         * users.txt: Fix link to libksba.
44114
44115 2007-10-21  Ben Pfaff  <blp@gnu.org>
44116
44117         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44118         round.c roundf implementation that depends on floorf and ceilf to
44119         be tested unconditionally.
44120
44121 2007-10-21  Ben Pfaff  <blp@gnu.org>
44122
44123         * m4/check-libm-func.m4: Removed.
44124         * m4/check-math-lib.m4: New file.
44125         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44126         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44127         definition and lack of AC_LIBOBJ([roundf]).
44128         * m4/roundl.m4: Ditto, and similarly for roundl.
44129         * modules/round: Reference new m4 file.
44130         * modules/roundf: Ditto.
44131         * modules/roundl: Ditto.
44132         * tests/test-round2.c (main): Use ROUND instead of round.
44133         Bug report from Bruno Haible.
44134
44135 2007-10-21  Bruno Haible  <bruno@clisp.org>
44136
44137         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44138         context.
44139
44140 2007-10-21  Bruno Haible  <bruno@clisp.org>
44141
44142         * tests/test-wcwidth.c (main): Allow negative result for some control
44143         characters.
44144
44145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44146         Needed on OSF/1 5.1.
44147
44148 2007-10-21  Bruno Haible  <bruno@clisp.org>
44149
44150         * tests/test-floorf1.c: Include isnanf.h.
44151         (main): Use isnanf() instead of isnan().
44152         * tests/test-ceilf1.c: Include isnanf.h.
44153         (main): Use isnanf() instead of isnan().
44154         * tests/test-truncf1.c: Include isnanf.h.
44155         (main): Use isnanf() instead of isnan().
44156         * tests/test-roundf1.c: Include isnanf.h.
44157         (main): Use isnanf() instead of isnan().
44158
44159 2007-10-21  Eric Blake  <ebb9@byu.net>
44160
44161         * users.txt: Update URL for m4.
44162
44163 2007-10-21  Bruno Haible  <bruno@clisp.org>
44164
44165         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44166
44167 2007-10-21  Bruno Haible  <bruno@clisp.org>
44168
44169         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44170         Git's management files if the CVS files are not present.
44171
44172 2007-10-20  Bruno Haible  <bruno@clisp.org>
44173
44174         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44175         gcc-3.4.x.
44176
44177 2007-10-20  Ben Pfaff  <blp@gnu.org>
44178
44179         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44180         implementations.
44181         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44182         * lib/round.c: New file.
44183         * lib/roundf.c: New file.
44184         * lib/roundl.c: New file.
44185         * m4/round.m4: New file.
44186         * m4/roundf.m4: New file.
44187         * m4/roundl.m4: New file.
44188         * m4/check-libm-func-m4: New file.
44189         * modules/math: Replace round, roundf, roundl related @VARS@ in
44190         math.in.h.
44191         * modules/round: New file.
44192         * modules/round-tests: New file.
44193         * modules/roundf: New file.
44194         * modules/roundf-tests: New file.
44195         * modules/roundl: New file.
44196         * modules/roundl-tests: New file.
44197         * tests/test-round1.c: New file.
44198         * tests/test-round2.c: New file.
44199         * tests/test-roundf1.c: New file.
44200         * tests/test-roundf2.c: New file.
44201         * tests/test-roundl.c: New file.
44202         * doc/functions/round.texi: Mention round module.
44203         * doc/functions/roundf.texi: Mention roundf module.
44204         * doc/functions/roundl.texi: Mention roundl module.
44205         * MODULES.html.sh: Mention new modules.
44206         Thanks to Bruno Haible for suggestions.
44207
44208 2007-10-20  Jim Meyering  <meyering@redhat.com>
44209
44210         * lib/xprintf.c: Include <config.h> unconditionally.
44211
44212         Change xprintf's license to GPL.
44213         * modules/xprintf (License): s/LGPL/GPL/, since this module
44214         depends on modules (exit and exitfail) which are GPL.
44215         Suggestion from Bruno Haible.
44216
44217         xprintf fixes.
44218         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44219         Use a clearer diagnostic.
44220         Patch from Bruno Haible.
44221
44222 2007-10-20  Bruno Haible  <bruno@clisp.org>
44223
44224         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44225         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44227
44228 2007-10-20  Bruno Haible  <bruno@clisp.org>
44229
44230         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44231         precision in the comparison result > x - 1 or similar.
44232         * tests/test-ceilf2.c (correct_result_p): Likewise.
44233         * tests/test-truncf2.c (correct_result_p): Likewise.
44234         * tests/test-trunc2.c (correct_result_p): Likewise.
44235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44236
44237 2007-10-20  Bruno Haible  <bruno@clisp.org>
44238
44239         * modules/ceil: New file.
44240         * m4/ceil.m4: New file.
44241         * doc/functions/ceil.texi: Mention the 'ceil' module.
44242
44243 2007-10-20  Bruno Haible  <bruno@clisp.org>
44244
44245         * modules/floor: New file.
44246         * m4/floor.m4: New file.
44247         * doc/functions/floor.texi: Mention the 'floor' module.
44248
44249 2007-10-20  Bruno Haible  <bruno@clisp.org>
44250
44251         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44252         of %a.
44253         * modules/floorf-tests (Depends-on): Likewise.
44254         * modules/truncf-tests (Depends-on): Likewise.
44255         * modules/trunc-tests (Depends-on): Likewise.
44256         Reported by Ben Pfaff.
44257
44258 2007-10-19  Jim Meyering  <meyering@redhat.com>
44259
44260         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44261         Don't bother testing specific errno values.  Just test ferror.
44262
44263         New module: xprintf
44264         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44265
44266 2007-10-19  Bruno Haible  <bruno@clisp.org>
44267
44268         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44269         syntax.
44270         * modules/javaexec (Makefile.am): Likewise.
44271         * modules/relocatable-prog (Makefile.am): Likewise.
44272         Suggested by Jim Meyering.
44273
44274 2007-10-18  Bruno Haible  <bruno@clisp.org>
44275
44276         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44277         Reported by Jim Meyering.
44278
44279 2007-10-18  Eric Blake  <ebb9@byu.net>
44280
44281         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44282
44283 2007-10-18  Bruno Haible  <bruno@clisp.org>
44284
44285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44286         the format string into writable memory. Needed in Fortify conditions.
44287
44288 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44289             Bruno Haible  <bruno@clisp.org>
44290
44291         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44292         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44293         * modules/trim (Depends-on): Add mbchar.
44294         (configure.ac): Add gl_FUNC_MBRTOWC.
44295         (Makefile.am): Augment lib_SOURCES.
44296
44297 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44298
44299         Modify glob.c to use fstatat and dirfd, to simplify it.
44300         Suggested by Eric Blake.
44301         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44302         Don't include <stdbool.h>; not used.
44303         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44304         (link_exists_p): Simplify implementation, since we can now assume
44305         dirfd and fstatat.
44306         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44307
44308 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44309
44310         * gnulib-tool (func_get_dependencies): Fix sed script to
44311         match only tests.
44312
44313 2007-10-17  Bruno Haible  <bruno@clisp.org>
44314
44315         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44316         allow locale names without encoding suffix.
44317         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44318         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44319
44320 2007-10-16  Bruno Haible  <bruno@clisp.org>
44321
44322         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44323         * lib/getgroups.c (getgroups): Likewise.
44324         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44325
44326 2007-10-16  Bruno Haible  <bruno@clisp.org>
44327
44328         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44329         * modules/malloc-posix (License): Likewise.
44330         * modules/realloc-posix (License): Likewise.
44331         * modules/calloc-posix (License): Likewise.
44332         * modules/intprops (License): Change from GPL to LGPL, with
44333         Paul Eggert's approval.
44334
44335 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44336
44337         Merge glibc changes into lib/glob.c.
44338
44339         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44340         2007-10-15 04:59:03 UTC.  Here are the changes:
44341
44342         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44343
44344         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44345
44346         * lib/glob.c: Add some branch prediction throughout.
44347
44348         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44349
44350         [BZ #5103]
44351         * lib/glob.c (glob): Recognize patterns starting \/.
44352
44353         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44354
44355         [BZ #3996]
44356         * lib/glob.c (attribute_hidden): Define if not defined.
44357         (glob): Unescape dirname, filename or username when needed and not
44358         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44359         is NULL.  Handle unescaped [ in pattern without closing ].
44360         Don't pass GLOB_CHECK down to recursive glob for directories.
44361         (__glob_pattern_type): New function.
44362         (__glob_pattern_p): Implement using __glob_pattern_type.
44363         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44364         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44365         Remove unreachable code.
44366
44367         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44368
44369         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44370         explain why there are no leaks.
44371
44372         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44373
44374         [BZ #3253]
44375         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44376         time, rather allocate increasingly bigger arrays of pointers, if
44377         possible with alloca, if too large with malloc.
44378
44379 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44380
44381         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44382         Problem reported by H.Merijn Brand in
44383         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44384         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44385         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44386
44387 2007-10-15  Bruno Haible  <bruno@clisp.org>
44388
44389         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44390         with explicit rpl_ prefix.
44391         * lib/fopen.c (fopen): Likewise.
44392         * lib/freopen.c (freopen): Likewise.
44393         * lib/iconv.c (iconv): Likewise.
44394         * lib/iconv_close.c (iconv_close): Likewise.
44395
44396 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44397
44398         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44399
44400 2007-10-15  Bruno Haible  <bruno@clisp.org>
44401
44402         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44403         <stddef.h> instead of <stdlib.h> since we only need NULL.
44404         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44405
44406 2007-10-15  Bruno Haible  <bruno@clisp.org>
44407
44408         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44409         Replace paragraph talking about LIBOBJS.
44410         Reported by Colin Watson <cjwatson@debian.org>.
44411
44412 2007-10-15  Bruno Haible  <bruno@clisp.org>
44413
44414         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44415         <stdlib.h> before using NULL.
44416
44417 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44418
44419         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44420         Reported by Albert Chin <china@thewrittenword.com>.
44421
44422 2007-10-14  Bruno Haible  <bruno@clisp.org>
44423
44424         * modules/iconv_open-utf-tests: New file.
44425         * tests/test-iconv-utf.c: New file.
44426
44427         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44428         * modules/iconv_open-utf: New file.
44429         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44430         (iconv, iconv_close): New declarations.
44431         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44432         be defined.
44433         (iconv_open): Add special handling of conversion between UTF-8 and
44434         UTF-{16,32}{BE,LE}.
44435         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44436         * lib/iconv_close.c: New file.
44437         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44438         gl_FUNC_ICONV_OPEN.
44439         (gl_FUNC_ICONV_OPEN): Use it.
44440         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44441         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44442         and REPLACE_ICONV_UTF.
44443         * modules/iconv_open (Depends-on): Add c-strcase.
44444         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44445         ICONV_CONST.
44446         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44447
44448 2007-10-13  Albert Chin  <china@thewrittenword.com>
44449             Bruno Haible  <bruno@clisp.org>
44450
44451         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44452         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44453
44454 2007-10-13  Bruno Haible  <bruno@clisp.org>
44455
44456         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44457         defined, use the ISO C99 inline semantics.
44458         * lib/argp.h (ARGP_EI): Likewise.
44459
44460 2007-10-13  Bruno Haible  <bruno@clisp.org>
44461
44462         Handle 'inline' change in gcc 4.3.0.
44463         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
44464         argp_fmtstream_write, argp_fmtstream_set_lmargin,
44465         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
44466         argp_fmtstream_point): Disable 'extern' declaration if the function
44467         definition is going to be provided inline.
44468         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
44469         semantics, not the ISO C99 inline semantics.
44470         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
44471         'extern' declaration if the function definition is going to be provided
44472         inline.
44473         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
44474         the GNU C inline semantics, not the ISO C99 inline semantics. With
44475         GCC 4.2, avoid a warning.
44476
44477 2007-10-13  Bruno Haible  <bruno@clisp.org>
44478
44479         * lib/freading.h (freading): Enable the use of __freading for
44480         glibc >= 2.7.
44481         * lib/freading.c (freading): Likewise.
44482
44483 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44484
44485         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
44486         "warning: C99 inline functions are not supported; using GNU89".
44487
44488 2007-10-12  Bruno Haible  <bruno@clisp.org>
44489
44490         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
44491         of 2.
44492         * tests/test-ceilf2.c: New file.
44493         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
44494
44495         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
44496         * modules/ceilf-tests: Update.
44497
44498 2007-10-12  Bruno Haible  <bruno@clisp.org>
44499
44500         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
44501         of 2.
44502         * tests/test-floorf2.c: New file.
44503         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
44504
44505         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
44506         * modules/floorf-tests: Update.
44507
44508 2007-10-12  Bruno Haible  <bruno@clisp.org>
44509
44510         * tests/test-trunc2.c: New file.
44511         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
44512
44513         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
44514         * modules/trunc-tests: Update.
44515
44516 2007-10-12  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
44519         of 2.
44520         * tests/test-truncf2.c: New file.
44521         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
44522
44523         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
44524         * modules/truncf-tests: Update.
44525
44526 2007-10-11  Eric Blake  <ebb9@byu.net>
44527
44528         Don't claim strerror is broken on Interix.
44529         * doc/functions/strerror.texi (strerror): Known broken systems are
44530         now Solaris 8, and not Interix.
44531         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
44532         Interix on cross-compile.
44533         Reported by Martin Koeppe in
44534         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
44535
44536 2007-10-11  Bruno Haible  <bruno@clisp.org>
44537
44538         * modules/i-ring-tests: New file.
44539         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
44540         instead of assert.
44541
44542 2007-10-11  Bruno Haible  <bruno@clisp.org>
44543
44544         * modules/filenamecat-tests: New file.
44545         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
44546         * lib/filenamecat.c: Remove test code.
44547
44548 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44549
44550         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
44551
44552         * lib/strerror.c: Include <string.h> always, to test interface,
44553         and to remove the need for the dummy.
44554         Include intprops.h to compute width instead of doing it ourselves
44555         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
44556         (strerror): Define it to return NULL if there's no system strerror.
44557         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
44558         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
44559         ancient pre-strerror Unix systems well any more.  Saying "unknown
44560         system error" is enough.
44561         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
44562         simpler strerror.c implementation.
44563         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
44564         Simplify the tests to reflect the simpler strerror implementation.
44565         * modules/strerror (Depends-on): Add intprops.
44566
44567 2007-10-09  Eric Blake  <ebb9@byu.net>
44568
44569         Silence test-fpending.
44570         * modules/fpending-tests (Files): Add wrapper script.
44571         * tests/test-fpending.sh: New file.
44572
44573 2007-10-09  Bruno Haible  <bruno@clisp.org>
44574
44575         * MODULES.html.sh (func_module): Don't create a hyperlink for
44576         function names like 'printf_frexp'.
44577         (Misc): Add crc, memxor.
44578         (Characteristics of floating types): New section.
44579         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
44580         isnanf-nolibm, signbit, trunc, truncf, truncl.
44581         (Enhancements for ISO C 99 functions): New subsection Input/output.
44582         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
44583         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
44584         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
44585         (Compatibility checks for POSIX:2001 functions): Add clock-time.
44586         (Enhancements for POSIX:2001 functions): Add chdir-long.
44587         (File system functions): Add areadlink, chdir-safer, read-file.
44588         Remove cycle-check.
44589         (File system as inode set): New section.
44590         (Date and time): Add gethrxtime.
44591         (Multithreading): Add openmp.
44592         (Internationalization functions): Add localename.
44593         (Unicode string functions): Add unistr/u*-mbsnlen.
44594         (Support for maintaining and releasing projects): Add git-version-gen.
44595         (Lone files): Remove directories.
44596
44597 2007-10-08  Ben Pfaff  <blp@gnu.org>
44598
44599         * lib/xmalloca.h: Fix typo in comment.
44600
44601 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44602
44603         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
44604         when avoiding problems with integer overflow.  Use a portable test
44605         instead.
44606
44607 2007-10-08  Simon Josefsson  <simon@josefsson.org>
44608
44609         * modules/dummy (License): Change to LGPLv2+.
44610         * modules/float (License): Likewise
44611         * modules/realloc (License): Likewise
44612         * modules/stdlib (License): Likewise
44613
44614 2007-10-07  Bruno Haible  <bruno@clisp.org>
44615
44616         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
44617         * floor.c (TWO_MANT_DIG): Likewise.
44618         * ceil.c (TWO_MANT_DIG): Likewise.
44619         Reported by Ben Pfaff.
44620
44621 2007-10-07  Bruno Haible  <bruno@clisp.org>
44622
44623         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
44624         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
44625         * lib/frexp.c (FUNC): Likewise.
44626         * lib/printf-frexp.h (printf_frexp): Likewise.
44627         * lib/printf-frexpl.h (printf_frexpl): Likewise.
44628         * lib/printf-frexp.c (FUNC): Likewise.
44629         Suggested by Jim Meyering.
44630
44631 2007-10-07  Jim Meyering  <meyering@redhat.com>
44632
44633         Make xnanosleep's integer overflow test more robust.
44634         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
44635         so that gcc-4.3.0 doesn't optimize away this test for overflow.
44636
44637 2007-10-07  Bruno Haible  <bruno@clisp.org>
44638
44639         * NEWS: Mention the license change.
44640
44641         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
44642         abbreviations in the modules files.
44643
44644         Change copyright notice from GPLv2+ to GPLv3+.
44645         * README: Change copyright notice.
44646         * MODULES.html.sh: Likewise.
44647         * build-aux/bootstrap.conf: Likewise.
44648         * build-aux/config.libpath: Likewise.
44649         * build-aux/csharpcomp.sh.in: Likewise.
44650         * build-aux/csharpexec.sh.in: Likewise.
44651         * build-aux/install-reloc: Likewise.
44652         * build-aux/javacomp.sh.in: Likewise.
44653         * build-aux/javaexec.sh.in: Likewise.
44654         * build-aux/ldd.sh.in: Likewise.
44655         * build-aux/reloc-ldflags: Likewise.
44656         * build-aux/relocatable.sh.in: Likewise.
44657         * build-aux/x-to-1.in: Likewise.
44658         * check-module: Likewise.
44659         * config/srclistvars.sh: Likewise.
44660         * gnulib-tool: Likewise.
44661         * lib/acl-internal.h: Likewise.
44662         * lib/acl.c: Likewise.
44663         * lib/acl.h: Likewise.
44664         * lib/acl_entries.c: Likewise.
44665         * lib/areadlink-with-size.c: Likewise.
44666         * lib/areadlink.c: Likewise.
44667         * lib/areadlink.h: Likewise.
44668         * lib/argmatch.c: Likewise.
44669         * lib/argmatch.h: Likewise.
44670         * lib/argp-ba.c: Likewise.
44671         * lib/argp-eexst.c: Likewise.
44672         * lib/argp-fmtstream.c: Likewise.
44673         * lib/argp-fmtstream.h: Likewise.
44674         * lib/argp-fs-xinl.c: Likewise.
44675         * lib/argp-help.c: Likewise.
44676         * lib/argp-namefrob.h: Likewise.
44677         * lib/argp-parse.c: Likewise.
44678         * lib/argp-pin.c: Likewise.
44679         * lib/argp-pv.c: Likewise.
44680         * lib/argp-pvh.c: Likewise.
44681         * lib/argp-xinl.c: Likewise.
44682         * lib/argp.h: Likewise.
44683         * lib/at-func.c: Likewise.
44684         * lib/atanl.c: Likewise.
44685         * lib/backupfile.c: Likewise.
44686         * lib/backupfile.h: Likewise.
44687         * lib/basename.c: Likewise.
44688         * lib/binary-io.h: Likewise.
44689         * lib/byteswap.in.h: Likewise.
44690         * lib/c-stack.c: Likewise.
44691         * lib/c-stack.h: Likewise.
44692         * lib/c-strcasestr.c: Likewise.
44693         * lib/c-strcasestr.h: Likewise.
44694         * lib/c-strstr.c: Likewise.
44695         * lib/c-strstr.h: Likewise.
44696         * lib/c-strtod.c: Likewise.
44697         * lib/calloc.c: Likewise.
44698         * lib/canon-host.c: Likewise.
44699         * lib/canon-host.h: Likewise.
44700         * lib/canonicalize-lgpl.c: Likewise.
44701         * lib/canonicalize.c: Likewise.
44702         * lib/canonicalize.h: Likewise.
44703         * lib/ceil.c: Likewise.
44704         * lib/ceilf.c: Likewise.
44705         * lib/ceill.c: Likewise.
44706         * lib/chdir-long.c: Likewise.
44707         * lib/chdir-long.h: Likewise.
44708         * lib/chdir-safer.c: Likewise.
44709         * lib/chdir-safer.h: Likewise.
44710         * lib/chown.c: Likewise.
44711         * lib/classpath.c: Likewise.
44712         * lib/classpath.h: Likewise.
44713         * lib/clean-temp.c: Likewise.
44714         * lib/clean-temp.h: Likewise.
44715         * lib/cloexec.c: Likewise.
44716         * lib/close-stream.c: Likewise.
44717         * lib/closein.c: Likewise.
44718         * lib/closein.h: Likewise.
44719         * lib/closeout.c: Likewise.
44720         * lib/closeout.h: Likewise.
44721         * lib/concat-filename.c: Likewise.
44722         * lib/copy-file.c: Likewise.
44723         * lib/copy-file.h: Likewise.
44724         * lib/count-one-bits.h: Likewise.
44725         * lib/crc.c: Likewise.
44726         * lib/crc.h: Likewise.
44727         * lib/creat-safer.c: Likewise.
44728         * lib/csharpcomp.c: Likewise.
44729         * lib/csharpcomp.h: Likewise.
44730         * lib/csharpexec.c: Likewise.
44731         * lib/csharpexec.h: Likewise.
44732         * lib/cycle-check.c: Likewise.
44733         * lib/cycle-check.h: Likewise.
44734         * lib/diacrit.c: Likewise.
44735         * lib/diacrit.h: Likewise.
44736         * lib/diffseq.h: Likewise.
44737         * lib/dirchownmod.c: Likewise.
44738         * lib/dirent.in.h: Likewise.
44739         * lib/dirfd.c: Likewise.
44740         * lib/dirfd.h: Likewise.
44741         * lib/dirname.c: Likewise.
44742         * lib/dirname.h: Likewise.
44743         * lib/dummy.c: Likewise.
44744         * lib/dup-safer.c: Likewise.
44745         * lib/dup2.c: Likewise.
44746         * lib/eealloc.h: Likewise.
44747         * lib/error.c: Likewise.
44748         * lib/error.h: Likewise.
44749         * lib/euidaccess.c: Likewise.
44750         * lib/exclude.c: Likewise.
44751         * lib/exclude.h: Likewise.
44752         * lib/execute.c: Likewise.
44753         * lib/execute.h: Likewise.
44754         * lib/exitfail.c: Likewise.
44755         * lib/exitfail.h: Likewise.
44756         * lib/expl.c: Likewise.
44757         * lib/fatal-signal.c: Likewise.
44758         * lib/fatal-signal.h: Likewise.
44759         * lib/fbufmode.c: Likewise.
44760         * lib/fbufmode.h: Likewise.
44761         * lib/fchdir.c: Likewise.
44762         * lib/fchmodat.c: Likewise.
44763         * lib/fchownat.c: Likewise.
44764         * lib/fcntl--.h: Likewise.
44765         * lib/fcntl-safer.h: Likewise.
44766         * lib/fcntl.in.h: Likewise.
44767         * lib/fd-safer.c: Likewise.
44768         * lib/fflush.c: Likewise.
44769         * lib/file-has-acl.c: Likewise.
44770         * lib/file-set.c: Likewise.
44771         * lib/file-type.c: Likewise.
44772         * lib/file-type.h: Likewise.
44773         * lib/fileblocks.c: Likewise.
44774         * lib/filemode.c: Likewise.
44775         * lib/filemode.h: Likewise.
44776         * lib/filename.h: Likewise.
44777         * lib/filenamecat.c: Likewise.
44778         * lib/filenamecat.h: Likewise.
44779         * lib/findprog.c: Likewise.
44780         * lib/findprog.h: Likewise.
44781         * lib/float.in.h: Likewise.
44782         * lib/floor.c: Likewise.
44783         * lib/floorf.c: Likewise.
44784         * lib/floorl.c: Likewise.
44785         * lib/fopen-safer.c: Likewise.
44786         * lib/fopen.c: Likewise.
44787         * lib/fpending.c: Likewise.
44788         * lib/fpending.h: Likewise.
44789         * lib/fprintf.c: Likewise.
44790         * lib/fprintftime.h: Likewise.
44791         * lib/fpucw.h: Likewise.
44792         * lib/fpurge.c: Likewise.
44793         * lib/fpurge.h: Likewise.
44794         * lib/freadable.c: Likewise.
44795         * lib/freadable.h: Likewise.
44796         * lib/freadahead.c: Likewise.
44797         * lib/freadahead.h: Likewise.
44798         * lib/freading.c: Likewise.
44799         * lib/freading.h: Likewise.
44800         * lib/free.c: Likewise.
44801         * lib/freopen.c: Likewise.
44802         * lib/frexp.c: Likewise.
44803         * lib/frexpl.c: Likewise.
44804         * lib/fseek.c: Likewise.
44805         * lib/fseterr.c: Likewise.
44806         * lib/fseterr.h: Likewise.
44807         * lib/fstatat.c: Likewise.
44808         * lib/fstrcmp.c: Likewise.
44809         * lib/fstrcmp.h: Likewise.
44810         * lib/fsusage.c: Likewise.
44811         * lib/fsusage.h: Likewise.
44812         * lib/ftell.c: Likewise.
44813         * lib/ftello.c: Likewise.
44814         * lib/fts-cycle.c: Likewise.
44815         * lib/fts.c: Likewise.
44816         * lib/fts_.h: Likewise.
44817         * lib/full-read.c: Likewise.
44818         * lib/full-read.h: Likewise.
44819         * lib/full-write.c: Likewise.
44820         * lib/full-write.h: Likewise.
44821         * lib/fwritable.c: Likewise.
44822         * lib/fwritable.h: Likewise.
44823         * lib/fwriteerror.c: Likewise.
44824         * lib/fwriteerror.h: Likewise.
44825         * lib/fwriting.c: Likewise.
44826         * lib/fwriting.h: Likewise.
44827         * lib/gcd.c: Likewise.
44828         * lib/gcd.h: Likewise.
44829         * lib/getcwd.c: Likewise.
44830         * lib/getdate.h: Likewise.
44831         * lib/getdate.y: Likewise.
44832         * lib/getdomainname.c: Likewise.
44833         * lib/getdomainname.h: Likewise.
44834         * lib/getgroups.c: Likewise.
44835         * lib/gethostname.c: Likewise.
44836         * lib/gethrxtime.c: Likewise.
44837         * lib/gethrxtime.h: Likewise.
44838         * lib/getloadavg.c: Likewise.
44839         * lib/getndelim2.c: Likewise.
44840         * lib/getndelim2.h: Likewise.
44841         * lib/getnline.c: Likewise.
44842         * lib/getnline.h: Likewise.
44843         * lib/getopt.c: Likewise.
44844         * lib/getopt.in.h: Likewise.
44845         * lib/getopt1.c: Likewise.
44846         * lib/getopt_int.h: Likewise.
44847         * lib/getpagesize.h: Likewise.
44848         * lib/getsubopt.c: Likewise.
44849         * lib/gettime.c: Likewise.
44850         * lib/getugroups.c: Likewise.
44851         * lib/getugroups.h: Likewise.
44852         * lib/getusershell.c: Likewise.
44853         * lib/gl_anyavltree_list1.h: Likewise.
44854         * lib/gl_anyavltree_list2.h: Likewise.
44855         * lib/gl_anyhash_list1.h: Likewise.
44856         * lib/gl_anyhash_list2.h: Likewise.
44857         * lib/gl_anylinked_list1.h: Likewise.
44858         * lib/gl_anylinked_list2.h: Likewise.
44859         * lib/gl_anyrbtree_list1.h: Likewise.
44860         * lib/gl_anyrbtree_list2.h: Likewise.
44861         * lib/gl_anytree_list1.h: Likewise.
44862         * lib/gl_anytree_list2.h: Likewise.
44863         * lib/gl_anytree_oset.h: Likewise.
44864         * lib/gl_anytreehash_list1.h: Likewise.
44865         * lib/gl_anytreehash_list2.h: Likewise.
44866         * lib/gl_array_list.c: Likewise.
44867         * lib/gl_array_list.h: Likewise.
44868         * lib/gl_array_oset.c: Likewise.
44869         * lib/gl_array_oset.h: Likewise.
44870         * lib/gl_avltree_list.c: Likewise.
44871         * lib/gl_avltree_list.h: Likewise.
44872         * lib/gl_avltree_oset.c: Likewise.
44873         * lib/gl_avltree_oset.h: Likewise.
44874         * lib/gl_avltreehash_list.c: Likewise.
44875         * lib/gl_avltreehash_list.h: Likewise.
44876         * lib/gl_carray_list.c: Likewise.
44877         * lib/gl_carray_list.h: Likewise.
44878         * lib/gl_linked_list.c: Likewise.
44879         * lib/gl_linked_list.h: Likewise.
44880         * lib/gl_linkedhash_list.c: Likewise.
44881         * lib/gl_linkedhash_list.h: Likewise.
44882         * lib/gl_list.c: Likewise.
44883         * lib/gl_list.h: Likewise.
44884         * lib/gl_oset.c: Likewise.
44885         * lib/gl_oset.h: Likewise.
44886         * lib/gl_rbtree_list.c: Likewise.
44887         * lib/gl_rbtree_list.h: Likewise.
44888         * lib/gl_rbtree_oset.c: Likewise.
44889         * lib/gl_rbtree_oset.h: Likewise.
44890         * lib/gl_rbtreehash_list.c: Likewise.
44891         * lib/gl_rbtreehash_list.h: Likewise.
44892         * lib/gl_sublist.c: Likewise.
44893         * lib/gl_sublist.h: Likewise.
44894         * lib/group-member.c: Likewise.
44895         * lib/group-member.h: Likewise.
44896         * lib/hard-locale.c: Likewise.
44897         * lib/hard-locale.h: Likewise.
44898         * lib/hash-pjw.c: Likewise.
44899         * lib/hash-pjw.h: Likewise.
44900         * lib/hash-triple.c: Likewise.
44901         * lib/hash.c: Likewise.
44902         * lib/hash.h: Likewise.
44903         * lib/human.c: Likewise.
44904         * lib/human.h: Likewise.
44905         * lib/i-ring.c: Likewise.
44906         * lib/i-ring.h: Likewise.
44907         * lib/idcache.c: Likewise.
44908         * lib/imaxabs.c: Likewise.
44909         * lib/imaxdiv.c: Likewise.
44910         * lib/inet_pton.c: Likewise.
44911         * lib/inet_pton.h: Likewise.
44912         * lib/intprops.h: Likewise.
44913         * lib/inttostr.c: Likewise.
44914         * lib/inttostr.h: Likewise.
44915         * lib/inttypes.in.h: Likewise.
44916         * lib/isapipe.c: Likewise.
44917         * lib/isdir.c: Likewise.
44918         * lib/isnan.c: Likewise.
44919         * lib/isnan.h: Likewise.
44920         * lib/isnanf.c: Likewise.
44921         * lib/isnanf.h: Likewise.
44922         * lib/isnanl-nolibm.h: Likewise.
44923         * lib/isnanl.c: Likewise.
44924         * lib/isnanl.h: Likewise.
44925         * lib/javacomp.c: Likewise.
44926         * lib/javacomp.h: Likewise.
44927         * lib/javaexec.c: Likewise.
44928         * lib/javaexec.h: Likewise.
44929         * lib/javaversion.c: Likewise.
44930         * lib/javaversion.h: Likewise.
44931         * lib/javaversion.java: Likewise.
44932         * lib/lbrkprop.h: Likewise.
44933         * lib/lchmod.h: Likewise.
44934         * lib/lchown.c: Likewise.
44935         * lib/ldexpl.c: Likewise.
44936         * lib/linebreak.c: Likewise.
44937         * lib/linebreak.h: Likewise.
44938         * lib/linebuffer.c: Likewise.
44939         * lib/linebuffer.h: Likewise.
44940         * lib/locale.in.h: Likewise.
44941         * lib/logl.c: Likewise.
44942         * lib/long-options.c: Likewise.
44943         * lib/long-options.h: Likewise.
44944         * lib/lstat.c: Likewise.
44945         * lib/lstat.h: Likewise.
44946         * lib/math.in.h: Likewise.
44947         * lib/mbchar.c: Likewise.
44948         * lib/mbchar.h: Likewise.
44949         * lib/mbfile.h: Likewise.
44950         * lib/mbiter.h: Likewise.
44951         * lib/mbscasecmp.c: Likewise.
44952         * lib/mbscasestr.c: Likewise.
44953         * lib/mbschr.c: Likewise.
44954         * lib/mbscspn.c: Likewise.
44955         * lib/mbslen.c: Likewise.
44956         * lib/mbsncasecmp.c: Likewise.
44957         * lib/mbsnlen.c: Likewise.
44958         * lib/mbspbrk.c: Likewise.
44959         * lib/mbspcasecmp.c: Likewise.
44960         * lib/mbsrchr.c: Likewise.
44961         * lib/mbssep.c: Likewise.
44962         * lib/mbsspn.c: Likewise.
44963         * lib/mbsstr.c: Likewise.
44964         * lib/mbstok_r.c: Likewise.
44965         * lib/mbswidth.c: Likewise.
44966         * lib/mbswidth.h: Likewise.
44967         * lib/mbuiter.h: Likewise.
44968         * lib/memcasecmp.c: Likewise.
44969         * lib/memcasecmp.h: Likewise.
44970         * lib/memchr.c: Likewise.
44971         * lib/memcmp.c: Likewise.
44972         * lib/memcoll.c: Likewise.
44973         * lib/memcoll.h: Likewise.
44974         * lib/memcpy.c: Likewise.
44975         * lib/memrchr.c: Likewise.
44976         * lib/mkancesdirs.c: Likewise.
44977         * lib/mkdir-p.c: Likewise.
44978         * lib/mkdir-p.h: Likewise.
44979         * lib/mkdir.c: Likewise.
44980         * lib/mkdirat.c: Likewise.
44981         * lib/mkdtemp.c: Likewise.
44982         * lib/mkstemp-safer.c: Likewise.
44983         * lib/mkstemp.c: Likewise.
44984         * lib/modechange.c: Likewise.
44985         * lib/modechange.h: Likewise.
44986         * lib/mountlist.c: Likewise.
44987         * lib/mountlist.h: Likewise.
44988         * lib/mpsort.c: Likewise.
44989         * lib/nanosleep.c: Likewise.
44990         * lib/obstack.c: Likewise.
44991         * lib/obstack.h: Likewise.
44992         * lib/open-safer.c: Likewise.
44993         * lib/open.c: Likewise.
44994         * lib/openat-die.c: Likewise.
44995         * lib/openat-priv.h: Likewise.
44996         * lib/openat-proc.c: Likewise.
44997         * lib/openat.c: Likewise.
44998         * lib/openat.h: Likewise.
44999         * lib/pagealign_alloc.c: Likewise.
45000         * lib/pagealign_alloc.h: Likewise.
45001         * lib/physmem.c: Likewise.
45002         * lib/physmem.h: Likewise.
45003         * lib/pipe-safer.c: Likewise.
45004         * lib/pipe.c: Likewise.
45005         * lib/pipe.h: Likewise.
45006         * lib/posixtm.c: Likewise.
45007         * lib/posixtm.h: Likewise.
45008         * lib/posixver.c: Likewise.
45009         * lib/printf-frexp.c: Likewise.
45010         * lib/printf-frexp.h: Likewise.
45011         * lib/printf-frexpl.c: Likewise.
45012         * lib/printf-frexpl.h: Likewise.
45013         * lib/printf.c: Likewise.
45014         * lib/progname.c: Likewise.
45015         * lib/progname.h: Likewise.
45016         * lib/progreloc.c: Likewise.
45017         * lib/putenv.c: Likewise.
45018         * lib/quote.c: Likewise.
45019         * lib/quote.h: Likewise.
45020         * lib/quotearg.c: Likewise.
45021         * lib/quotearg.h: Likewise.
45022         * lib/raise.c: Likewise.
45023         * lib/readline.c: Likewise.
45024         * lib/readline.h: Likewise.
45025         * lib/readlink.c: Likewise.
45026         * lib/readtokens.c: Likewise.
45027         * lib/readtokens.h: Likewise.
45028         * lib/readtokens0.c: Likewise.
45029         * lib/readtokens0.h: Likewise.
45030         * lib/readutmp.c: Likewise.
45031         * lib/readutmp.h: Likewise.
45032         * lib/realloc.c: Likewise.
45033         * lib/relocwrapper.c: Likewise.
45034         * lib/rename-dest-slash.c: Likewise.
45035         * lib/rename.c: Likewise.
45036         * lib/rmdir.c: Likewise.
45037         * lib/rpmatch.c: Likewise.
45038         * lib/safe-read.c: Likewise.
45039         * lib/safe-read.h: Likewise.
45040         * lib/safe-write.c: Likewise.
45041         * lib/safe-write.h: Likewise.
45042         * lib/same-inode.h: Likewise.
45043         * lib/same.c: Likewise.
45044         * lib/same.h: Likewise.
45045         * lib/save-cwd.c: Likewise.
45046         * lib/save-cwd.h: Likewise.
45047         * lib/savedir.c: Likewise.
45048         * lib/savedir.h: Likewise.
45049         * lib/savewd.c: Likewise.
45050         * lib/savewd.h: Likewise.
45051         * lib/search.in.h: Likewise.
45052         * lib/setenv.c: Likewise.
45053         * lib/setenv.h: Likewise.
45054         * lib/settime.c: Likewise.
45055         * lib/sh-quote.c: Likewise.
45056         * lib/sh-quote.h: Likewise.
45057         * lib/sig2str.c: Likewise.
45058         * lib/sig2str.h: Likewise.
45059         * lib/signal.in.h: Likewise.
45060         * lib/signbitd.c: Likewise.
45061         * lib/signbitf.c: Likewise.
45062         * lib/signbitl.c: Likewise.
45063         * lib/sigprocmask.c: Likewise.
45064         * lib/sincosl.c: Likewise.
45065         * lib/sleep.c: Likewise.
45066         * lib/sprintf.c: Likewise.
45067         * lib/sqrtl.c: Likewise.
45068         * lib/stat-time.h: Likewise.
45069         * lib/stdio--.h: Likewise.
45070         * lib/stdio-safer.h: Likewise.
45071         * lib/stdlib--.h: Likewise.
45072         * lib/stdlib-safer.h: Likewise.
45073         * lib/stdlib.in.h: Likewise.
45074         * lib/stpcpy.c: Likewise.
45075         * lib/stpncpy.c: Likewise.
45076         * lib/strchrnul.c: Likewise.
45077         * lib/strcspn.c: Likewise.
45078         * lib/strerror.c: Likewise.
45079         * lib/strftime.c: Likewise.
45080         * lib/strftime.h: Likewise.
45081         * lib/striconveh.c: Likewise.
45082         * lib/striconveh.h: Likewise.
45083         * lib/striconveha.c: Likewise.
45084         * lib/striconveha.h: Likewise.
45085         * lib/stripslash.c: Likewise.
45086         * lib/strnlen1.c: Likewise.
45087         * lib/strnlen1.h: Likewise.
45088         * lib/strtod.c: Likewise.
45089         * lib/strtoimax.c: Likewise.
45090         * lib/strtok_r.c: Likewise.
45091         * lib/strtol.c: Likewise.
45092         * lib/strtoll.c: Likewise.
45093         * lib/strtoul.c: Likewise.
45094         * lib/strtoull.c: Likewise.
45095         * lib/sysexits.in.h: Likewise.
45096         * lib/tempname.c: Likewise.
45097         * lib/tempname.h: Likewise.
45098         * lib/timespec.h: Likewise.
45099         * lib/tls.c: Likewise.
45100         * lib/tls.h: Likewise.
45101         * lib/tmpdir.c: Likewise.
45102         * lib/tmpdir.h: Likewise.
45103         * lib/tmpfile-safer.c: Likewise.
45104         * lib/tmpfile.c: Likewise.
45105         * lib/trigl.c: Likewise.
45106         * lib/trigl.h: Likewise.
45107         * lib/trim.c: Likewise.
45108         * lib/trim.h: Likewise.
45109         * lib/trunc.c: Likewise.
45110         * lib/truncf.c: Likewise.
45111         * lib/truncl.c: Likewise.
45112         * lib/tsearch.c: Likewise.
45113         * lib/unicodeio.c: Likewise.
45114         * lib/unicodeio.h: Likewise.
45115         * lib/unistd--.h: Likewise.
45116         * lib/unistd-safer.h: Likewise.
45117         * lib/unistdio/ulc-fprintf.c: Likewise.
45118         * lib/unistdio/ulc-vfprintf.c: Likewise.
45119         * lib/unlinkdir.c: Likewise.
45120         * lib/unlinkdir.h: Likewise.
45121         * lib/unlocked-io.h: Likewise.
45122         * lib/unsetenv.c: Likewise.
45123         * lib/userspec.c: Likewise.
45124         * lib/utime.c: Likewise.
45125         * lib/utimecmp.c: Likewise.
45126         * lib/utimecmp.h: Likewise.
45127         * lib/utimens.c: Likewise.
45128         * lib/verify.h: Likewise.
45129         * lib/verror.c: Likewise.
45130         * lib/verror.h: Likewise.
45131         * lib/version-etc-fsf.c: Likewise.
45132         * lib/version-etc.c: Likewise.
45133         * lib/version-etc.h: Likewise.
45134         * lib/vfprintf.c: Likewise.
45135         * lib/vprintf.c: Likewise.
45136         * lib/vsprintf.c: Likewise.
45137         * lib/w32spawn.h: Likewise.
45138         * lib/wait-process.c: Likewise.
45139         * lib/wait-process.h: Likewise.
45140         * lib/wcwidth.c: Likewise.
45141         * lib/write-any-file.c: Likewise.
45142         * lib/xalloc-die.c: Likewise.
45143         * lib/xalloc.h: Likewise.
45144         * lib/xasprintf.c: Likewise.
45145         * lib/xgetcwd.c: Likewise.
45146         * lib/xgetcwd.h: Likewise.
45147         * lib/xgetdomainname.c: Likewise.
45148         * lib/xgetdomainname.h: Likewise.
45149         * lib/xgethostname.c: Likewise.
45150         * lib/xmalloc.c: Likewise.
45151         * lib/xmalloca.c: Likewise.
45152         * lib/xmalloca.h: Likewise.
45153         * lib/xmemcoll.c: Likewise.
45154         * lib/xnanosleep.c: Likewise.
45155         * lib/xreadlink.c: Likewise.
45156         * lib/xreadlink.h: Likewise.
45157         * lib/xsetenv.c: Likewise.
45158         * lib/xsetenv.h: Likewise.
45159         * lib/xstriconv.c: Likewise.
45160         * lib/xstriconv.h: Likewise.
45161         * lib/xstrndup.c: Likewise.
45162         * lib/xstrndup.h: Likewise.
45163         * lib/xstrtod.c: Likewise.
45164         * lib/xstrtod.h: Likewise.
45165         * lib/xstrtol-error.c: Likewise.
45166         * lib/xstrtol.c: Likewise.
45167         * lib/xstrtol.h: Likewise.
45168         * lib/xtime.h: Likewise.
45169         * lib/xvasprintf.c: Likewise.
45170         * lib/xvasprintf.h: Likewise.
45171         * lib/yesno.c: Likewise.
45172         * lib/yesno.h: Likewise.
45173         * posix-modules: Likewise.
45174         * tests/test-alloca-opt.c: Likewise.
45175         * tests/test-arcfour.c: Likewise.
45176         * tests/test-arctwo.c: Likewise.
45177         * tests/test-argmatch.c: Likewise.
45178         * tests/test-argp-2.sh: Likewise.
45179         * tests/test-argp.c: Likewise.
45180         * tests/test-arpa_inet.c: Likewise.
45181         * tests/test-array_list.c: Likewise.
45182         * tests/test-array_oset.c: Likewise.
45183         * tests/test-atexit.c: Likewise.
45184         * tests/test-avltree_list.c: Likewise.
45185         * tests/test-avltree_oset.c: Likewise.
45186         * tests/test-avltreehash_list.c: Likewise.
45187         * tests/test-base64.c: Likewise.
45188         * tests/test-binary-io.c: Likewise.
45189         * tests/test-byteswap.c: Likewise.
45190         * tests/test-c-ctype.c: Likewise.
45191         * tests/test-c-strcasecmp.c: Likewise.
45192         * tests/test-c-strcasestr.c: Likewise.
45193         * tests/test-c-strncasecmp.c: Likewise.
45194         * tests/test-c-strstr.c: Likewise.
45195         * tests/test-canonicalize-lgpl.c: Likewise.
45196         * tests/test-canonicalize.c: Likewise.
45197         * tests/test-carray_list.c: Likewise.
45198         * tests/test-ceilf.c: Likewise.
45199         * tests/test-ceill.c: Likewise.
45200         * tests/test-count-one-bits.c: Likewise.
45201         * tests/test-crc.c: Likewise.
45202         * tests/test-dirname.c: Likewise.
45203         * tests/test-fbufmode.c: Likewise.
45204         * tests/test-fcntl.c: Likewise.
45205         * tests/test-fflush.c: Likewise.
45206         * tests/test-floorf.c: Likewise.
45207         * tests/test-floorl.c: Likewise.
45208         * tests/test-fopen.c: Likewise.
45209         * tests/test-fprintf-posix.c: Likewise.
45210         * tests/test-fprintf-posix.h: Likewise.
45211         * tests/test-fpurge.c: Likewise.
45212         * tests/test-freadable.c: Likewise.
45213         * tests/test-freadahead.c: Likewise.
45214         * tests/test-freading.c: Likewise.
45215         * tests/test-freopen.c: Likewise.
45216         * tests/test-frexp.c: Likewise.
45217         * tests/test-frexpl.c: Likewise.
45218         * tests/test-fseek.c: Likewise.
45219         * tests/test-fseeko.c: Likewise.
45220         * tests/test-fseterr.c: Likewise.
45221         * tests/test-fstrcmp.c: Likewise.
45222         * tests/test-ftell.c: Likewise.
45223         * tests/test-ftello.c: Likewise.
45224         * tests/test-fwritable.c: Likewise.
45225         * tests/test-fwriting.c: Likewise.
45226         * tests/test-getaddrinfo.c: Likewise.
45227         * tests/test-getpass.c: Likewise.
45228         * tests/test-gettimeofday.c: Likewise.
45229         * tests/test-hmac-md5.c: Likewise.
45230         * tests/test-hmac-sha1.c: Likewise.
45231         * tests/test-iconv.c: Likewise.
45232         * tests/test-iconvme.c: Likewise.
45233         * tests/test-inttypes.c: Likewise.
45234         * tests/test-isnan.c: Likewise.
45235         * tests/test-isnanf.c: Likewise.
45236         * tests/test-isnanl-nolibm.c: Likewise.
45237         * tests/test-isnanl.c: Likewise.
45238         * tests/test-isnanl.h: Likewise.
45239         * tests/test-ldexpl.c: Likewise.
45240         * tests/test-linked_list.c: Likewise.
45241         * tests/test-linkedhash_list.c: Likewise.
45242         * tests/test-locale.c: Likewise.
45243         * tests/test-localename.c: Likewise.
45244         * tests/test-lock.c: Likewise.
45245         * tests/test-lseek.c: Likewise.
45246         * tests/test-malloca.c: Likewise.
45247         * tests/test-math.c: Likewise.
45248         * tests/test-mbscasecmp.c: Likewise.
45249         * tests/test-mbscasestr1.c: Likewise.
45250         * tests/test-mbscasestr2.c: Likewise.
45251         * tests/test-mbscasestr3.c: Likewise.
45252         * tests/test-mbscasestr4.c: Likewise.
45253         * tests/test-mbschr.c: Likewise.
45254         * tests/test-mbscspn.c: Likewise.
45255         * tests/test-mbsncasecmp.c: Likewise.
45256         * tests/test-mbspbrk.c: Likewise.
45257         * tests/test-mbspcasecmp.c: Likewise.
45258         * tests/test-mbsrchr.c: Likewise.
45259         * tests/test-mbsspn.c: Likewise.
45260         * tests/test-mbsstr1.c: Likewise.
45261         * tests/test-mbsstr2.c: Likewise.
45262         * tests/test-mbsstr3.c: Likewise.
45263         * tests/test-md5.c: Likewise.
45264         * tests/test-memmem.c: Likewise.
45265         * tests/test-netinet_in.c: Likewise.
45266         * tests/test-open.c: Likewise.
45267         * tests/test-printf-frexp.c: Likewise.
45268         * tests/test-printf-frexpl.c: Likewise.
45269         * tests/test-printf-posix.c: Likewise.
45270         * tests/test-printf-posix.h: Likewise.
45271         * tests/test-rbtree_list.c: Likewise.
45272         * tests/test-rbtree_oset.c: Likewise.
45273         * tests/test-rbtreehash_list.c: Likewise.
45274         * tests/test-read-file.c: Likewise.
45275         * tests/test-rijndael.c: Likewise.
45276         * tests/test-search.c: Likewise.
45277         * tests/test-signbit.c: Likewise.
45278         * tests/test-sleep.c: Likewise.
45279         * tests/test-snprintf-posix.c: Likewise.
45280         * tests/test-snprintf-posix.h: Likewise.
45281         * tests/test-snprintf.c: Likewise.
45282         * tests/test-sprintf-posix.c: Likewise.
45283         * tests/test-sprintf-posix.h: Likewise.
45284         * tests/test-stat-time.c: Likewise.
45285         * tests/test-stdbool.c: Likewise.
45286         * tests/test-stdint.c: Likewise.
45287         * tests/test-stdio.c: Likewise.
45288         * tests/test-stdlib.c: Likewise.
45289         * tests/test-stpncpy.c: Likewise.
45290         * tests/test-strcasestr.c: Likewise.
45291         * tests/test-striconv.c: Likewise.
45292         * tests/test-striconveh.c: Likewise.
45293         * tests/test-striconveha.c: Likewise.
45294         * tests/test-string.c: Likewise.
45295         * tests/test-sys_select.c: Likewise.
45296         * tests/test-sys_socket.c: Likewise.
45297         * tests/test-sys_stat.c: Likewise.
45298         * tests/test-sys_time.c: Likewise.
45299         * tests/test-sysexits.c: Likewise.
45300         * tests/test-time.c: Likewise.
45301         * tests/test-tls.c: Likewise.
45302         * tests/test-trunc.c: Likewise.
45303         * tests/test-truncf.c: Likewise.
45304         * tests/test-truncl.c: Likewise.
45305         * tests/test-unistd.c: Likewise.
45306         * tests/test-vasnprintf-posix.c: Likewise.
45307         * tests/test-vasnprintf-posix2.c: Likewise.
45308         * tests/test-vasnprintf.c: Likewise.
45309         * tests/test-vasprintf-posix.c: Likewise.
45310         * tests/test-vasprintf.c: Likewise.
45311         * tests/test-verify.c: Likewise.
45312         * tests/test-vfprintf-posix.c: Likewise.
45313         * tests/test-vprintf-posix.c: Likewise.
45314         * tests/test-vsnprintf-posix.c: Likewise.
45315         * tests/test-vsnprintf.c: Likewise.
45316         * tests/test-vsprintf-posix.c: Likewise.
45317         * tests/test-wchar.c: Likewise.
45318         * tests/test-wctype.c: Likewise.
45319         * tests/test-wcwidth.c: Likewise.
45320         * tests/test-xstrtol.c: Likewise.
45321         * tests/test-xvasprintf.c: Likewise.
45322         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45323         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45324         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45325         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45326         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45327         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45328         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45329         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45330         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45331         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45332         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45333         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45334         * tests/uniname/test-uninames.c: Likewise.
45335         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45336         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45337         * tests/unistdio/test-u16-printf1.h: Likewise.
45338         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45339         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45340         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45341         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45342         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45343         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45344         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45345         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45346         * tests/unistdio/test-u32-printf1.h: Likewise.
45347         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45348         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45349         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45350         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45351         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45352         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45353         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45354         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45355         * tests/unistdio/test-u8-printf1.h: Likewise.
45356         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45357         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45358         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45359         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45360         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45361         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45362         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45363         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45364         * tests/unistdio/test-ulc-printf1.h: Likewise.
45365         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45366         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45367         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45368         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45369         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45370         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45371         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45372         * tests/uniwidth/test-u16-width.c: Likewise.
45373         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45374         * tests/uniwidth/test-u32-width.c: Likewise.
45375         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45376         * tests/uniwidth/test-u8-width.c: Likewise.
45377         * tests/uniwidth/test-uc_width.c: Likewise.
45378         * config/srclist-update: Likewise.
45379         (fixlicense): Update to GPLv3+.
45380
45381         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45382         * tests/test-tsearch.c: Change copyright notice.
45383
45384         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45385         * lib/c-strcaseeq.h: Change copyright notice.
45386         * lib/streq.h: Likewise.
45387         * lib/uniconv.h: Likewise.
45388         * lib/uniconv/u-conv-from-enc.h: Likewise.
45389         * lib/uniconv/u-conv-to-enc.h: Likewise.
45390         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45391         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45392         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45393         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45394         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45395         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45396         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45397         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45398         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45399         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45400         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45401         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45402         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45403         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45404         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45405         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45406         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45407         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45408         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45409         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45410         * lib/uniname.h: Likewise.
45411         * lib/uniname/uniname.c: Likewise.
45412         * lib/unistdio.h: Likewise.
45413         * lib/unistdio/u-asnprintf.h: Likewise.
45414         * lib/unistdio/u-asprintf.h: Likewise.
45415         * lib/unistdio/u-printf-args.c: Likewise.
45416         * lib/unistdio/u-printf-args.h: Likewise.
45417         * lib/unistdio/u-printf-parse.h: Likewise.
45418         * lib/unistdio/u-snprintf.h: Likewise.
45419         * lib/unistdio/u-sprintf.h: Likewise.
45420         * lib/unistdio/u-vasprintf.h: Likewise.
45421         * lib/unistdio/u-vsnprintf.h: Likewise.
45422         * lib/unistdio/u-vsprintf.h: Likewise.
45423         * lib/unistdio/u16-asnprintf.c: Likewise.
45424         * lib/unistdio/u16-asprintf.c: Likewise.
45425         * lib/unistdio/u16-printf-parse.c: Likewise.
45426         * lib/unistdio/u16-snprintf.c: Likewise.
45427         * lib/unistdio/u16-sprintf.c: Likewise.
45428         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45429         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45430         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45431         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45432         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45433         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45434         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45435         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45436         * lib/unistdio/u16-vasnprintf.c: Likewise.
45437         * lib/unistdio/u16-vasprintf.c: Likewise.
45438         * lib/unistdio/u16-vsnprintf.c: Likewise.
45439         * lib/unistdio/u16-vsprintf.c: Likewise.
45440         * lib/unistdio/u32-asnprintf.c: Likewise.
45441         * lib/unistdio/u32-asprintf.c: Likewise.
45442         * lib/unistdio/u32-printf-parse.c: Likewise.
45443         * lib/unistdio/u32-snprintf.c: Likewise.
45444         * lib/unistdio/u32-sprintf.c: Likewise.
45445         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45446         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45447         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45448         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45449         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45450         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45451         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45452         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45453         * lib/unistdio/u32-vasnprintf.c: Likewise.
45454         * lib/unistdio/u32-vasprintf.c: Likewise.
45455         * lib/unistdio/u32-vsnprintf.c: Likewise.
45456         * lib/unistdio/u32-vsprintf.c: Likewise.
45457         * lib/unistdio/u8-asnprintf.c: Likewise.
45458         * lib/unistdio/u8-asprintf.c: Likewise.
45459         * lib/unistdio/u8-printf-parse.c: Likewise.
45460         * lib/unistdio/u8-snprintf.c: Likewise.
45461         * lib/unistdio/u8-sprintf.c: Likewise.
45462         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
45463         * lib/unistdio/u8-u8-asprintf.c: Likewise.
45464         * lib/unistdio/u8-u8-snprintf.c: Likewise.
45465         * lib/unistdio/u8-u8-sprintf.c: Likewise.
45466         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
45467         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
45468         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
45469         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
45470         * lib/unistdio/u8-vasnprintf.c: Likewise.
45471         * lib/unistdio/u8-vasprintf.c: Likewise.
45472         * lib/unistdio/u8-vsnprintf.c: Likewise.
45473         * lib/unistdio/u8-vsprintf.c: Likewise.
45474         * lib/unistdio/ulc-asnprintf.c: Likewise.
45475         * lib/unistdio/ulc-asprintf.c: Likewise.
45476         * lib/unistdio/ulc-printf-parse.c: Likewise.
45477         * lib/unistdio/ulc-snprintf.c: Likewise.
45478         * lib/unistdio/ulc-sprintf.c: Likewise.
45479         * lib/unistdio/ulc-vasnprintf.c: Likewise.
45480         * lib/unistdio/ulc-vasprintf.c: Likewise.
45481         * lib/unistdio/ulc-vsnprintf.c: Likewise.
45482         * lib/unistdio/ulc-vsprintf.c: Likewise.
45483         * lib/unistr.h: Likewise.
45484         * lib/unistr/u-cpy-alloc.h: Likewise.
45485         * lib/unistr/u-cpy.h: Likewise.
45486         * lib/unistr/u-endswith.h: Likewise.
45487         * lib/unistr/u-move.h: Likewise.
45488         * lib/unistr/u-set.h: Likewise.
45489         * lib/unistr/u-startswith.h: Likewise.
45490         * lib/unistr/u-stpcpy.h: Likewise.
45491         * lib/unistr/u-stpncpy.h: Likewise.
45492         * lib/unistr/u-strcat.h: Likewise.
45493         * lib/unistr/u-strcpy.h: Likewise.
45494         * lib/unistr/u-strcspn.h: Likewise.
45495         * lib/unistr/u-strdup.h: Likewise.
45496         * lib/unistr/u-strlen.h: Likewise.
45497         * lib/unistr/u-strncat.h: Likewise.
45498         * lib/unistr/u-strncpy.h: Likewise.
45499         * lib/unistr/u-strnlen.h: Likewise.
45500         * lib/unistr/u-strpbrk.h: Likewise.
45501         * lib/unistr/u-strspn.h: Likewise.
45502         * lib/unistr/u-strstr.h: Likewise.
45503         * lib/unistr/u-strtok.h: Likewise.
45504         * lib/unistr/u16-check.c: Likewise.
45505         * lib/unistr/u16-chr.c: Likewise.
45506         * lib/unistr/u16-cmp.c: Likewise.
45507         * lib/unistr/u16-cpy-alloc.c: Likewise.
45508         * lib/unistr/u16-cpy.c: Likewise.
45509         * lib/unistr/u16-endswith.c: Likewise.
45510         * lib/unistr/u16-mblen.c: Likewise.
45511         * lib/unistr/u16-mbsnlen.c: Likewise.
45512         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45513         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45514         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45515         * lib/unistr/u16-mbtouc.c: Likewise.
45516         * lib/unistr/u16-mbtoucr.c: Likewise.
45517         * lib/unistr/u16-move.c: Likewise.
45518         * lib/unistr/u16-next.c: Likewise.
45519         * lib/unistr/u16-prev.c: Likewise.
45520         * lib/unistr/u16-set.c: Likewise.
45521         * lib/unistr/u16-startswith.c: Likewise.
45522         * lib/unistr/u16-stpcpy.c: Likewise.
45523         * lib/unistr/u16-stpncpy.c: Likewise.
45524         * lib/unistr/u16-strcat.c: Likewise.
45525         * lib/unistr/u16-strchr.c: Likewise.
45526         * lib/unistr/u16-strcmp.c: Likewise.
45527         * lib/unistr/u16-strcpy.c: Likewise.
45528         * lib/unistr/u16-strcspn.c: Likewise.
45529         * lib/unistr/u16-strdup.c: Likewise.
45530         * lib/unistr/u16-strlen.c: Likewise.
45531         * lib/unistr/u16-strmblen.c: Likewise.
45532         * lib/unistr/u16-strmbtouc.c: Likewise.
45533         * lib/unistr/u16-strncat.c: Likewise.
45534         * lib/unistr/u16-strncmp.c: Likewise.
45535         * lib/unistr/u16-strncpy.c: Likewise.
45536         * lib/unistr/u16-strnlen.c: Likewise.
45537         * lib/unistr/u16-strpbrk.c: Likewise.
45538         * lib/unistr/u16-strrchr.c: Likewise.
45539         * lib/unistr/u16-strspn.c: Likewise.
45540         * lib/unistr/u16-strstr.c: Likewise.
45541         * lib/unistr/u16-strtok.c: Likewise.
45542         * lib/unistr/u16-to-u32.c: Likewise.
45543         * lib/unistr/u16-to-u8.c: Likewise.
45544         * lib/unistr/u16-uctomb-aux.c: Likewise.
45545         * lib/unistr/u16-uctomb.c: Likewise.
45546         * lib/unistr/u32-check.c: Likewise.
45547         * lib/unistr/u32-chr.c: Likewise.
45548         * lib/unistr/u32-cmp.c: Likewise.
45549         * lib/unistr/u32-cpy-alloc.c: Likewise.
45550         * lib/unistr/u32-cpy.c: Likewise.
45551         * lib/unistr/u32-endswith.c: Likewise.
45552         * lib/unistr/u32-mblen.c: Likewise.
45553         * lib/unistr/u32-mbsnlen.c: Likewise.
45554         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45555         * lib/unistr/u32-mbtouc.c: Likewise.
45556         * lib/unistr/u32-mbtoucr.c: Likewise.
45557         * lib/unistr/u32-move.c: Likewise.
45558         * lib/unistr/u32-next.c: Likewise.
45559         * lib/unistr/u32-prev.c: Likewise.
45560         * lib/unistr/u32-set.c: Likewise.
45561         * lib/unistr/u32-startswith.c: Likewise.
45562         * lib/unistr/u32-stpcpy.c: Likewise.
45563         * lib/unistr/u32-stpncpy.c: Likewise.
45564         * lib/unistr/u32-strcat.c: Likewise.
45565         * lib/unistr/u32-strchr.c: Likewise.
45566         * lib/unistr/u32-strcmp.c: Likewise.
45567         * lib/unistr/u32-strcpy.c: Likewise.
45568         * lib/unistr/u32-strcspn.c: Likewise.
45569         * lib/unistr/u32-strdup.c: Likewise.
45570         * lib/unistr/u32-strlen.c: Likewise.
45571         * lib/unistr/u32-strmblen.c: Likewise.
45572         * lib/unistr/u32-strmbtouc.c: Likewise.
45573         * lib/unistr/u32-strncat.c: Likewise.
45574         * lib/unistr/u32-strncmp.c: Likewise.
45575         * lib/unistr/u32-strncpy.c: Likewise.
45576         * lib/unistr/u32-strnlen.c: Likewise.
45577         * lib/unistr/u32-strpbrk.c: Likewise.
45578         * lib/unistr/u32-strrchr.c: Likewise.
45579         * lib/unistr/u32-strspn.c: Likewise.
45580         * lib/unistr/u32-strstr.c: Likewise.
45581         * lib/unistr/u32-strtok.c: Likewise.
45582         * lib/unistr/u32-to-u16.c: Likewise.
45583         * lib/unistr/u32-to-u8.c: Likewise.
45584         * lib/unistr/u32-uctomb.c: Likewise.
45585         * lib/unistr/u8-check.c: Likewise.
45586         * lib/unistr/u8-chr.c: Likewise.
45587         * lib/unistr/u8-cmp.c: Likewise.
45588         * lib/unistr/u8-cpy-alloc.c: Likewise.
45589         * lib/unistr/u8-cpy.c: Likewise.
45590         * lib/unistr/u8-endswith.c: Likewise.
45591         * lib/unistr/u8-mblen.c: Likewise.
45592         * lib/unistr/u8-mbsnlen.c: Likewise.
45593         * lib/unistr/u8-mbtouc-aux.c: Likewise.
45594         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45595         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45596         * lib/unistr/u8-mbtouc.c: Likewise.
45597         * lib/unistr/u8-mbtoucr.c: Likewise.
45598         * lib/unistr/u8-move.c: Likewise.
45599         * lib/unistr/u8-next.c: Likewise.
45600         * lib/unistr/u8-prev.c: Likewise.
45601         * lib/unistr/u8-set.c: Likewise.
45602         * lib/unistr/u8-startswith.c: Likewise.
45603         * lib/unistr/u8-stpcpy.c: Likewise.
45604         * lib/unistr/u8-stpncpy.c: Likewise.
45605         * lib/unistr/u8-strcat.c: Likewise.
45606         * lib/unistr/u8-strchr.c: Likewise.
45607         * lib/unistr/u8-strcmp.c: Likewise.
45608         * lib/unistr/u8-strcpy.c: Likewise.
45609         * lib/unistr/u8-strcspn.c: Likewise.
45610         * lib/unistr/u8-strdup.c: Likewise.
45611         * lib/unistr/u8-strlen.c: Likewise.
45612         * lib/unistr/u8-strmblen.c: Likewise.
45613         * lib/unistr/u8-strmbtouc.c: Likewise.
45614         * lib/unistr/u8-strncat.c: Likewise.
45615         * lib/unistr/u8-strncmp.c: Likewise.
45616         * lib/unistr/u8-strncpy.c: Likewise.
45617         * lib/unistr/u8-strnlen.c: Likewise.
45618         * lib/unistr/u8-strpbrk.c: Likewise.
45619         * lib/unistr/u8-strrchr.c: Likewise.
45620         * lib/unistr/u8-strspn.c: Likewise.
45621         * lib/unistr/u8-strstr.c: Likewise.
45622         * lib/unistr/u8-strtok.c: Likewise.
45623         * lib/unistr/u8-to-u16.c: Likewise.
45624         * lib/unistr/u8-to-u32.c: Likewise.
45625         * lib/unistr/u8-uctomb-aux.c: Likewise.
45626         * lib/unistr/u8-uctomb.c: Likewise.
45627         * lib/unitypes.h: Likewise.
45628         * lib/uniwidth.h: Likewise.
45629         * lib/uniwidth/cjk.h: Likewise.
45630         * lib/uniwidth/u16-strwidth.c: Likewise.
45631         * lib/uniwidth/u16-width.c: Likewise.
45632         * lib/uniwidth/u32-strwidth.c: Likewise.
45633         * lib/uniwidth/u32-width.c: Likewise.
45634         * lib/uniwidth/u8-strwidth.c: Likewise.
45635         * lib/uniwidth/u8-width.c: Likewise.
45636         * lib/uniwidth/width.c: Likewise.
45637
45638 2007-10-07  Bruno Haible  <bruno@clisp.org>
45639
45640         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
45641         The file is still under LGPL (see modules/inttypes).
45642
45643 2007-10-06  Bruno Haible  <bruno@clisp.org>
45644
45645         * modules/trunc (Dependencies): Add 'extensions'.
45646         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
45647         Reported by Ben Pfaff <blp@gnu.org>.
45648
45649 2007-10-06  Bruno Haible  <bruno@clisp.org>
45650
45651         * modules/freopen-tests: New file.
45652         * tests/test-freopen.c: New file.
45653
45654         * modules/fopen-tests: New file.
45655         * tests/test-fopen.c: New file.
45656
45657         * modules/fopen: New file.
45658         * lib/fopen.c: New file.
45659         * m4/fopen.m4: New file.
45660         * modules/freopen: New file.
45661         * lib/freopen.c: New file.
45662         * m4/freopen.m4: New file.
45663         * lib/stdio.in.h (fopen, freopen): New declarations.
45664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
45665         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45666         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
45667         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45668         * doc/functions/fopen.texi: Mention the 'fopen' module.
45669         * doc/functions/freopen.texi: Mention the 'freopen' module.
45670
45671 2007-10-06  Bruno Haible  <bruno@clisp.org>
45672
45673         * modules/open-tests: New file.
45674         * tests/test-open.c: New file.
45675
45676         * modules/open: New file.
45677         * lib/open.c: New file.
45678         * m4/open.m4: New file.
45679         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
45680         lib/open.c does.
45681         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
45682         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
45683         macros.
45684         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
45685         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
45686         REPLACE_OPEN.
45687         * doc/functions/open.texi: Mention the 'open' module.
45688
45689 2007-10-04  Bruno Haible  <bruno@clisp.org>
45690
45691         * modules/ceill-tests: New file.
45692         * tests/test-ceill.c: New file.
45693
45694         * modules/ceill: New file.
45695         * lib/ceill.c: Replace entire file.
45696         * m4/ceill.m4: New file.
45697         * lib/math.in.h (ceill): Replace declaration.
45698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
45699         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
45700         * doc/functions/ceill.texi: Mention the 'ceill' module.
45701         * modules/mathl (Files): Remove lib/ceill.c.
45702         (Depends-on): Add ceill.
45703
45704 2007-10-04  Bruno Haible  <bruno@clisp.org>
45705
45706         * modules/ceilf-tests: New file.
45707         * tests/test-ceilf.c: New file.
45708
45709         * modules/ceilf: New file.
45710         * lib/ceil.c: New file.
45711         * lib/ceilf.c: New file.
45712         * m4/ceilf.m4: New file.
45713         * lib/math.in.h (ceilf): New declaration.
45714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
45715         HAVE_DECL_CEILF.
45716         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
45717         HAVE_DECL_CEILF.
45718         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
45719
45720 2007-10-04  Bruno Haible  <bruno@clisp.org>
45721
45722         * modules/floorl-tests: New file.
45723         * tests/test-floorl.c: New file.
45724
45725         * modules/floorl: New file.
45726         * lib/floorl.c: Replace entire file.
45727         * m4/floorl.m4: New file.
45728         * lib/math.in.h (floorl): Replace declaration.
45729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
45730         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
45731         * doc/functions/floorl.texi: Mention the 'floorl' module.
45732         * modules/mathl (Files): Remove lib/floorl.c.
45733         (Depends-on): Add floorl.
45734
45735 2007-10-04  Bruno Haible  <bruno@clisp.org>
45736
45737         * modules/floorf-tests: New file.
45738         * tests/test-floorf.c: New file.
45739
45740         * modules/floorf: New file.
45741         * lib/floor.c: New file.
45742         * lib/floorf.c: New file.
45743         * m4/floorf.m4: New file.
45744         * lib/math.in.h (floorf): New declaration.
45745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
45746         HAVE_DECL_FLOORF.
45747         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
45748         HAVE_DECL_FLOORF.
45749         * doc/functions/floorf.texi: Mention the 'floorf' module.
45750
45751 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
45752             Bruno Haible  <bruno@clisp.org>
45753
45754         Advertise for the Git server instead of the CVS server.
45755         * doc/gnulib-intro.texi (Steady Development): Mention the Git
45756         repository instead of the CVS one.
45757         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
45758         about all VCS systems generically.
45759         * doc/gnulib.texi (Introduction): Capitalize `Git'.
45760
45761 2007-10-04  Bruno Haible  <bruno@clisp.org>
45762
45763         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
45764         means.
45765         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
45766
45767 2007-10-04  Bruno Haible  <bruno@clisp.org>
45768
45769         * modules/truncl-tests: New file.
45770         * tests/test-truncl.c: New file.
45771
45772         * modules/truncl: New file.
45773         * lib/truncl.c: New file.
45774         * m4/truncl.m4: New file.
45775         * lib/math.in.h (truncl): New declaration.
45776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
45777         HAVE_DECL_TRUNCL.
45778         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
45779         HAVE_DECL_TRUNCL.
45780         * doc/functions/truncl.texi: Mention the 'truncl' module.
45781
45782 2007-10-04  Bruno Haible  <bruno@clisp.org>
45783
45784         * modules/truncf-tests: New file.
45785         * tests/test-truncf.c: New file.
45786
45787         * modules/truncf: New file.
45788         * lib/trunc.c: Make paramerizable through USE_* macros.
45789         * lib/truncf.c: New file.
45790         * m4/truncf.m4: New file.
45791         * lib/math.in.h (truncf): New declaration.
45792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
45793         HAVE_DECL_TRUNCF.
45794         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
45795         HAVE_DECL_TRUNCF.
45796         * doc/functions/truncf.texi: Mention the 'truncf' module.
45797
45798 2007-10-03  Bruno Haible  <bruno@clisp.org>
45799
45800         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45801         augmentation also for tests modules.
45802         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45803         * modules/atexit-tests (Makefile.am): Likewise.
45804         * modules/binary-io-tests (Makefile.am): Likewise.
45805         * modules/c-strcase-tests (Makefile.am): Likewise.
45806         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45807         * modules/canonicalize-tests (Makefile.am): Likewise.
45808         * modules/closein-tests (Makefile.am): Likewise.
45809         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45810         * modules/freadahead-tests (Makefile.am): Likewise.
45811         * modules/fseek-tests (Makefile.am): Likewise.
45812         * modules/fseeko-tests (Makefile.am): Likewise.
45813         * modules/ftell-tests (Makefile.am): Likewise.
45814         * modules/ftello-tests (Makefile.am): Likewise.
45815         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45816         * modules/isnanl-tests (Makefile.am): Likewise.
45817         * modules/lseek-tests (Makefile.am): Likewise.
45818         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45819         * modules/mbscasestr-tests (Makefile.am): Likewise.
45820         * modules/mbschr-tests (Makefile.am): Likewise.
45821         * modules/mbscspn-tests (Makefile.am): Likewise.
45822         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45823         * modules/mbspbrk-tests (Makefile.am): Likewise.
45824         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45825         * modules/mbsrchr-tests (Makefile.am): Likewise.
45826         * modules/mbsspn-tests (Makefile.am): Likewise.
45827         * modules/mbsstr-tests (Makefile.am): Likewise.
45828         * modules/printf-posix-tests (Makefile.am): Likewise.
45829         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45830         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45831         * modules/tsearch-tests (Makefile.am): Likewise.
45832         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45833         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45834         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45835         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45836         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45837         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45838         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45839         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45840         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45841         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45842         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45843         * modules/xstrtol-tests (Makefile.am): Likewise.
45844         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45845         * modules/yesno-tests (Makefile.am): Likewise.
45846
45847 2007-10-03  Bruno Haible  <bruno@clisp.org>
45848
45849         * modules/trunc-tests: New file.
45850         * tests/test-trunc.c: New file.
45851
45852         * modules/trunc: New file.
45853         * lib/trunc.c: New file.
45854         * m4/trunc.m4: New file.
45855         * lib/math.in.h (trunc): New declaration.
45856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45857         HAVE_DECL_TRUNC.
45858         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45859         HAVE_DECL_TRUNC.
45860         * doc/functions/trunc.texi: Mention the 'trunc' module.
45861
45862 2007-10-03  Bruno Haible  <bruno@clisp.org>
45863
45864         * tests/test-fpending.c: New file, mostly copied
45865         from coreutils/lib/t-fpending.c.
45866         * modules/fpending-tests: New file.
45867
45868 2007-10-03  Bruno Haible  <bruno@clisp.org>
45869
45870         Port the stdio extensions to QNX (untested).
45871         * lib/fseterr.c (fseterr): Add support for QNX.
45872         * lib/fbufmode.c (fbufmode): Likewise.
45873         * lib/freadable.c (freadable): Likewise.
45874         * lib/fwritable.c (fwritable): Likewise.
45875         * lib/freading.c (freading): Likewise.
45876         * lib/fwriting.c (fwriting): Likewise.
45877         * lib/freadahead.c (freadahed): Likewise.
45878         * lib/fpurge.c (fpurge): Likewise.
45879         * lib/fseeko.c (rpl_fseeko): Likewise.
45880
45881 2007-10-03  Bruno Haible  <bruno@clisp.org>
45882             Jim Meyering  <jim@meyering.net>
45883             Eric Blake  <ebb9@byu.net>
45884
45885         * doc/relocatable.texi: Use @command instead of @program.
45886
45887 2007-10-02  Jim Meyering  <jim@meyering.net>
45888
45889         Perform one more "_.h" -> ".in.h" substitution.
45890         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45891         instead of unistd_.h here, too.
45892
45893 2007-10-01  Bruno Haible  <bruno@clisp.org>
45894
45895         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45896         Needed for the alloca-opt module.
45897
45898 2007-09-30  Bruno Haible  <bruno@clisp.org>
45899
45900         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45901         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45902         alloca_.h.
45903         * lib/argz.in.h: Renamed from lib/argz_.h.
45904         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45905         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45906         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45907         byteswap_.h.
45908         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45909         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45910         dirent_.h.
45911         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45912         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45913         fcntl_.h.
45914         * lib/float.in.h: Renamed from lib/float_.h.
45915         * modules/float (Files, Makefile.am): Use float.in.h instead of
45916         float_.h.
45917         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45918         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45919         fnmatch_.h.
45920         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45921         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45922         getopt_.h.
45923         * lib/glob.in.h: Renamed from lib/glob_.h.
45924         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45925         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45926         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45927         iconv_.h.
45928         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45929         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45930         inttypes_.h.
45931         * lib/locale.in.h: Renamed from lib/locale_.h.
45932         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45933         locale_.h.
45934         * lib/math.in.h: Renamed from lib/math_.h.
45935         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45936         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45937         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45938         of netinet_in_.h. Add dependency.
45939         * lib/poll.in.h: Renamed from lib/poll_.h.
45940         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45941         * lib/search.in.h: Renamed from lib/search_.h.
45942         * modules/search (Files, Makefile.am): Use search.in.h instead of
45943         search_.h.
45944         * lib/signal.in.h: Renamed from lib/signal_.h.
45945         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45946         _signal.h.
45947         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45948         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45949         stdbool_.h.
45950         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45951         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45952         stdint_.h.
45953         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45954         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45955         stdio_.h.
45956         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45957         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45958         stdlib_.h.
45959         * lib/string.in.h: Renamed from lib/string_.h.
45960         * modules/string (Files, Makefile.am): Use string.in.h instead of
45961         string_.h.
45962         * doc/gnulib-tool.texi (Initial import): Update.
45963         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45964         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45965         of sys_select_.h. Add dependency.
45966         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45967         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45968         of sys_socket_.h.
45969         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45970         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45971         sys_stat_.h.
45972         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45973         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45974         sys_time_.h.
45975         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45976         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45977         sysexits_.h.
45978         * lib/time.in.h: Renamed from lib/time_.h.
45979         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45980         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45981         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45982         unistd_.h.
45983         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45984         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45985         wchar_.h.
45986         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45987         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45988         wctype_.h.
45989         * build-aux/bootstrap (slurp): Update.
45990         * lib/.cppi-disable: Update.
45991
45992 2007-09-30  Bruno Haible  <bruno@clisp.org>
45993
45994         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45995         Needed on BeOS.
45996
45997 2007-09-30  Bruno Haible  <bruno@clisp.org>
45998
45999         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46000
46001 2007-09-29  Bruno Haible  <bruno@clisp.org>
46002
46003         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46004
46005 2007-09-29  Bruno Haible  <bruno@clisp.org>
46006
46007         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46008         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46009         * build-aux/install-reloc: Compile also areadlink.c.
46010         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46011
46012 2007-09-29  Bruno Haible  <bruno@clisp.org>
46013
46014         * gnulib-tool (func_emit_initmacro_done): Indentation.
46015
46016 2007-09-29  Bruno Haible  <bruno@clisp.org>
46017
46018         * README: Add CVS checkout update instructions.
46019         Info from Bob Proulx <bob@proulx.com>.
46020
46021 2007-09-28  Eric Blake  <ebb9@byu.net>
46022
46023         Provide move-if-change.
46024         * build-aux/move-if-change: New file, based on best practice
46025         rather than any canonical upstream location.
46026
46027 2007-09-28  Jim Meyering  <jim@meyering.net>
46028
46029         Fix canonicalize loop-detection corner case.
46030         Do not attempt to stat the symlink values stored via seen_triple.
46031         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46032         on linux-2.6.18, (but not 2.6.22).
46033         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46034         triple_compare.  The former compares dev,ino,filename, while the latter
46035         would actually stat dirname(filename) when dev and ino were equal.
46036         * lib/hash-triple.c: Install <string.h>.
46037         (STREQ): Define.
46038         (triple_compare_ino_str): New function.
46039         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46040
46041 2007-09-28  Eric Blake  <ebb9@byu.net>
46042
46043         Enforce that AC_REPLACE_FUNCS files exist.
46044         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46045         override check for typos.
46046
46047         Fix test-closein on Solaris 10.
46048         * tests/test-closein.c (main): Don't assume stdin can be inherited
46049         closed on all systems.
46050         * tests/test-closein.sh: Likewise.
46051         Reported by Piotr Tarnowski.
46052
46053 2007-09-28  Jim Meyering  <jim@meyering.net>
46054
46055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46056
46057 2007-09-27  Jim Meyering  <jim@meyering.net>
46058
46059         canonicalize: Avoid a false-positive cycle failure.
46060         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46061         Sort.  Remove cycle-check.
46062         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46063         not cycle-check.h.
46064         (seen_triple): New function.
46065         (canonicalize_filename_mode): Use it instead of cycle-check.
46066         * tests/test-canonicalize.c: Add a test for this bug.
46067         * tests/test-canonicalize.sh: Set up and run the test.
46068
46069         New module, file-set, from coreutils.
46070         * modules/file-set: Define it.
46071         * lib/file-set.c, lib/file-set.h: Implement.
46072
46073         New module, hash-triple, from coreutils.
46074         * modules/hash-triple: Define it.
46075         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46076
46077 2007-09-25  Eric Blake  <ebb9@byu.net>
46078
46079         Fix strerror on Interix.
46080         * lib/string_.h (strerror): Declare replacement.
46081         * doc/functions/strerror.texi (strerror): Document the Interix
46082         shortcoming.
46083         * modules/string (Makefile.am): Support new hooks.
46084         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46085         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46086         gl_FUNC_STRERROR_SEPARATE.
46087         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46088         * lib/strerror.c (rpl_strerror): Provide replacement.
46089         * modules/strerror (Depends-on): Add string.
46090         (configure.ac): Detect use of module.
46091         * tests/test-strerror.c: New file.
46092         * modules/strerror-tests: New test module.
46093         * modules/argp (Depends-on): Add strerror.
46094         * modules/error (Depends-on): Likewise.
46095         Reported by Martin Koeppe.
46096
46097 2007-09-24  Bruno Haible  <bruno@clisp.org>
46098
46099         * README: Update git instructions.
46100
46101 2007-09-24  Eric Blake  <ebb9@byu.net>
46102
46103         Revert fpending breakage from 2007-09-08.
46104         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46105         __fpending.c.
46106
46107 2007-09-24  Jim Meyering  <jim@meyering.net>
46108
46109         filenamecat.c: Add a test.
46110         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46111         showing how the function works when DIR is the empty string.
46112
46113 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46114
46115         * tests/test-canonicalize.sh: Turn on executable bit.
46116
46117 2007-09-19  Eric Blake  <ebb9@byu.net>
46118
46119         * README: Update CVS instructions.
46120
46121 2007-09-18  Bruno Haible  <bruno@clisp.org>
46122
46123         * modules/areadlink: New file.
46124         * lib/areadlink.h (areadlink): New declaration.
46125         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46126
46127 2007-09-17  Jim Meyering  <jim@meyering.net>
46128
46129         * lib/savewd.c (ESTALE) [!defined]: Define.
46130         Reported to be required on Interix by Martin Koeppe.
46131
46132 2007-09-17  Bruno Haible  <bruno@clisp.org>
46133
46134         * gnulib-tool (func_version): Use $version.
46135
46136 2007-09-16  Bruno Haible  <bruno@clisp.org>
46137
46138         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46139         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46140         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46141         Reported by Greg Schafer <gschafer@zip.com.au>.
46142
46143 2007-09-15  Bruno Haible  <bruno@clisp.org>
46144
46145         * gnulib-tool (sed): Try a little harder to make bash understand the
46146         alias.
46147         Reported by Bruce Korb <bruce.korb@gmail.com>.
46148
46149 2007-09-13  Eric Blake  <ebb9@byu.net>
46150
46151         * ChangeLog: Remove conflict markers.
46152
46153 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46154
46155         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46156         Reported by Bruno Haible <bruno@clisp.org>.
46157
46158 2007-09-12  Bruno Haible  <bruno@clisp.org>
46159
46160         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46161         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46162         is not defined.
46163
46164 2007-09-12  Eric Blake  <ebb9@byu.net>
46165
46166         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46167         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46168         Autoconf definition.
46169         * modules/euidaccess (Depends-on): Add extensions, for
46170         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46171         * modules/fnmatch (Depends-on): Likewise.
46172         * modules/getaddrinfo (Depends-on): Likewise.
46173         * modules/getdelim (Depends-on): Likewise.
46174         * modules/getline (Depends-on): Likewise.
46175         * modules/getsubopt (Depends-on): Likewise.
46176         * modules/gettext (Depends-on): Likewise.
46177         * modules/group-member (Depends-on): Likewise.
46178         * modules/mbchar (Depends-on): Likewise.
46179         * modules/memmem (Depends-on): Likewise.
46180         * modules/mempcpy (Depends-on): Likewise.
46181         * modules/memrchr (Depends-on): Likewise.
46182         * modules/pagealign_alloc (Depends-on): Likewise.
46183         * modules/readutmp (Depends-on): Likewise.
46184         * modules/stpcpy (Depends-on): Likewise.
46185         * modules/stpncpy (Depends-on): Likewise.
46186         * modules/strchrnul (Depends-on): Likewise.
46187         * modules/strndup (Depends-on): Likewise.
46188         * modules/strsep (Depends-on): Likewise.
46189         * modules/strverscmp (Depends-on): Likewise.
46190         * modules/vasprintf (Depends-on): Likewise.
46191         * modules/wcwidth (Depends-on): Likewise.
46192         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46193         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46195         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46196         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46197         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46198         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46199         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46200         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46201         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46203         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46205         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46206         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46207         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46208         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46209         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46210         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46211         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46212         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46213         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46214         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46215         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46216         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46218         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46219         so that lock.m4 can be used in gettext without extensions module.
46220
46221 2007-09-11  Bruno Haible  <bruno@clisp.org>
46222
46223         * m4/isc-posix.m4: Remove file.
46224         Suggested by Eric Blake.
46225
46226 2007-09-11  Eric Blake  <ebb9@byu.net>
46227
46228         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46229
46230 2007-09-10  Bruno Haible  <bruno@clisp.org>
46231
46232         * posix-modules: Fix typo in error message.
46233         Reported by Matt <mkraai@beckman.com>.
46234
46235 2007-09-09  Bruno Haible  <bruno@clisp.org>
46236
46237         * doc/functions/getdelim.texi: Update list of platforms lacking the
46238         function.
46239         * doc/functions/getline.texi: Likewise.
46240
46241 2007-09-09  Jim Meyering  <jim@meyering.net>
46242
46243         * lib/hash.c (hash_initialize): Detect calloc failure.
46244         Reported by Bruno Haible.
46245
46246 2007-09-09  Bruno Haible  <bruno@clisp.org>
46247
46248         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46249         malloc or realloc fails.
46250
46251 2007-09-09  Bruno Haible  <bruno@clisp.org>
46252
46253         * modules/getcwd (Depends-on): Add malloc-posix.
46254         * modules/glob (Depends-on): Likewise.
46255         * modules/putenv (Depends-on): Likewise.
46256         * modules/strdup (Depends-on): Likewise.
46257         * modules/getdelim (Depends-on): Add realloc-posix.
46258         * modules/read-file (Depends-on): Likewise.
46259
46260 2007-09-09  Bruno Haible  <bruno@clisp.org>
46261
46262         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46263         (gl_FUNC_MALLOC_POSIX): Require it.
46264         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46265         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46266         * modules/realloc (Files): Add m4/malloc.m4.
46267         * modules/calloc (Files): Likewise.
46268
46269 2007-09-09  Bruno Haible  <bruno@clisp.org>
46270
46271         * modules/malloc-posix: New file.
46272         * modules/malloc (Depends-on): Add malloc-posix.
46273         * lib/malloc.c: Include errno.h.
46274         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46275         and a POSIX-compatible malloc into a single function. Set ENOMEM
46276         when returning NULL.
46277         * m4/malloc.m4: New file.
46278         * doc/functions/malloc.texi: Mention the malloc-posix module.
46279         * lib/stdlib_.h (malloc): New declaration.
46280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46281         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46282         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46283         and HAVE_MALLOC_POSIX.
46284
46285 2007-09-09  Bruno Haible  <bruno@clisp.org>
46286
46287         * modules/realloc-posix: New file.
46288         * modules/realloc (Depends-on): Add realloc-posix.
46289         * lib/realloc.c: Include errno.h.
46290         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46291         and a POSIX-compatible realloc into a single function. Set ENOMEM
46292         when returning NULL.
46293         * m4/realloc.m4: New file.
46294         * doc/functions/realloc.texi: Mention the realloc-posix module.
46295         * lib/stdlib_.h (realloc): New declaration.
46296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46297         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46298         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46299         and HAVE_REALLOC_POSIX.
46300
46301 2007-09-09  Bruno Haible  <bruno@clisp.org>
46302
46303         * modules/calloc-posix: New file.
46304         * modules/calloc (Depends-on): Add calloc-posix.
46305         * lib/calloc.c: Include errno.h.
46306         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46307         and a POSIX-compatible calloc into a single function. Set ENOMEM
46308         when returning NULL.
46309         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46310         * doc/functions/calloc.texi: Mention the calloc-posix module.
46311         * lib/stdlib_.h (calloc): New declaration.
46312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46313         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46314         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46315         and HAVE_CALLOC_POSIX.
46316
46317 2007-09-09  Bruno Haible  <bruno@clisp.org>
46318
46319         Allow for modules to show an arbitrary notice.
46320         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46321         * gnulib-tool: New option --extract-notice.
46322         (func_usage): Document it.
46323         (sed_extract_prog): Update.
46324         (func_get_notice): New function.
46325         (func_modules_notice): New function.
46326         (func_import, func_create_testdir): Invoke it.
46327         Suggested by Jim Meyering.
46328
46329 2007-09-09  Bruno Haible  <bruno@clisp.org>
46330
46331         * gnulib-tool: New options --verbose, --quiet.
46332         (func_usage): Document them.
46333         (verbose): New variable.
46334         (func_execute_command): New function.
46335         (func_import): Don't show the module list and the file list if
46336         $verbose < 0.
46337         (func_create_testdir): Likewise. Use func_execute_command.
46338         (func_create_megatestdir): Use func_execute_command.
46339
46340 2007-09-08  Bruno Haible  <bruno@clisp.org>
46341
46342         * gnulib-tool (func_import): Prefer rsync over wget when available,
46343         for fetching the PO files.
46344
46345 2007-09-08  Bruno Haible  <bruno@clisp.org>
46346
46347         * posix-modules: New file. Portions copied from gnulib-tool.
46348         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46349
46350 2007-09-08  Jim Meyering  <jim@meyering.net>
46351
46352         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46353         * lib/fpending.h: Rename from __fpending.h.
46354         * lib/fpending.c: Rename from __fpending.c.
46355         Include "fpending.h", not "__fpending.h".
46356         * lib/__fpending.h, lib/__fpending.c: Remove files.
46357         * modules/fpending (Files): Reflect new file names.
46358         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46359
46360 2007-09-08  Bruno Haible  <bruno@clisp.org>
46361
46362         * m4/inttypes-h.m4: Remove stub file.
46363
46364 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46365
46366         * doc/headers/stdint.texi: Discuss #include_next issue.
46367
46368 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46369
46370         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46371
46372 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46373
46374         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46375         in variable name.
46376
46377 2007-09-03  Jim Meyering  <jim@meyering.net>
46378
46379         New module: git-version-gen.
46380         * modules/git-version-gen: New file.
46381
46382         Import changes from coreutils for bootstrap script.
46383
46384         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46385
46386         bootstrap: uses rsync to download the .po files
46387         * build-aux/bootstrap (po_download_command_format): New global.
46388         (download_po_files): Use rsync.
46389         (update_po_files): Don't remove .po files after download,
46390         so future rsync runs can take advantage of the copies.
46391
46392         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46393
46394         Solve the unnecessary-.po-file-regeneration problem once and for all.
46395         * build-aux/bootstrap (download_po_files): New function, renamed from
46396         get_translations.  Now, downloads, but doesn't update LINGUAS.
46397         (update_po_files): New function.
46398
46399         bootstrap: Ignore more.
46400         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46401         uniwidth to e.g., lib/.gitignore.
46402         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46403
46404         * build-aux/bootstrap: New setting: vc_ignore.
46405         (insert_sorted_if_absent): Create $file if absent.
46406         Adapt to new, possibly empty, list: $vc_ignore.
46407
46408         bootstrap: generate more ignorable names
46409         * build-aux/bootstrap (slurp): When generating ignorable names,
46410         also map .sin to .sed, .gperf to .c, and .y to .c.
46411
46412 2007-09-03  Jim Meyering  <jim@meyering.net>
46413
46414         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46415         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46416
46417 2007-09-02  Bruno Haible  <bruno@clisp.org>
46418
46419         Fix mis-recognition of 'mcs' on QNX 6.
46420         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46421         output contains the string "Mono".
46422         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46423         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46424
46425 2007-09-01  Bruno Haible  <bruno@clisp.org>
46426
46427         Fix collision between uniwidth/* and linebreak modules.
46428         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46429         u32_width): Remove declarations.
46430         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46431         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46432         streq3, streq2, streq1, streq0): Remove functions.
46433         (STREQ): Remove macro.
46434         (is_cjk_encoding): Remove function.
46435         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46436         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46437         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46438         * NEWS: Document the change.
46439
46440 2007-09-01  Bruno Haible  <bruno@clisp.org>
46441
46442         * lib/streq.h: Add double-inclusion guard.
46443
46444 2007-09-01  Karl Berry  <karl@gnu.org>
46445
46446         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46447
46448 2007-08-28  Jim Meyering  <jim@meyering.net>
46449
46450         Rename mreadlink_with_size to areadlink_with_size.
46451         * NEWS: Document the change.
46452         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46453         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46454         * lib/mreadlink.h: Rename this to...
46455         * lib/areadlink.h: ...this.
46456         * modules/mreadlink-with-size: Rename this to...
46457         * modules/areadlink-with-size: ...this.
46458         * lib/canonicalize.c: Reflect the renaming.
46459         * modules/canonicalize: Likewise.
46460
46461 2007-08-26  Bruno Haible  <bruno@clisp.org>
46462
46463         * gnulib-tool (func_import): When deciding which files to remove,
46464         consider also dangling symbolic links.
46465         Reported by Eric Blake.
46466
46467 2007-08-26  Bruno Haible  <bruno@clisp.org>
46468
46469         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
46470
46471 2007-08-23  Simon Josefsson  <simon@josefsson.org>
46472
46473         * lib/readline.c: Don't include getline.h, the prototype is now
46474         found in stdio.h.
46475
46476 2007-08-23  Jim Meyering  <jim@meyering.net>
46477
46478         Getdelim touchup.
46479         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
46480         around the funlockfile call, since funlockfile never sets errno.
46481         Don't set errno upon failed realloc.
46482
46483 2007-08-22  Eric Blake  <ebb9@byu.net>
46484
46485         Getline touchups.
46486         * lib/getdelim.c (getdelim): Revert regression that required *n to
46487         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
46488         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
46489         getdelim, rather than whether implementation is missing.
46490         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
46491         * lib/stdio_.h (getline): Also declare if replacement is
46492         required.
46493         * doc/functions/getdelim.texi: New file.
46494         * doc/functions/getline.texi: Likewise.
46495         * doc/gnulib.texi (Function Substitutes): Add new files.
46496         Reported by Bruno Haible.
46497
46498 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
46499
46500         * users.txt: Add Guile.
46501
46502 2007-08-22  Eric Blake  <ebb9@byu.net>
46503
46504         * tests/test-getdelim.c (main): Use remove, not unlink.
46505         * tests/test-getline.c (main): Likewise.
46506
46507         Move getline and getdelim into stdio.h, per POSIX 200x.
46508         * modules/getline (Files): Remove getline.h.
46509         (Depends-on): Add stdio.
46510         (configure.ac): Add module indicator.
46511         * modules/getdelim (Files): Remove getdelim.h.
46512         (Depends-on): Add stdio.
46513         (configure.ac): Add module indicator.
46514         * modules/stdio (Makefile.am): Work with new indicators.
46515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46516         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
46517         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46518         * lib/getdelim.h: Delete.
46519         * lib/getline.h: Delete.
46520         * lib/stdio_.h (getdelim, getline): Declare.
46521         * modules/getdelim-tests: New module.
46522         * modules/getline-tests: Likewise.
46523         * tests/test-getdelim.c: New file.
46524         * tests/test-getline.c: Likewise.
46525         * NEWS: Document the change.
46526         * lib/getline.c: Update choice of header.
46527         * lib/csharpcomp.c: Likewise.
46528         * lib/getpass.c: Likewise.
46529         * lib/javacomp.c: Likewise.
46530         * lib/javaversion.c: Likewise.
46531         * lib/yesno.c: Likewise.
46532         * lib/getdelim.c: Likewise.
46533         (getdelim): Set errno on failure, and avoid memory leak.
46534
46535 2007-08-19  Bruno Haible  <bruno@clisp.org>
46536
46537         * modules/closein (Depends-on): Add freadahead.
46538         * lib/closein.c: Include freadahead.h.
46539         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
46540         is zero.
46541
46542 2007-08-19  Bruno Haible  <bruno@clisp.org>
46543
46544         * modules/freadahead-tests: New file.
46545         * tests/test-freadahead.sh: New file.
46546         * tests/test-freadahead.c: New file.
46547
46548         * modules/freadahead: New file.
46549         * lib/freadahead.h: New file.
46550         * lib/freadahead.c: New file.
46551         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
46552         fbufmode, fpurge, freadable, fwritable.
46553
46554 2007-08-19  Eric Blake  <ebb9@byu.net>
46555
46556         Test yesno in combination with closein.
46557         * lib/yesno.c (yesno): Document use of stdin.
46558         * modules/yesno-tests (Files): New module.
46559         * tests/test-yesno.c (main): New file.
46560         * tests/test-yesno.sh: Likewise.
46561
46562 2007-08-19  Bruno Haible  <bruno@clisp.org>
46563
46564         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
46565         * lib/fseeko.c (rpl_fseeko): Likewise.
46566         * lib/fseterr.c (fseterr): Likewise.
46567
46568 2007-08-19  Bruno Haible  <bruno@clisp.org>
46569
46570         * tests/test-lseek.c (main): Disable a test for BeOS.
46571         * doc/functions/lseek.texi: Document the BeOS bug.
46572
46573 2007-08-19  Bruno Haible  <bruno@clisp.org>
46574             Eric Blake  <ebb9@byu.net>
46575
46576         * lib/lseek.c: Include <sys/stat.h>.
46577         (rpl_lseek): Add workaround code also for Unix platforms.
46578         Needed for BeOS.
46579         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
46580         * doc/functions/lseek.texi: Document BeOS definiency.
46581
46582 2007-08-18  Bruno Haible  <bruno@clisp.org>
46583
46584         * modules/fstrcmp-tests: New file.
46585         * tests/test-fstrcmp.c: New file.
46586
46587 2007-08-18  Bruno Haible  <bruno@clisp.org>
46588
46589         * modules/fstrcmp: New file, from GNU gettext with modifications.
46590         * lib/fstrcmp.h: New file, from GNU gettext.
46591         * lib/fstrcmp.c: New file, from GNU gettext.
46592         * MODULES.html.sh (String handling): Add fstrcmp.
46593
46594 2007-08-18  Bruno Haible  <bruno@clisp.org>
46595
46596         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
46597         'bool'.
46598         (diag, compareseq): Remove const from the ctxt argument.
46599         (USE_HEURISTIC): Undefine at the end.
46600
46601 2007-08-18  Jim Meyering  <jim@meyering.net>
46602
46603         New file: lib/idcache.h
46604         * NEWS: Mention the addition.
46605         * modules/idcache (Files): Add lib/idcache.h
46606         * lib/idcache.c: Include "idcache.h".
46607         Don't include <sys/types.h>.
46608         Add a FIXME comment.
46609         Move file-scoped "static" declarations to the top.
46610         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
46611
46612 2007-08-17  Bruno Haible  <bruno@clisp.org>
46613         and Paul Eggert  <eggert@cs.ucla.edu>
46614
46615         * MODULES.html.sh: Add diffseq.
46616         * modules/diffseq: New file.
46617         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
46618         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
46619
46620 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46621
46622         Import changes from coreutils for bootstrap script.
46623
46624         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
46625
46626         * build-aux/bootstrap (slurp): Work even in environments where
46627         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
46628         current code does not slurp files whose names start with ".", and
46629         this looks like it might be a troublesome area.
46630
46631         2007-07-11  Jim Meyering  <jim@meyering.net>
46632
46633         If there's a GPL vN copyright comment, require that N == 3.
46634
46635         2007-07-08  Jim Meyering  <jim@meyering.net>
46636
46637         Run the coreutils-specific code only if tests/Makefile.am.in exists.
46638         * build-aux/bootstrap (mam_template): Move definition out of loop.
46639
46640         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
46641
46642         * build-aux/bootstrap (symlink_to_dir): Rename function from
46643         symlink_to_gnulib.  Add a directory parameter.  Update all
46644         callers.
46645         (cp_mark_as_generated): Also check for -- and link to -- files in
46646         gl/.
46647
46648         2007-07-08  Jim Meyering  <jim@meyering.net>
46649
46650         Adapt to deeper hierarchy in gnulib.
46651         * build-aux/bootstrap (symlink_to_dir): If the destination
46652         directory doesn't exist, create it. This is required at least for
46653         "lib/uniwidth/cjk.h".
46654
46655         2007-05-15  Jim Meyering  <jim@meyering.net>
46656
46657         * build-aux/bootstrap: Now that generated Makefile.am files
46658         are no longer under version control, they must be created at
46659         bootstrap time.
46660
46661 2007-08-14  Ben Pfaff  <blp@gnu.org>
46662
46663         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
46664
46665 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46666
46667         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
46668         given the changes below.
46669         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
46670         even on hosts that have padding bits beyond the supported 64.
46671
46672 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46673
46674         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
46675         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
46676         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
46677         depends on it.
46678         (xstrtol_error): Remove.
46679         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
46680         but with a different signature.
46681         (ATTRIBUTE_NORETURN, __attribute__): New macros.
46682         * lib/xstrtol-error.c: Include exitfail.h.
46683         (xstrtol_fatal): New function, with a different signature from the
46684         old xstrtol_error, so that the caller need not worry about passing
46685         in an exit status, or about storage management of the option argument.
46686         (xstrtol_error): Now a static function.  Redo signature to
46687         implement xstrtol_fatal.  Output the correct number of hyphens in
46688         front of the option so that the caller need not worry about
46689         storage management.
46690         (N_): New macro.
46691         (_): Remove; not used now.
46692         * modules/xstrtol: Depend on getopt.
46693         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
46694         of old STRTOL_FATAL_ERROR macro.
46695         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
46696         of test program.
46697         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
46698         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
46699
46700 2007-08-08  Eric Blake  <ebb9@byu.net>
46701
46702         * lib/xstrtol-error.c: Add missing include.
46703
46704         Move xstrtol messages into gnulib domain, when --pobase is used.
46705         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
46706         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
46707         * modules/xstrtol (Files): Distribute new file.
46708         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
46709         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
46710         * tests/test-xstrtol.c: ...into new file.
46711         * tests/test-xstrtoul.c: Also test xstrtoul.
46712         * tests/test-xstrtoimax.c: Also test xstrtoimax.
46713         * tests/test-xstrtoumax.c: Also test xstrtoumax.
46714         * tests/test-xstrtol.sh: Drive the tests.
46715         * tests/test-xstrtoimax.sh: Likewise.
46716         * tests/test-xstrtoumax.sh: Likewise.
46717         * modules/xstrtol-tests: New module.
46718         * modules/xstrtoimax-tests: Likewise.
46719         * modules/xstrtoumax-tests: Likewise.
46720
46721 2007-08-08  Jim Meyering  <jim@meyering.net>
46722
46723         New function: mfile_name_concat.
46724         * lib/filenamecat.c (mfile_name_concat): New function, just like
46725         file_name_concat, but return NULL upon failure rather than exiting
46726         with a diagnostic.
46727         * lib/filenamecat.h: Declare it.
46728
46729 2007-08-07  Bruno Haible  <bruno@clisp.org>
46730
46731         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
46732         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
46733         warning from gcc.
46734         Reported by Eric Blake.
46735
46736 2007-08-07  Simon Josefsson  <simon@josefsson.org>
46737
46738         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
46739         * modules/crypto/arcfour (License): Likewise.
46740         * modules/crypto/des-tests (License): Likewise.
46741         * modules/crypto/gc-arctwo-tests (License): Likewise.
46742         * modules/crypto/gc-des-tests (License): Likewise.
46743         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
46744         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
46745         * modules/crypto/gc-md2-tests (License): Likewise.
46746         * modules/crypto/gc-md4-tests (License): Likewise.
46747         * modules/crypto/gc-md5-tests (License): Likewise.
46748         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
46749         * modules/crypto/gc-rijndael-tests (License): Likewise.
46750         * modules/crypto/gc-sha1-tests (License): Likewise.
46751         * modules/crypto/gc-tests (License): Likewise.
46752         * modules/crypto/hmac-md5 (License): Likewise.
46753         * modules/crypto/hmac-sha1 (License): Likewise.
46754         * modules/crypto/md2-tests (License): Likewise.
46755         * modules/crypto/md4-tests (License): Likewise.
46756         * modules/crypto/md5 (License): Likewise.
46757         * modules/crypto/rijndael (License): Likewise.
46758         * modules/crypto/sha1 (License): Likewise.
46759         * modules/memxor (License): Likewise.
46760
46761 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46762         and Bruno Haible  <bruno@clisp.org>
46763
46764         * NEWS: Describe interface changes to human, xstrtol.
46765         * lib/human.h: Include <xstrtol.h>.
46766         (human_options): Return enum strtol_error, not int.  Remove
46767         bool arg; take int * instead.
46768         * lib/human.c: Don't include "gettext.h".
46769         (_): Remove; no longer used.
46770         Don't include <xstrtol.h>, since human.h does it.
46771         (human_options): Adjust to abovementioned interface changes.
46772         Do not report error to stderr; that's now the caller's
46773         responsibility.
46774         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
46775         interface change.
46776         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
46777         Str, Argument_type_string.  All uses changed.  Put " argument"
46778         in diagnostics to make them clearer.  Change wording of suffix
46779         message for clarity.
46780         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
46781         Argument_type_string.
46782         (STRTOL_FATAL_WARN): Remove; no longer used.
46783         * modules/human (Depends-on): Remove gettext-h.
46784
46785 2007-08-06  Simon Josefsson  <simon@josefsson.org>
46786
46787         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
46788
46789 2007-07-31  Bruno Haible  <bruno@clisp.org>
46790
46791         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
46792         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
46793         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
46794
46795 2007-07-31  Bruno Haible  <bruno@clisp.org>
46796
46797         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46798         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46799
46800 2007-07-30  Bruno Haible  <bruno@clisp.org>
46801
46802         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46803         * modules/c-ctype (License): Likewise.
46804         * modules/c-strcase (License): Likewise.
46805         * modules/check-version (License): Likewise.
46806         * modules/iconv (License): Likewise.
46807         * modules/iconv_open (License): Likewise.
46808         * modules/read-file (License): Likewise.
46809         * modules/striconv (License): Likewise.
46810         * modules/strverscmp (License): Likewise.
46811         * modules/vasprintf (License): Likewise.
46812         * modules/crypto/des (License): Likewise.
46813         * modules/crypto/gc (License): Likewise.
46814         * modules/crypto/gc-arcfour (License): Likewise.
46815         * modules/crypto/gc-arctwo (License): Likewise.
46816         * modules/crypto/gc-des (License): Likewise.
46817         * modules/crypto/gc-hmac-md5 (License): Likewise.
46818         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46819         * modules/crypto/gc-md2 (License): Likewise.
46820         * modules/crypto/gc-md4 (License): Likewise.
46821         * modules/crypto/gc-md5 (License): Likewise.
46822         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46823         * modules/crypto/gc-random (License): Likewise.
46824         * modules/crypto/gc-rijndael (License): Likewise.
46825         * modules/crypto/gc-sha1 (License): Likewise.
46826         * modules/crypto/md2 (License): Likewise.
46827         * modules/crypto/md4 (License): Likewise.
46828
46829 2007-07-30  Jim Meyering  <jim@meyering.net>
46830
46831         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46832         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46833         it has valid stat data.  This bug would cause du not to count the
46834         sizes of inaccessible directories.
46835         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46836         in <http://bugzilla.redhat.com/250077>.
46837
46838 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46839             Bruno Haible  <bruno@clisp.org>
46840
46841         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46842         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46843         #include_next, gives a diagnostic about it, but reports no error in
46844         the exit code.
46845         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46846
46847 2007-07-24  Ben Pfaff  <blp@gnu.org>
46848
46849         Improve name: "count-one-bits" is better than "popcount".
46850         * MODULES.html.sh: Update name.
46851         * lib/popcount.h: Renamed lib/count-one-bits.h.
46852         (popcount): Renamed count_one_bits.
46853         (popcountl): Renamed count_one_bits_l.
46854         (popcountll): Renamed count_one_bits_ll.
46855         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46856         * modules/popcount: Renamed module/count-one-bits.
46857         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46858         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46859
46860 2007-07-23  Ben Pfaff  <blp@gnu.org>
46861
46862         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46863         better code generation, and add U to large constants to avoid
46864         warnings, in non-GCC case.
46865         Suggested by Bruno Haible.
46866
46867 2007-07-23  Ben Pfaff  <blp@gnu.org>
46868
46869         * lib/popcount.h: Use verify_true instead of if...abort.
46870         * modules/popcount: Depend on verify module.
46871         Suggested by Jim Meyering.
46872
46873 2007-07-23  Bruno Haible  <bruno@clisp.org>
46874
46875         * gnulib-tool (func_import): Create a .cvsignore file also when the
46876         directory is not yet in CVS but the toplevel directory is. When
46877         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46878         Reported by Karl Berry.
46879
46880 2007-07-22  Ben Pfaff  <blp@gnu.org>
46881
46882         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46883         case.
46884         Suggested by Eric Blake.
46885
46886 2007-07-22  Ben Pfaff  <blp@gnu.org>
46887
46888         New module: popcount.
46889         * MODULES.html.sh: Add popcount.
46890         * modules/popcount: New file.
46891         * modules/popcount-tests: New file.
46892         * tests/test-popcount.c: New file.
46893         * lib/popcount.h: New file.
46894         * m4/popcount.m4: New file.
46895
46896 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46897
46898         * build-aux/announce-gen: Update to GPLv3.
46899
46900         * build-aux/config.guess: Update from config.
46901
46902 2007-07-21  Bruno Haible  <bruno@clisp.org>
46903
46904         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46905         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46906
46907 2007-07-20  Jim Meyering  <jim@meyering.net>
46908
46909         * check-module: Diagnose a self-dependency.
46910
46911 2007-07-19  Bruno Haible  <bruno@clisp.org>
46912
46913         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46914         empty.
46915         Reported by Eric Blake.
46916
46917 2007-07-18  Bruno Haible  <bruno@clisp.org>
46918
46919         * gnulib-tool: New options --po-base, --po-domain.
46920         (func_usage): Document them.
46921         (pobase, po_domain): New variables.
46922         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46923         DEFAULT_TEXT_DOMAIN.
46924         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46925         (func_import): Consider pobase and po_domain. Create a po/ directory.
46926         (func_create_testdir): Set pobase and po_domain to empty.
46927         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46928         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46929
46930 2007-07-18  Bruno Haible  <bruno@clisp.org>
46931
46932         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46933         EXTRA_DIST augmentation for files in build-aux/.
46934
46935 2007-07-16  Bruno Haible  <bruno@clisp.org>
46936
46937         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46938         * modules/getdelim (License): Likewise.
46939
46940 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46941
46942         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46943         * modules/d-type (License): Likewise.
46944         * modules/extensions (License): Likewise.
46945         * modules/fnmatch (License): Likewise.
46946         * modules/fseeko (License): Likewise.
46947         * modules/getaddrinfo (License): Likewise.
46948         * modules/getline (License): Likewise.
46949         * modules/getlogin_r (License): Likewise.
46950         * modules/getpass (License): Likewise.
46951         * modules/gettimeofday (License): Likewise.
46952         * modules/glob (License): Likewise.
46953         * modules/inet_ntop (License): Likewise.
46954         * modules/malloc (License): Likewise.
46955         * modules/malloca (License): Likewise.
46956         * modules/memmem (License): Likewise.
46957         * modules/mempcpy (License): Likewise.
46958         * modules/memset (License): Likewise.
46959         * modules/minmax (License): Likewise.
46960         * modules/mktime (License): Likewise.
46961         * modules/netinet_in (License): Likewise.
46962         * modules/pathmax (License): Likewise.
46963         * modules/poll (License): Likewise.
46964         * modules/regex (License): Likewise.
46965         * modules/snprintf (License): Likewise.
46966         * modules/stdbool (License): Likewise.
46967         * modules/stdint (License): Likewise.
46968         * modules/stdio (License): Likewise.
46969         * modules/strcase (License): Likewise.
46970         * modules/strcasestr (License): Likewise.
46971         * modules/strdup (License): Likewise.
46972         * modules/string (License): Likewise.
46973         * modules/strndup (License): Likewise.
46974         * modules/strnlen (License): Likewise.
46975         * modules/strpbrk (License): Likewise.
46976         * modules/strptime (License): Likewise.
46977         * modules/strsep (License): Likewise.
46978         * modules/sys_select (License): Likewise.
46979         * modules/sys_socket (License): Likewise.
46980         * modules/sys_stat (License): Likewise.
46981         * modules/sys_time (License): Likewise.
46982         * modules/time (License): Likewise.
46983         * modules/time_r (License): Likewise.
46984         * modules/timegm (License): Likewise.
46985         * modules/unistd (License): Likewise.
46986         * modules/vsnprintf (License): Likewise.
46987         * modules/wctype (License): Likewise.
46988
46989 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46990
46991         * modules/argz (License): LGPLv2+.
46992
46993 2007-07-15  Karl Berry  <karl@gnu.org>
46994
46995         * doc/gnulib.texi: revise node structure per new fdl.texi.
46996
46997 2007-07-14  Bruno Haible  <bruno@clisp.org>
46998
46999         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47000         the output file.
47001         * lib/uniname/uninames.h: Regenerated.
47002
47003 2007-07-14  Karl Berry  <karl@gnu.org>
47004
47005         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47006         omitting sectioning and index commands.
47007
47008 2007-07-13  Bruno Haible  <bruno@clisp.org>
47009
47010         New gnulib-tool option --more-symlinks.
47011         * gnulib-tool (func_usage): Document --more-symlinks.
47012         (do_copyrights): New variable.
47013         Recognize option --more-symlinks.
47014         (func_import): Don't add a copyright notice transform to
47015         sed_transform_lib_file if do_copyrights is empty.
47016
47017 2007-07-13  Bruno Haible  <bruno@clisp.org>
47018
47019         * lib/vasnprintf.c (decimal_point_char): Define also if
47020         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47021         && !NEED_PRINTF_DIRECTIVE_A.
47022         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47023         Gary V. Vaughan <gary@gnu.org>.
47024
47025 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47026
47027         * lib/inttypes_.h: Undo previous change, since it was fixed
47028         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47029
47030 2007-07-13  Bruno Haible  <bruno@clisp.org>
47031
47032         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47033         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47034
47035 2007-07-13  Jim Meyering  <jim@meyering.net>
47036
47037         df: Don't fail for Tru64's "file-on-file mount".
47038         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47039         so we fall through and use statfs instead.  Details here:
47040         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47041         Reported by Albert Chin.
47042
47043 2007-07-13  Bruno Haible  <bruno@clisp.org>
47044
47045         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47046         * modules/configmake (License): Likewise.
47047         * modules/gettext (License): Likewise.
47048         * modules/gettext-h (License): Likewise.
47049         * modules/include_next (License): Likewise.
47050         * modules/link-warning (License): Likewise.
47051         * modules/localcharset (License): Likewise.
47052         * modules/localename (License): Likewise.
47053         * modules/lock (License): Likewise.
47054         * modules/relocatable-lib-lgpl (License): Likewise.
47055         * modules/size_max (License): Likewise.
47056         * modules/vasnprintf (License): Likewise.
47057         * modules/wchar (License): Likewise.
47058         * modules/xsize (License): Likewise.
47059
47060 2007-07-13  Bruno Haible  <bruno@clisp.org>
47061
47062         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47063         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47064
47065 2007-07-12  Bruno Haible  <bruno@clisp.org>
47066
47067         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47068         in the modules files.
47069
47070 2007-07-11  Karl Berry  <karl@gnu.org>
47071
47072         * MODULES.html.sh (func_module): use
47073          sed -e '\|^'"${includefile}"'$|d'
47074          instead of /.../d, to avoid errors on $includefile's containing /.
47075
47076 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47077
47078         * gnulib-tool (func_import): Avoid duplication of --avoid
47079         statements
47080         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47081         names to `_' in variable names.
47082
47083 2007-07-10  Eric Blake  <ebb9@byu.net>
47084
47085         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47086         * NEWS: Document this change.
47087
47088 2007-07-08  Bruno Haible  <bruno@clisp.org>
47089
47090         Update to Unicode 5.0.
47091         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47092         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47093         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47094         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47095         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47096         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47097         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47098         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47099         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47100         U+10A3F, U+1D242..U+1D244.
47101         (nonspacing_table_ind): Update.
47102         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47103         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47104
47105 2007-07-08  Bruno Haible  <bruno@clisp.org>
47106
47107         Update to Unicode 5.0.
47108         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47109         code transform. Extend the name index field of unicode_name_to_code and
47110         unicode_code_to_name from 16 to 24 bits.
47111         * lib/uniname/uniname.c (unicode_character_name,
47112         unicode_name_character): Add the range 0x12xxx to the code transform.
47113         * lib/uniname/uninames.h: Regenerated.
47114         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47115
47116 2007-07-07  Bruno Haible  <bruno@clisp.org>
47117
47118         * modules/wcwidth-tests: New file.
47119         * tests/test-wcwidth.c: New file.
47120
47121         Work around MacOS X wcwidth() bug.
47122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47123         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47124         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47125         original wcwidth in non-UTF-8 locales.
47126         * modules/wcwidth (Depends-on): Add localcharset, streq,
47127         uniwidth/width.
47128         * doc/functions/wcwidth.texi: Update.
47129
47130 2007-07-07  Bruno Haible  <bruno@clisp.org>
47131
47132         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47133         (wcwidth): New declaration.
47134         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47135         macros.
47136         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47137         here. Prepare for creating <wchar.h> unconditionally.
47138         * modules/wchar (Depends-on): Add link-warning.
47139         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47140         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47141         * lib/wcwidth.h: Remove file.
47142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47143         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47144         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47145         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47146         (Include): Replace wcwidth.h with <wchar.h>.
47147         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47148         * lib/mbchar.h: Don't include wcwidth.h.
47149         * lib/mbswidth.c: Likewise.
47150         * NEWS: Mention the change.
47151
47152 2007-07-07  Bruno Haible  <bruno@clisp.org>
47153
47154         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47155         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47156         definition with an external declaration.
47157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47158         defined as a function. Remove AC_C_INLINE requirement.
47159         * modules/wcwidth (Files): Add lib/wcwidth.c.
47160         (Makefile.am): Remove redundant statement.
47161
47162 2007-07-07  Bruno Haible  <bruno@clisp.org>
47163
47164         * MODULES.html.sh (Unicode string functions): Add the new modules.
47165
47166         * tests/uniwidth/test-u32-strwidth.c: New file.
47167         * modules/uniwidth/u32-strwidth-tests: New file.
47168
47169         * lib/uniwidth/u32-strwidth.c: New file.
47170         * modules/uniwidth/u32-strwidth: New file.
47171
47172         * tests/uniwidth/test-u16-strwidth.c: New file.
47173         * modules/uniwidth/u16-strwidth-tests: New file.
47174
47175         * lib/uniwidth/u16-strwidth.c: New file.
47176         * modules/uniwidth/u16-strwidth: New file.
47177
47178         * tests/uniwidth/test-u8-strwidth.c: New file.
47179         * modules/uniwidth/u8-strwidth-tests: New file.
47180
47181         * lib/uniwidth/u8-strwidth.c: New file.
47182         * modules/uniwidth/u8-strwidth: New file.
47183
47184         * tests/uniwidth/test-u32-width.c: New file.
47185         * modules/uniwidth/u32-width-tests: New file.
47186
47187         * lib/uniwidth/u32-width.c: New file.
47188         * modules/uniwidth/u32-width: New file.
47189
47190         * tests/uniwidth/test-u16-width.c: New file.
47191         * modules/uniwidth/u16-width-tests: New file.
47192
47193         * lib/uniwidth/u16-width.c: New file.
47194         * modules/uniwidth/u16-width: New file.
47195
47196         * tests/uniwidth/test-u8-width.c: New file.
47197         * modules/uniwidth/u8-width-tests: New file.
47198
47199         * lib/uniwidth/u8-width.c: New file.
47200         * modules/uniwidth/u8-width: New file.
47201
47202         * tests/uniwidth/test-uc_width.c: New file.
47203         * modules/uniwidth/width-tests: New file.
47204
47205         * lib/uniwidth/width.c: New file, from GNU libiconv.
47206         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47207         * modules/uniwidth/width: New file.
47208
47209         * lib/uniwidth.h: New file, from GNU libiconv.
47210         * modules/uniwidth/base: New file.
47211
47212 2007-07-07  Bruno Haible  <bruno@clisp.org>
47213
47214         * lib/uniname.h: New file, from GNU gettext.
47215         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47216         * lib/uniname/uninames.h: New file, from GNU gettext.
47217         * lib/uniname/uniname.c: New file, from GNU gettext.
47218         * tests/uniname/test-uninames.sh: New file.
47219         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47220         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47221         * modules/uniname/base: New file.
47222         * modules/uniname/uniname: New file.
47223         * modules/uniname/uniname-tests: New file.
47224         * MODULES.html.sh (Unicode string functions): Add the new modules.
47225
47226 2007-07-06  Bruno Haible  <bruno@clisp.org>
47227
47228         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47229
47230 2007-07-06  Bruno Haible  <bruno@clisp.org>
47231
47232         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47233         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47234         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47235         include <sys/time.h>.
47236         Reported by Eric Blake.
47237
47238 2007-07-06  Eric Blake  <ebb9@byu.net>
47239
47240         Fix testing canonicalize on cygwin.
47241         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47242         Revert patch from 2007-06-19.
47243         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47244         canonicalize module is also in use.
47245         * tests/test-canonicalize.c: New file.
47246         * tests/test-canonicalize.sh: Likewise.
47247         * modules/canonicalize-tests: Likewise.
47248
47249 2007-07-06  Jim Meyering  <jim@meyering.net>
47250
47251         * lib/getugroups.c (getugroups): Detect getgrent failure.
47252         Adjust comment to reflect reality: this function may return -1.
47253
47254 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47255
47256         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47257         the new TP address.
47258         (usage): Fix typo
47259         (gnulib_mk): New variable.
47260
47261 2007-07-05  Jim Meyering  <jim@meyering.net>
47262
47263         Don't let endgrent clobber errno, no matter how improbable.
47264         * lib/getugroups.c (getugroups): Save and restore errno around
47265         endgrent call.
47266
47267         Close the group DB even when failing with 2^31 or more members.
47268         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47269
47270 2007-07-04  Jim Meyering  <jim@meyering.net>
47271
47272         * lib/getugroups.h: New file.
47273         * lib/getugroups.c: Include "getugroups.h".
47274         Remove uses of "register" keyword.
47275         Move local variable, "cp", down into scope where used.
47276         Give "username" parameter the "const" attribute.
47277         * modules/getugroups (Files): Add lib/getugroups.h
47278
47279 2007-07-04  Karl Berry  <karl@gnu.org>
47280
47281         * MODULES.html.sh (func_all_modules): Complete rename of
47282         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47283
47284 2007-07-02  Bruno Haible  <bruno@clisp.org>
47285
47286         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47287         mode, when inttypes.h comes from gnulib.
47288         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47289
47290 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47291
47292         * NEWS: Mention lgpl module name change.
47293
47294         * modules/lgpl-2.1: Renamed from lgpl.
47295
47296         * NEWS: Mention gpl module name change.
47297
47298         * modules/gpl-3.0: New file, based on gpl-2.0.
47299
47300         * modules/gpl-2.0: Renamed from gpl.
47301
47302         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47303         doc/gpl-2.0.texi.
47304
47305 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47306
47307         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47308         #define __STDC_LIMIT_MACROS temporarily while including
47309         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47310         Problem reported by Joel E. Denny in
47311         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47312
47313 2007-07-01  Bruno Haible  <bruno@clisp.org>
47314
47315         * lib/unistdio.h: New file.
47316         * lib/unistdio/u-asnprintf.h: New file.
47317         * lib/unistdio/u-asprintf.h: New file.
47318         * lib/unistdio/u-printf-args.c: New file.
47319         * lib/unistdio/u-printf-args.h: New file.
47320         * lib/unistdio/u-printf-parse.h: New file.
47321         * lib/unistdio/u-snprintf.h: New file.
47322         * lib/unistdio/u-sprintf.h: New file.
47323         * lib/unistdio/u-vasprintf.h: New file.
47324         * lib/unistdio/u-vsnprintf.h: New file.
47325         * lib/unistdio/u-vsprintf.h: New file.
47326         * lib/unistdio/ulc-asnprintf.c: New file.
47327         * lib/unistdio/ulc-asprintf.c: New file.
47328         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47329         * lib/unistdio/ulc-printf-parse.c: New file.
47330         * lib/unistdio/ulc-snprintf.c: New file.
47331         * lib/unistdio/ulc-sprintf.c: New file.
47332         * lib/unistdio/ulc-vasnprintf.c: New file.
47333         * lib/unistdio/ulc-vasprintf.c: New file.
47334         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47335         * lib/unistdio/ulc-vsnprintf.c: New file.
47336         * lib/unistdio/ulc-vsprintf.c: New file.
47337         * lib/unistdio/u8-asnprintf.c: New file.
47338         * lib/unistdio/u8-asprintf.c: New file.
47339         * lib/unistdio/u8-printf-parse.c: New file.
47340         * lib/unistdio/u8-snprintf.c: New file.
47341         * lib/unistdio/u8-sprintf.c: New file.
47342         * lib/unistdio/u8-vasnprintf.c: New file.
47343         * lib/unistdio/u8-vasprintf.c: New file.
47344         * lib/unistdio/u8-vsnprintf.c: New file.
47345         * lib/unistdio/u8-vsprintf.c: New file.
47346         * lib/unistdio/u8-u8-asnprintf.c: New file.
47347         * lib/unistdio/u8-u8-asprintf.c: New file.
47348         * lib/unistdio/u8-u8-snprintf.c: New file.
47349         * lib/unistdio/u8-u8-sprintf.c: New file.
47350         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47351         * lib/unistdio/u8-u8-vasprintf.c: New file.
47352         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47353         * lib/unistdio/u8-u8-vsprintf.c: New file.
47354         * lib/unistdio/u16-asnprintf.c: New file.
47355         * lib/unistdio/u16-asprintf.c: New file.
47356         * lib/unistdio/u16-printf-parse.c: New file.
47357         * lib/unistdio/u16-snprintf.c: New file.
47358         * lib/unistdio/u16-sprintf.c: New file.
47359         * lib/unistdio/u16-vasnprintf.c: New file.
47360         * lib/unistdio/u16-vasprintf.c: New file.
47361         * lib/unistdio/u16-vsnprintf.c: New file.
47362         * lib/unistdio/u16-vsprintf.c: New file.
47363         * lib/unistdio/u16-u16-asnprintf.c: New file.
47364         * lib/unistdio/u16-u16-asprintf.c: New file.
47365         * lib/unistdio/u16-u16-snprintf.c: New file.
47366         * lib/unistdio/u16-u16-sprintf.c: New file.
47367         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47368         * lib/unistdio/u16-u16-vasprintf.c: New file.
47369         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47370         * lib/unistdio/u16-u16-vsprintf.c: New file.
47371         * lib/unistdio/u32-asnprintf.c: New file.
47372         * lib/unistdio/u32-asprintf.c: New file.
47373         * lib/unistdio/u32-printf-parse.c: New file.
47374         * lib/unistdio/u32-snprintf.c: New file.
47375         * lib/unistdio/u32-sprintf.c: New file.
47376         * lib/unistdio/u32-vasnprintf.c: New file.
47377         * lib/unistdio/u32-vasprintf.c: New file.
47378         * lib/unistdio/u32-vsnprintf.c: New file.
47379         * lib/unistdio/u32-vsprintf.c: New file.
47380         * lib/unistdio/u32-u32-asnprintf.c: New file.
47381         * lib/unistdio/u32-u32-asprintf.c: New file.
47382         * lib/unistdio/u32-u32-snprintf.c: New file.
47383         * lib/unistdio/u32-u32-sprintf.c: New file.
47384         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47385         * lib/unistdio/u32-u32-vasprintf.c: New file.
47386         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47387         * lib/unistdio/u32-u32-vsprintf.c: New file.
47388         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47389         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47390         * tests/unistdio/test-ulc-printf1.h: New file.
47391         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47392         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47393         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47394         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47395         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47396         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47397         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47398         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47399         * tests/unistdio/test-u8-asnprintf1.c: New file.
47400         * tests/unistdio/test-u8-asnprintf1.h: New file.
47401         * tests/unistdio/test-u8-printf1.h: New file.
47402         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47403         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47404         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47405         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47406         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47407         * tests/unistdio/test-u8-vasprintf1.c: New file.
47408         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47409         * tests/unistdio/test-u8-vsprintf1.c: New file.
47410         * tests/unistdio/test-u16-asnprintf1.c: New file.
47411         * tests/unistdio/test-u16-asnprintf1.h: New file.
47412         * tests/unistdio/test-u16-printf1.h: New file.
47413         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47414         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47415         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47416         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47417         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47418         * tests/unistdio/test-u16-vasprintf1.c: New file.
47419         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47420         * tests/unistdio/test-u16-vsprintf1.c: New file.
47421         * tests/unistdio/test-u32-asnprintf1.c: New file.
47422         * tests/unistdio/test-u32-asnprintf1.h: New file.
47423         * tests/unistdio/test-u32-printf1.h: New file.
47424         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47425         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47426         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47427         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47428         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47429         * tests/unistdio/test-u32-vasprintf1.c: New file.
47430         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47431         * tests/unistdio/test-u32-vsprintf1.c: New file.
47432         * modules/unistdio/base: New file.
47433         * modules/unistdio/u-printf-args: New file.
47434         * modules/unistdio/ulc-asnprintf: New file.
47435         * modules/unistdio/ulc-asprintf: New file.
47436         * modules/unistdio/ulc-fprintf: New file.
47437         * modules/unistdio/ulc-printf-parse: New file.
47438         * modules/unistdio/ulc-snprintf: New file.
47439         * modules/unistdio/ulc-sprintf: New file.
47440         * modules/unistdio/ulc-vasnprintf: New file.
47441         * modules/unistdio/ulc-vasprintf: New file.
47442         * modules/unistdio/ulc-vfprintf: New file.
47443         * modules/unistdio/ulc-vsnprintf: New file.
47444         * modules/unistdio/ulc-vsprintf: New file.
47445         * modules/unistdio/u8-asnprintf: New file.
47446         * modules/unistdio/u8-asprintf: New file.
47447         * modules/unistdio/u8-printf-parse: New file.
47448         * modules/unistdio/u8-snprintf: New file.
47449         * modules/unistdio/u8-sprintf: New file.
47450         * modules/unistdio/u8-vasnprintf: New file.
47451         * modules/unistdio/u8-vasprintf: New file.
47452         * modules/unistdio/u8-vsnprintf: New file.
47453         * modules/unistdio/u8-vsprintf: New file.
47454         * modules/unistdio/u8-u8-asnprintf: New file.
47455         * modules/unistdio/u8-u8-asprintf: New file.
47456         * modules/unistdio/u8-u8-snprintf: New file.
47457         * modules/unistdio/u8-u8-sprintf: New file.
47458         * modules/unistdio/u8-u8-vasnprintf: New file.
47459         * modules/unistdio/u8-u8-vasprintf: New file.
47460         * modules/unistdio/u8-u8-vsnprintf: New file.
47461         * modules/unistdio/u8-u8-vsprintf: New file.
47462         * modules/unistdio/u16-asnprintf: New file.
47463         * modules/unistdio/u16-asprintf: New file.
47464         * modules/unistdio/u16-printf-parse: New file.
47465         * modules/unistdio/u16-snprintf: New file.
47466         * modules/unistdio/u16-sprintf: New file.
47467         * modules/unistdio/u16-vasnprintf: New file.
47468         * modules/unistdio/u16-vasprintf: New file.
47469         * modules/unistdio/u16-vsnprintf: New file.
47470         * modules/unistdio/u16-vsprintf: New file.
47471         * modules/unistdio/u16-u16-asnprintf: New file.
47472         * modules/unistdio/u16-u16-asprintf: New file.
47473         * modules/unistdio/u16-u16-snprintf: New file.
47474         * modules/unistdio/u16-u16-sprintf: New file.
47475         * modules/unistdio/u16-u16-vasnprintf: New file.
47476         * modules/unistdio/u16-u16-vasprintf: New file.
47477         * modules/unistdio/u16-u16-vsnprintf: New file.
47478         * modules/unistdio/u16-u16-vsprintf: New file.
47479         * modules/unistdio/u32-asnprintf: New file.
47480         * modules/unistdio/u32-asprintf: New file.
47481         * modules/unistdio/u32-printf-parse: New file.
47482         * modules/unistdio/u32-snprintf: New file.
47483         * modules/unistdio/u32-sprintf: New file.
47484         * modules/unistdio/u32-vasnprintf: New file.
47485         * modules/unistdio/u32-vasprintf: New file.
47486         * modules/unistdio/u32-vsnprintf: New file.
47487         * modules/unistdio/u32-vsprintf: New file.
47488         * modules/unistdio/u32-u32-asnprintf: New file.
47489         * modules/unistdio/u32-u32-asprintf: New file.
47490         * modules/unistdio/u32-u32-snprintf: New file.
47491         * modules/unistdio/u32-u32-sprintf: New file.
47492         * modules/unistdio/u32-u32-vasnprintf: New file.
47493         * modules/unistdio/u32-u32-vasprintf: New file.
47494         * modules/unistdio/u32-u32-vsnprintf: New file.
47495         * modules/unistdio/u32-u32-vsprintf: New file.
47496         * modules/unistdio/ulc-asnprintf-tests: New file.
47497         * modules/unistdio/ulc-vasnprintf-tests: New file.
47498         * modules/unistdio/ulc-vasprintf-tests: New file.
47499         * modules/unistdio/ulc-vsnprintf-tests: New file.
47500         * modules/unistdio/ulc-vsprintf-tests: New file.
47501         * modules/unistdio/u8-asnprintf-tests: New file.
47502         * modules/unistdio/u8-vasnprintf-tests: New file.
47503         * modules/unistdio/u8-vasprintf-tests: New file.
47504         * modules/unistdio/u8-vsnprintf-tests: New file.
47505         * modules/unistdio/u8-vsprintf-tests: New file.
47506         * modules/unistdio/u16-asnprintf-tests: New file.
47507         * modules/unistdio/u16-vasnprintf-tests: New file.
47508         * modules/unistdio/u16-vasprintf-tests: New file.
47509         * modules/unistdio/u16-vsnprintf-tests: New file.
47510         * modules/unistdio/u16-vsprintf-tests: New file.
47511         * modules/unistdio/u32-asnprintf-tests: New file.
47512         * modules/unistdio/u32-vasnprintf-tests: New file.
47513         * modules/unistdio/u32-vasprintf-tests: New file.
47514         * modules/unistdio/u32-vsnprintf-tests: New file.
47515         * modules/unistdio/u32-vsprintf-tests: New file.
47516         * MODULES.html.sh (Unicode string functions): Add the new modules.
47517
47518 2007-07-01  Bruno Haible  <bruno@clisp.org>
47519
47520         * lib/sprintf.c (sprintf): Limit the available length estimation,
47521         to avoid address wraparound.
47522         * lib/vsprintf.c (vsprintf): Likewise.
47523         * modules/sprintf-posix (Dependencies): Add stdint.
47524         * modules/vsprintf-posix (Dependencies): Likewise.
47525
47526 2007-07-01  Bruno Haible  <bruno@clisp.org>
47527
47528         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
47529         Windows PATH as well. Conservative double-quoting. Comments.
47530
47531 2007-07-01  Bruno Haible  <bruno@clisp.org>
47532             Eric Blake  <ebb9@byu.net>
47533             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47534
47535         * gnulib-tool (self_abspathname): Fix algorithm to cope with
47536         empty components in $PATH, denoting '.'.
47537
47538 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47539
47540         * gnulib-tool: Fix indentation.
47541         (func_create_megatestdir): Likewise.
47542         Report by Bruno Haible.
47543
47544 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47545
47546         Sync from Automake.
47547         * build-aux/gnupload: Fix shell portability issues with for loops.
47548         Report by Karl Berry.
47549
47550 2007-06-29  Simon Josefsson  <simon@josefsson.org>
47551
47552         * build-aux/maint.mk (POURL): Use translationproject.org.
47553
47554 2007-06-27  Simon Josefsson  <simon@josefsson.org>
47555             Bruno Haible  <bruno@clisp.org>
47556
47557         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
47558         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
47559         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
47560         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
47561         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
47562
47563 2007-06-27  Bruno Haible  <bruno@clisp.org>
47564
47565         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
47566         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
47567
47568 2007-06-26  Karl Berry  <karl@gnu.org>
47569
47570         * MODULES.html.sh: remove xreadlink-with-size.
47571
47572 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47573
47574         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
47575         method that I hope also handles the double-include problem noted
47576         by Bruno Haible in
47577         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
47578
47579 2007-06-23  Bruno Haible  <bruno@clisp.org>
47580
47581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47582         Don't let the 'mostlyclean' target fail if the last subdirectory could
47583         not be removed.
47584         Reported by Karl Berry.
47585
47586 2007-06-23  Bruno Haible  <bruno@clisp.org>
47587
47588         * gnulib-tool (echo): Add a speedier workaround for ksh.
47589         * tests/test-echo.sh: Likewise.
47590
47591 2007-06-23  Bruno Haible  <bruno@clisp.org>
47592
47593         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
47594         * tests/test-echo.sh: Likewise.
47595
47596 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47597
47598         * gnulib-tool (IFS): Initialize early, so we don't set it to
47599         empty later.
47600         (self_abspathname): Rewrite algorithm to set it, reindent.
47601         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
47602         (func_create_megatestdir): Merge some sed scripts.
47603
47604 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47605
47606         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
47607         exposed by Sun Studio 11 cc on Solaris 8.
47608
47609 2007-06-22  Bruno Haible  <bruno@clisp.org>
47610
47611         * gnulib-tool (echo): Ensure the echo primitive does not interpret
47612         backslashes.
47613         * tests/test-echo.sh: New file.
47614
47615 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47616
47617         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
47618         simplify `sed_replace_build_aux' scripts, they are portable but
47619         echoing them with `echo' is not.
47620         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
47621
47622 2007-06-21  Karl Berry  <karl@gnu.org>
47623
47624         * config/srclist.txt: guess we can't handle the licenses via
47625         srclist at the moment.
47626
47627 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47628
47629         * MODULES.html.sh: Add include_next.
47630         * modules/include_next: New file.
47631
47632 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47633
47634         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
47635         INCLUDE_NEXT.
47636         (gl_CHECK_NEXT_HEADERS): New macro.
47637         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
47638         the obsolescent gl_ABSOLUTE_HEADER.
47639         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
47640         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
47641         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
47642         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47643         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47644         * m4/math_h.m4 (gl_MATH_H): Likewise.
47645         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47646         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47647         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47648         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47649         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47650         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47651         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47655         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
47656         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
47657         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47658         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47659         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47660         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47661         * m4/inttypes.m4 (gl_INTTYPES_H): Define
47662         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
47663         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
47664         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
47665         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
47666         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
47667         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
47668         * lib/float_.h: Likewise.
47669         * lib/inttypes_.h: Likewise.
47670         * lib/math_.h: Likewise.
47671         * lib/search_.h: Likewise.
47672         * lib/signal_.h: Likewise.
47673         * lib/stdint_.h: Likewise.
47674         * lib/stdio_.h: Likewise.
47675         * lib/stdlib_.h: Likewise.
47676         * lib/string_.h: Likewise.
47677         * lib/sys_stat_.h: Likewise.
47678         * lib/sys_time_.h: Likewise.
47679         * lib/time_.h: Likewise.
47680         * lib/unistd_.h: Likewise.
47681         * lib/wchar_.h: Likewise.
47682         * lib/wctype_.h: Likewise.
47683         * lib/dirent_.h: Likewise.
47684         * lib/iconv_.h: Likewise.
47685         * lib/locale_.h: Likewise.
47686         * lib/netinet_in_.h: Likewise.
47687         * lib/sys_select_.h: Likewise.
47688         * lib/sys_socket_.h: Likewise.
47689         * lib/sysexits_.h: Likewise.
47690         * modules/fcntl (Depends-on): Depend on include_next, not
47691         absolute_header.
47692         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
47693         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
47694         * modules/fchdir: Likewise.
47695         * modules/float: Likewise.
47696         * modules/iconv_open: Likewise.
47697         * modules/inttypes: Likewise.
47698         * modules/locale: Likewise.
47699         * modules/math: Likewise.
47700         * modules/netinet_in: Likewise.
47701         * modules/search: Likewise.
47702         * modules/signal: Likewise.
47703         * modules/stdint: Likewise.
47704         * modules/stdio: Likewise.
47705         * modules/stdlib: Likewise.
47706         * modules/string: Likewise.
47707         * modules/sys_select: Likewise.
47708         * modules/sys_socket: Likewise.
47709         * modules/sys_stat: Likewise.
47710         * modules/sys_time: Likewise.
47711         * modules/sysexits: Likewise.
47712         * modules/time: Likewise.
47713         * modules/unistd: Likewise.
47714         * modules/wchar: Likewise.
47715         * modules/wctype: Likewise.
47716         * modules/sys_stat: Change maintainer to "all".
47717         * modules/unistd: Likewise.
47718
47719 2007-06-20  Karl Berry  <karl@gnu.org>
47720
47721         * config/srclist.txt: track www changes in license files.
47722
47723 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
47724
47725         * build-aux/bootstrap: Remove stray dot.
47726         Make sure build_aux settings are honored when linking
47727         gnulib_extra_files.
47728
47729 2007-06-19  Eric Blake  <ebb9@byu.net>
47730
47731         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47732         Allow compilation on cygwin.
47733
47734 2007-06-19  Jim Meyering  <jim@meyering.net>
47735
47736         xreadlink-with-size: Remove module.  No longer used.
47737         Ex-callers now use xreadlink or mreadlink-with-size.
47738         * modules/xreadlink-with-size: Remove module.
47739         * lib/xreadlink-with-size.c: Remove file.
47740         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
47741         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
47742         just before the function definition *is* accurate.
47743
47744         Eliminate one way canonicalize_filename_mode could exit.
47745         * lib/canonicalize.c (canonicalize_filename_mode):
47746         Use mreadlink_with_size, not xreadlink_with_size.
47747
47748 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
47749
47750         Detect porting problems to FreeBSD/arm, which has time_t wider than
47751         long int.  Original problem reported for GNU diff by Xin Li in
47752         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
47753         * modules/getdate (Depends-on): Add intprops, verify.
47754         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
47755         is an integer type no wider than long int.
47756
47757 2007-06-18  Jim Meyering  <jim@meyering.net>
47758
47759         New module: mreadlink-with-size.
47760         * MODULES.html.sh: Add mreadlink-with-size.
47761         * modules/mreadlink-with-size: New module
47762         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
47763         not xreadlink-with-size.
47764         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
47765
47766 2007-06-16  Bruno Haible  <bruno@clisp.org>
47767
47768         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47769         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
47770         Reported by Gary V. Vaughan <gary@gnu.org>.
47771
47772 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
47773
47774         Revamp lchown so that it lives in unistd.h where it belongs.
47775         * lib/lchown.h: Remove.
47776         * lib/dirchownmod.c: Don't include lib/lchown.h.
47777         * lib/fchownat.c: Likewise.
47778         * lib/openat.c: Likewise.
47779         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
47780         does not follow symlinks.
47781         (EOPNOTSUPP): Define if not defined.
47782         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
47783         is defined to 0.
47784         (lchown): New decl.
47785         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
47786         Do not check for lchown decl.
47787         Set REPLACE_LCHOWN.
47788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
47789         REPLACE_LCHOWN.
47790         * modules/chown: Make it clear it follows symlinks.
47791         * modules/lchown: Make it clear it doesn't follow symlinks.
47792         (Files): Remove lib/lchown.h
47793         (Depends-on): Add unistd.
47794         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
47795         (Include): Include <unistd.h>, not "lchown.h".
47796         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47797         REPLACE_LCHOWN.
47798
47799 2007-06-15  Jim Meyering  <jim@meyering.net>
47800
47801         Change license (GPL to LGPL) of fsusage and dependents.
47802         * modules/fsusage (License): Change to LGPL.
47803         * modules/full-read (License): Likewise.
47804         * modules/full-write (License): Likewise.
47805         * modules/safe-read (License): Likewise.
47806         * modules/safe-write (License): Likewise.
47807
47808 2007-06-14  Ben Pfaff  <blp@gnu.org>
47809
47810         Missing part of allocsa -> malloca transition.
47811         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47812         gl_MALLOCA.
47813
47814 2007-06-12  Bruno Haible  <bruno@clisp.org>
47815
47816         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47817         to ia64, x86_64, i386.
47818         Reported by Eric Blake.
47819
47820 2007-06-12  Bruno Haible  <bruno@clisp.org>
47821
47822         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47823         cross-compiling to x86_64.
47824
47825 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47826
47827         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47828         glitch reported by Ralf Wildenhues in
47829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47830
47831         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47832         Vin Shelton.
47833
47834 2007-06-11  Bruno Haible  <bruno@clisp.org>
47835
47836         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47837         replacement string.
47838         Reported by Eric Blake.
47839
47840 2007-06-10  Bruno Haible  <bruno@clisp.org>
47841
47842         Prepare vasnprintf code for use with Unicode strings.
47843         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47844         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47845         TYPE_U32_STRING.
47846         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47847         a_u32_string variants.
47848         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47849         * lib/printf-args.c: Don't include config.h and the specification
47850         header if PRINTF_FETCHARGS is already defined.
47851         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47852         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47853         TYPE_U16_STRING, TYPE_U32_STRING.
47854         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47855         u16_directive, u16_directives, u32_directive, u32_directives): New
47856         types.
47857         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47858         New declarations.
47859         * lib/printf-parse.c: Don't include config.h and the specification
47860         header if PRINTF_PARSE is already defined. Eliminate the set of
47861         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47862         them now. Include c-ctype.h.
47863         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47864         directive and CHAR_T_ONLY_ASCII.
47865         * lib/vasnprintf.c: Don't include config.h and the specification header
47866         if VASNPRINTF is already defined.
47867         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47868         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47869         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47870         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47871         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47872         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47873         code accordingly.
47874         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47875         pad_ourselves also in this case, with the 'c' and 's' directives, and
47876         with a different notion of "width".
47877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47878
47879 2007-06-10  Bruno Haible  <bruno@clisp.org>
47880
47881         * modules/unistr/u32-mbsnlen: New file.
47882         * lib/unistr/u32-mbsnlen.c: New file.
47883
47884         * modules/unistr/u16-mbsnlen: New file.
47885         * lib/unistr/u16-mbsnlen.c: New file.
47886
47887         * modules/unistr/u8-mbsnlen: New file.
47888         * lib/unistr/u8-mbsnlen.c: New file.
47889
47890         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47891         declarations.
47892
47893 2007-06-10  Bruno Haible  <bruno@clisp.org>
47894
47895         * lib/string_.h (mbsnlen): New declaration.
47896         * lib/mbsnlen.c: New file.
47897         * m4/mbsnlen.m4: New file.
47898         * modules/mbsnlen: New file.
47899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47900         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47901         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47902
47903 2007-06-10  Bruno Haible  <bruno@clisp.org>
47904
47905         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47906
47907 2007-06-10  Bruno Haible  <bruno@clisp.org>
47908
47909         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47910         * lib/mbuiter.h: Likewise.
47911
47912 2007-06-10  Bruno Haible  <bruno@clisp.org>
47913
47914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47915         declaration.
47916
47917 2007-06-10  Karl Berry  <karl@gnu.org>
47918
47919         * config/srclist.txt: remove gettext entries, Bruno prefers
47920         to update individually.
47921
47922 2007-06-10  Bruno Haible  <bruno@clisp.org>
47923
47924         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47925         'maxlen'. Ensure only length + width bytes are allocated, not
47926         length + 1 + width.
47927
47928 2007-06-09  Bruno Haible  <bruno@clisp.org>
47929
47930         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47931         (CHAR_T): Remove macro.
47932         (VASNPRINTF): Update.
47933
47934 2007-06-09  Bruno Haible  <bruno@clisp.org>
47935
47936         * MODULES.html.sh (Unicode string functions): Add the new modules.
47937
47938         * modules/uniconv/u32-conv-to-enc: New file.
47939         * lib/uniconv/u32-conv-to-enc.c: New file.
47940         * modules/uniconv/u32-conv-to-enc-tests: New file.
47941         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47942
47943         * modules/uniconv/u16-conv-to-enc: New file.
47944         * lib/uniconv/u16-conv-to-enc.c: New file.
47945         * lib/uniconv/u-conv-to-enc.h: New file.
47946         * modules/uniconv/u16-conv-to-enc-tests: New file.
47947         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47948
47949         * modules/uniconv/u8-conv-to-enc: New file.
47950         * lib/uniconv/u8-conv-to-enc.c: New file.
47951         * modules/uniconv/u8-conv-to-enc-tests: New file.
47952         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47953
47954         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47955         u32_conv_to_encoding): New declarations.
47956
47957 2007-06-09  Bruno Haible  <bruno@clisp.org>
47958
47959         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47960
47961 2007-06-09  Bruno Haible  <bruno@clisp.org>
47962
47963         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47964         * modules/malloca: Renamed from modules/allocsa, updated.
47965         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47966         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47967         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47968         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47969         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47970         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47971         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47972         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47973         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47974         * modules/c-strcasestr (Depends-on): Update.
47975         * lib/c-strcasestr.c: Update.
47976         * modules/c-strstr (Depends-on): Update.
47977         * lib/c-strstr.c: Update.
47978         * modules/canonicalize-lgpl (Depends-on): Update.
47979         * lib/canonicalize-lgpl.c: Update.
47980         * modules/clean-temp (Depends-on): Update.
47981         * lib/clean-temp.c: Update.
47982         * modules/csharpcomp (Depends-on): Update.
47983         * lib/csharpcomp.c: Update.
47984         * modules/csharpexec (Depends-on): Update.
47985         * lib/csharpexec.c: Update.
47986         * modules/javacomp (Depends-on): Update.
47987         * lib/javacomp.c: Update.
47988         * modules/javaexec (Depends-on): Update.
47989         * lib/javaexec.c: Update.
47990         * modules/mbscasestr (Depends-on): Update.
47991         * lib/mbscasestr.c: Update.
47992         * modules/mbsstr (Depends-on): Update.
47993         * lib/mbsstr.c: Update.
47994         * modules/setenv (Depends-on): Update.
47995         * lib/setenv.c: Update.
47996         * modules/strcasestr (Depends-on): Update.
47997         * lib/strcasestr.c: Update.
47998         * modules/striconveha (Depends-on): Update.
47999         * lib/striconveha.c: Update.
48000         * modules/relocatable-prog-wrapper (Files): Update.
48001         * lib/relocwrapper.c: Update.
48002         * build-aux/install-reloc: Update.
48003         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48004
48005 2007-06-08  Bruno Haible  <bruno@clisp.org>
48006
48007         Port to uClibc.
48008         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48009         * lib/fpurge.c (fpurge): Likewise.
48010         * lib/freading.c (freading): Likewise.
48011         * lib/fseeko.c (rpl_fseeko): Likewise.
48012         * lib/fseterr.c (fseterr): Likewise.
48013         * lib/fwriting.c (fwriting): Likewise.
48014         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48015
48016 2007-06-08  Bruno Haible  <bruno@clisp.org>
48017
48018         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48019         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48020         * modules/gettext (Files): Add m4/intlmacosx.m4.
48021
48022 2007-06-07  Bruno Haible  <bruno@clisp.org>
48023
48024         * modules/localename-tests: New file.
48025         * tests/test-localename.c: New file.
48026
48027         New module 'localename'.
48028         * lib/localename.h: New file.
48029         * lib/localename.c: New file, from GNU gettext.
48030         * m4/localename.m4: New file.
48031         * modules/localename: New file.
48032
48033 2007-06-07  Bruno Haible  <bruno@clisp.org>
48034
48035         Work around the lack of <wchar.h> on some builds of uClibc.
48036         * doc/headers/wchar.texi: Update.
48037         * lib/wchar_.h: Include <wchar.h> only if it exists.
48038         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48039         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48040         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48041         doesn't exist.
48042         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48043         * modules/mbfile (Depends-on): Add wchar.
48044         * modules/mbiter (Depends-on): Likewise.
48045         * modules/mbuiter (Depends-on): Likewise.
48046         Reported by Simon Josefsson.
48047
48048 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48049
48050         Work around problem reported by Steven M. Schweda in
48051         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48052         Tru64 5.1B with the Compaq compiler environment installed declares
48053         an 'isblank' function but does not define it in the C library.
48054         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48055         * lib/regex_internal.h (isblank): Likewise.
48056         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48057         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48058
48059 2007-06-05  Bruno Haible  <bruno@clisp.org>
48060
48061         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48062         ia64.
48063         * modules/printf-safe: New file.
48064         * modules/fprintf-posix (Depends-on): Add printf-safe.
48065         * modules/printf-posix (Depends-on): Likewise.
48066         * modules/snprintf-posix (Depends-on): Likewise.
48067         * modules/sprintf-posix (Depends-on): Likewise.
48068         * modules/vasnprintf-posix (Depends-on): Likewise.
48069         * modules/vasprintf-posix (Depends-on): Likewise.
48070         * modules/vfprintf-posix (Depends-on): Likewise.
48071         * modules/vprintf-posix (Depends-on): Likewise.
48072         * modules/vsnprintf-posix (Depends-on): Likewise.
48073         * modules/vsprintf-posix (Depends-on): Likewise.
48074         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48075         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48076         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48077         "no" on i386, x86_64, ia64.
48078         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48079         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48080         on i386, x86_64, ia64.
48081         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48082         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48083         on i386, x86_64, ia64.
48084         * tests/test-vasnprintf-posix.c: Include float.h.
48085         (LDBL80_WORDS): New macro.
48086         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48087         on i386, x86_64, ia64.
48088         * tests/test-vasprintf-posix.c: Include float.h.
48089         (LDBL80_WORDS): New macro.
48090         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48091         on i386, x86_64, ia64.
48092         * tests/test-snprintf-posix.c: Include float.h.
48093         * tests/test-sprintf-posix.c: Likewise.
48094         * tests/test-vsnprintf-posix.c: Likewise.
48095         * tests/test-vsprintf-posix.c: Likewise.
48096
48097 2007-06-05  Bruno Haible  <bruno@clisp.org>
48098
48099         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48100         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48101         non-IEEE numbers on i386, x86_64, ia64.
48102         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48103         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48104         * tests/test-isnanl.h: Include float.h.
48105         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48106
48107 2007-06-05  Bruno Haible  <bruno@clisp.org>
48108
48109         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48110         also the %a / %A. Handle the %a / %A code before this extra handling.
48111
48112 2007-06-05  Bruno Haible  <bruno@clisp.org>
48113
48114         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48115         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48116
48117 2007-06-05  Bruno Haible  <bruno@clisp.org>
48118
48119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48120         typo in variable name.
48121
48122 2007-06-05  Eric Blake  <ebb9@byu.net>
48123
48124         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48125         Reported by Simon Josefsson.
48126
48127 2007-06-04  Bruno Haible  <bruno@clisp.org>
48128
48129         Avoid test failures on some PowerPC platforms.
48130         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48131         Define differently for PowerPC.
48132         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48133         Reported by Gary V. Vaughan <gary@gnu.org>.
48134
48135 2007-06-02  Bruno Haible  <bruno@clisp.org>
48136
48137         Fix test-stdint failure on FreeBSD/ia64.
48138         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48139         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48140         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48141         * doc/headers/stdint.texi: Update.
48142
48143 2007-06-01  Bruno Haible  <bruno@clisp.org>
48144
48145         * tests/test-binary-io.c (main): Pass a third argument to open().
48146         Reported by Gary V. Vaughan <gary@gnu.org>.
48147
48148 2007-06-01  Bruno Haible  <bruno@clisp.org>
48149
48150         * doc/functions/frexpl.texi: Update for mingw.
48151
48152 2007-06-01  Bruno Haible  <bruno@clisp.org>
48153
48154         * tests/test-lseek.c (main): Disable test of errno for invalid third
48155         argument.
48156         * doc/functions/lseek.texi: Update.
48157         Reported by Gary V. Vaughan <gary@gnu.org>.
48158
48159 2007-05-28  Bruno Haible  <bruno@clisp.org>
48160
48161         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48162
48163 2007-05-31  Eric Blake  <ebb9@byu.net>
48164
48165         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48166         cross compiling.
48167
48168 2007-05-30  Eric Blake  <ebb9@byu.net>
48169         and Bruno Haible  <bruno@clisp.org>
48170
48171         Work around mingw test failures exposed by m4-1.4.9b.
48172         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48173         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48174         moment.
48175
48176 2007-05-30  Bruno Haible  <bruno@clisp.org>
48177
48178         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48179         assuming that they are closed. Needed on HP-UX 11.
48180
48181 2007-05-29  Bruno Haible  <bruno@clisp.org>
48182
48183         Fix a problem with #include_next.
48184         * lib/dirent_.h: Split the double-inclusion guard.
48185         * lib/fcntl_.h: Likewise.
48186         * lib/float_.h: Likewise.
48187         * lib/iconv_.h: Likewise.
48188         * lib/inttypes_.h: Likewise.
48189         * lib/locale_.h: Likewise.
48190         * lib/math_.h: Likewise.
48191         * lib/netinet_in_.h: Likewise.
48192         * lib/search_.h: Likewise.
48193         * lib/signal_.h: Likewise.
48194         * lib/stdint_.h: Likewise.
48195         * lib/stdio_.h: Likewise.
48196         * lib/stdlib_.h: Likewise.
48197         * lib/string_.h: Likewise.
48198         * lib/sys_select_.h: Likewise.
48199         * lib/sys_socket_.h: Likewise.
48200         * lib/sys_stat_.h: Likewise.
48201         * lib/sys_time_.h: Likewise.
48202         * lib/sysexits_.h: Likewise.
48203         * lib/time_.h: Likewise.
48204         * lib/unistd_.h: Likewise.
48205         * lib/wchar_.h: Likewise.
48206         * lib/wctype_.h: Likewise.
48207
48208 2007-05-29  Bruno Haible  <bruno@clisp.org>
48209
48210         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48211         for the moment.
48212
48213 2007-05-29  Bruno Haible  <bruno@clisp.org>
48214
48215         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48216         invocation.
48217         Reported by Eric Blake.
48218
48219 2007-05-29  Bruno Haible  <bruno@clisp.org>
48220
48221         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48222         compiling case.
48223
48224 2007-05-29  Eric Blake  <ebb9@byu.net>
48225             Bruno Haible  <bruno@clisp.org>
48226
48227         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48228         cross compiles.
48229
48230 2007-05-28  Eric Blake  <ebb9@byu.net>
48231
48232         * modules/closein-tests (test_closein_LDADD): Support test on
48233         cygwin with libtool.
48234
48235 2007-05-28  Bruno Haible  <bruno@clisp.org>
48236
48237         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48238         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48239         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48240         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48241         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48242         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48243         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48244         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48245         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48246
48247 2007-05-28  Eric Blake  <ebb9@byu.net>
48248
48249         Unconditionally include <config.h> in unit tests.
48250         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48251         * tests/test-allocsa.c, tests/test-arcfour.c,
48252         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48253         tests/test-array_list.c, tests/test-array_oset.c,
48254         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48255         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48256         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48257         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48258         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48259         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48260         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48261         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48262         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48263         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48264         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48265         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48266         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48267         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48268         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48269         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48270         test-md5.c, test-memmem.c, test-printf-posix.c,
48271         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48272         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48273         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48274         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48275         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48276         test-vasnprintf-posix2.c, test-vasnprintf.c,
48277         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48278         test-vfprintf-posix.c, test-vprintf-posix.c,
48279         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48280         test-xvasprintf.c: Likewise.
48281
48282 2007-05-28  Bruno Haible  <bruno@clisp.org>
48283
48284         * gnulib-tool (func_import): Remember the --with-tests command-line
48285         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48286         Reported by Eric Blake.
48287
48288 2007-05-28  Bruno Haible  <bruno@clisp.org>
48289
48290         * modules/ftell-tests: New file.
48291         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48292         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48293
48294         * lib/ftell.c: New file.
48295         * modules/ftell: New file.
48296         * m4/ftell.m4: New file.
48297         * doc/functions/ftell.texi: Update.
48298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48299         REPLACE_FTELL.
48300         * lib/stdio_.h (rpl_ftell): New declaration.
48301         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48302         REPLACE_FTELL.
48303
48304 2007-05-28  Eric Blake  <ebb9@byu.net>
48305
48306         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48307
48308 2007-05-28  Bruno Haible  <bruno@clisp.org>
48309
48310         * modules/fseek-tests: New file.
48311         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48312         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48313
48314         * lib/fseek.c: New file.
48315         * modules/fseek: New file.
48316         * m4/fseek.m4: New file.
48317         * doc/functions/fseek.texi: Update.
48318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48319         REPLACE_FSEEK.
48320         * lib/stdio_.h (rpl_fseek): New declaration.
48321         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48322         REPLACE_FSEEK.
48323
48324 2007-05-28  Bruno Haible  <bruno@clisp.org>
48325
48326         * lib/stdio_.h (fflush): More comments.
48327
48328 2007-05-28  Bruno Haible  <bruno@clisp.org>
48329
48330         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48331         runtime test.
48332
48333 2007-05-28  Eric Blake  <ebb9@byu.net>
48334
48335         Improve lseek module.
48336         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48337         * lib/unistd_.h (lseek): Scale back link warning message.
48338         * tests/test-lseek.c: Beef up test.
48339         * tests/test-lseek.sh: Exercise more facets of lseek.
48340         Reported by Bruno Haible.
48341
48342 2007-05-28  Bruno Haible  <bruno@clisp.org>
48343
48344         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48345         to define.
48346
48347 2007-05-27  Bruno Haible  <bruno@clisp.org>
48348
48349         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48350
48351 2007-05-27  Bruno Haible  <bruno@clisp.org>
48352
48353         * modules/openmp: New file.
48354         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48355         Noah Misch.
48356
48357 2007-05-26  Bruno Haible  <bruno@clisp.org>
48358
48359         * modules/chdir-long (Depends-on): Add fchdir.
48360         * modules/chdir-safer (Depends-on): Likewise.
48361         * modules/fts (Depends-on): Likewise.
48362         * modules/fts-lgpl (Depends-on): Likewise.
48363         * modules/openat (Depends-on): Likewise.
48364         * modules/savewd (Depends-on): Likewise.
48365
48366 2007-05-24  Eric Blake  <ebb9@byu.net>
48367
48368         Fix lseek on mingw.
48369         * modules/lseek: New module.
48370         * m4/lseek.m4: New file.
48371         * lib/lseek.c: New file.
48372         * modules/lseek-tests: New file.
48373         * tests/test-lseek.c: New file.
48374         * tests/test-lseek.sh: New file.
48375         * MODULES.html.sh: Document lseek module.
48376         * modules/fflush (Depends-on): Add lseek, fseeko.
48377         * modules/fseeko (Depends-on): Likewise.
48378         * modules/ftello (Depends-on): Likewise.
48379         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48380         broken.
48381         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48382         broken.
48383         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48384         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48385         * lib/ftello.c (rpl_ftello): Likewise.
48386         * tests/test-fseeko.c (main): Test this.
48387         * tests/test-fseeko.sh: Likewise.
48388         * tests/test-ftello.c (main): Likewise.
48389         * tests/test-ftello.sh: Likewise.
48390         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48391         implies replacing fseek.
48392         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48393         HAVE_FTELLO.
48394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48395         * modules/unistd (Makefile.am): Likewise.
48396         * lib/unistd_.h (lseek): Declare a replacement.
48397         * doc/functions/lseek.texi (lseek): Document this fix.
48398         * doc/functions/fseek.texi (fseek): Likewise.
48399         * doc/functions/ftell.texi (ftell): Likewise.
48400
48401 2007-05-24  Bruno Haible  <bruno@clisp.org>
48402
48403         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48404         in the printed representation of a NaN.
48405         * tests/test-vasprintf-posix.c (test_function): Likewise.
48406         * tests/test-snprintf-posix.h (test_function): Likewise.
48407         * tests/test-sprintf-posix.h (test_function): Likewise.
48408         Reported by Eric Blake.
48409
48410 2007-05-23  Eric Blake  <ebb9@byu.net>
48411
48412         Fix fseeko/ftello on cygwin 1.5.24.
48413         * doc/functions/fseeko.texi (fseeko): Document the fix.
48414         * doc/functions/ftello.texi (ftello): Document the fix.
48415         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48416         * doc/functions/stdout.text (stdout): New file.
48417         * doc/functions/stderr.text (stderr): New file.
48418         * doc/gnulib.texi (Function Substitutes): Use new files.
48419         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48420         prior to 1.7.0.
48421         * tests/test-ftello.c (main): Likewise for ftello.
48422         * tests/test-fseeko.sh: New file.
48423         * tests/test-ftello.sh: New file.
48424         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48425         with seekable stdin.
48426         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48427         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48428         (gl_REPLACE_FSEEKO): New macro.
48429         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48430         * modules/fseeko (Files): Distribute fseeko.c.
48431         * modules/ftello (Files): Distribute ftello.c.
48432         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48433         mode.
48434         * lib/ftello.c (rpl_ftello): New file.
48435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48436         fseeko, ftello.
48437         (gl_STDIN_LARGE_OFFSET): New macro.
48438         * modules/stdio (Makefile.am): Perform the replacement.
48439         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48440
48441 2007-05-23  Bruno Haible  <bruno@clisp.org>
48442
48443         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48444         GNULIB_POSIXCHECK is defined.
48445
48446 2007-05-21  Bruno Haible  <bruno@clisp.org>
48447
48448         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48449         Check also the output for NaN arguments. When cross-compiling, guess
48450         no on IRIX.
48451         * lib/vasnprintf.c: Update comments.
48452         * tests/test-vasnprintf-posix.c (strisnan): New function.
48453         (test_function): Use it.
48454         * tests/test-vasprintf-posix.c (strisnan): New function.
48455         (test_function): Use it.
48456         * tests/test-snprintf-posix.h (strisnan): New function.
48457         (test_function): Use it.
48458         * tests/test-sprintf-posix.h (strisnan): New function.
48459         (test_function): Use it.
48460         Reported by Eric Blake.
48461
48462 2007-05-20  Bruno Haible  <bruno@clisp.org>
48463
48464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
48465         numbers that fails on BeOS.
48466         * doc/functions/frexpl.texi: Update.
48467
48468 2007-05-20  Jim Meyering  <jim@meyering.net>
48469
48470         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
48471         forced upon us by glibc-2.6.
48472
48473 2007-05-20  Bruno Haible  <bruno@clisp.org>
48474
48475         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
48476         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
48477         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
48478         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
48479         NEED_PRINTF_INFINITE.
48480         (is_infinitel): New function.
48481         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
48482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
48483         gl_PREREQ_VASNPRINTF_INFINITE.
48484         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
48485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48486         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
48487         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
48488         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
48489         gl_PREREQ_VASNPRINTF_INFINITE.
48490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48497         * doc/functions/fprintf.texi: Update.
48498         * doc/functions/printf.texi: Update.
48499         * doc/functions/snprintf.texi: Update.
48500         * doc/functions/sprintf.texi: Update.
48501         * doc/functions/vfprintf.texi: Update.
48502         * doc/functions/vprintf.texi: Update.
48503         * doc/functions/vsnprintf.texi: Update.
48504         * doc/functions/vsprintf.texi: Update.
48505
48506 2007-05-20  Bruno Haible  <bruno@clisp.org>
48507
48508         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
48509         was not found in libc.
48510         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48511
48512 2007-05-20  Bruno Haible  <bruno@clisp.org>
48513
48514         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48515         printed as "-nan" instead of "nan".
48516         * tests/test-vasprintf-posix.c (test_function): Likewise.
48517         * tests/test-snprintf-posix.h (test_function): Likewise.
48518         * tests/test-sprintf-posix.h (test_function): Likewise.
48519         Needed for HP-UX 11.
48520
48521 2007-05-20  Jim Meyering  <jim@meyering.net>
48522
48523         Fix buggy test for the fchownat-deref bug.
48524         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
48525         symlink required for the run-test.  Without it, this test would
48526         always declare that fchownat doesn't work, and client code would
48527         unnecessarily use the replacement function with fixed libc.
48528         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
48529         Reported by Greg Schafer.
48530
48531 2007-05-19  Bruno Haible  <bruno@clisp.org>
48532
48533         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
48534         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
48535         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
48536         Needed for IRIX 6.5 and Solaris 2.5.1.
48537
48538 2007-05-19  Bruno Haible  <bruno@clisp.org>
48539
48540         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
48541         (test_function): Skip tests involving -0.0 on platforms where
48542         -0.0 = 0.0.
48543         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
48544         (test_function): Skip tests involving -0.0 on platforms where
48545         -0.0 = 0.0.
48546         * tests/test-snprintf-posix.h (have_minus_zero): New function.
48547         (test_function): Skip tests involving -0.0 on platforms where
48548         -0.0 = 0.0.
48549         * tests/test-sprintf-posix.h (have_minus_zero): New function.
48550         (test_function): Skip tests involving -0.0 on platforms where
48551         -0.0 = 0.0.
48552         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
48553         tests.
48554         * tests/test-printf-posix.h (test_function): Likewise.
48555         * tests/test-printf-posix.output: Remove all -0.0 related results.
48556         Needed for IRIX 6.5.
48557
48558 2007-05-19  Bruno Haible  <bruno@clisp.org>
48559
48560         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48561         printed as "nan0x7fffffff" instead of "nan".
48562         * tests/test-vasprintf-posix.c (test_function): Likewise.
48563         * tests/test-snprintf-posix.h (test_function): Likewise.
48564         * tests/test-sprintf-posix.h (test_function): Likewise.
48565         * tests/test-fprintf-posix.h (NaN): Remove macro.
48566         (test_function): Remove all NaN related tests.
48567         * tests/test-printf-posix.h (NaN): Remove macro.
48568         (test_function): Remove all NaN related tests.
48569         * tests/test-printf-posix.output: Remove all NaN related results.
48570         Needed for IRIX 6.5.
48571
48572 2007-05-19  Bruno Haible  <bruno@clisp.org>
48573
48574         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
48575         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
48576
48577 2007-05-19  Bruno Haible  <bruno@clisp.org>
48578
48579         * lib/float_.h: New file.
48580         * m4/float_h.m4: New file.
48581         * modules/float: New file.
48582         * modules/isnanl (Dependencies): Add float.
48583         * modules/isnanl-nolibm (Dependencies): Likewise.
48584         * modules/mathl (Dependencies): Likewise.
48585         * modules/printf-frexpl (Dependencies): Likewise.
48586         * modules/signbit (Dependencies): Likewise.
48587         * modules/vasnprintf (Dependencies): Likewise.
48588         * doc/headers/float.texi: Update.
48589
48590 2007-05-19  Jim Meyering  <jim@meyering.net>
48591
48592         * lib/utimens.c (gl_futimens): Rename from futimens,
48593         now that glibc-2.6 declares futimens.
48594         * lib/utimens.h: Likewise.
48595
48596 2007-05-19  Bruno Haible  <bruno@clisp.org>
48597
48598         Avoid test failures on mingw.
48599         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
48600         * tests/test-printf-posix.sh: Likewise.
48601         * tests/test-vfprintf-posix.sh: Likewise.
48602         * tests/test-vprintf-posix.sh: Likewise.
48603
48604 2007-05-19  Bruno Haible  <bruno@clisp.org>
48605
48606         Fix *printf result for NaN, Inf, -0.0 on mingw.
48607         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
48608         * lib/vasnprintf.c: Include math.h and isnan.h.
48609         (is_infinite_or_zero): New function.
48610         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
48611         values in the %f, %F, %e, %E, %g, %G directives.
48612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
48613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48614         gl_PRINTF_INFINITE and test its result. Invoke
48615         gl_PREREQ_VASNPRINTF_INFINITE.
48616         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48617         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48618         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48619         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48620         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48621         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48622         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48623         * doc/functions/fprintf.texi: Update.
48624         * doc/functions/printf.texi: Update.
48625         * doc/functions/snprintf.texi: Update.
48626         * doc/functions/sprintf.texi: Update.
48627         * doc/functions/vfprintf.texi: Update.
48628         * doc/functions/vprintf.texi: Update.
48629         * doc/functions/vsnprintf.texi: Update.
48630         * doc/functions/vsprintf.texi: Update.
48631
48632 2007-05-19  Bruno Haible  <bruno@clisp.org>
48633
48634         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
48635         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
48636         Instead of multiplying with 10^k, set extra_zeroes to k.
48637         (scale10_round_long_double): Remove function.
48638
48639 2007-05-18  Bruno Haible  <bruno@clisp.org>
48640
48641         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
48642         introduced on 2007-05-06.
48643
48644 2007-05-18  Bruno Haible  <bruno@clisp.org>
48645
48646         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
48647         %g directives.
48648         * tests/test-vasprintf-posix.c (test_function): Likewise.
48649         * tests/test-snprintf-posix.h (test_function): Likewise.
48650         * tests/test-sprintf-posix.h (test_function): Likewise.
48651
48652 2007-05-18  Bruno Haible  <bruno@clisp.org>
48653
48654         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
48655         (strmatch): New function.
48656         (test_function): Test the %f directive on numbers of various exponents.
48657         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
48658         (strmatch): New function.
48659         (test_function): Test the %f directive on numbers of various exponents.
48660         * tests/test-snprintf-posix.h (strmatch): New function.
48661         (test_function): Test the %f directive on numbers of various exponents.
48662         * tests/test-sprintf-posix.h (strmatch): New function.
48663         (test_function): Test the %f directive on numbers of various exponents.
48664         * tests/test-snprintf-posix.c (SIZEOF): New macro.
48665         * tests/test-sprintf-posix.c (SIZEOF): New macro.
48666         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
48667         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
48668
48669 2007-05-18  Bruno Haible  <bruno@clisp.org>
48670
48671         Add support for 'long double' number output.
48672         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
48673         * lib/vasnprintf.c: Include math.h and float+.h.
48674         (mp_limb_t): New type.
48675         (GMP_LIMB_BITS): New macro.
48676         (mp_twolimb_t): New type.
48677         (GMP_TWOLIMB_BITS): New macro.
48678         (mpn_t): New type.
48679         (multiply, divide, convert_to_decimal, decode_long_double,
48680         scale10_round_long_double, scale10_round_decimal_long_double,
48681         floorlog10l): New functions.
48682         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
48683         for the %f, %F, %e, %E, %g, %G directives.
48684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
48685         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48686         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
48687         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
48688         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48689         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48690         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48691         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48692         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48693         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48694         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48695         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
48696         * modules/snprintf-posix (Depends-on): Likewise.
48697         * modules/sprintf-posix (Depends-on): Likewise.
48698         * modules/vasnprintf-posix (Depends-on): Likewise.
48699         * modules/vasprintf-posix (Depends-on): Likewise.
48700         * modules/vfprintf-posix (Depends-on): Likewise.
48701         * modules/vsnprintf-posix (Depends-on): Likewise.
48702         * modules/vsprintf-posix (Depends-on): Likewise.
48703         * modules/vasnprintf (Files): Add lib/float+.h.
48704         * doc/functions/fprintf.texi: Update.
48705         * doc/functions/printf.texi: Update.
48706         * doc/functions/snprintf.texi: Update.
48707         * doc/functions/sprintf.texi: Update.
48708         * doc/functions/vfprintf.texi: Update.
48709         * doc/functions/vprintf.texi: Update.
48710         * doc/functions/vsnprintf.texi: Update.
48711         * doc/functions/vsprintf.texi: Update.
48712
48713 2007-05-18  Bruno Haible  <bruno@clisp.org>
48714
48715         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
48716
48717 2007-05-18  Bruno Haible  <bruno@clisp.org>
48718
48719         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
48720         for printing 64-bit integers. Needed for mingw.
48721
48722 2007-05-18  Bruno Haible  <bruno@clisp.org>
48723
48724         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48725         gl_FUNC_FREXPL_WORKS.
48726         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
48727
48728 2007-05-18  Bruno Haible  <bruno@clisp.org>
48729
48730         * modules/frexpl-nolibm-tests: New file.
48731
48732         * modules/frexpl-nolibm: New file.
48733         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
48734
48735 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48736
48737         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
48738         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48739         GCC 4.2, which otherwise issues a lot of warnings.
48740         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
48741         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
48742         Likewise.
48743         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
48744         * modules/iconv_open (iconv.h): Likewise.
48745         * modules/locale (locale.h): Likewise.
48746         * modules/netinet_in (netinet/in.h): Likewise.
48747         * modules/sys_select (sys_select.h): Likewise.
48748         * modules/sys_socket (sys/socket.h): Likewise.
48749         * modules/sys_stat (sys/stat.h): Likewise.
48750         * modules/sysexits (sysexits.h): Likewise.
48751         * modules/unistd (unistd.h): Likewise.
48752
48753 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48754
48755         * modules/closein-tests (Makefile.am): Distribute
48756         `test-closein.sh'.
48757
48758 2007-05-17  Bruno Haible  <bruno@clisp.org>
48759
48760         * tests/test-printf-posix.output: Renamed from
48761         tests/test-fprintf-posix.out.
48762         * modules/fprintf-posix-tests: Update.
48763         * modules/printf-posix-tests: Update.
48764         * modules/vfprintf-posix-tests: Update.
48765         * modules/vprintf-posix-tests: Update.
48766         * tests/test-fprintf-posix.sh: Update.
48767         * tests/test-printf-posix.sh: Update.
48768         * tests/test-vfprintf-posix.sh: Update.
48769         * tests/test-vprintf-posix.sh: Update.
48770         Reported by Ralf Wildenhues.
48771
48772 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48773
48774         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
48775         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48776         GCC 4.2, which otherwise issues a lot of warnings.
48777         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
48778         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
48779         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
48780         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
48781         it should no longer be needed.
48782         * lib/string_.h: Likewise.
48783         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
48784         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
48785         * modules/inttypes (inttypes.h): Likewise.
48786         * modules/math (math.h): Likewise.
48787         * modules/search (search.h): Likewise.
48788         * modules/signal (signal.h): Likewise.
48789         * modules/stdint (stdint.h): Likewise.
48790         * modules/stdio (stdio.h): Likewise.
48791         * modules/stdlib (stdlib.h): Likewise.
48792         * modules/string (string.h): Likewise.
48793         * modules/sys_time (sys/time.h): Likewise.
48794         * modules/time (time.h): Likewise.
48795         * modules/wchar (wchar.h): Likewise.
48796         * modules/wctype (wtype.h): Likewise.
48797
48798 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48799
48800         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48801
48802 2007-05-13  Bruno Haible  <bruno@clisp.org>
48803
48804         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48805         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48806         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48807         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48808         (gl_PREREQ_STRTOK_R): Don't require it here.
48809
48810 2007-05-13  Bruno Haible  <bruno@clisp.org>
48811
48812         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48813         when used in C++ mode.
48814
48815 2007-05-12  Bruno Haible  <bruno@clisp.org>
48816
48817         * lib/linebuffer.h: Tweak doc.
48818         * lib/linebuffer.c: Likewise.
48819
48820 2007-05-12  James Youngman  <jay@gnu.org>
48821
48822         * lib/linebuffer.c (readlinebuffer_delim): New function,
48823         like readlinebuffer, but use a caller-specified delimiter.
48824         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48825         as the delimiter.
48826         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48827
48828 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48829
48830         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48831         * modules/openat (Files): Remove openat-die.c.
48832         (Depends-on): Add openat-die.
48833         * modules/openat-die: New module.
48834
48835 2007-05-06  Bruno Haible  <bruno@clisp.org>
48836
48837         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48838         Update with info about Cygwin.
48839         * doc/functions/fprintf.texi: Update.
48840         * doc/functions/printf.texi: Update.
48841         * doc/functions/snprintf.texi: Update.
48842         * doc/functions/sprintf.texi: Update.
48843         * doc/functions/vfprintf.texi: Update.
48844         * doc/functions/vprintf.texi: Update.
48845         * doc/functions/vsnprintf.texi: Update.
48846         * doc/functions/vsprintf.texi: Update.
48847         Reported by Eric Blake.
48848
48849 2007-05-06  Bruno Haible  <bruno@clisp.org>
48850
48851         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48852         padding ourselves for the floating-point directives.
48853         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48855         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48856         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48857         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48858         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48860         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48861         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48862         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48863         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48864         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48865         * tests/test-snprintf-posix.h (test_function): Also check the width
48866         and some flags in the %f directive.
48867         * tests/test-sprintf-posix.h (test_function): Likewise.
48868         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48869         * tests/test-vasprintf-posix.c (test_function): Likewise.
48870         * doc/functions/fprintf.texi: Update.
48871         * doc/functions/printf.texi: Update.
48872         * doc/functions/snprintf.texi: Update.
48873         * doc/functions/sprintf.texi: Update.
48874         * doc/functions/vfprintf.texi: Update.
48875         * doc/functions/vprintf.texi: Update.
48876         * doc/functions/vsnprintf.texi: Update.
48877         * doc/functions/vsprintf.texi: Update.
48878
48879 2007-05-06  Bruno Haible  <bruno@clisp.org>
48880
48881         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48882         pass the ' flag character to sprintf or snprintf.
48883         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48885         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48886         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48887         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48889         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48890         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48891         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48892         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48893         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48894         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48895         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48896         flag.
48897         * tests/test-sprintf-posix.h (test_function): Likewise.
48898         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48899         * tests/test-vasprintf-posix.c (test_function): Likewise.
48900         * doc/functions/fprintf.texi: Update.
48901         * doc/functions/printf.texi: Update.
48902         * doc/functions/snprintf.texi: Update.
48903         * doc/functions/sprintf.texi: Update.
48904         * doc/functions/vfprintf.texi: Update.
48905         * doc/functions/vprintf.texi: Update.
48906         * doc/functions/vsnprintf.texi: Update.
48907         * doc/functions/vsprintf.texi: Update.
48908
48909 2007-05-01  Bruno Haible  <bruno@clisp.org>
48910
48911         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48912
48913 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48914
48915         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48916         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48917
48918 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48919
48920         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48921         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48922         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48923
48924 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48925
48926         * lib/argp-help.c (struct hol_entry): New member `ord'.
48927         (HOL_ENTRY_PTRCMP): Use ord for comparison
48928         (hol_sort): Initialize ord.
48929
48930 2007-05-01  Bruno Haible  <bruno@clisp.org>
48931
48932         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48933         Reported by Eric Blake.
48934         * doc/gnulib.texi (Function Substitutes): Update.
48935
48936 2007-05-01  Bruno Haible  <bruno@clisp.org>
48937
48938         * doc/functions.texi: Remove file, now redundant through
48939         doc/functions/*.texi.
48940
48941 2007-05-01  Bruno Haible  <bruno@clisp.org>
48942
48943         * modules/argp (Depends-on): Add sleep.
48944
48945 2007-05-01  Bruno Haible  <bruno@clisp.org>
48946
48947         * modules/sleep-tests: New file.
48948         * tests/test-sleep.c: New file.
48949
48950         * modules/sleep: New file.
48951         * lib/sleep.c: New file.
48952         * m4/sleep.m4: New file.
48953         * lib/unistd_.h (sleep): New declaration.
48954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48955         HAVE_SLEEP.
48956         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48957         * doc/functions/sleep.texi: Document the sleep module.
48958
48959 2007-05-01  Bruno Haible  <bruno@clisp.org>
48960
48961         * lib/sigprocmask.h: Remove file.
48962         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48963         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48964         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48965         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48966         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48967         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48968         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48969         HAVE_SIGSET_T as a shell variable.
48970         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48971         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48972         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48973         (Depends-on): Add signal. Remove verify.
48974         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48975         (Include): Mention <signal.h> instead of sigprocmask.h.
48976         * NEWS: Mention the change.
48977         * lib/fatal-signal.c: Don't include sigprocmask.h.
48978
48979 2007-05-01  Bruno Haible  <bruno@clisp.org>
48980
48981         * modules/signal: New file.
48982         * lib/signal_.h: New file.
48983         * m4/signal_h.m4: New file.
48984
48985 2007-05-01  Bruno Haible  <bruno@clisp.org>
48986
48987         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48988         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48989         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48990         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48991
48992 2007-05-01  Bruno Haible  <bruno@clisp.org>
48993
48994         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48995         configure time.
48996         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48997         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48998         * modules/sys_stat (Makefile.am): Substitute their values into
48999         sys/stat.h.
49000
49001 2007-05-01  Bruno Haible  <bruno@clisp.org>
49002
49003         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49004         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49005         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49006
49007 2007-05-01  Bruno Haible  <bruno@clisp.org>
49008
49009         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49010         'assert' module here.
49011
49012 2007-05-01  Bruno Haible  <bruno@clisp.org>
49013
49014         * doc/functions/*.texi: New files.
49015         * doc/functions/google-ranking.txt: New file.
49016         * doc/gnulib.texi (Function Substitutes): New chapter.
49017         (ctime, inet_ntoa): Remove sections.
49018         * doc/ctime.texi: Remove file.
49019         * doc/inet_ntoa.texi: Remove file.
49020         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49021         dependencies.
49022         (%.info): New rule, specifying a --reference-limit.
49023
49024 2007-05-01  Bruno Haible  <bruno@clisp.org>
49025
49026         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49027
49028 2007-05-01  Bruno Haible  <bruno@clisp.org>
49029
49030         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49031         the portability of 'mkdir' to mingw systems.
49032
49033 2007-05-01  Bruno Haible  <bruno@clisp.org>
49034
49035         * doc/headers/google-ranking.txt: New file.
49036
49037 2007-04-30  Eric Blake  <ebb9@byu.net>
49038
49039         Prefer fseeko to fseek.
49040         * modules/getpass (Depends-on): Add fseeko.
49041         * lib/getpass.c (getpass): Use fseeko, not fseek.
49042
49043 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49044
49045         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49046         assumes the sorting is stable, while most qsort implementations
49047         are not.  Use argument addresses to ensure they never compare as
49048         equal.
49049
49050         * tests/test-argp-2.sh (usage-indent test): Fix output
49051         (func_compare): Restore diff options
49052         * tests/test-argp.c: Restore #include "progname.h"
49053
49054 2007-04-29  Bruno Haible  <bruno@clisp.org>
49055
49056         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49058         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49060         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49061         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49062         (TESTS, check_PROGRAMS): Add test-snprintf.
49063         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49064         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49065         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49066         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49067         assertions that fail on HP-UX, OSF/1, or IRIX.
49068         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49069
49070 2007-04-29  Bruno Haible  <bruno@clisp.org>
49071
49072         * MODULES.html.sh (posix_functions): Remove 'contents'.
49073
49074 2007-04-29  Karl Berry  <karl@gnu.org>
49075
49076         * config/srclist.txt (gendocs_template_min): new entry.
49077
49078 2007-04-29  Bruno Haible  <bruno@clisp.org>
49079
49080         Work around fpurge bug on BSD systems.
49081         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49082         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49083         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49084         fpurge to rpl_fpurge if the system already has this function.
49085         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49086         the case where the system already has this function. Correct invariants
49087         on BSD systems.
49088         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49089         BSD systems.
49090
49091 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49092
49093         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49094         proposed by Sven Verdoolaege.
49095
49096         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49097         options.
49098         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49099         (usage and help tests): Update
49100
49101 2007-04-29  Bruno Haible  <bruno@clisp.org>
49102
49103         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49104         Print more information in case of failure. Disable a test on BeOS.
49105
49106 2007-04-29  Bruno Haible  <bruno@clisp.org>
49107
49108         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49109         This helps debugging on systems on which no gdb is available.
49110
49111 2007-04-29  Bruno Haible  <bruno@clisp.org>
49112
49113         * lib/freading.h: Improve comments.
49114         * lib/fwriting.h: Likewise.
49115         * tests/test-freading.c (main): Don't check freading immediately after
49116         repositioning. Needed for glibc.
49117
49118 2007-04-29  Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/freading.c (freading): Trivial simplification.
49121
49122 2007-04-28  Bruno Haible  <bruno@clisp.org>
49123
49124         * tests/test-fwriting.c (main): Also test the interaction between
49125         fflush and fwriting.
49126         * modules/fwriting-tests (Depends-on): Add fflush.
49127
49128         * tests/test-freading.c (main): Also test the interaction between
49129         fflush and freading.
49130         * modules/freading-tests (Depends-on): Add fflush.
49131
49132 2007-04-28  Bruno Haible  <bruno@clisp.org>
49133
49134         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49135         fseeko and ftello.
49136         Suggested by Eric Blake.
49137
49138 2007-04-28  Jim Meyering  <jim@meyering.net>
49139
49140         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49141         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49142         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49143
49144 2007-04-27  Eric Blake  <ebb9@byu.net>
49145
49146         * doc/headers/assert.texi (assert.h): Document assert module use.
49147
49148 2007-04-27  Bruno Haible  <bruno@clisp.org>
49149
49150         * doc/headers/*.texi: New files.
49151         * doc/gnulib.texi (Header File Substitutes): New chapter.
49152         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49153         dependencies.
49154         (standards.info ,standards.html, standards.dvi): Update dependencies.
49155         (mostlyclean, clean): New targets.
49156
49157 2007-04-27  Bruno Haible  <bruno@clisp.org>
49158
49159         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49160         * modules/sysexits (Files, Makefile.am): Update.
49161
49162         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49163         * modules/sys_socket (Files, Makefile.am): Update.
49164
49165         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49166         * modules/sys_stat (Files, Makefile.am): Update.
49167
49168 2007-04-27  Eric Blake  <ebb9@byu.net>
49169
49170         * lib/freading.h: Improve comments.
49171         * lib/fwriting.h: Likewise.
49172         * lib/fflush.c: Likewise.
49173
49174         Fix closein for mingw.
49175         * modules/closein-tests: Add tests for closein.
49176         * tests/test-closein.c: New file.
49177         * tests/test-closein.sh: Likewise.
49178         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49179         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49180
49181 2007-04-27  Bruno Haible  <bruno@clisp.org>
49182
49183         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49184         version is < 6.
49185         * lib/math_.h [__DECC]: Likewise.
49186         * lib/stdio_.h [__DECC]: Likewise.
49187         * lib/stdlib_.h [__DECC]: Likewise.
49188         * lib/string_.h [__DECC]: Likewise.
49189         * lib/time_.h [__DECC]: Likewise.
49190         * lib/wchar_.h [__DECC]: Likewise.
49191         * lib/wctype_.h [__DECC]: Likewise.
49192
49193 2007-04-27  Bruno Haible  <bruno@clisp.org>
49194
49195         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49196
49197 2007-04-27  Bruno Haible  <bruno@clisp.org>
49198
49199         * lib/fflush.c: Add comments.
49200         * modules/fpurge-tests (Depends-on): Add fflush.
49201         * modules/freadable-tests (Depends-on): Likewise.
49202         * modules/fwritable-tests (Depends-on): Likewise.
49203
49204 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49205
49206         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49207         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49208         Report by Bruno Haible <bruno@clisp.org>.
49209
49210 2007-04-26  Eric Blake  <ebb9@byu.net>
49211
49212         Fix fflush on mingw.
49213         * modules/fflush (Depends-on): Add freading.
49214         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49215         but unread data.
49216
49217 2007-04-26  Eric Blake  <ebb9@byu.net>
49218         and Bruno Haible  <bruno@clisp.org>
49219
49220         Implement freading and fwriting.
49221         * lib/freading.c: New file.
49222         * lib/freading.h: Likewise.
49223         * m4/freading.m4: Likewise.
49224         * modules/freading: Likewise.
49225         * modules/freading-tests: Likewise.
49226         * tests/test-freading.c: Likewise.
49227         * lib/fwriting.c: New file.
49228         * lib/fwriting.h: Likewise.
49229         * m4/fwriting.m4: Likewise.
49230         * modules/fwriting: Likewise.
49231         * modules/fwriting-tests: Likewise.
49232         * tests/test-fwriting.c: Likewise.
49233         * MODULES.html.sh (File stream based Input/Output): Mention them.
49234
49235 2007-04-26  Bruno Haible  <bruno@clisp.org>
49236
49237         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49238         'long' when we assume it.
49239         Suggested by Eric Blake.
49240
49241 2007-04-26  Bruno Haible  <bruno@clisp.org>
49242
49243         Ensure fseeko, ftello are declared on glibc systems.
49244         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49245         * modules/fseeko (configure.ac-early): Likewise.
49246         * modules/ftello (configure.ac-early): Likewise.
49247         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49248         AC_FUNC_FSEEKO for this.
49249         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49250         (gl_CHECK_FSEEKO): Remove macro.
49251
49252 2007-04-26  Bruno Haible  <bruno@clisp.org>
49253
49254         * tests/test-fflush.c (main): Also check the ftell result after
49255         fflush and fseek/fseeko.
49256         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49257         file descriptor position cache in the stream.
49258         * lib/fseeko.c (rpl_fseeko): Likewise.
49259
49260 2007-04-26  Bruno Haible  <bruno@clisp.org>
49261
49262         * modules/fflush-tests (Depends-on): Add fseeko.
49263
49264 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49265             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49266
49267         * lib/argz_.h: ensure error_t definition is obtained in same
49268         mechanism system argz.h would have.
49269         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49270         argz facilities are known bad.  Err on the side of caution if
49271         cross-compiling.
49272
49273 2007-04-25  Eric Blake  <ebb9@byu.net>
49274
49275         * lib/fpurge.c (includes): Use stdlib.h for free.
49276         * tests/test-fflush.c (main): Also test fflush-fseeko.
49277
49278 2007-04-25  Bruno Haible  <bruno@clisp.org>
49279
49280         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49281         * lib/fseeko.c: New file.
49282         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49283         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49284         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49285         gl_FUNC_FSEEKO.
49286         (gl_FUNC_FSEEKO): Invoke it.
49287         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49288         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49289         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49290
49291 2007-04-25  Bruno Haible  <bruno@clisp.org>
49292
49293         * modules/fflush (Depends-on): Add ftello.
49294
49295 2007-04-25  Bruno Haible  <bruno@clisp.org>
49296
49297         * modules/ftello-tests: New file.
49298         * tests/test-ftello.c: New file.
49299
49300         * modules/ftello: New file.
49301         * m4/ftello.m4: New file.
49302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49303         HAVE_FTELLO.
49304         * lib/stdio_.h (ftello): New declaration.
49305         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49306         HAVE_FTELLO.
49307
49308 2007-04-25  Bruno Haible  <bruno@clisp.org>
49309
49310         * modules/fseeko-tests: New file.
49311         * tests/test-fseeko.c: New file.
49312
49313         * modules/fseeko: New file.
49314         * m4/fseeko.m4: New file.
49315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49316         HAVE_FSEEKO.
49317         * lib/stdio_.h (fseeko): New declaration.
49318         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49319         HAVE_FSEEKO.
49320
49321 2007-04-25  Bruno Haible  <bruno@clisp.org>
49322
49323         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49324
49325 2007-04-25  Bruno Haible  <bruno@clisp.org>
49326
49327         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49328         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49329         * tests/test-unistd.c: Likewise.
49330         * tests/test-fcntl.c: Likewise.
49331
49332 2007-04-23  Eric Blake  <ebb9@byu.net>
49333
49334         * lib/fflush.c: Fix missing include.
49335         Reported by Bruno Haible.
49336
49337 2007-04-23  Bruno Haible  <bruno@clisp.org>
49338
49339         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49340         Reported by Eric Blake.
49341
49342 2007-04-23  Bruno Haible  <bruno@clisp.org>
49343
49344         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49345
49346 2007-04-23  Bruno Haible  <bruno@clisp.org>
49347
49348         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49349
49350 2007-04-23  Bruno Haible  <bruno@clisp.org>
49351
49352         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49353         Needed on HP-UX 11.
49354
49355 2007-04-16  Eric Blake  <ebb9@byu.net>
49356
49357         Make fflush rely on fpurge.
49358         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49359         open coding all variants.
49360         * modules/fflush (Depends-on): Add fpurge and unistd.
49361         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49362         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49363
49364         Fix --with-tests compilation on cygwin.
49365         * modules/argmatch-tests (Makefile.am): List gnulib library first
49366         in LDADD.
49367         * modules/argp-tests (Makefile.am): Likewise.
49368         * modules/array-list-tests (Makefile.am): Likewise.
49369         * modules/array-oset-tests (Makefile.am): Likewise.
49370         * modules/avltree-list-tests (Makefile.am): Likewise.
49371         * modules/avltree-oset-tests (Makefile.am): Likewise.
49372         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49373         * modules/carray-list-tests (Makefile.am): Likewise.
49374         * modules/dirname-tests (Makefile.am): Likewise.
49375         * modules/frexp-tests (Makefile.am): Likewise.
49376         * modules/isnanl-tests (Makefile.am): Likewise.
49377         * modules/linked-list-tests (Makefile.am): Likewise.
49378         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49379         * modules/lock-tests (Makefile.am): Likewise.
49380         * modules/rbtree-list-tests (Makefile.am): Likewise.
49381         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49382         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49383         * modules/tls-tests (Makefile.am): Likewise.
49384         * modules/tsearch-tests (Makefile.am): Likewise.
49385         * modules/xvasprintf-tests (Makefile.am): Likewise.
49386
49387         Fix fpurge for cygwin.
49388         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49389         value.
49390         * modules/fpurge-tests (Depends-on): Clean up trash.
49391
49392 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49393
49394         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49395
49396         * m4/autobuild.m4: Re-indent.
49397
49398 2007-04-13  Bruno Haible  <bruno@clisp.org>
49399
49400         * modules/fpurge-tests: New file.
49401         * tests/test-fpurge.c: New file.
49402
49403         * modules/fpurge: New file.
49404         * lib/fpurge.h: New file.
49405         * lib/fpurge.c: New file.
49406         * m4/fpurge.m4: New file.
49407
49408 2007-04-13  Bruno Haible  <bruno@clisp.org>
49409
49410         * modules/fbufmode-tests: New file.
49411         * tests/test-fbufmode.c: New file.
49412
49413         * modules/fbufmode: New file.
49414         * lib/fbufmode.h: New file.
49415         * lib/fbufmode.c: New file.
49416         * m4/fbufmode.m4: New file.
49417
49418 2007-04-13  Bruno Haible  <bruno@clisp.org>
49419
49420         * modules/fwritable-tests: New file.
49421         * tests/test-fwritable.c: New file.
49422
49423         * modules/fwritable: New file.
49424         * lib/fwritable.h: New file.
49425         * lib/fwritable.c: New file.
49426         * m4/fwritable.m4: New file.
49427
49428 2007-04-13  Bruno Haible  <bruno@clisp.org>
49429
49430         * modules/freadable-tests: New file.
49431         * tests/test-freadable.c: New file.
49432
49433         * modules/freadable: New file.
49434         * lib/freadable.h: New file.
49435         * lib/freadable.c: New file.
49436         * m4/freadable.m4: New file.
49437
49438 2007-04-13  Bruno Haible  <bruno@clisp.org>
49439
49440         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49441         MOSTLYCLEANFILES.
49442
49443 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49444
49445         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49446         gzip bootstrap.conf to avoid dragging in i18n machinery.
49447         (gnulib_tool_option): Use it.
49448
49449 2007-04-13  Bruno Haible  <bruno@clisp.org>
49450
49451         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49452         %F directives.
49453         * tests/test-vasprintf-posix.c (test_function): Likewise.
49454         * tests/test-snprintf-posix.h (test_function): Likewise.
49455         * tests/test-sprintf-posix.h (test_function): Likewise.
49456         * tests/test-fprintf-posix.h (test_function): Likewise.
49457         * tests/test-printf-posix.h (test_function): Likewise.
49458         * tests/test-fprintf-posix.out: Likewise.
49459
49460 2007-04-13  Bruno Haible  <bruno@clisp.org>
49461
49462         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
49463         * modules/tls-tests (configure.ac): Likewise.
49464         Reported by Arto C. Nirkko <anirkko@insel.ch>.
49465
49466 2007-04-13  Bruno Haible  <bruno@clisp.org>
49467
49468         * lib/tls.c (glthread_tls_get): Fix return type.
49469         Patch by Arto C. Nirkko <anirkko@insel.ch>.
49470
49471 2007-04-12  Eric Blake  <ebb9@byu.net>
49472
49473         * modules/gettime (Depends-on): Remove gettime.
49474         Reported by Dmitry V. Levin.
49475
49476 2007-04-12  Bruno Haible  <bruno@clisp.org>
49477
49478         * modules/fflush (Include): Mention <stdio.h>.
49479         * modules/strtoimax (Include): Mention <inttypes.h>.
49480         * modules/strtoumax (Include): Likewise.
49481
49482 2007-04-12  Eric Blake  <ebb9@byu.net>
49483
49484         * .cvsignore: New file.
49485         * .gitignore: Likewise.
49486
49487 2007-04-12  Bruno Haible  <bruno@clisp.org>
49488
49489         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
49490         not before, since $(LDADD) often contains libgnu.a.
49491         * modules/striconv-tests (test_striconv_LDADD): Likewise.
49492         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
49493         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
49494         Needed on Cygwin.
49495
49496 2007-04-12  Eric Blake  <ebb9@byu.net>
49497
49498         Work around glibc's failure to flush stdin on fclose.
49499         * lib/closein.c (close_stdin): Flush stdin before closing.
49500
49501         Work around glibc's failure to reset seekable stdin on exit.
49502         * modules/closein: New module.
49503         * lib/closein.c: New file.
49504         * lib/closein.h: Likewise.
49505         * m4/closein.m4: Likewise.
49506         * MODULES.html.sh (File stream based Input/Output): Document it.
49507
49508 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49509
49510         * gnulib-tool: Rename generated 'autobuild' script to
49511         'do-autobuild' in --create-megatestdir output.
49512
49513         * doc/gnulib.texi (Build robot for gnulib): Fix.
49514
49515 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49516
49517         * modules/sysexits (Depends-on): Add absolute-header.
49518
49519 2007-04-12  Eric Blake  <ebb9@byu.net>
49520
49521         No need to preserve errno on success.
49522         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
49523         Reported by Bruno Haible.
49524
49525 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49526
49527         * MODULES.html.sh (Support for maintaining and releasing
49528         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
49529
49530 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49531
49532         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
49533
49534 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49535
49536         * modules/autobuild: New module.
49537
49538         * m4/autobuild.m4: New file.
49539
49540 2007-04-11  Bruno Haible  <bruno@clisp.org>
49541
49542         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
49543         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
49544         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
49545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
49546         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49547         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49548         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49549         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49550         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49551         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49552         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
49553         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49554         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
49556         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49557         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
49559         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49560         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49561         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
49562         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49563         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
49565         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49566         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49567         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
49568         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49569         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49570         Reported by Eric Blake.
49571
49572 2007-04-11  Bruno Haible  <bruno@clisp.org>
49573
49574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
49575
49576 2007-04-10  Bruno Haible  <bruno@clisp.org>
49577
49578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
49579         for NaN and Infinity. Needed on FreeBSD 6.1.
49580         * tests/test-vasnprintf-posix.c (test_function): Undo last change
49581         regarding results for "%010a" of Infinity and NaN.
49582         * tests/test-vasprintf-posix.c (test_function): Likewise.
49583         * tests/test-snprintf-posix.h (test_function): Likewise.
49584         * tests/test-sprintf-posix.h (test_function): Likewise.
49585         * tests/test-fprintf-posix.h (test_function): Likewise.
49586         * tests/test-printf-posix.h (test_function): Likewise.
49587         * tests/test-fprintf-posix.out: Likewise.
49588
49589 2007-04-10  Bruno Haible  <bruno@clisp.org>
49590
49591         * modules/locale-tests: New file.
49592         * tests/test-locale.c: New file.
49593
49594         * modules/locale: New file.
49595         * lib/locale_.h: New file.
49596         * m4/locale_h.m4: New file.
49597
49598 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
49599             Bruno Haible  <bruno@clisp.org>
49600
49601         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
49602         be determined, test for availability of the copysignf, copysign,
49603         copysignl functions.
49604         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
49605         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
49606         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
49607
49608 2007-04-09  Eric Blake  <ebb9@byu.net>
49609
49610         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
49611         * modules/stdio (Makefile.am): Support fflush.
49612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49613         * modules/fflush: New file.
49614         * lib/fflush.c: Likewise.
49615         * m4/fflush.m4: Likewise.
49616         * modules/fflush-tests: New test.
49617         * tests/test-fflush.c: Likewise.
49618         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
49619
49620 2007-04-06  Bruno Haible  <bruno@clisp.org>
49621
49622         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
49623         (VASNPRINTF): Use signbit for faster determination whether to print a
49624         minus sign.
49625         * modules/vasnprintf (Files): Remove lib/float+.h.
49626         * modules/fprintf-posix (Depends-on): Add signbit.
49627         * modules/snprintf-posix (Depends-on): Likewise.
49628         * modules/sprintf-posix (Depends-on): Likewise.
49629         * modules/vasnprintf-posix (Depends-on): Likewise.
49630         * modules/vasprintf-posix (Depends-on): Likewise.
49631         * modules/vfprintf-posix (Depends-on): Likewise.
49632         * modules/vsnprintf-posix (Depends-on): Likewise.
49633         * modules/vsprintf-posix (Depends-on): Likewise.
49634
49635 2007-04-06  Bruno Haible  <bruno@clisp.org>
49636
49637         * tests/test-frexp.c (main): Test also the sign bit of zero results.
49638         * tests/test-frexpl.c (main): Likewise.
49639         * tests/test-ldexpl.c (main): Likewise.
49640         * modules/frexp-tests (Depends-on): Add signbit.
49641         * modules/frexpl-tests (Depdends-on): Likewise.
49642         * modules/ldexpl-tests (Depdends-on): Likewise.
49643
49644 2007-04-06  Bruno Haible  <bruno@clisp.org>
49645
49646         * modules/signbit-tests: New file.
49647         * tests/test-signbit.c: New file.
49648
49649         * modules/signbit: New file.
49650         * lib/signbitf.c: New file.
49651         * lib/signbitd.c: New file.
49652         * lib/signbitl.c: New file.
49653         * m4/signbit.m4: New file.
49654         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
49655         (signbit): New macro.
49656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
49657         REPLACE_SIGNBIT.
49658         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
49659         REPLACE_FREXPL into math.h.
49660
49661 2007-04-06  Bruno Haible  <bruno@clisp.org>
49662
49663         * modules/isnanf-nolibm-tests: New file.
49664         * tests/test-isnanf.c: New file.
49665
49666         * modules/isnanf-nolibm: New file.
49667         * lib/isnanf.h: New file.
49668         * lib/isnanf.c: New file.
49669         * lib/isnan.c: Consider the USE_FLOAT macro.
49670         * m4/isnanf.m4: New file.
49671
49672 2007-04-06  Bruno Haible  <bruno@clisp.org>
49673
49674         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
49675         (Link): New section.
49676
49677         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
49678
49679 2007-04-06  Bruno Haible  <bruno@clisp.org>
49680
49681         Assume the 'long double' type.
49682         * m4/longdouble.m4: Remove file.
49683         * config/srclist.txt: Don't mention longdouble.m4.
49684         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
49685         * lib/float+.h: Likewise.
49686         * lib/frexp.c: Likewise.
49687         * lib/printf-args.h: Likewise.
49688         * lib/printf-args.c: Likewise.
49689         * lib/printf-frexp.c: Likewise.
49690         * lib/printf-parse.c: Likewise.
49691         * lib/vasnprintf.c: Likewise.
49692         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
49693         * m4/intl.m4: Likewise.
49694         * m4/isnanl.m4: Likewise.
49695         * m4/printf.m4: Likewise.
49696         * m4/printf-frexpl.m4: Likewise.
49697         * m4/vasnprintf.m4: Likewise.
49698         * modules/allocsa (Files): Remove m4/longdouble.m4.
49699         * modules/gettext (Files): Likewise.
49700         * modules/relocatable-prog-wrapper (Files): Likewise.
49701         * modules/vasnprintf (Files): Likewise.
49702         * modules/isnanl (Files): Likewise.
49703         (Include): Simplify.
49704         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
49705         (Include): Simplify.
49706         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
49707         (Include): Simplify.
49708         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
49709         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49710         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
49711         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49712         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49713         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49714         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
49715         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49716         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49717         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49718         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
49719         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49720         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
49721         * tests/test-isnanl.c: Likewise.
49722         * tests/test-snprintf-posix.h: Likewise.
49723         * tests/test-sprintf-posix.h: Likewise.
49724         * tests/test-vasnprintf-posix.c: Likewise.
49725         * tests/test-vasnprintf-posix2.c: Likewise.
49726         * tests/test-vasprintf-posix.c: Likewise.
49727
49728 2007-04-06  Bruno Haible  <bruno@clisp.org>
49729
49730         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
49731         * lib/math_.h [__DECC]: Include the overridden include file through
49732         #include_next, outside the double-inclusion guard.
49733         * lib/stdio_.h [__DECC]: Likewise.
49734         * lib/stdlib_.h [__DECC]: Likewise.
49735         * lib/string_.h [__DECC]: Likewise.
49736         * lib/time_.h [__DECC]: Likewise.
49737         * lib/wchar_.h [__DECC]: Likewise.
49738         * lib/wctype_.h [__DECC]: Likewise.
49739         * lib/inttypes_.h [__DECC]: Likewise.
49740         Reported by Albert Chin <china@thewrittenword.com> in
49741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
49742
49743 2007-04-04  Eric Blake  <ebb9@byu.net>
49744
49745         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
49746         1.5.x.
49747
49748 2007-04-04  Bruno Haible  <bruno@clisp.org>
49749
49750         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
49751         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
49752
49753 2007-04-04  Bruno Haible  <bruno@clisp.org>
49754
49755         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
49756         results for "%010a" of Infinity and NaN.
49757         * tests/test-vasprintf-posix.c (test_function): Likewise.
49758         * tests/test-snprintf-posix.h (test_function): Likewise.
49759         * tests/test-sprintf-posix.h (test_function): Likewise.
49760         * tests/test-fprintf-posix.h (test_function): Remove these tests.
49761         * tests/test-printf-posix.h (test_function): Likewise.
49762         * tests/test-fprintf-posix.out: Update.
49763         Needed for FreeBSD 6.1.
49764
49765 2007-04-04  Bruno Haible  <bruno@clisp.org>
49766
49767         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
49768         directly used by the gnulib modules nor by gnulib-tool.
49769
49770 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49771
49772         * DEPENDENCIES: Give overall description of version dependency
49773         desirability.  Use more-typical names for apps.
49774         Add shell, coreutils, diffutils, grep, tar, gzip.
49775
49776 2007-04-04  Simon Josefsson  <simon@josefsson.org>
49777
49778         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
49779
49780 2007-04-04  Karl Berry  <karl@gnu.org>
49781
49782         * MODULES.html.sh (func_module): missing '.
49783
49784 2007-04-03  Bruno Haible  <bruno@clisp.org>
49785
49786         * modules/argmatch-tests (Makefile.am): New variable
49787         test_argmatch_LDADD.
49788         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
49789         * modules/array-list-tests (Makefile.am): New variable
49790         test_array_list_LDADD.
49791         * modules/array-oset-tests (Makefile.am): New variable
49792         test_array_oset_LDADD.
49793         * modules/avltree-list-tests (Makefile.am): New variable
49794         test_avltree_list_LDADD.
49795         * modules/avltree-oset-tests (Makefile.am): New variable
49796         test_avltree_oset_LDADD.
49797         * modules/avltreehash-list-tests (Makefile.am): New variable
49798         test_avltreehash_list_LDADD.
49799         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49800         test_canonicalize_lgpl_LDADD.
49801         * modules/carray-list-tests (Makefile.am): New variable
49802         test_carray_list_LDADD.
49803         * modules/dirname-tests (Makefile.am): New variable
49804         test_dirname_LDADD.
49805         * modules/linked-list-tests (Makefile.am): New variable
49806         test_linked_list_LDADD.
49807         * modules/linkedhash-list-tests (Makefile.am): New variable
49808         test_linkedhash_list_LDADD.
49809         * modules/rbtree-list-tests (Makefile.am): New variable
49810         test_rbtree_list_LDADD.
49811         * modules/rbtree-oset-tests (Makefile.am): New variable
49812         test_rbtree_oset_LDADD.
49813         * modules/rbtreehash-list-tests (Makefile.am): New variable
49814         test_rbtreehash_list_LDADD.
49815         * modules/xvasprintf-tests (Makefile.am): New variable
49816         test_xvasprintf_LDADD.
49817         Reported by Eric Blake.
49818
49819 2007-04-03  Eric Blake  <ebb9@byu.net>
49820
49821         * DEPENDENCIES: Weaken m4 requirements.
49822
49823 2007-04-03  Bruno Haible  <bruno@clisp.org>
49824
49825         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49826         * modules/isnanl-tests (configure.ac): Likewise.
49827
49828 2007-04-03  Ben Pfaff  <blp@gnu.org>
49829
49830         * modules/iconv_open: Add $(srcdir)/ to source directory
49831         references in Makefile fragments that call gperf, to fix VPATH
49832         builds.
49833
49834 2007-04-03  Bruno Haible  <bruno@clisp.org>
49835
49836         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49837         * lib/ldexpl.c: Undo last change.
49838
49839 2007-04-03  Bruno Haible  <bruno@clisp.org>
49840
49841         * modules/printf-frexpl (Depends-on): Undo last change.
49842         (Files): Add m4/ldexpl.m4.
49843
49844 2007-04-03  Bruno Haible  <bruno@clisp.org>
49845
49846         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49847         * modules/isnanl (Link): New section.
49848
49849         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49850         * modules/frexp (Link): New section.
49851
49852         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49853         * modules/frexpl (Link): New section.
49854
49855         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49856         * modules/ldexpl (Link): New section.
49857
49858 2007-04-03  Bruno Haible  <bruno@clisp.org>
49859
49860         * modules/TEMPLATE-EXTENDED: New file.
49861         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49862
49863 2007-04-03  Bruno Haible  <bruno@clisp.org>
49864
49865         * DEPENDENCIES: New file.
49866         Suggested by Simon Josefsson.
49867
49868 2007-04-03  Bruno Haible  <bruno@clisp.org>
49869
49870         * doc/gnulib.texi: Escape @.
49871
49872 2007-04-03  James Youngman  <jay@gnu.org>
49873         and Paul Eggert  <eggert@cs.ucla.edu>
49874
49875         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49876         birthtime on all systems that have birthtime, not just those which
49877         use st_birthtimensec rather than st_birthtim.  Putting zero in
49878         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49879         that the birth time is not available for files on an NFS mount.
49880
49881 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49882
49883         * modules/memxor: Move back from crypto/, suggested by Bruno.
49884         * modules/crypto/hmac-sha1: Fix memxor dependency.
49885
49886         * modules/crypto/gc: Moved from ../.
49887
49888 2007-04-02  Eric Blake  <ebb9@byu.net>
49889
49890         * lib/ldexpl.c (includes): Avoid libm.
49891
49892         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49893
49894 2007-04-02  Bruno Haible  <bruno@clisp.org>
49895
49896         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49897         on IRIX.
49898
49899 2007-04-02  Bruno Haible  <bruno@clisp.org>
49900
49901         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49902         x86 or x86_64 platforms running MacOS X.
49903         Reported by Ryan Schmidt <@ryandesign.com>.
49904
49905 2007-04-02  Bruno Haible  <bruno@clisp.org>
49906
49907         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49908         i386.
49909
49910 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49911
49912         * modules/crypto/arcfour: Moved from ../.
49913         * modules/crypto/arcfour-tests: Moved from ../.
49914         * modules/crypto/arctwo: Moved from ../.
49915         * modules/crypto/arctwo-tests: Moved from ../.
49916         * modules/crypto/des: Moved from ../.
49917         * modules/crypto/des-tests: Moved from ../.
49918         * modules/crypto/gc-arcfour: Moved from ../.
49919         * modules/crypto/gc-arcfour-tests: Moved from ../.
49920         * modules/crypto/gc-arctwo: Moved from ../.
49921         * modules/crypto/gc-arctwo-tests: Moved from ../.
49922         * modules/crypto/gc-des: Moved from ../.
49923         * modules/crypto/gc-des-tests: Moved from ../.
49924         * modules/crypto/gc-hmac-md5: Moved from ../.
49925         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49926         * modules/crypto/gc-hmac-sha1: Moved from ../.
49927         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49928         * modules/crypto/gc-md2: Moved from ../.
49929         * modules/crypto/gc-md2-tests: Moved from ../.
49930         * modules/crypto/gc-md4: Moved from ../.
49931         * modules/crypto/gc-md4-tests: Moved from ../.
49932         * modules/crypto/gc-md5: Moved from ../.
49933         * modules/crypto/gc-md5-tests: Moved from ../.
49934         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49935         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49936         * modules/crypto/gc-random: Moved from ../.
49937         * modules/crypto/gc-rijndael: Moved from ../.
49938         * modules/crypto/gc-rijndael-tests: Moved from ../.
49939         * modules/crypto/gc-sha1: Moved from ../.
49940         * modules/crypto/gc-sha1-tests: Moved from ../.
49941         * modules/crypto/gc-tests: Moved from ../.
49942         * modules/crypto/hmac-md5: Moved from ../.
49943         * modules/crypto/hmac-md5-tests: Moved from ../.
49944         * modules/crypto/hmac-sha1: Moved from ../.
49945         * modules/crypto/hmac-sha1-tests: Moved from ../.
49946         * modules/crypto/md2: Moved from ../.
49947         * modules/crypto/md2-tests: Moved from ../.
49948         * modules/crypto/md4: Moved from ../.
49949         * modules/crypto/md4-tests: Moved from ../.
49950         * modules/crypto/md5: Moved from ../.
49951         * modules/crypto/md5-tests: Moved from ../.
49952         * modules/crypto/memxor: Moved from ../.
49953         * modules/crypto/rijndael: Moved from ../.
49954         * modules/crypto/rijndael-tests: Moved from ../.
49955         * modules/crypto/sha1: Moved from ../.
49956
49957 2007-03-30  James Youngman  <jay@gnu.org>
49958
49959         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49960         rename() to change the ctime of a file (because ctime is unaffected
49961         by rename on jfs2 on AIX 5.1).
49962         (main): Start by doing cleanup, in case a previous run failed leaving
49963         test files behind.
49964
49965 2007-03-31  Bruno Haible  <bruno@clisp.org>
49966
49967         Support old proprietary implementations of iconv.
49968         * modules/iconv_open: New file.
49969         * lib/iconv_.h: New file.
49970         * m4/iconv_h.m4: New file.
49971         * lib/iconv_open.c: New file.
49972         * lib/iconv_open-aix.gperf: New file.
49973         * lib/iconv_open-hpux.gperf: New file.
49974         * lib/iconv_open-irix.gperf: New file.
49975         * lib/iconv_open-osf.gperf: New file.
49976         * m4/iconv_open.m4: New file.
49977         * modules/linebreak (Depends-on): Add iconv_open.
49978         * modules/striconv (Depends-on): Likewise.
49979         * modules/striconveh (Depends-on): Likewise.
49980         * modules/unicodeio (Depends-on): Likewise.
49981         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49982         (iconv_t)(-1).
49983         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49984         conversion if cd is (iconv_t)(-1).
49985         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49986         is not possible.
49987
49988 2007-03-31  Bruno Haible  <bruno@clisp.org>
49989
49990         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49991         work on Solaris either. Protect also second use of "autodetect_jp".
49992
49993 2007-03-31  Bruno Haible  <bruno@clisp.org>
49994
49995         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49996         the function is not present.
49997
49998 2007-03-31  Bruno Haible  <bruno@clisp.org>
49999
50000         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50001         the function is not present.
50002
50003 2007-03-31  Bruno Haible  <bruno@clisp.org>
50004
50005         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50006         a bug in HP-UX iconv_open().
50007
50008 2007-03-31  Bruno Haible  <bruno@clisp.org>
50009
50010         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50011         (Mathematics <math.h>): New section, add fpieee.
50012         (Input/output <stdio.h>): Add fseterr.
50013         (Mathematics <math.h>): New section, add printf-frexp.
50014         (Container data structures): Add sublist.
50015         (Core language properties): Add fpucw, inline.
50016         (Functions for greatest-width integer types <inttypes.h>): Add
50017         imaxabs, imaxdiv, inttypes.
50018         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50019         isnanl-nolibm, ldexp.
50020         (Mathematics <math.h>): New section, add printf-frexpl.
50021         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50022         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50023         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50024         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50025         (Unicode string functions): Add unistr/u*-mbtoucr.
50026         (Java): Add javacomp-script, javaexec-script.
50027         (C#): Add csharpcomp-script, csharpexec-script.
50028         (Support for building libraries and executables): Add havelib,
50029         relocatable-*.
50030         (Support for maintaining and releasing projects): Renamed from
50031         'Support for maintaining and release projects'. Add announce-gen.
50032
50033 2007-03-31  Bruno Haible  <bruno@clisp.org>
50034
50035         * README: Talk primarily about git.
50036         (git and CVS): Renamed from CVS.
50037         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50038         gnulib is available through git.
50039         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50040
50041 2007-03-30  Bruno Haible  <bruno@clisp.org>
50042
50043         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50044         * lib/poll_.h: Likewise.
50045         * lib/stat_.h: Likewise.
50046         * lib/sys_time_.h: Likewise.
50047         * lib/sysexit_.h: Likewise.
50048         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50049         * lib/stdbool_.h: Likewise.
50050         * lib/byteswap_.h: Add double-inclusion guard.
50051
50052 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50053
50054         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50055
50056 2007-03-30  Karl Berry  <karl@gnu.org>
50057
50058         * config/srclist-update: double space after USA in the license
50059         substitution, since that's how it's usually (?) written.
50060
50061 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50062
50063         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50064         reported by Bruno Haible.
50065
50066 2007-03-29  Bruno Haible  <bruno@clisp.org>
50067
50068         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50069         a bug in AIX iconv().
50070
50071 2007-03-29  Bruno Haible  <bruno@clisp.org>
50072
50073         * modules/ldexpl-tests: New file.
50074         * tests/test-ldexpl.c: New file.
50075
50076 2007-03-29  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/ldexpl.c: Include fpucw.h.
50079         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50080         multiplication.
50081         * modules/ldexpl (Depends-on): Add fpucw.
50082
50083 2007-03-29  Bruno Haible  <bruno@clisp.org>
50084
50085         * modules/ldexpl: New file.
50086         * m4/ldexpl.m4: New file.
50087         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50088         set.
50089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50090         REPLACE_LDEXPL.
50091         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50092         REPLACE_LDEXPL.
50093         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50094         gl_FUNC_LDEXPL_WORKS.
50095         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50096         * modules/mathl (Files): Remove lib/ldexpl.c.
50097         (Depends-on): Add ldexpl.
50098
50099 2007-03-29  Bruno Haible  <bruno@clisp.org>
50100
50101         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50102
50103 2007-03-29  Bruno Haible  <bruno@clisp.org>
50104
50105         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50106         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50107         and possibly also HP-UX.
50108         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50109         work on AIX, IRIX, HP-UX, OSF/1.
50110         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50111         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50112         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50113         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50114         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50115         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50116
50117 2007-03-29  Bruno Haible  <bruno@clisp.org>
50118
50119         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50120
50121 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50122
50123         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50124         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50125
50126 2007-03-29  Eric Blake  <ebb9@byu.net>
50127
50128         * lib/acl-internal.h: Remove redundant include.
50129         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50130         Cygwin when a file is locked.
50131
50132 2007-03-29  Bruno Haible  <bruno@clisp.org>
50133
50134         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50135         file.
50136         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50137
50138 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50139
50140         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50141         try to remove a parent directory if the child couldn't be removed
50142         (except for the first rmdir, which could fail because the child
50143         doesn't exist).  Problem reported by Jeff Blaine in
50144         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50145
50146 2007-03-28  Bruno Haible  <bruno@clisp.org>
50147
50148         * lib/striconveh.c (utf8conv_carefully): New function.
50149         (mem_cd_iconveh_internal): Invoke it.
50150
50151 2007-03-28  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50154         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50155         input.
50156         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50157         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50158         unistr/u8-uctomb.
50159
50160 2007-03-28  Bruno Haible  <bruno@clisp.org>
50161
50162         * modules/unistr/u8-mbtoucr: New file.
50163         * lib/unistr/u8-mbtoucr.c: New file.
50164         * modules/unistr/u16-mbtoucr: New file.
50165         * lib/unistr/u16-mbtoucr.c: New file.
50166         * modules/unistr/u16-mbtoucr: New file.
50167         * lib/unistr/u16-mbtoucr.c: New file.
50168         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50169
50170 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50171             Bruno Haible  <bruno@clisp.org>
50172
50173         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50174         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50175         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50176
50177         * m4/stdio_h.m4: Add stubs for vasprintf too.
50178
50179         * modules/stdio: Support vasprintf in sed command.
50180
50181         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50182         vasprintf.h.  Add stdio module indicator.
50183
50184         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50185         vasprintf.h.
50186
50187         * lib/vasprintf.h: File removed.
50188
50189         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50190         * lib/vasprintf.c: Ditto.
50191         * lib/xvasprintf.c: Ditto.
50192         * tests/test-vasprintf-posix.c: Ditto.
50193         * tests/test-vasprintf.c: Ditto.
50194
50195 2007-03-27  Bruno Haible  <bruno@clisp.org>
50196
50197         Make vasnprintf multithread-safe.
50198         * lib/vasnprintf.c (decimal_point_char): New function.
50199         (VASNPRINTF): Use it.
50200         Suggested by Simon Josefsson.
50201
50202 2007-03-27  Eric Blake  <ebb9@byu.net>
50203
50204         Support sub-second birthtime on cygwin.
50205         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50206         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50207         (get_stat_birthtime): Also work with st_birthtim.
50208
50209 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50210
50211         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50212         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50213         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50214         (get_stat_birthtime_ns): Simplify compile-time tests.
50215         (get_stat_birthtime): Change the API to look like
50216         get_stat_mtime etc., except return a negative tv_nsec on error.
50217         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50218         Don't check for "spare" fields.
50219         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50220         or for struct stat.st_birthtime, as these tests aren't used.
50221         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50222
50223 2007-03-27  Bruno Haible  <bruno@clisp.org>
50224
50225         * lib/stat-time.h: Include <sys/stat.h>.
50226
50227 2007-03-27  James Youngman  <jay@gnu.org>
50228
50229         * lib/stat-time.h (get_stat_birthtime): New function for
50230           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50231         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50232           and its variants.
50233         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50234         * modules/stat-time-test: New file.
50235         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50236
50237 2007-03-26  Bruno Haible  <bruno@clisp.org>
50238
50239         Better support of signalling NaNs.
50240         * lib/atanl.c: Include isnanl.h.
50241         (atanl): Perform test for NaN at the beginning of the function and
50242         through a call to isnanl.
50243         * lib/cosl.c: Include isnanl.h.
50244         (cosl): Perform test for NaN at the beginning of the function and
50245         through a call to isnanl.
50246         * lib/ldexpl.c: Include isnanl.h.
50247         (ldexpl): Perform test for NaN through a call to isnanl.
50248         * lib/logl.c: Include isnanl.h.
50249         (logl): Perform test for NaN at the beginning of the function and
50250         through a call to isnanl.
50251         * lib/sinl.c: Include isnanl.h.
50252         (sinl): Perform test for NaN at the beginning of the function and
50253         through a call to isnanl.
50254         * lib/sqrtl.c: Include isnanl.h.
50255         (sqrtl): Perform test for NaN at the beginning of the function and
50256         through a call to isnanl.
50257         * lib/tanl.c: Include isnanl.h.
50258         (tanl): Perform test for NaN at the beginning of the function and
50259         through a call to isnanl.
50260         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50261         * modules/mathl (Depends-on): Add isnanl.
50262
50263 2007-03-26  Eric Blake  <ebb9@byu.net>
50264
50265         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50266         regression in logic sense of previous patch.
50267
50268 2007-03-26  Bruno Haible  <bruno@clisp.org>
50269
50270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50271         unportable shell command "if ! ...".
50272         Reported by Ralf Wildenhues.
50273
50274 2007-03-25  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50277         <sysexits.h> file, and only add EX_CONFIG.
50278         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50279         absolute file name and whether it is sufficient. Substitute also
50280         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50281         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50282         ABSOLUTE_SYSEXITS_H into sysexits.h.
50283
50284 2007-03-25  Bruno Haible  <bruno@clisp.org>
50285
50286         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50287         hints is NULL.
50288
50289 2007-03-25  Bruno Haible  <bruno@clisp.org>
50290
50291         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50292         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50293
50294 2007-03-25  Bruno Haible  <bruno@clisp.org>
50295
50296         * lib/vasnprintf.c: Include langinfo.h.
50297         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50298         multithread-safe.
50299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50300         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50302         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50304         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50305         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50306         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50307         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50308         Reported by Simon Josefsson.
50309
50310 2007-03-25  Bruno Haible  <bruno@clisp.org>
50311
50312         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50313         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50314         * modules/vasnprintf (Depends-on): Add stdint.
50315
50316 2007-03-25  Bruno Haible  <bruno@clisp.org>
50317
50318         * modules/fpieee: New file.
50319         * m4/fpieee.m4: New file.
50320         * modules/isnan-nolibm (Depends-on): Add fpieee.
50321         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50322         * modules/isnanl (Depends-on): Add fpieee.
50323
50324 2007-03-25  Bruno Haible  <bruno@clisp.org>
50325
50326         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50327
50328 2007-03-25  Bruno Haible  <bruno@clisp.org>
50329
50330         Avoid test failures on IRIX 6.5.
50331         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50332         (main): Use it.
50333         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50334         macros.
50335         (main): Use them.
50336
50337 2007-03-25  Bruno Haible  <bruno@clisp.org>
50338
50339         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50340         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50341         exists but doesn't work.
50342         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50343         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50345         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50346
50347 2007-03-25  Bruno Haible  <bruno@clisp.org>
50348
50349         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50350         returns inf. Needed on IRIX 6.5.
50351
50352 2007-03-25  Bruno Haible  <bruno@clisp.org>
50353
50354         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50355         (main): Use isnanl instead of x != x idiom.
50356         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50357
50358         * tests/test-frexp.c: Include isnan.h.
50359         (main): Use isnan instead of x != x idiom.
50360         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50361
50362 2007-03-25  Bruno Haible  <bruno@clisp.org>
50363
50364         * tests/test-frexp.c (NaN): New function/macro.
50365         (main): Use it instead of 0.0 / 0.0.
50366         * tests/test-isnan.c (NaN): New function/macro.
50367         (main): Use it instead of 0.0 / 0.0.
50368         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50369         (test_function): Use it instead of 0.0 / 0.0.
50370         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50371         (test_function): Use it instead of 0.0 / 0.0.
50372         * tests/test-snprintf-posix.h (NaN): New function/macro.
50373         (test_function): Use it instead of 0.0 / 0.0.
50374         * tests/test-sprintf-posix.h (NaN): New function/macro.
50375         (test_function): Use it instead of 0.0 / 0.0.
50376         * tests/test-fprintf-posix.h (NaN): New function/macro.
50377         (test_function): Use it instead of 0.0 / 0.0.
50378         * tests/test-printf-posix.h (NaN): New function/macro.
50379         (test_function): Use it instead of 0.0 / 0.0.
50380
50381         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50382
50383 2007-03-25  Bruno Haible  <bruno@clisp.org>
50384
50385         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50386
50387 2007-03-25  Bruno Haible  <bruno@clisp.org>
50388
50389         * lib/regexec.c (merge_state_with_log): Make static.
50390
50391 2007-03-25  Bruno Haible  <bruno@clisp.org>
50392
50393         * lib/trigl.c (kernel_rem_pio2): Make static.
50394
50395 2007-03-25  Bruno Haible  <bruno@clisp.org>
50396
50397         * lib/sincosl.c (sincosl_table): Make static.
50398
50399 2007-03-25  Bruno Haible  <bruno@clisp.org>
50400
50401         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50402         if the compiler does not support C99.
50403
50404 2007-03-25  Bruno Haible  <bruno@clisp.org>
50405
50406         * modules/time (Makefile.am): Ensure all rule action lines start with a
50407         tab.
50408
50409 2007-03-24  Bruno Haible  <bruno@clisp.org>
50410
50411         * modules/tsearch-tests: New file.
50412         * tests/test-tsearch.sh: New file.
50413         * tests/test-tsearch.c: New file, mostly copied from glibc.
50414
50415         * modules/search-tests: New file.
50416         * tests/test-search.c: New file.
50417
50418         * modules/search: New file.
50419         * lib/search_.h: New file, incorporating lib/tsearch.h.
50420         * m4/search_h.m4: New file.
50421         * lib/tsearch.h: Remove file.
50422         * lib/tsearch.c: Include search.h instead of tsearch.h.
50423         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50424         HAVE_TSEARCH.
50425         * modules/tsearch (Files): Remove lib/tsearch.h.
50426         (Depends-on): Add search.
50427         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50428         (Include): Change tsearch.h into search.h.
50429
50430 2007-03-24  Bruno Haible  <bruno@clisp.org>
50431
50432         * modules/fpucw: New file.
50433         * lib/fpucw.h: New file.
50434         * lib/frexp.c: Include fpucw.h.
50435         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50436         (FUNC): Use them.
50437         * lib/printf-frexp.c: Include fpucw.h.
50438         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50439         (FUNC): Use them.
50440         * lib/vasnprintf.c: Include fpucw.h.
50441         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50442         'long double' calculations.
50443         * tests/test-frexpl.c: Include fpucw.h.
50444         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50445         * tests/test-printf-frexpl.c: Include fpucw.h.
50446         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50447         * modules/frexpl (Depends-on): Add fpucw.
50448         * modules/printf-frexpl (Depends-on): Likewise.
50449         * modules/fprintf-posix (Depends-on): Likewise.
50450         * modules/snprintf-posix (Depends-on): Likewise.
50451         * modules/sprintf-posix (Depends-on): Likewise.
50452         * modules/vasnprintf-posix (Depends-on): Likewise.
50453         * modules/vasprintf-posix (Depends-on): Likewise.
50454         * modules/vfprintf-posix (Depends-on): Likewise.
50455         * modules/vsnprintf-posix (Depends-on): Likewise.
50456         * modules/vsprintf-posix (Depends-on): Likewise.
50457         * modules/frexpl-tests (Depends-on): Likewise.
50458         * modules/printf-frexpl-tests (Depends-on): Likewise.
50459
50460 2007-03-24  Bruno Haible  <bruno@clisp.org>
50461
50462         * lib/float+.h: New file.
50463         * lib/isnan.c: Include float+.h.
50464         (SIZE): New macro.
50465         (FUNC): Compare only SIZE bytes of the value.
50466         * lib/vasnprintf.c: Include float+.h.
50467         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
50468         SIZEOF_LDBL or SIZEOF_DBL bytes.
50469         * modules/isnan-nolibm (Files): Add lib/float+.h.
50470         * modules/isnanl-nolibm (Files): Add lib/float+.h.
50471         * modules/isnanl (Files): Add lib/float+.h.
50472         * modules/vasnprintf (Files): Add lib/float+.h.
50473
50474 2007-03-24  Bruno Haible  <bruno@clisp.org>
50475
50476         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
50477         include isnanl-nolibm.h.
50478
50479 2007-03-24  Bruno Haible  <bruno@clisp.org>
50480
50481         * tests/test-read-file.c (main): Don't produce spurious output for
50482         expected situations. Make the test fail if it encountered unexpected
50483         results.
50484
50485 2007-03-24  Bruno Haible  <bruno@clisp.org>
50486
50487         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
50488         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
50489
50490 2007-03-24  Bruno Haible  <bruno@clisp.org>
50491
50492         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
50493
50494 2007-03-24  Bruno Haible  <bruno@clisp.org>
50495
50496         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
50497         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
50498
50499         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
50500         * modules/utf8-ucs4: Turn into a symbolic link to module
50501         unistr/u8-mbtouc.
50502
50503         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
50504         utf8-ucs4-unsafe.
50505         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
50506         unistr/u8-mbtouc-unsafe.
50507
50508         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
50509         * modules/utf16-ucs4: Turn into a symbolic link to module
50510         unistr/u16-mbtouc.
50511
50512         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
50513         utf16-ucs4-unsafe.
50514         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
50515         unistr/u16-mbtouc-unsafe.
50516
50517         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
50518         * modules/ucs4-utf8: Turn into a symbolic link to module
50519         unistr/u8-ubtomb.
50520
50521         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
50522         * modules/ucs4-utf16: Turn into a symbolic link to module
50523         unistr/u16-ubtomb.
50524
50525 2007-03-24  Bruno Haible  <bruno@clisp.org>
50526
50527         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
50528         Enable the function only if HAVE_INLINE.
50529         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
50530         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50531         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
50532         Enable the function only if HAVE_INLINE.
50533         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
50534         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50535         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
50536         Enable the function only if HAVE_INLINE.
50537         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
50538         Enable the function only if HAVE_INLINE.
50539         * modules/utf8-ucs4: Update.
50540         * modules/utf8-ucs4-unsafe: Update.
50541         * modules/utf16-ucs4: Update.
50542         * modules/utf16-ucs4-unsafe: Update.
50543         * modules/ucs4-utf8: Update.
50544         * modules/ucs4-utf16: Update.
50545
50546 2007-03-24  Bruno Haible  <bruno@clisp.org>
50547
50548         * lib/utf8-ucs4.h: Remove file.
50549         * lib/utf8-ucs4-unsafe.h: Remove file.
50550         * lib/utf16-ucs4.h: Remove file.
50551         * lib/utf16-ucs4-unsafe.h: Remove file.
50552         * lib/ucs4-utf8.h: Remove file.
50553         * lib/ucs4-utf16.h: Remove file.
50554         * lib/unistr.h: Include their previous contents.
50555         * m4/utf-ucs4.m4: Remove file.
50556         * m4/ucs4-utf.m4: Remove file.
50557         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
50558         (Depends-on): Add unistr/base.
50559         (configure.ac): Remove gl_UTF_UCS4.
50560         (Makefile.am): Update.
50561         (Include): Change to unistr.h.
50562         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
50563         (Depends-on): Add unistr/base.
50564         (configure.ac): Remove gl_UTF_UCS4.
50565         (Makefile.am): Update.
50566         (Include): Change to unistr.h.
50567         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
50568         (Depends-on): Add unistr/base.
50569         (configure.ac): Remove gl_UTF_UCS4.
50570         (Makefile.am): Update.
50571         (Include): Change to unistr.h.
50572         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
50573         (Depends-on): Add unistr/base.
50574         (configure.ac): Remove gl_UTF_UCS4.
50575         (Makefile.am): Update.
50576         (Include): Change to unistr.h.
50577         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
50578         (Depends-on): Add unistr/base.
50579         (configure.ac): Remove gl_UCS4_UTF.
50580         (Makefile.am): Update.
50581         (Include): Change to unistr.h.
50582         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
50583         (Depends-on): Add unistr/base.
50584         (configure.ac): Remove gl_UCS4_UTF.
50585         (Makefile.am): Update.
50586         (Include): Change to unistr.h.
50587         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
50588         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
50589         utf8-ucs4-unsafe.h.
50590         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
50591         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
50592         utf16-ucs4-unsafe.h.
50593         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
50594         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
50595         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
50596         * lib/unistr/u8-strchr.c: Likewise.
50597         * lib/unistr/u8-strrchr.c: Likewise.
50598         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
50599         * lib/unistr/u16-strchr.c: Likewise.
50600         * lib/unistr/u16-strrchr.c: Likewise.
50601         * lib/striconveh.c: Update.
50602         * lib/linebreak.c: Update.
50603
50604 2007-03-24  Bruno Haible  <bruno@clisp.org>
50605
50606         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
50607         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
50608
50609 2007-03-22  Bruno Haible  <bruno@clisp.org>
50610
50611         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
50612
50613 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50614
50615         * MODULES.html.sh (File system functions): New module write-any-file.
50616         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
50617         * m4/write-any-file.m4: New files.
50618
50619 2007-03-23  Eric Blake  <ebb9@byu.net>
50620
50621         * gnulib-tool: Rearrange space-tab sequences, since some editors
50622         like to eat them.
50623
50624 2007-03-23  Eric Blake  <ebb9@byu.net>
50625
50626         * lib/version-etc.c (version_etc_va): Update license wording to
50627         be more concise.  Recommended by Richard Stallman.
50628
50629 2007-03-22  Bruno Haible  <bruno@clisp.org>
50630
50631         * lib/poll.c (MSG_PEEK): New fallback definition.
50632
50633 2007-03-22  Bruno Haible  <bruno@clisp.org>
50634
50635         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
50636         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
50637         (main): Update.
50638         Fixes a compilation error on BeOS.
50639
50640 2007-03-22  Bruno Haible  <bruno@clisp.org>
50641
50642         * modules/frexpl-tests: New file.
50643         * tests/test-frexpl.c: New file.
50644
50645         * modules/frexpl: New file.
50646         * m4/frexpl.m4: New file.
50647         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
50648         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
50649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
50650         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
50651         (Depends-on): Add frexpl. Remove isnanl-nolibm.
50652         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
50653
50654 2007-03-22  Bruno Haible  <bruno@clisp.org>
50655
50656         * lib/frexpl.c: Share code with lib/frexp.c.
50657         * modules/mathl (Files): Add lib/frexp.c.
50658         (Depends-on): Add isnanl-nolibm.
50659
50660 2007-03-22  Bruno Haible  <bruno@clisp.org>
50661
50662         * modules/printf-frexp (Files): Add m4/frexp.m4.
50663         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
50664         only if the found frexp function actually works.
50665
50666 2007-03-22  Bruno Haible  <bruno@clisp.org>
50667
50668         * lib/frexp.c: Remove older implementation that uses divisions.
50669
50670 2007-03-21  Bruno Haible  <bruno@clisp.org>
50671
50672         * modules/frexp-tests: New file.
50673         * tests/test-frexp.c: New file.
50674
50675         * modules/frexp: New file.
50676         * lib/frexp.c: New file.
50677         * m4/frexp.m4: New file.
50678         * lib/math_.h (frexp): New declaration.
50679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
50680         REPLACE_FREXP.
50681         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
50682
50683 2007-03-21  Bruno Haible  <bruno@clisp.org>
50684
50685         * modules/isnanl-tests: New file.
50686         * tests/test-isnanl.c: New file.
50687
50688         * modules/isnanl: New file.
50689         * lib/isnanl.h: New file.
50690         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
50691         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
50692         gl_FUNC_ISNANL_WORKS.
50693         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
50694         New macros.
50695
50696 2007-03-21  Bruno Haible  <bruno@clisp.org>
50697
50698         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
50699         lib/isnanl.h.
50700         (Include): Update.
50701         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
50702         * lib/vasnprintf.c: Update.
50703         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
50704         tests/test-isnanl.h, remove tests/test-isnanl.c.
50705         (Makefile.am): Update.
50706         * tests/test-isnanl-nolibm.c: New file.
50707         * tests/test-isnanl.h: New file.
50708         * tests/test-isnanl.c: Remove file.
50709
50710 2007-03-21  Jim Meyering  <jim@meyering.net>
50711
50712         When trying to open ".", treat ESTALE like EACCES.
50713         * lib/savewd.c (savewd_save): Resort to forking not just upon
50714         failure with EACCES, but also when errno is ESTALE.
50715
50716 2007-03-20  Bruno Haible  <bruno@clisp.org>
50717
50718         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
50719         Needed on AIX 5.1. Reported by Matthew Woehlke.
50720
50721 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50722
50723         Suggestions by Bruno Haible:
50724         * lib/acl-internal.h: Include "gettext.h" rather than rolling
50725         our own.
50726         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
50727         * modules/acl (Depends-on): Add gettext.
50728
50729 2007-03-19  Bruno Haible  <bruno@clisp.org>
50730
50731         * modules/iconvme: Remove file.
50732         * lib/iconvme.h: Remove file.
50733         * lib/iconvme.c: Remove file.
50734         * m4/iconvme.m4: Remove file.
50735
50736 2007-03-19  Bruno Haible  <bruno@clisp.org>
50737
50738         * doc/relocatable-maint.texi: Break long shell script line.
50739         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50740
50741 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50742
50743         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
50744         handle file_has_acl.
50745         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
50746         * lib/acl.c: Move header inclusions and related macro defns into
50747         lib/acl-internal.h.
50748         (S_ISLNK): Remove defn, since that's now done for us.
50749         (file_has_acl): Move to lib/file-has-acl.c.
50750         Call acl_trivial if available.  This is the crucial part of the fix.
50751         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
50752         shared within the library.  Rewrite a bit, partly to make it compatible
50753         with the GNU coding style.
50754         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
50755         Remove unnecessary double-quotes.
50756         Don't test for acl_to_text; the build will catch that.
50757         Replace acl_entries if it doesn't exist and it is needed.
50758         Check for -lsec and acl_trivial (as used on Solaris 10).
50759         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
50760         lib/file-has-acl.c.
50761         (Depends-on): Add sys_stat, for S_ISLNK.
50762
50763 2007-03-19  Ben Pfaff  <blp@gnu.org>
50764
50765         * doc/gnulib.texi: Fix typos.
50766         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50767
50768 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50769
50770         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
50771         If size is zero here, buf must be zero.
50772
50773 2007-03-19  Simon Josefsson  <simon@josefsson.org>
50774
50775         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
50776         <bruno@clisp.org>.
50777
50778 2007-03-18  Bruno Haible  <bruno@clisp.org>
50779
50780         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
50781         Suggested by Eric Blake.
50782
50783 2007-03-18  Ben Pfaff  <blp@gnu.org>
50784
50785         * doc/relocatable.texi: Recommend using as prefix a directory
50786         that does not exist and will never be created.  Based on
50787         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
50788         and others.
50789
50790 2007-03-17  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/fchownat.c: Include lchown.h.
50793
50794 2007-03-17  Bruno Haible  <bruno@clisp.org>
50795
50796         Fix endless loop when the given allocated size was > INT_MAX.
50797         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50798         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50799         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50800         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50801         * lib/sprintf.c (sprintf): Likewise.
50802
50803 2007-03-17  Bruno Haible  <bruno@clisp.org>
50804
50805         * tests/test-argp-2.sh (func_compare): Output a context diff.
50806
50807 2007-03-17  Bruno Haible  <bruno@clisp.org>
50808
50809         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50810         locale's decimal-point character.
50811
50812 2007-03-17  Bruno Haible  <bruno@clisp.org>
50813
50814         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50815         before comparing it. Needed because on some platforms (e.g. x86) a
50816         'long double' occupies less bytes than sizeof (long double).
50817
50818 2007-03-17  Bruno Haible  <bruno@clisp.org>
50819
50820         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50821         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50822         * tests/test-getaddrinfo.c (simple): Likewise.
50823         * tests/test-read-file.c (main): Likewise.
50824
50825 2007-03-17  Bruno Haible  <bruno@clisp.org>
50826
50827         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50828
50829 2007-03-17  Bruno Haible  <bruno@clisp.org>
50830
50831         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50832         unused variable.
50833
50834 2007-03-17  Bruno Haible  <bruno@clisp.org>
50835
50836         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50837         * tests/test-c-strncasecmp.c: Likewise.
50838
50839 2007-03-17  Bruno Haible  <bruno@clisp.org>
50840
50841         * modules/stdlib (Depends-on): Add unistd.
50842         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50843         Needed for MacOS X 10.3.
50844
50845 2007-03-17  Bruno Haible  <bruno@clisp.org>
50846
50847         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50848
50849 2007-03-17  Bruno Haible  <bruno@clisp.org>
50850
50851         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50852
50853 2007-03-17  Bruno Haible  <bruno@clisp.org>
50854
50855         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50856         to reflect files copied from gnulib (with or without modifications).
50857         Suggested by Jim Meyering.
50858
50859 2007-03-17  Eric Blake  <ebb9@byu.net>
50860
50861         * NEWS: Document stdlib change from 2007-02-18.
50862
50863 2007-03-17  Jim Meyering  <jim@meyering.net>
50864
50865         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50866         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50867         someone uses a name containing shell meta-characters.
50868         Reported by Alfred M. Szmidt.
50869
50870         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50871
50872 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50873
50874         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50875         and copy gettext configuration files only if configure.ac contains
50876         a use of AM_GNU_GETTEXT_VERSION.
50877
50878 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50879
50880         * build-aux/bootstrap (gnulib_name): New variable.
50881         (gnulib_tool_options): Use it.
50882
50883 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50884
50885         * tests/test-des.c: Use new namespace.
50886
50887 2007-03-15  Bruno Haible  <bruno@clisp.org>
50888
50889         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50890         Reported by James Youngman <jay@gnu.org>.
50891
50892 2007-03-15  Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50895         declared prototype. Needed with cc on OSF/1 5.1.
50896
50897 2007-03-15  Bruno Haible  <bruno@clisp.org>
50898
50899         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50900         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50901         (struct gl_list_implementation): Add dispose_fn argument to the
50902         'create_empty', 'create' methods.
50903         (struct gl_list_impl_base): Add field 'dispose_fn'.
50904         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50905         argument.
50906         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50907         dispose_fn argument.
50908         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50909         dispose_fn on the dropped values.
50910         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50911         dispose_fn argument.
50912         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50913         dropped values.
50914         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50915         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50916         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50917         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50918         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50919         argument.
50920         (gl_tree_list_free): Call dispose_fn on the dropped values.
50921         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50922         the dropped values.
50923         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50924         Add dispose_fn argument.
50925         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50926         Call dispose_fn on the dropped values.
50927         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50928         Add dispose_fn argument.
50929         (gl_sublist_create): Initialize the 'dispose_fn' field.
50930         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50931         * tests/test-array_list.c (main): Update.
50932         * tests/test-carray_list.c (main): Update.
50933         * tests/test-avltree_list.c (main): Update.
50934         * tests/test-rbtree_list.c (main): Update.
50935         * tests/test-avltreehash_list.c (main): Update.
50936         * tests/test-rbtreehash_list.c (main): Update.
50937         * tests/test-linked_list.c (main): Update.
50938         * tests/test-linkedhash_list.c (main): Update.
50939         * tests/test-array_oset.c (main): Update.
50940
50941 2007-03-15  Bruno Haible  <bruno@clisp.org>
50942
50943         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50944         (gl_oset_create_empty): Add dispose_fn argument.
50945         (struct gl_oset_implementation): Add dispose_fn argument to
50946         'create_empty' method.
50947         (struct gl_oset_impl_base): Add dispose_fn field.
50948         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50949         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50950         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50951         values.
50952         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50953         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50954         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50955         dropped value.
50956         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50957         dropped value.
50958         * tests/test-array_oset.c (main): Update.
50959         * tests/test-avltree_oset.c (main): Update.
50960         * tests/test-rbtree_oset.c (main): Update.
50961         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50962
50963 2007-03-13  Bruno Haible  <bruno@clisp.org>
50964
50965         * tests/test-stdbool.c (i): Update after last patch.
50966
50967 2007-03-12  Bruno Haible  <bruno@clisp.org>
50968
50969         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50970         the iswprint macro. Needed on Solaris 2.5.1.
50971
50972 2007-03-12  Bruno Haible  <bruno@clisp.org>
50973
50974         * tests/test-printf-frexp.c (main): Declare x as volatile.
50975
50976 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50977
50978         * doc/gnulib.texi (Build robot for gnulib): New section.
50979
50980 2007-03-12  Jim Meyering  <jim@meyering.net>
50981
50982         * build-aux/bootstrap: New file.
50983         * build-aux/bootstrap.conf: New file, from coreutils.
50984
50985 2007-03-11  Bruno Haible  <bruno@clisp.org>
50986
50987         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50988
50989 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50990
50991         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50992         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50993         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50994
50995 2007-03-11  Bruno Haible  <bruno@clisp.org>
50996
50997         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50998         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50999
51000 2007-03-11  Bruno Haible  <bruno@clisp.org>
51001
51002         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51003         formula. Needed for SunPRO C 5.0.
51004
51005 2007-03-11  Bruno Haible  <bruno@clisp.org>
51006
51007         * modules/long-options (Depends-on): Add getopt.
51008
51009 2007-03-11  Bruno Haible  <bruno@clisp.org>
51010
51011         * modules/modechange (Depends-on): Add stdbool.
51012
51013 2007-03-11  Bruno Haible  <bruno@clisp.org>
51014
51015         * modules/i-ring (Depends-on): Add stdbool.
51016
51017 2007-03-11  Bruno Haible  <bruno@clisp.org>
51018
51019         * modules/gc-des (Depends-on): Add stdbool.
51020
51021 2007-03-11  Bruno Haible  <bruno@clisp.org>
51022
51023         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51024
51025 2007-03-11  Bruno Haible  <bruno@clisp.org>
51026
51027         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51028
51029 2007-03-11  Bruno Haible  <bruno@clisp.org>
51030
51031         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51032
51033 2007-03-11  Bruno Haible  <bruno@clisp.org>
51034
51035         * lib/vasnprintf.c (sprintf): Undefine.
51036
51037 2007-03-11  Bruno Haible  <bruno@clisp.org>
51038
51039         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51040         initializers in SunPRO C and Compaq C compilers.
51041
51042 2007-03-11  Bruno Haible  <bruno@clisp.org>
51043
51044         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51045         decrementing code ANSI C compliant.
51046
51047 2007-03-11  Bruno Haible  <bruno@clisp.org>
51048
51049         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51050         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51051
51052 2007-03-11  Bruno Haible  <bruno@clisp.org>
51053
51054         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51055         <stdbool.h> substitute doesn't pass.
51056
51057 2007-03-11  Bruno Haible  <bruno@clisp.org>
51058
51059         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51060
51061 2007-03-11  Bruno Haible  <bruno@clisp.org>
51062
51063         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51064         script, for submission to autobuild.josefsson.org.
51065
51066 2007-03-10  Bruno Haible  <bruno@clisp.org>
51067
51068         * modules/canonicalize-lgpl-tests: New file.
51069         * tests/test-canonicalize-lgpl.sh: New file.
51070         * tests/test-canonicalize-lgpl.c: New file.
51071
51072         * modules/c-strcase-tests: New file.
51073         * tests/test-c-strcase.sh: New file.
51074         * tests/test-c-strcasecmp.c: New file.
51075         * tests/test-c-strncasecmp.c: New file.
51076
51077         * modules/atexit-tests: New file.
51078         * tests/test-atexit.sh: New file.
51079         * tests/test-atexit.c: New file.
51080
51081 2007-03-10  Bruno Haible  <bruno@clisp.org>
51082
51083         * tests/test-binary-io.sh: Use temporary filenames that are not so
51084         likely to clash with those of other tests (in a parallel make).
51085         * tests/test-binary-io.c: Likewise.
51086
51087 2007-03-10  Bruno Haible  <bruno@clisp.org>
51088
51089         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51090         fallback; use #error instead.
51091         Suggested by Simon Josefsson.
51092
51093 2007-03-10  Bruno Haible  <bruno@clisp.org>
51094
51095         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51096         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51097         first and the last.
51098
51099 2007-03-10  Bruno Haible  <bruno@clisp.org>
51100
51101         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51102
51103 2007-03-10  Bruno Haible  <bruno@clisp.org>
51104
51105         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51106         "make distcheck".
51107         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51108         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51109         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51110
51111 2007-03-10  Bruno Haible  <bruno@clisp.org>
51112
51113         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51114         variable.
51115         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51116         variable.
51117
51118 2007-03-09  Eric Blake  <ebb9@byu.net>
51119         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51120
51121         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51122         types are not being provided by gnulib.
51123         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51124         types are supported.
51125
51126 2007-03-10  Bruno Haible  <bruno@clisp.org>
51127
51128         * lib/stdio_.h (__attribute__): New macro.
51129         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51130         vsprintf): Specify __attribute__ __format__ for GCC.
51131         Suggested by Eric Blake.
51132
51133 2007-03-09  Bruno Haible  <bruno@clisp.org>
51134
51135         * modules/printf-posix-tests: New file.
51136         * tests/test-printf-posix.sh: New file.
51137         * tests/test-printf-posix.c: New file.
51138
51139         * modules/printf-posix: New file.
51140         * lib/printf.c: New file.
51141         * m4/printf-posix-rpl.m4: New file.
51142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51143         REPLACE_PRINTF.
51144         * lib/stdio_.h (printf): New declaration.
51145         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51146         ____strfmon____): New macros.
51147         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51148         REPLACE_PRINTF.
51149
51150 2007-03-09  Bruno Haible  <bruno@clisp.org>
51151
51152         * tests/test-vasnprintf-posix2.sh: New file.
51153         * tests/test-vasnprintf-posix2.c: New file.
51154         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51155         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51156         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51157
51158         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51159         a locale dependent decimal point, rather than always '.'.
51160
51161 2007-03-09  Eric Blake  <ebb9@byu.net>
51162
51163         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51164         spite of platforms like Tandem/NSK that define it to -1.
51165
51166 2007-03-08  Bruno Haible  <bruno@clisp.org>
51167
51168         * modules/vprintf-posix-tests: New file.
51169         * tests/test-vprintf-posix.sh: New file.
51170         * tests/test-vprintf-posix.c: New file.
51171         * tests/test-printf-posix.h: New file.
51172
51173         * modules/vprintf-posix: New file.
51174         * lib/vprintf.c: New file.
51175         * m4/vprintf-posix.m4: New file.
51176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51177         REPLACE_VPRINTF.
51178         * lib/stdio_.h (vprintf): New declaration.
51179         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51180         REPLACE_VPRINTF.
51181
51182 2007-03-08  Bruno Haible  <bruno@clisp.org>
51183
51184         * modules/fprintf-posix-tests: New file.
51185         * tests/test-fprintf-posix.sh: New file.
51186         * tests/test-fprintf-posix.c: New file.
51187
51188         * modules/fprintf-posix: New file.
51189         * lib/fprintf.c: New file.
51190         * m4/fprintf-posix.m4: New file.
51191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51192         REPLACE_FPRINTF.
51193         * lib/stdio_.h (fprintf): New declaration.
51194         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51195         REPLACE_FPRINTF.
51196
51197 2007-03-08  Bruno Haible  <bruno@clisp.org>
51198
51199         * modules/vfprintf-posix-tests: New file.
51200         * tests/test-vfprintf-posix.sh: New file.
51201         * tests/test-vfprintf-posix.c: New file.
51202         * tests/test-fprintf-posix.h: New file.
51203         * tests/test-fprintf-posix.out: New file.
51204
51205         * modules/vfprintf-posix: New file.
51206         * lib/vfprintf.c: New file.
51207         * m4/vfprintf-posix.m4: New file.
51208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51209         REPLACE_VFPRINTF.
51210         * lib/stdio_.h (vfprintf): New declaration.
51211         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51212         REPLACE_VFPRINTF.
51213
51214 2007-03-08  Bruno Haible  <bruno@clisp.org>
51215
51216         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51217
51218 2007-03-08  Bruno Haible  <bruno@clisp.org>
51219
51220         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51221         instead of 'expr' invocations.
51222         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51226         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51227         Suggested by Paul Eggert.
51228
51229 2007-03-08  Bruno Haible  <bruno@clisp.org>
51230
51231         * modules/fseterr-tests: New file.
51232         * tests/test-fseterr.c: New file.
51233
51234         * modules/fseterr: New file.
51235         * lib/fseterr.h: New file.
51236         * lib/fseterr.c: New file.
51237
51238 2007-03-08  Bruno Haible  <bruno@clisp.org>
51239
51240         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51241         * lib/getopt_.h: Likewise.
51242         * lib/mbswidth.h: Likewise.
51243         * lib/setenv.h: Likewise.
51244         * lib/vasnprintf.h: Likewise.
51245         * lib/vasprintf.h: Likewise.
51246         * lib/verror.h: Likewise.
51247         * lib/xsetenv.h: Likewise.
51248         * lib/xvasprintf.h: Likewise.
51249
51250 2007-03-08  Jim Meyering  <jim@meyering.net>
51251
51252         * users.txt: Add parted.
51253
51254         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51255
51256 2007-03-07  Bruno Haible  <bruno@clisp.org>
51257
51258         * m4/printf.m4: Make the shell script snippets copy&pastable.
51259
51260 2007-03-02  Bruno Haible  <bruno@clisp.org>
51261
51262         * lib/netinet_in_.h: New file.
51263         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51264         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51265         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51266         (Depends-on): Add absolute-header.
51267         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51268         into netinet/in.h.
51269
51270 2007-03-03  Bruno Haible  <bruno@clisp.org>
51271
51272         * lib/sys_select_.h: New file.
51273         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51274         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51275         * modules/sys_select (Files): Add lib/sys_select_.h.
51276         (Depends-on): Add absolute-header.
51277         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51278         into sys/select.h.
51279
51280 2007-03-02  Bruno Haible  <bruno@clisp.org>
51281
51282         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51283         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51284         values.
51285         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51286         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51287         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51288         * modules/sys_socket (Depends-on): Add absolute-header.
51289         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51290         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51291         (Include): Remove requirement of inclusion of <sys/types.h>.
51292
51293 2007-03-02  Bruno Haible  <bruno@clisp.org>
51294
51295         * lib/byteswap_.h (bswap_32): Fix formula.
51296
51297 2007-03-06  Bruno Haible  <bruno@clisp.org>
51298
51299         * modules/sprintf-posix-tests: New file.
51300         * tests/test-sprintf-posix.c: New file.
51301
51302         * modules/sprintf-posix: New file.
51303         * lib/sprintf.c: New file.
51304         * m4/sprintf-posix.m4: New file.
51305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51306         REPLACE_SPRINTF.
51307         * lib/stdio_.h (sprintf): New declaration.
51308         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51309         REPLACE_SPRINTF.
51310
51311 2007-03-06  Bruno Haible  <bruno@clisp.org>
51312
51313         * modules/vsprintf-posix-tests: New file.
51314         * tests/test-vsprintf-posix.c: New file.
51315         * tests/test-sprintf-posix.h: New file.
51316
51317         * modules/vsprintf-posix: New file.
51318         * lib/vsprintf.c: New file.
51319         * m4/vsprintf-posix.m4: New file.
51320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51321         REPLACE_VSPRINTF.
51322         * lib/stdio_.h (vsprintf): New declaration.
51323         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51324         REPLACE_VSPRINTF.
51325
51326 2007-03-06  Bruno Haible  <bruno@clisp.org>
51327
51328         * modules/vsnprintf (Depend-on): Remove minmax.
51329
51330 2007-03-06  Bruno Haible  <bruno@clisp.org>
51331
51332         * modules/snprintf-posix-tests: New file.
51333         * tests/test-snprintf-posix.c: New file.
51334
51335         * modules/snprintf-posix: New file.
51336         * m4/snprintf-posix.m4: New file.
51337         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51338         gl_FUNC_SNPRINTF.
51339         (gl_FUNC_SNPRINTF): Invoke it.
51340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51341         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51342         is set.
51343         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51344
51345 2007-03-06  Bruno Haible  <bruno@clisp.org>
51346
51347         * modules/vsnprintf-posix-tests: New file.
51348         * tests/test-vsnprintf-posix.c: New file.
51349         * tests/test-snprintf-posix.h: New file.
51350
51351         * modules/vsnprintf-posix: New file.
51352         * m4/vsnprintf-posix.m4: New file.
51353         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51354         gl_FUNC_VSNPRINTF.
51355         (gl_FUNC_VSNPRINTF): Invoke it.
51356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51357         * lib/stdio_.h (vsnprintf): Define as a replacement if
51358         REPLACE_VSNPRINTF is set.
51359         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51360
51361 2007-03-06  Bruno Haible  <bruno@clisp.org>
51362
51363         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51364         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51365
51366 2007-03-06  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51369         (asinl): Declare also if HAVE_DECL_ASINL is set.
51370         (atanl): Declare also if HAVE_DECL_ATANL is set.
51371         (ceill): Declare also if HAVE_DECL_CEILL is set.
51372         (cosl): Declare also if HAVE_DECL_COSL is set.
51373         (expl): Declare also if HAVE_DECL_EXPL is set.
51374         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51375         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51376         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51377         (logl): Declare also if HAVE_DECL_LOGL is set.
51378         (sinl): Declare also if HAVE_DECL_SINL is set.
51379         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51380         (tanl): Declare also if HAVE_DECL_TANL is set.
51381         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51383         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51384         declaration of frexpl, ldexpl.
51385         * modules/printf-frexpl (Depends-on): Add math.
51386         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51387
51388 2007-03-05  Bruno Haible  <bruno@clisp.org>
51389
51390         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51391         frexpl and ldexpl are declared.
51392         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51393
51394 2007-03-05  Bruno Haible  <bruno@clisp.org>
51395
51396         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51397         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51398
51399 2007-03-05  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/stdio_.h: Include <stddef.h>.
51402
51403 2007-03-05  Bruno Haible  <bruno@clisp.org>
51404
51405         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51406
51407 2007-03-05  Bruno Haible  <bruno@clisp.org>
51408
51409         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51410         NetBSD 4, from Ralf Wildenhues.
51411
51412 2007-03-04  Bruno Haible  <bruno@clisp.org>
51413
51414         * lib/vasprintf.h: Update #if logic for the case when the functions
51415         exist but are overridden.
51416
51417 2007-03-04  Bruno Haible  <bruno@clisp.org>
51418
51419         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51420         implementations: glibc-2.4 and MacOS X 10.3.
51421         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51422         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51423         * tests/test-vasprintf-posix.c (test_function): Likewise.
51424
51425 2007-03-04  Bruno Haible  <bruno@clisp.org>
51426
51427         * modules/vasprintf-posix-tests: New file.
51428         * tests/test-vasprintf-posix.c: New file.
51429
51430         * modules/vasprintf-posix: New file.
51431         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51432         defined.
51433         * m4/vasprintf-posix.m4: New file.
51434         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51435         gl_FUNC_VASPRINTF.
51436         (gl_FUNC_VASPRINTF): Invoke it.
51437         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51438         here.
51439         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51440
51441 2007-03-04  Bruno Haible  <bruno@clisp.org>
51442
51443         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51444         REPLACE_GETTIMEOFDAY.
51445         * modules/sys_time (Makefile.am): Likewise.
51446         * m4/sys_time_h.m4: Likewise.
51447         * m4/gettimeofday.m4: Likewise.
51448
51449 2007-03-04  Bruno Haible  <bruno@clisp.org>
51450
51451         * modules/vasnprintf-posix-tests: New file.
51452         * tests/test-vasnprintf-posix.c: New file.
51453
51454         * modules/vasnprintf-posix: New file.
51455         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51456         printf-frexpl.h.
51457         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51458         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51459         REPLACE_VASNPRINTF is defined.
51460         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
51461         gl_FUNC_VASNPRINTF.
51462         (gl_FUNC_VASNPRINTF): Invoke it.
51463         * m4/vasnprintf-posix.m4: New file.
51464         * m4/printf.m4: New file.
51465
51466 2007-03-04  Bruno Haible  <bruno@clisp.org>
51467
51468         Compile progreloc.c only if --enable-relocatable is specified.
51469         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
51470         if --enable-relocatable was specified.
51471         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
51472         lib_SOURCES.
51473
51474 2007-03-04  Jim Meyering  <jim@meyering.net>
51475
51476         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
51477         Use it consistently, rather than enumerating errno constants.
51478
51479 2007-03-04  Bruno Haible  <bruno@clisp.org>
51480
51481         * modules/xvasprintf-tests: New file.
51482         * tests/test-xvasprintf.c: New file.
51483
51484         * modules/vasprintf-tests: New file.
51485         * tests/test-vasprintf.c: New file.
51486
51487         * modules/vasnprintf-tests: New file.
51488         * tests/test-vasnprintf.c: New file.
51489
51490         * modules/vsnprintf-tests: New file.
51491         * tests/test-vsnprintf.c: New file.
51492
51493         * modules/snprintf-tests: New file.
51494         * tests/test-snprintf.c: New file.
51495
51496 2007-03-04  Bruno Haible  <bruno@clisp.org>
51497
51498         Compile relocatable.c only if --enable-relocatable is specified.
51499         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
51500         gl_RELOCATABLE_LIBRARY.
51501         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
51502         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
51503         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
51504         gl_RELOCATABLE_LIBRARY.
51505         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
51506         (Makefile.am): Remove lib_SOURCES.
51507         * modules/relocatable-lib-lgpl (configure.ac): Invoke
51508         gl_RELOCATABLE_LIBRARY.
51509         (Makefile.am): Remove lib_SOURCES.
51510         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
51511         always.
51512         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51513         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
51514
51515 2007-03-04  Bruno Haible  <bruno@clisp.org>
51516
51517         * modules/argmatch-tests: New file.
51518         * tests/test-argmatch.c: New file.
51519
51520         * tests/test-allocsa.c (main): Halve the number of loop runs.
51521
51522         * modules/alloca-opt-tests: New file.
51523         * tests/test-alloca-opt.c: New file.
51524
51525 2007-03-04  Jim Meyering  <jim@meyering.net>
51526
51527         Work around difference between Linux ACLs and Solaris 10 ZFS.
51528         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
51529         for EINVAL.
51530
51531 2007-03-03  Bruno Haible  <bruno@clisp.org>
51532
51533         * modules/relocatable-prog (Depends-on): Add back progreloc's
51534         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
51535
51536 2007-03-03  Bruno Haible  <bruno@clisp.org>
51537
51538         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
51539         * modules/relocatable-lib: New file.
51540
51541 2007-03-03  Bruno Haible  <bruno@clisp.org>
51542
51543         * modules/relocatable-prog: Renamed from modules/relocatable.
51544         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
51545
51546 2007-03-03  Bruno Haible  <bruno@clisp.org>
51547
51548         * modules/relocatable-script (Files): Add doc/relocatable.texi,
51549         m4/relocatable-lib.m4.
51550         (Depends-on): Remove 'relocatable'.
51551         (configure.ac): Add gl_RELOCATABLE_NOP.
51552
51553 2007-03-03  Bruno Haible  <bruno@clisp.org>
51554
51555         * modules/relocatable-prog-wrapper: New file.
51556         * modules/relocatable (Depends-on): Add it. Remove all other
51557         dependencies except progname.
51558         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
51559
51560         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
51561         (gl_FUNC_STRERROR): Nop.
51562         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
51563
51564         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
51565         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
51566
51567         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
51568         (gl_FUNC_READLINK): Update.
51569
51570         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
51571
51572 2007-03-03  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/xreadlink.c: Include <unistd.h> unconditionally.
51575         * modules/xreadlink (Depends-on): Add unistd.
51576         * modules/xreadlink-with-size (Depends-on): Likewise.
51577
51578 2007-03-03  Bruno Haible  <bruno@clisp.org>
51579
51580         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
51581         extracted from gt_FUNC_SETENV.
51582         (gt_FUNC_SETENV): Remove macro.
51583         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
51584         remove gt_FUNC_SETENV.
51585
51586 2007-03-03  Bruno Haible  <bruno@clisp.org>
51587
51588         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
51589         ENABLE_RELOCATABLE here.
51590         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
51591
51592 2007-03-03  Bruno Haible  <bruno@clisp.org>
51593
51594         * modules/rbtreehash-list-tests (Depends-on): Add progname.
51595         * tests/test-rbtreehash_list.c: Include progname.h.
51596         (main): Call set_program_name.
51597
51598         * modules/rbtree-oset-tests (Depends-on): Add progname.
51599         * tests/test-rbtree_oset.c: Include progname.h.
51600         (main): Call set_program_name.
51601
51602         * modules/rbtree-list-tests (Depends-on): Add progname.
51603         * tests/test-rbtree_list.c: Include progname.h.
51604         (main): Call set_program_name.
51605
51606         * modules/linked-list-tests (Depends-on): Add progname.
51607         * tests/test-linked_list.c: Include progname.h.
51608         (main): Call set_program_name.
51609
51610 2007-03-03  Bruno Haible  <bruno@clisp.org>
51611
51612         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
51613         All uses of __restrict changed to _Restrict_.
51614         * lib/glob_.h (__restrict): Remove macro.
51615
51616 2007-03-02  Bruno Haible  <bruno@clisp.org>
51617
51618         * modules/gettext (configure.ac): Require gettext infrastructure
51619         from version 0.16.1.
51620
51621 2007-03-02  Bruno Haible  <bruno@clisp.org>
51622
51623         * modules/linkedhash-list-tests (Depends-on): Add progname.
51624         * tests/test-linkedhash_list.c: Include progname.h.
51625         (main): Call set_program_name.
51626
51627         * modules/carray-list-tests (Depends-on): Add progname.
51628         * tests/test-carray_list.c: Include progname.h.
51629         (main): Call set_program_name.
51630
51631         * modules/avltreehash-list-tests (Depends-on): Add progname.
51632         * tests/test-avltreehash_list.c: Include progname.h.
51633         (main): Call set_program_name.
51634
51635         * modules/avltree-oset-tests (Depends-on): Add progname.
51636         * tests/test-avltree_oset.c: Include progname.h.
51637         (main): Call set_program_name.
51638
51639         * modules/avltree-list-tests (Depends-on): Add progname.
51640         * tests/test-avltree_list.c: Include progname.h.
51641         (main): Call set_program_name.
51642
51643         * modules/array-oset-tests (Depends-on): Add progname.
51644         * tests/test-array_oset.c: Include progname.h.
51645         (main): Call set_program_name.
51646
51647         * modules/array-list-tests (Depends-on): Add progname.
51648         * tests/test-array_list.c: Include progname.h.
51649         (main): Call set_program_name.
51650
51651         * modules/argp-tests (Depends-on): Add progname.
51652         * tests/test-argp.c: Include argp.h first. Include progname.h.
51653         (main): Call set_program_name.
51654
51655 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
51656
51657         * doc/gnulib-tool.texi (Initial import): Reword description of
51658         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
51659         limited effect even if defined after the first system include.
51660
51661 2007-03-01  Bruno Haible  <bruno@clisp.org>
51662
51663         * build-aux/config.libpath: Update to libtool-1.5.22.
51664         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51665
51666 2007-03-01  Bruno Haible  <bruno@clisp.org>
51667
51668         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
51669         foo_CFLAGS.
51670         Reported by Ralf Wildenhues.
51671
51672 2007-03-01  Bruno Haible  <bruno@clisp.org>
51673
51674         * build-aux/install-reloc: Remove object files left over by some
51675         compilers.
51676         Reported by Ralf Wildenhues.
51677
51678 2007-03-01  Bruno Haible  <bruno@clisp.org>
51679
51680         * build-aux/install-reloc: Break long lines.
51681
51682 2007-03-01  Bruno Haible  <bruno@clisp.org>
51683
51684         * doc/relocatable.texi: Document that it may not work on OpenBSD.
51685         Reported by Ralf Wildenhues.
51686
51687 2007-03-01  Bruno Haible  <bruno@clisp.org>
51688
51689         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
51690         include ordering constraints.
51691
51692 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51693
51694         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
51695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
51696         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
51697         as another example.
51698         * lib/time_.h: Fix misspelling.
51699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51700         Require gl_HEADER_TIME_H_DEFAULTS.
51701         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
51702         * m4/time_r.m4 (gl_TIME_R): Likewise.
51703         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
51704
51705 2007-03-01  Bruno Haible  <bruno@clisp.org>
51706
51707         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
51708         * m4/utimens.m4 (gl_UTIMENS): Likewise.
51709
51710 2007-03-01  Jim Meyering  <jim@meyering.net>
51711
51712         * modules/xreadlink (Maintainer): Add my name.
51713         * modules/xreadlink-with-size (Depends-on): Alphabetize.
51714
51715 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
51716             Bruno Haible  <bruno@clisp.org>
51717
51718         * build-aux/install-reloc: Compile also c-ctype.c.
51719         * build-aux/relocatable.sh.in: New file.
51720         * doc/relocatable.texi: New file.
51721         * doc/relocatable-maint.texi: New file.
51722         * doc/gnulib.texi: Include relocatable-maint.texi.
51723         * lib/progreloc.c: Include unistd.h unconditionally.
51724         * lib/relocwrapper.c: Include unistd.h unconditionally.
51725         Include c-ctype.h.
51726         (add_dotbin): Use c_tolower.
51727         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
51728         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
51729         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
51730         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
51731         to m4/relocatable-lib.m4.
51732         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
51733         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
51734         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
51735         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
51736         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
51737         * modules/relocatable: New file.
51738         * modules/relocatable-lib: New file.
51739         * modules/relocatable-script: New file.
51740
51741 2007-02-28  Bruno Haible  <bruno@clisp.org>
51742
51743         Import --enable-relocatable infrastructure.
51744         * build-aux/config.libpath: New file, from GNU gettext.
51745         * build-aux/install-reloc: New file, from GNU gettext.
51746         * build-aux/reloc-ldflags: New file, from GNU gettext.
51747         * lib/relocatable.h: New file, from GNU gettext.
51748         * lib/relocatable.c: New file, from GNU gettext.
51749         * lib/relocwrapper.c: New file, from GNU gettext.
51750         * m4/relocatable.m4: New file, from GNU gettext.
51751
51752 2007-02-28  Bruno Haible  <bruno@clisp.org>
51753
51754         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
51755
51756         * modules/xreadlink: New file, from GNU gettext with modifications.
51757         * lib/xreadlink.c: New file, from GNU gettext.
51758         * lib/xreadlink.h: Add comments.
51759         (xreadlink): New declaration.
51760
51761         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
51762         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
51763         lib/xreadlink-with-size.c.
51764         (configure.ac): Remove gl_XREADLINK invocation.
51765         (Makefile.am): Augment lib_SOURCES.
51766         * m4/xreadlink.m4: Remove file.
51767         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
51768         (xreadlink_with_size): Renamed from xreadink.
51769         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
51770         * modules/canonicalize (Depends-on): Replace xreadlink with
51771         xreadlink-with-size.
51772         * lib/canonicalize.c (canonicalize_filename_mode): Update.
51773
51774 2007-02-25  Jim Meyering  <jim@meyering.net>
51775
51776         * build-aux/announce-gen: When complaining about excess arguments,
51777         list them.
51778
51779 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51780
51781         * README: Document signed integer overflow situation more
51782         accurately.
51783
51784 2007-02-25  Bruno Haible  <bruno@clisp.org>
51785
51786         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
51787         'a' or 'A' conversion.
51788
51789 2007-02-25  Bruno Haible  <bruno@clisp.org>
51790
51791         * modules/filename: Renamed from modules/pathname.
51792         (Files): Replace lib/pathname.h with lib/filename.h. Replace
51793         lib/concatpath.c with lib/concat-filename.c.
51794         (Makefile.am): Update.
51795         (Include): Replace pathname.h with filename.h.
51796         * lib/filename.h: Renamed from lib/pathname.h.
51797         (concatenated_filename): Renamed from concatenated_pathname.
51798         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51799         (concatenated_filename): Renamed from concatenated_pathname.
51800         * lib/findprog.c: Include filename.h instead of pathname.h.
51801         (find_in_path): Update.
51802         * lib/javacomp.c: Include filename.h instead of pathname.h.
51803         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51804         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51805         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51806         is_oldgcj_14_13_usable, is_javac_usable): Update.
51807         * lib/javaexec.c: Include filename.h instead of pathname.h.
51808         (execute_java_class): Update.
51809         * modules/findprog: Update.
51810         * modules/javacomp: Update.
51811         * modules/javaexec: Update.
51812         * MODULES.html.sh (File system functions): Add 'filename', remove
51813         'pathname'.
51814
51815 2007-02-25  Bruno Haible  <bruno@clisp.org>
51816
51817         * modules/printf-frexpl-tests: New file.
51818         * tests/test-printf-frexpl.c: New file.
51819
51820         * modules/printf-frexpl: New file.
51821         * lib/printf-frexpl.h: New file.
51822         * lib/printf-frexpl.c: New file.
51823         * m4/printf-frexpl.m4: New file.
51824
51825 2007-02-25  Bruno Haible  <bruno@clisp.org>
51826
51827         * modules/printf-frexp-tests: New file.
51828         * tests/test-printf-frexp.c: New file.
51829
51830         * modules/printf-frexp: New file.
51831         * lib/printf-frexp.h: New file.
51832         * lib/printf-frexp.c: New file.
51833         * m4/printf-frexp.m4: New file.
51834
51835 2007-02-25  Bruno Haible  <bruno@clisp.org>
51836
51837         Assume automake >= 1.10 for the tests.
51838         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51839         * modules/arctwo-tests: Likewise.
51840         * modules/argp-tests: Likewise.
51841         * modules/avltree-list-tests: Likewise.
51842         * modules/avltree-oset-tests: Likewise.
51843         * modules/avltreehash-list-tests: Likewise.
51844         * modules/carray-list-tests: Likewise.
51845         * modules/crc-tests: Likewise.
51846         * modules/des-tests: Likewise.
51847         * modules/gc-arcfour-tests: Likewise.
51848         * modules/gc-arctwo-tests: Likewise.
51849         * modules/gc-des-tests: Likewise.
51850         * modules/gc-hmac-md5-tests: Likewise.
51851         * modules/gc-hmac-sha1-tests: Likewise.
51852         * modules/gc-md2-tests: Likewise.
51853         * modules/gc-md4-tests: Likewise.
51854         * modules/gc-md5-tests: Likewise.
51855         * modules/gc-pbkdf2-sha1-tests: Likewise.
51856         * modules/gc-rijndael-tests: Likewise.
51857         * modules/gc-sha1-tests: Likewise.
51858         * modules/gc-tests: Likewise.
51859         * modules/getaddrinfo-tests: Likewise.
51860         * modules/hmac-md5-tests: Likewise.
51861         * modules/hmac-sha1-tests: Likewise.
51862         * modules/linked-list-tests: Likewise.
51863         * modules/linkedhash-list-tests: Likewise.
51864         * modules/lock-tests: Likewise.
51865         * modules/md2-tests: Likewise.
51866         * modules/md4-tests: Likewise.
51867         * modules/md5-tests: Likewise.
51868         * modules/rbtree-list-tests: Likewise.
51869         * modules/rbtree-oset-tests: Likewise.
51870         * modules/rbtreehash-list-tests: Likewise.
51871         * modules/read-file-tests: Likewise.
51872         * modules/rijndael-tests: Likewise.
51873         * modules/stdint-tests: Likewise.
51874         * modules/tls-tests: Likewise.
51875
51876 2007-02-24  Bruno Haible  <bruno@clisp.org>
51877
51878         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51879         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51880         function; instead check whether isnan with a double argument links.
51881         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51882         function; instead check whether isnan with a 'long double' argument
51883         links.
51884         Reported by Eric Blake <ebb9@byu.net>.
51885
51886 2007-02-24  Bruno Haible  <bruno@clisp.org>
51887
51888         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51889         defined.
51890         * lib/isnanl.c: Remove all code. Just include isnan.c.
51891         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51892
51893 2007-02-25  Jim Meyering  <jim@meyering.net>
51894
51895         Avoid conflicting types for 'unsetenv' on FreeBSD.
51896         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51897         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51898         in stdlib.h.
51899
51900 2007-02-24  Bruno Haible  <bruno@clisp.org>
51901
51902         * modules/isnanl-nolibm-tests: New file.
51903         * tests/test-isnanl.c: New file.
51904
51905         * modules/isnanl-nolibm: New file.
51906         * lib/isnanl.h: New file.
51907         * lib/isnanl.c: New file.
51908         * m4/isnanl.m4: New file.
51909
51910 2007-02-24  Bruno Haible  <bruno@clisp.org>
51911
51912         * modules/isnan-nolibm-tests: New file.
51913         * tests/test-isnan.c: New file.
51914
51915         * modules/isnan-nolibm: New file.
51916         * lib/isnan.h: New file.
51917         * lib/isnan.c: New file.
51918         * m4/isnan.m4: New file.
51919
51920 2007-02-24  Bruno Haible  <bruno@clisp.org>
51921
51922         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51923         assume that an exponent fits in 20 bits.
51924
51925 2007-02-24  Jim Meyering  <jim@meyering.net>
51926
51927         * m4/regex.m4: Update the description of the configure-time option,
51928         --without-included-regex, to state accurately what the defaults are,
51929         and perhaps to give people an idea why using this option is risky.
51930
51931 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51932
51933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51934         loops on small arguments.  This attempts to avoid the problem
51935         Bruno Haible reported for AIX 4.3.2 in
51936         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51937
51938 2007-02-23  Bruno Haible  <bruno@clisp.org>
51939
51940         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51941         Needed for help2man.
51942
51943 2007-02-23  Karl Berry  <karl@gnu.org>
51944
51945         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51946         exists, foo.h should be cvs-ignored, not committed.
51947
51948 2007-02-23  Eric Blake  <ebb9@byu.net>
51949
51950         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51951         * lib/stat-time.h (includes): Likewise.
51952         * lib/utimecmp.c (includes): Likewise.
51953         * lib/utimens.h (includes): Likewise.
51954         * lib/getdate.y (includes): Also include "timespec.h" for use
51955         internal to the module.
51956         * modules/utimens (Depends-on): Revert yesterday's patch.
51957         * modules/nanosleep (Depends-on): Add missing dependency.
51958
51959 2007-02-22  Bruno Haible  <bruno@clisp.org>
51960
51961         * lib/glob.c: Don't include getlogin_r.h.
51962
51963 2007-02-22  Jim Meyering  <jim@meyering.net>
51964
51965         * modules/utimens (Depends-on): Add timespec, required for
51966         utimens.h's inclusion of timespec.h.
51967
51968 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51969
51970         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51971         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51972         Schwab in
51973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51974         I'll try to think of a better way to fix the Solaris problem.
51975
51976         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51977         like glibc; on Solaris 10, it fails with errno == EINVAL.
51978         POSIX says the behavior is unspecified if the first argument is NULL,
51979         so play it safe and never pass NULL to the system getcwd.
51980
51981 2007-02-21  Jim Meyering  <jim@meyering.net>
51982
51983         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51984         of gettimeofday.  It would conflict with the one now always
51985         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51986         an IRIX 6.5 build failure.
51987
51988 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51989
51990         Minor fixups to port to Solaris 10 with Sun C 5.8.
51991         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51992         * modules/getcwd (Depends-on): Add dirfd.
51993         * lib/putenv.c (putenv): #undef it.
51994         (rpl_putenv): New decl.
51995         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51996
51997 2007-02-20  Bruno Haible  <bruno@clisp.org>
51998
51999         * modules/stdio-tests: New file.
52000         * tests/test-stdio.c: New file.
52001
52002         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52003         (Depends-on): Add stdio.
52004         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52005         (Include): Use <stdio.h> instead of vsnprintf.h.
52006         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52007         HAVE_DECL_VSNPRINTF.
52008         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52009
52010         * modules/snprintf (Files): Remove lib/snprintf.h.
52011         (Depends-on): Add stdio.
52012         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52013         (Include): Use <stdio.h> instead of snprintf.h.
52014         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52015         HAVE_DECL_SNPRINTF.
52016         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52017         * lib/getaddrinfo.c: Likewise.
52018
52019         * modules/stdio: New file.
52020         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52021         * lib/snprintf.h: Remove file.
52022         * lib/vsnprintf.h: Remove file.
52023         * lib/.cppi-disable: Remove snprintf.h.
52024         * m4/stdio_h.m4: New file.
52025         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52026
52027 2007-02-20  Jim Meyering  <jim@meyering.net>
52028
52029         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52030         used by e.g., mingw.  From Bruno Haible.
52031
52032 2007-02-19  Bruno Haible  <bruno@clisp.org>
52033
52034         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52035         warnings.
52036         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52037
52038 2007-02-19  Bruno Haible  <bruno@clisp.org>
52039
52040         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52041         from mingw users.
52042
52043 2007-02-19  Bruno Haible  <bruno@clisp.org>
52044
52045         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52046         warnings.
52047         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52048
52049 2007-02-19  Jim Meyering  <jim@meyering.net>
52050
52051         Don't use FD after a successful "fdopendir (fd)".
52052         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52053         Reset it by calling dirfd on the just-obtained DIR*.
52054
52055         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52056         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52057
52058 2007-02-18  Bruno Haible  <bruno@clisp.org>
52059
52060         * lib/readlink.c: Include <unistd.h>.
52061         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52062         HAVE_READLINK.
52063         * modules/readlink (Depends-on): Add unistd.
52064         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52065         (Include): Add <unistd.h>.
52066
52067         * lib/getlogin_r.h: Remove file.
52068         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52069         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52070         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52071         HAVE_DECL_GETLOGIN_R.
52072         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52073         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52074         (Include): Use <unistd.h> instead of getlogin_r.h.
52075
52076         * lib/getcwd.h: Remove file.
52077         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52078         * lib/xgetcwd.c: Likewise.
52079         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52080         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52081         * modules/getcwd (Files): Remove lib/getcwd.h.
52082         (Depends-on): Add unistd.
52083         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52084         (Include): Use <unistd.h> instad of getcwd.h.
52085
52086         * lib/ftruncate.c: Include <unistd.h> first.
52087         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52088         Set HAVE_FTRUNCATE.
52089         * modules/ftruncate (Depends-on): Add unistd.
52090         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52091
52092         * lib/fchdir.c: Include <unistd.h> first.
52093         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52095         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52096         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52097         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52098
52099         * lib/dup2.c: Include <unistd.h> first.
52100         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52101         HAVE_DUP2.
52102         * modules/dup2 (Depends-on): Add unistd.
52103         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52104
52105         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52106         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52107         REPLACE_CHOWN. Don't define chown as a macro here.
52108         * modules/chown (Depends-on): Add unistd.
52109         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52110
52111         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52112         Add definition for GL_LINK_WARNING.
52113         (chown, dup2): New declarations.
52114         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52115         link warning.
52116         (ftruncate): New declaration.
52117         (getcwd): New declaration, taken from old getcwd.h.
52118         (getlogin_r): New declaration, taken from old getlogin_r.h.
52119         (readlink): New declaration.
52120         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52121         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52122         (gl_PREREQ_UNISTD): Remove macro.
52123         (gl_UNISTD_MODULE_INDICATOR): New macro.
52124         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52125         many new variables. Don't set UNISTD_H.
52126         * modules/unistd (Description): Change.
52127         (Depends-on): Add link-warning.
52128         (configure.ac): Update.
52129         (Makefile.am): Create unistd.h always. Substitute many new variables
52130         into it.
52131
52132 2007-02-18  Bruno Haible  <bruno@clisp.org>
52133
52134         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52135         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52136         HAVE_GETSUBOPT.
52137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52138         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52139         * lib/getsubopt.h: Remove file.
52140         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52141         (Depends-on): Add stdlib.
52142         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52143         (Includes): Use <stdlib.h> instead of getsubopt.h.
52144         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52145         Set HAVE_GETSUBOPT.
52146         * lib/getsubopt.c: Don't include getsubopt.h.
52147
52148 2007-02-18  Bruno Haible  <bruno@clisp.org>
52149
52150         * modules/fchdir (Depends-on): Add dup2.
52151
52152 2007-02-18  Bruno Haible  <bruno@clisp.org>
52153
52154         * lib/stdlib_.h: Handle glibc's special invocation convention
52155         specially.
52156
52157 2007-02-18  Bruno Haible  <bruno@clisp.org>
52158
52159         * modules/stdlib-tests: New file.
52160         * tests/test-stdlib.c: New file.
52161
52162         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52163         (Depends-on): Add stdlib.
52164         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52165         (Includes): Use <stdlib.h> instead of mkstemp.h.
52166         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52167         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52168         * lib/mkstemp.c: Don't include mkstemp.h.
52169         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52170         * lib/stdlib--.h: Don't include mkstemp.h.
52171
52172         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52173         (Depends-on): Add stdlib.
52174         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52175         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52176         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52177         HAVE_MKDTEMP.
52178         * lib/mkdtemp.c: Don't include mkdtemp.h.
52179         * lib/clean-temp.c: Don't include mkdtemp.h.
52180
52181         * modules/exit (Files): Remove lib/exit.h.
52182         (Depends-on): Add stdlib.
52183         (Makefile.am): Remove lib_SOURCES.
52184         (Include): Use <stdlib.h> instead of exit.h.
52185         * lib/argmatch.c: Don't include exit.h.
52186         * lib/execute.c: Likewise.
52187         * lib/pagealign_alloc.c: Likewise.
52188         * lib/pipe.c: Likewise.
52189         * lib/wait-process.c: Likewise.
52190         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52191         * lib/exitfail.c: Likewise.
52192         * lib/savewd.c: Likewise.
52193         * lib/xsetenv.c: Likewise.
52194
52195         * modules/stdlib: New file.
52196         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52197         and extra comments about mkstemp().
52198         * lib/exit.h: Remove file.
52199         * lib/mkdtemp.h: Remove file.
52200         * lib/mkstemp.h: Remove file.
52201         * m4/stdlib_h.m4: New file.
52202         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52203
52204 2007-02-18  Bruno Haible  <bruno@clisp.org>
52205
52206         * modules/math-tests: New file.
52207         * tests/test-math.c: New file.
52208
52209         * modules/math: New file.
52210         * modules/mathl (Files): Remove lib/mathl.h.
52211         (Depends-on): Add math.
52212         (Makefile.am): Don't mention mathl.h.
52213         (Include): Use <math.h> instead of mathl.h.
52214         * lib/math_.h: New file.
52215         * lib/mathl.h: Remove file.
52216         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52217         mathl.h.
52218         * lib/asinl.c: Likewise.
52219         * lib/atanl.c: Likewise.
52220         * lib/ceill.c: Likewise.
52221         * lib/cosl.c: Likewise.
52222         * lib/expl.c: Likewise.
52223         * lib/floorl.c: Likewise.
52224         * lib/frexpl.c: Likewise.
52225         * lib/ldexpl.c: Likewise.
52226         * lib/logl.c: Likewise.
52227         * lib/sincosl.c: Likewise.
52228         * lib/sinl.c: Likewise.
52229         * lib/sqrtl.c: Likewise.
52230         * lib/tanl.c: Likewise.
52231         * lib/trigl.c: Likewise.
52232         * m4/math_h.m4: New file.
52233         * MODULES.html.sh (Mathematics): Add math.
52234
52235 2007-02-17  Bruno Haible  <bruno@clisp.org>
52236
52237         * modules/wctype-tests: New file.
52238         * tests/test-wctype.c: New file.
52239
52240         * modules/wchar-tests: New file.
52241         * tests/test-wchar.c: New file.
52242
52243         * modules/unistd-tests: New file.
52244         * tests/test-unistd.c: New file.
52245
52246         * modules/time-tests: New file.
52247         * tests/test-time.c: New file.
52248
52249         * modules/sysexits-tests: New file.
52250         * tests/test-sysexits.c: New file.
52251
52252         * modules/sys_time-tests: New file.
52253         * tests/test-sys_time.c: New file.
52254
52255         * modules/sys_stat-tests: New file.
52256         * tests/test-sys_stat.c: New file.
52257
52258         * modules/sys_socket-tests: New file.
52259         * tests/test-sys_socket.c: New file.
52260
52261         * modules/sys_select-tests: New file.
52262         * tests/test-sys_select.c: New file.
52263
52264         * modules/string-tests: New file.
52265         * tests/test-string.c: New file.
52266
52267         * modules/stdbool-tests: New file.
52268         * tests/test-stdbool.c: New file.
52269
52270         * modules/netinet_in-tests: New file.
52271         * tests/test-netinet_in.c: New file.
52272
52273         * modules/inttypes-tests: New file.
52274         * tests/test-inttypes.c: New file.
52275
52276         * modules/fcntl-tests: New file.
52277         * tests/test-fcntl.c: New file.
52278
52279         * modules/byteswap-tests: New file.
52280         * tests/test-byteswap.c: New file.
52281
52282         * modules/arpa_inet-tests: New file.
52283         * tests/test-arpa_inet.c: New file.
52284
52285 2007-02-17  Bruno Haible  <bruno@clisp.org>
52286
52287         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52288         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52289         if the corresponding module is not enabled. Emit link warnings if
52290         the function is used nevertheless.
52291         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52292         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52293         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52294         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52295         * modules/inttypes (Depends-on): Add link-warning.
52296         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52297         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52298         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52299         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52300         * modules/imaxdiv (configure.ac): Likewise.
52301         * modules/strtoimax (configure.ac): Likewise.
52302         * modules/strtoumax (configure.ac): Likewise.
52303
52304 2007-02-17  Bruno Haible  <bruno@clisp.org>
52305
52306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52307         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52308         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52309         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52310
52311 2007-02-17  Bruno Haible  <bruno@clisp.org>
52312
52313         * modules/link-warning: New file.
52314         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52315         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52316         * modules/string (Depends-on): Add link-warning.
52317         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52318         string.h.
52319         * MODULES.html.sh (Support for building libraries and executables): Add
52320         link-warning.
52321
52322 2007-02-17  Bruno Haible  <bruno@clisp.org>
52323
52324         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52325         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52326         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52327         long lines.
52328
52329 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52330             Bruno Haible  <bruno@clisp.org>
52331
52332         * modules/tmpfile: New file.
52333         * lib/tmpfile.c: New file.
52334         * m4/tmpfile.m4: New file.
52335         * MODULES.html.sh (func_all_modules): New section "Input/output".
52336
52337 2007-02-15  Bruno Haible  <bruno@clisp.org>
52338
52339         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52340         (supports_delete_on_close): New function.
52341         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52342
52343 2007-02-14  Bruno Haible  <bruno@clisp.org>
52344
52345         * modules/mbspcasecmp-tests: New file.
52346         * tests/test-mbspcasecmp.sh: New file.
52347         * tests/test-mbspcasecmp.c: New file.
52348
52349         New module mbspcasecmp.
52350         * modules/mbspcasecmp: New file.
52351         * lib/mbspcasecmp.c: New file.
52352         * lib/string_.h (strncasecmp): Change warning message.
52353         (mbspcasecmp): New declaration.
52354         * m4/mbspcasecmp.m4: New file.
52355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52356         GNULIB_MBSPCASECMP.
52357         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52358         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52359
52360 2007-02-14  Bruno Haible  <bruno@clisp.org>
52361
52362         * modules/mbsncasecmp-tests: New file.
52363         * tests/test-mbsncasecmp.sh: New file.
52364         * tests/test-mbsncasecmp.c: New file.
52365
52366         New module mbsncasecmp.
52367         * modules/mbsncasecmp: New file.
52368         * lib/mbsncasecmp.c: New file.
52369         * lib/string_.h (mbsncasecmp): New declaration.
52370         * m4/mbsncasecmp.m4: New file.
52371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52372         GNULIB_MBSNCASECMP.
52373         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52374         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52375
52376 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52377
52378         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52379         Verify that it doesn't overlap with our flags.
52380         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52381         do not have the desired effect in multibyte locales; instead, use
52382         mbscasecmp.
52383         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52384         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52385         we don't require GNU fnmatch ourselves (if our users require it, they
52386         should do so explicitly).
52387
52388         Fix regex code so it doesn't rely on strcasecmp.
52389         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52390         Otherwise, include gnulib's langinfo.h.
52391         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52392         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52393         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52394         * modules/regex (FILES): Remove m4/codeset.m4.
52395         (Depends-on): Add localcharset.  Remove strcase.
52396
52397 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52398
52399         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52400         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52401
52402 2007-02-13  Bruno Haible  <bruno@clisp.org>
52403
52404         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52405         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52406
52407 2007-02-12  Bruno Haible  <bruno@clisp.org>
52408
52409         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52410         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52411         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52412         time warning rather than a link error.
52413
52414 2007-02-12  Bruno Haible  <bruno@clisp.org>
52415
52416         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52417         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52418         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52419
52420 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52421
52422         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52423         args, not 2.
52424
52425 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52426
52427         New module 'time', so that apps can include <time.h> as per
52428         POSIX and GNU instead of separate include files like time_r.h
52429         and timegm.h.  This implementation tries out a simpler approach
52430         for replacing decls in standard include files (as compared to
52431         the string module), somewhat as an experiment.
52432
52433         * config/srclist.txt: Comment out mktime.c for now.
52434         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52435         since it doesn't apply any more.  Use generic wording instead.
52436         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52437         'time'.
52438         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52439         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52440         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52441         Don't include <sys/types.h>; no longer needed since we assume C89.
52442         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52443         * lib/strftime.c: Likewise.
52444         * lib/time_r.c: Likewise.
52445         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52446         * lib/nanosleep.c: Include <time.h> first, to check interface.
52447         * lib/strptime.c: Likewise.
52448         * lib/time_r.c: Likewise.
52449         * lib/timegm.c: Likewise.
52450         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52451         needed.
52452         * lib/timegm.c: Don't include timegm.h; no longer needed.
52453         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52454         time.h now handles any problems in that area.
52455         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52456         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52457         that time.h defines struct timespec.
52458         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52459         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52460         handles that.
52461         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
52462         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
52463         needed.  Set REPLACE_LOCALTIME.
52464         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
52465         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
52466         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
52467         nanosleep; time_h.m4 now does that.  Don't require
52468         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
52469         module handles this now.
52470         * modules/getdate (Depends-on): Remove timespec.  Add time.
52471         * modules/nanosleep (Depends-on): Likewise.
52472         * modules/stat-time (Depends-on): Likewise.
52473         * modules/nanosleep (Include): Include time.h, not timespec.h.
52474         * modules/strptime (Files): Remove lib/strptime.h.
52475         (Depends-on): Add extensions, time.
52476         (Include): Include time.h, not strptime.h.
52477         * modules/time_r (Files): Remove lib/time_r.h.
52478         (Depends-on): Add time.
52479         (Include): Include time.h, not time_r.h.
52480         * modules/timegm: Likewise.
52481         * modules/timespec (Description): Now does timespec-related decls
52482         of our own, instead of struct timespec itself.
52483         (Depends-on): Add time; remove extensions.
52484         (Maintainer): Add self.
52485         * modules/utimecmp (Depends-on): Add time; remove timespec.
52486         * modules/utimens (Depends-on): Likewise.
52487         * modules/xnanosleep (Depends-on): Likewise.
52488
52489 2007-02-11  Bruno Haible  <bruno@clisp.org>
52490
52491         * lib/c-strstr.c: Include allocsa.h.
52492         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52493         * lib/c-strcasestr.c: Include allocsa.h.
52494         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52495         * lib/strcasestr.c: Include allocsa.h.
52496         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52497         * lib/mbsstr.c: Include allocsa.h.
52498         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52499         allocsa/freesa instead of malloc/free.
52500         * lib/mbscasestr.c: Include allocsa.h.
52501         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52502         allocsa/freesa instead of malloc/free.
52503         * modules/c-strstr (Depends-on): Add allocsa.
52504         * modules/c-strcasestr (Depends-on): Likewise.
52505         * modules/strcasestr (Depends-on): Likewise.
52506         * modules/mbsstr (Depends-on): Likewise.
52507         * modules/mbscasestr (Depends-on): Likewise.
52508
52509 2007-02-11  Bruno Haible  <bruno@clisp.org>
52510
52511         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
52512
52513         * modules/mbsspn-tests: New file.
52514         * tests/test-mbsspn.sh: New file.
52515         * tests/test-mbsspn.c: New file.
52516
52517 2007-02-11  Bruno Haible  <bruno@clisp.org>
52518
52519         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
52520
52521         * modules/mbspbrk-tests: New file.
52522         * tests/test-mbspbrk.sh: New file.
52523         * tests/test-mbspbrk.c: New file.
52524
52525 2007-02-11  Bruno Haible  <bruno@clisp.org>
52526
52527         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
52528         unneeded cast.
52529
52530         * modules/mbscspn-tests: New file.
52531         * tests/test-mbscspn.sh: New file.
52532         * tests/test-mbscspn.c: New file.
52533
52534 2007-02-11  Bruno Haible  <bruno@clisp.org>
52535
52536         * modules/mbscasecmp-tests: New file.
52537         * tests/test-mbscasecmp.sh: New file.
52538         * tests/test-mbscasecmp.c: New file.
52539
52540 2007-02-11  Bruno Haible  <bruno@clisp.org>
52541
52542         Ensure O(n) worst-case complexity of mbscasestr.
52543         * lib/mbscasestr.c: Include stdbool.h.
52544         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52545         functions.
52546         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
52547         the bookkeeping indicates that it's worth it.
52548         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
52549
52550         * modules/mbscasestr-tests: New file.
52551         * tests/test-mbscasestr1.c: New file.
52552         * tests/test-mbscasestr2.sh: New file.
52553         * tests/test-mbscasestr2.c: New file.
52554         * tests/test-mbscasestr3.sh: New file.
52555         * tests/test-mbscasestr3.c: New file.
52556         * tests/test-mbscasestr4.sh: New file.
52557         * tests/test-mbscasestr4.c: New file.
52558         * m4/locale-tr.m4: New file.
52559
52560 2007-02-11  Bruno Haible  <bruno@clisp.org>
52561
52562         Ensure O(n) worst-case complexity of mbsstr.
52563         * lib/mbsstr.c: Include stdbool.h.
52564         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52565         functions.
52566         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
52567         bookkeeping indicates that it's worth it.
52568         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
52569
52570         * modules/mbsstr-tests: New file.
52571         * tests/test-mbsstr1.c: New file.
52572         * tests/test-mbsstr2.sh: New file.
52573         * tests/test-mbsstr2.c: New file.
52574         * tests/test-mbsstr3.sh: New file.
52575         * tests/test-mbsstr3.c: New file.
52576         * m4/locale-fr.m4: New file.
52577
52578 2007-02-11  Bruno Haible  <bruno@clisp.org>
52579
52580         * lib/mbsrchr.c (mbsrchr): Fix bug.
52581
52582         * modules/mbsrchr-tests: New file.
52583         * tests/test-mbsrchr.sh: New file.
52584         * tests/test-mbsrchr.c: New file.
52585
52586 2007-02-11  Bruno Haible  <bruno@clisp.org>
52587
52588         * lib/mbschr.c (mbschr): Fix bug.
52589
52590         * modules/mbschr-tests: New file.
52591         * tests/test-mbschr.sh: New file.
52592         * tests/test-mbschr.c: New file.
52593         * m4/locale-zh.m4: New file.
52594
52595 2007-02-11  Bruno Haible  <bruno@clisp.org>
52596
52597         Support for copying multibyte string iterators.
52598         * lib/mbiter.h: Include <string.h>.
52599         (mbiter_multi_copy): New function.
52600         (mbi_copy): New macro.
52601         * lib/mbuiter.h: Include <string.h>.
52602         (mbuiter_multi_copy): New function.
52603         (mbui_copy): New macro.
52604
52605 2007-02-11  Bruno Haible  <bruno@clisp.org>
52606
52607         New module mbslen.
52608         * modules/mbslen: New file.
52609         * lib/mbslen.c: New file.
52610         * lib/string_.h (mbslen): New declaration.
52611         * m4/mbslen.m4: New file.
52612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52613         GNULIB_MBSLEN.
52614         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
52615         * MODULES.html.sh (Internationalization functions): Add mbslen.
52616
52617 2007-02-11  Bruno Haible  <bruno@clisp.org>
52618
52619         Ensure O(n) worst-case complexity of strcasestr substitute.
52620         * lib/strcasestr.c: Include stdbool.h.
52621         (knuth_morris_pratt): New function.
52622         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52623         bookkeeping indicates that it's worth it.
52624         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
52625
52626         * modules/strcasestr-tests: New file.
52627         * tests/test-strcasestr.c: New file.
52628
52629 2007-02-11  Bruno Haible  <bruno@clisp.org>
52630
52631         Ensure O(n) worst-case complexity of c_strcasestr.
52632         * lib/c-strcasestr.c: Include stdbool.h, string.h.
52633         (knuth_morris_pratt): New function.
52634         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
52635         the bookkeeping indicates that it's worth it.
52636         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
52637
52638         * modules/c-strcasestr-tests: New file.
52639         * tests/test-c-strcasestr.c: New file.
52640
52641 2007-02-11  Bruno Haible  <bruno@clisp.org>
52642
52643         Ensure O(n) worst-case complexity of c_strstr.
52644         * lib/c-strstr.c: Include stdbool.h, string.h.
52645         (knuth_morris_pratt): New function.
52646         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52647         bookkeeping indicates that it's worth it.
52648         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
52649
52650         * lib/c-strstr.c: Complete rewrite for maintainability.
52651
52652         * modules/c-strstr-tests: New file.
52653         * tests/test-c-strstr.c: New file.
52654
52655 2007-02-11  Bruno Haible  <bruno@clisp.org>
52656
52657         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
52658         5.2.1 and earlier, whereby \055 was treated just like the range
52659         delimiter '-'.
52660         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52661
52662 2007-02-08  Bruno Haible  <bruno@clisp.org>
52663
52664         * modules/regex (Depends-on): Add stdbool.
52665         Reported by Dalibor Topic <robilad@kaffe.org>.
52666
52667 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52668
52669         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
52670         Prefer returning from main to exiting from it.
52671         Remove unnecessary parens after sizeof.
52672
52673 2007-02-05  Bruno Haible  <bruno@clisp.org>
52674
52675         New module mbssep.
52676         * modules/mbssep: New file.
52677         * lib/mbssep.c: New file.
52678         * lib/string_.h (strsep): Add a conditional link warning.
52679         (mbssep): New declaration.
52680         * m4/mbssep.m4: New file.
52681         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52682         GNULIB_MBSSEP.
52683         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
52684         * MODULES.html.sh (Internationalization functions): Add mbssep.
52685
52686 2007-02-05  Bruno Haible  <bruno@clisp.org>
52687
52688         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
52689         Optimize search in case of 1 delimiter.
52690
52691 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52692
52693         * lib/acl.h: Include sys/types.h before sys/acl.h.
52694
52695 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52696
52697         Merge upstream fix for glibc bugzilla #3957:
52698
52699         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
52700
52701         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
52702         bit for RE_HAT_LISTS_NOT_NEWLINE.
52703         (build_charclass_op): Remove bogus comment.
52704
52705 2007-02-05  Simon Josefsson  <simon@josefsson.org>
52706
52707         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
52708
52709 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52710
52711         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
52712         * lib/memmem.c [!defined _LIBC]: Include config.h.
52713
52714 2007-02-04  Bruno Haible  <bruno@clisp.org>
52715
52716         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
52717         warning message.
52718
52719 2007-02-04  Bruno Haible  <bruno@clisp.org>
52720
52721         New module mbstok_r.
52722         * modules/mbstok_r: New file.
52723         * lib/mbstok_r.c: New file.
52724         * lib/string_.h (strtok_r): Change argument names to match the
52725         comments. Add a conditional link warning.
52726         (mbstok_r): New declaration.
52727         * m4/mbstok_r.m4: New file.
52728         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52729         GNULIB_MBSTOK_R.
52730         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
52731         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
52732
52733 2007-02-04  Bruno Haible  <bruno@clisp.org>
52734
52735         New module mbsspn.
52736         * modules/mbsspn: New file.
52737         * lib/mbsspn.c: New file.
52738         * lib/string_.h (strspn): Add a conditional link warning.
52739         (mbsspn): New declaration.
52740         * m4/mbsspn.m4: New file.
52741         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52742         GNULIB_MBSSPN.
52743         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
52744         * MODULES.html.sh (Internationalization functions): Add mbsspn.
52745
52746 2007-02-04  Bruno Haible  <bruno@clisp.org>
52747
52748         New module mbspbrk.
52749         * modules/mbspbrk: New file.
52750         * lib/mbspbrk.c: New file.
52751         * lib/string_.h (strpbrk): Add a conditional link warning.
52752         (mbspbrk): New declaration.
52753         * m4/mbspbrk.m4: New file.
52754         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52755         GNULIB_MBSPBRK.
52756         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
52757         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
52758
52759 2007-02-04  Bruno Haible  <bruno@clisp.org>
52760
52761         New module mbscspn.
52762         * modules/mbscspn: New file.
52763         * lib/mbscspn.c: New file.
52764         * lib/string_.h (strcspn): Add a conditional link warning.
52765         (mbscspn): New declaration.
52766         * m4/mbscspn.m4: New file.
52767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52768         GNULIB_MBSCSPN.
52769         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
52770         * MODULES.html.sh (Internationalization functions): Add mbscspn.
52771
52772 2007-02-04  Bruno Haible  <bruno@clisp.org>
52773
52774         New module mbscasestr, reduced goal of strcasestr.
52775         * modules/mbscasestr: New file.
52776         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
52777         (mbscasestr): Renamed from strcasestr.
52778         * lib/strcasestr.c: Don't include mbuiter.h.
52779         (strcasestr): Remove support for multibyte locales.
52780         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
52781         Change the conditional link warning.
52782         (mbscasestr): New declaration.
52783         * m4/mbscasestr.m4: New file.
52784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
52785         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
52786         REPLACE_STRCASESTR.
52787         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
52788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52789         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52790         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
52791         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
52792         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52793         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
52794         (Depends-on): Remove mbuiter.
52795         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
52796
52797 2007-02-04  Bruno Haible  <bruno@clisp.org>
52798
52799         Simplify handling of strncasecmp.
52800         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52801         the conditional link warning.
52802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52803         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52804         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52805         * modules/strcase (configure.ac): Don't invoke
52806         gl_STRING_MODULE_INDICATOR.
52807         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52808
52809 2007-02-04  Bruno Haible  <bruno@clisp.org>
52810
52811         New module mbscasecmp, reduced goal of strcasecmp.
52812         * modules/mbscasecmp: New file.
52813         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52814         (mbscasecmp): Renamed from strcasecmp.
52815         * lib/strcasecmp.c: Don't include mbuiter.h.
52816         (strcasecmp): Remove support for multibyte locales.
52817         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52818         Change the conditional link warning.
52819         (mbscasecmp): New declaration.
52820         * m4/mbscasecmp.m4: New file.
52821         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52822         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52823         REPLACE_STRCASECMP.
52824         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52825         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52826         GNULIB_MBSCASECMP.
52827         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52828         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52829         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52830         (Depends-on): Remove mbuiter.
52831         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52832
52833 2007-02-04  Bruno Haible  <bruno@clisp.org>
52834
52835         New module mbsstr. Remove module strstr.
52836         * modules/mbsstr: New file.
52837         * modules/strstr: Remove file.
52838         * lib/mbsstr.c: Renamed from lib/strstr.c.
52839         (mbsstr): Renamed from strstr.
52840         * lib/string_.h (strstr): Remove declaration. Change the conditional
52841         link warning.
52842         (mbsstr): New declaration.
52843         * m4/mbsstr.m4: New file.
52844         * m4/strstr.m4: Remove file.
52845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52846         REPLACE_STRSTR.
52847         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52848         Don't initialize GNULIB_STRSTR.
52849         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52850         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52851         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52852         (Support for systems lacking ANSI C 89): Remove strstr.
52853
52854 2007-02-04  Bruno Haible  <bruno@clisp.org>
52855
52856         New module mbsrchr.
52857         * modules/mbsrchr: New file.
52858         * lib/mbsrchr.c: New file.
52859         * lib/string_.h (strrchr): Add a conditional link warning.
52860         (mbsrchr): New declaration.
52861         * m4/mbsrchr.m4: New file.
52862         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52863         GNULIB_MBSRCHR.
52864         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52865         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52866
52867 2007-02-04  Bruno Haible  <bruno@clisp.org>
52868
52869         New module mbschr.
52870         * modules/mbschr: New file.
52871         * lib/mbschr.c: New file.
52872         * lib/string_.h (strchr): Add a conditional link warning.
52873         (mbschr): New declaration.
52874         * m4/mbschr.m4: New file.
52875         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52876         GNULIB_MBSCHR.
52877         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52878         * MODULES.html.sh (Internationalization functions): Add mbschr.
52879
52880 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52881
52882         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52883
52884         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52885
52886 2007-02-04  Bruno Haible  <bruno@clisp.org>
52887
52888         New module description section 'configure.ac-early'.
52889         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52890         (func_get_autoconf_early_snippet): New function.
52891         (func_import, func_create_testdir): Use it. Remove special cases for
52892         modules 'extensions' and 'lock'.
52893         * modules/extensions (configure.ac-early): Require
52894         gl_USE_SYSTEM_EXTENSIONS.
52895         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52896
52897 2007-02-04  Bruno Haible  <bruno@clisp.org>
52898
52899         Make use of gcj-4.3's -fsource and -ftarget option.
52900         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52901         and if so try the options -fsource and -ftarget.
52902         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52903         source_version, ftarget_option, target_version arguments.
52904         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52905         (is_envjavac_oldgcj_14_14_usable): Renamed from
52906         is_envjavac_gcj_14_14_usable.
52907         (is_envjavac_oldgcj_14_13_usable): Renamed from
52908         is_envjavac_gcj_14_13_usable.
52909         (is_gcj_present): Update.
52910         (is_gcj_43, is_gcj43_usable): New functions.
52911         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52912         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52913         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52914         try the options -fsource and -ftarget.
52915
52916 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52917
52918         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52919         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52920         larger value.
52921
52922 2007-02-03  Jim Meyering  <jim@meyering.net>
52923
52924         Give tools a better chance to allocate space for very large buffers.
52925         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52926
52927         Make pwd and readlink work also when run with an unreadable parent dir
52928         on systems with openat support.
52929         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52930         provided getcwd function, even when we have openat support.
52931         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52932
52933 2007-02-02  Bruno Haible  <bruno@clisp.org>
52934
52935         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52936         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52937         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52938         portability problems if one of these functions is only used on specific
52939         platforms.
52940         Reported by Paul Eggert.
52941
52942 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52943
52944         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52945         is causing more trouble than it's curing.
52946         * lib/regex_internal.h (__mempcpy): Remove.
52947         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52948         (and make the code a tad smaller to boot).
52949         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52950
52951 2007-02-02  Jim Meyering  <jim@meyering.net>
52952
52953         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52954         section, not in the Makefile.am: one.
52955
52956 2007-02-02  Eric Blake  <ebb9@byu.net>
52957
52958         * lib/strchrnul.c: Always include config.h first.
52959
52960         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52961         gnulib strstr is not necessary here.
52962
52963 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52964
52965         * m4/socklen.m4: Fix typo.
52966
52967 2007-02-02  Eric Blake  <ebb9@byu.net>
52968
52969         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52970         * modules/netinet_in (Makefile.am): Likewise.
52971
52972 2007-02-01  Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/string_.h (GL_LINK_WARNING): New macro.
52975         (strcasecmp, strstr, strcasestr): If provided by the system,
52976         conditionally define as a macro that leads to a warning instead of to
52977         an error.
52978         (strncasecmp): Conditionally define as a macro that leads to a warning.
52979
52980 2007-02-01  Karl Berry  <karl@gnu.org>
52981
52982         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52983
52984 2007-02-01  Bruno Haible  <bruno@clisp.org>
52985
52986         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52987         renamings.
52988
52989 2007-02-01  Eric Blake  <ebb9@byu.net>
52990
52991         * modules/regex (Depends-on): Revert dependence on mempcpy.
52992         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52993         module's definition of mempcpy.
52994         Reported by Paul Eggert.
52995
52996 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52997
52998         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52999         the symbol XYZ before redefining it.  This fixes a problem with
53000         programs that don't use XYZ, when compiled on systems that define
53001         XYZ to something else.
53002
53003 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53004
53005         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53006         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53007         writeable to group or other and (2) is intended to have a special
53008         mode bit that is set or cleared.  In such a case, the directory
53009         should be neither group- nor other-writeable until the special
53010         mode bits are right.
53011
53012 2007-01-31  Eric Blake  <ebb9@byu.net>
53013
53014         * modules/mountlist (Depends-on): Add strstr.
53015
53016         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53017         bug.
53018         * modules/string (Makefile.am): Remove redundant replacement.
53019         * modules/regex (Depends-on): Add mempcpy.
53020
53021 2007-01-31  Bruno Haible  <bruno@clisp.org>
53022
53023         New module description field 'Link'.
53024         * gnulib-tool (func_usage): Document --extract-link-directive.
53025         (sed_extract_prog): Recognize 'Link' directive.
53026         (func_get_link_directive): New function.
53027         (func_import): Show summary of link directives.
53028         Handle --extract-link-directive option.
53029         * modules/acl (Link): New section.
53030         * modules/clock-time (Link): New section.
53031         * modules/euidaccess (Link): New section.
53032         * modules/gettext (Link): New section.
53033         * modules/iconv (Link): New section.
53034         * modules/lock (Link): New section.
53035         * modules/nanosleep (Link): New section.
53036         * modules/readline (Link): New section.
53037
53038 2007-01-27  Bruno Haible  <bruno@clisp.org>
53039
53040         Enforce the use of gnulib modules for unportable <string.h> functions.
53041         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53042         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53043         (gl_HEADER_STRING_H_BODY): Require it.
53044         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53045         the symbol XYZ to one that gives a link error.
53046         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53047         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53048         * modules/mempcpy (configure.ac): Likewise.
53049         * modules/memrchr (configure.ac): Likewise.
53050         * modules/stpcpy (configure.ac): Likewise.
53051         * modules/stpncpy (configure.ac): Likewise.
53052         * modules/strcase (configure.ac): Likewise.
53053         * modules/strcasestr (configure.ac): Likewise.
53054         * modules/strchrnul (configure.ac): Likewise.
53055         * modules/strdup (configure.ac): Likewise.
53056         * modules/strndup (configure.ac): Likewise.
53057         * modules/strnlen (configure.ac): Likewise.
53058         * modules/strpbrk (configure.ac): Likewise.
53059         * modules/strsep (configure.ac): Likewise.
53060         * modules/strstr (configure.ac): Likewise.
53061         * modules/strtok_r (configure.ac): Likewise.
53062
53063 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53064
53065         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53066
53067 2007-01-30  Jim Meyering  <jim@meyering.net>
53068
53069         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53070
53071 2007-01-29  Bruno Haible  <bruno@clisp.org>
53072
53073         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53074         * lib/execute.c: Likewise.
53075         * lib/pipe.c: Likewise.
53076         * lib/printf-args.h: Likewise.
53077         * lib/printf-args.c: Likewise.
53078         * lib/printf-parse.c: Likewise.
53079         * lib/vasnprintf.c: Likewise.
53080
53081 2007-01-29  Eric Blake  <ebb9@byu.net>
53082
53083         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53084         declaration.
53085
53086 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53087
53088         * lib/strptime.h (strptime): Use 'restrict' for args where
53089         POSIX requires this.
53090         * lib/strptime.c (strptime): Likewise.
53091         Change license notice from LGPL to GPL, since gnulib-tool will
53092         change this as needed.
53093         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53094         defined.
53095         Include "strptime.h" first, to check interface.
53096         Do not #undef _LIBC and _NL_CURRENT.
53097         Do not include <stdlib.h>; no longer needed.
53098         Include "time_r.h" and declare ptime_locale_status
53099         only if _LIBC is not defined.
53100         (__P): Remove unused macro.
53101         (match_string): Bring back glibc version, but use it only if _LIBC
53102         is defined.
53103         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53104         Remove unnecessary assertion and abort() call.
53105         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53106         * m4/strptime.m4: Fix serial number comment.
53107         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53108         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53109         (Depends-on): Add time_r.
53110
53111 2007-01-29  Bruno Haible  <bruno@clisp.org>
53112
53113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53114         strptime.
53115         * modules/strptime (Depends-on): Add stdbool.
53116         * lib/strptime.h: Include <time.h> always. Add comments.
53117
53118 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53119
53120         * modules/strptime: New file.
53121         * lib/strptime.h: New file.
53122         * lib/strptime.c: New file.
53123         * m4/strptime.m4: New file.
53124
53125 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53126
53127         * MODULES.html.sh: New module mpsort.
53128         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53129
53130         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53131         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53133         All uses changed.
53134         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53135         All uses changed.
53136         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53137         to _Restrict_.
53138         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53139         the parameter matches the prototype.
53140
53141 2007-01-28  Jim Meyering  <jim@meyering.net>
53142
53143         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53144         sys/time.h here, reverting that part of the previous patch:
53145         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53146
53147 2007-01-28  Bruno Haible  <bruno@clisp.org>
53148
53149         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53150         value of $(SYS_TIME_H).
53151         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53152         remove it conditionally, too. [added by Jim Meyering]
53153         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53154         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53155         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53156         GETTIMEOFDAY_REPLACEMENT to 1.
53157
53158 2007-01-28  Bruno Haible  <bruno@clisp.org>
53159
53160         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53161         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53162         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53163         Set UNISTD_H instead of UNISTD_H2.
53164         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53165
53166 2007-01-28  Bruno Haible  <bruno@clisp.org>
53167
53168         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53169         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53170
53171 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53172
53173         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53174         (func_create_testdir): Ensure C locale for `grep' and `tr'
53175         character ranges.
53176         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53177         ACLOCAL_AMFLAGS parsing state machine.
53178
53179 2007-01-27  Bruno Haible  <bruno@clisp.org>
53180
53181         * modules/unistr/base: Update.
53182
53183 2007-01-27  Bruno Haible  <bruno@clisp.org>
53184
53185         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53186         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53187         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53188         modules/unistr/u32-mbtouc.
53189         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53190         * lib/unistr.h: Update.
53191         * lib/linebreak.c: Update.
53192         * modules/unistr/u32-mbtouc: Renamed from
53193         modules/unistr/u32-mbtouc-safe.
53194         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53195         * lib/unistr.h: Update.
53196         * lib/unistr/u32-to-u8.c: Update.
53197         * lib/unistr/u32-to-u16.c: Update.
53198
53199 2007-01-27  Bruno Haible  <bruno@clisp.org>
53200
53201         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53202         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53203         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53204         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53205         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53206         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53207         modules/unistr/u16-mbtouc.
53208         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53209         * lib/unistr.h: Update.
53210         * lib/linebreak.c: Update.
53211         * modules/linebreak: Update.
53212         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53213         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53214         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53215         * modules/unistr/u16-mbtouc: Renamed from
53216         modules/unistr/u16-mbtouc-safe.
53217         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53218         * lib/unistr.h: Update.
53219         * lib/unistr/u16-to-u8.c: Update.
53220         * modules/unistr/u16-to-u8: Update.
53221         * lib/unistr/u16-to-u32.c: Update.
53222         * modules/unistr/u16-to-u32: Update.
53223
53224 2007-01-27  Bruno Haible  <bruno@clisp.org>
53225
53226         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53227         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53228         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53229         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53230         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53231         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53232         modules/unistr/u8-mbtouc.
53233         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53234         * lib/unistr.h: Update.
53235         * lib/striconveh.c: Update.
53236         * modules/striconveh: Update.
53237         * lib/linebreak.c: Update.
53238         * modules/linebreak: Update.
53239         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53240         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53241         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53242         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53243         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53244         * lib/unistr.h: Update.
53245         * lib/striconveh.c: Update.
53246         * modules/striconveh: Update.
53247         * lib/unistr/u8-to-u16.c: Update.
53248         * modules/unistr/u8-to-u16: Update.
53249         * lib/unistr/u8-to-u32.c: Update.
53250         * modules/unistr/u8-to-u32: Update.
53251
53252 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53253
53254         Sync from Libtool.
53255         * lib/argz.c: Do not include strings.h nor memory.h, include
53256         string.h unconditionally.  Patch by Simon Josefsson.
53257
53258 2007-01-27  Bruno Haible  <bruno@clisp.org>
53259
53260         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53261         from gl_HEADER_STRING_H_BODY.
53262         (gl_HEADER_STRING_H_BODY): Require it.
53263         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53264         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53265         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53266         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53267         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53268         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53269         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53270         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53271         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53272         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53273         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53274         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53275         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53276         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53277         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53278
53279 2007-01-27  Bruno Haible  <bruno@clisp.org>
53280
53281         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53282         check_PROGRAMS into noinst_PROGRAMS.
53283         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53284         check_PROGRAMS in this case.
53285         (func_import): Set for_test to false.
53286         (func_create_testdir): Set for_test to true.
53287
53288 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53289             Bruno Haible  <bruno@clisp.org>
53290
53291         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53292         (Depends-on): Add string.
53293         (Includes): Use <string.h> instead of strcasestr.h.
53294         * modules/string (Makefile.am): Also substitute the value of
53295         REPLACE_STRCASESTR.
53296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53297         assume strcasestr is declared in <string.h> not <strings.h>. Also
53298         set REPLACE_STRCASESTR.
53299         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53300         REPLACE_STRCASESTR.
53301         * lib/strcasestr.h: Remove file.
53302         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53303         * lib/string_.h (strcasestr): New declaration.
53304
53305 2007-01-27  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/string_.h: Use 'extern'.
53308
53309 2007-01-27  Jim Meyering  <jim@meyering.net>
53310
53311         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53312         of set-but-not-used local, "q".
53313
53314         * lib/mempcpy.c: Include <config.h> before <string.h>.
53315         This fixes a compilation error on HP-UX, due to the system's
53316         "restrict"-using mempcpy prototype.
53317
53318 2007-01-26  Bruno Haible  <bruno@clisp.org>
53319
53320         Small optimization.
53321         * lib/javacomp.c: Include c-strstr.h.
53322          (is_envjavac_gcj): Use c_strstr instead of strstr.
53323         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53324
53325 2007-01-26  Bruno Haible  <bruno@clisp.org>
53326
53327         * MODULES.html.sh (Unicode string functions): Add the new modules.
53328
53329         * modules/uniconv/u32-strconv-to-locale: New file.
53330         * lib/uniconv/u32-strconv-to-locale.c: New file.
53331
53332         * modules/uniconv/u16-strconv-to-locale: New file.
53333         * lib/uniconv/u16-strconv-to-locale.c: New file.
53334
53335         * modules/uniconv/u8-strconv-to-locale: New file.
53336         * lib/uniconv/u8-strconv-to-locale.c: New file.
53337
53338         * modules/uniconv/u32-strconv-from-locale: New file.
53339         * lib/uniconv/u32-strconv-from-locale.c: New file.
53340
53341         * modules/uniconv/u16-strconv-from-locale: New file.
53342         * lib/uniconv/u16-strconv-from-locale.c: New file.
53343
53344         * modules/uniconv/u8-strconv-from-locale: New file.
53345         * lib/uniconv/u8-strconv-from-locale.c: New file.
53346
53347         * modules/uniconv/u32-strconv-to-enc: New file.
53348         * lib/uniconv/u32-strconv-to-enc.c: New file.
53349         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53350         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53351
53352         * modules/uniconv/u16-strconv-to-enc: New file.
53353         * lib/uniconv/u16-strconv-to-enc.c: New file.
53354         * lib/uniconv/u-strconv-to-enc.h: New file.
53355         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53356         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53357
53358         * modules/uniconv/u8-strconv-to-enc: New file.
53359         * lib/uniconv/u8-strconv-to-enc.c: New file.
53360         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53361         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53362
53363         * modules/uniconv/u32-strconv-from-enc: New file.
53364         * lib/uniconv/u32-strconv-from-enc.c: New file.
53365         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53366         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53367
53368         * modules/uniconv/u16-strconv-from-enc: New file.
53369         * lib/uniconv/u16-strconv-from-enc.c: New file.
53370         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53371         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53372
53373         * modules/uniconv/u8-strconv-from-enc: New file.
53374         * lib/uniconv/u8-strconv-from-enc.c: New file.
53375         * lib/uniconv/u-strconv-from-enc.h: New file.
53376         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53377         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53378
53379         * modules/uniconv/u32-conv-from-enc: New file.
53380         * lib/uniconv/u32-conv-from-enc.c: New file.
53381         * modules/uniconv/u32-conv-from-enc-tests: New file.
53382         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53383
53384         * modules/uniconv/u16-conv-from-enc: New file.
53385         * lib/uniconv/u16-conv-from-enc.c: New file.
53386         * lib/uniconv/u-conv-from-enc.h: New file.
53387         * modules/uniconv/u16-conv-from-enc-tests: New file.
53388         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53389
53390         * modules/uniconv/u8-conv-from-enc: New file.
53391         * lib/uniconv/u8-conv-from-enc.c: New file.
53392         * modules/uniconv/u8-conv-from-enc-tests: New file.
53393         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53394
53395         * modules/uniconv/base: New file.
53396         * lib/uniconv.h: New file.
53397
53398 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53399
53400         * doc/gnulib-tool.texi (Initial import): Update to match current
53401         behavior with strdup module.
53402         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53403         * lib/memmem.h: Remove; all uses removed.  This is now done
53404         by <string.h>.
53405         * lib/mempcpy.h: Likewise.
53406         * lib/memrchr.h: Likewise.
53407         * lib/stpcpy.h: Likewise.
53408         * lib/stpncpy.h: Likewise.
53409         * lib/strcase.h: Likewise.
53410         * lib/strchrnul.h: Likewise.
53411         * lib/strdup.h: Likewise.
53412         * lib/strndup.h: Likewise.
53413         * lib/strnlen.h: Likewise.
53414         * lib/strpbrk.h: Likewise.
53415         * lib/strsep.h: Likewise.
53416         * lib/strstr.h: Likewise.
53417         * lib/strtok_r.h: Likewise.
53418         * lib/string_.h: New file.
53419         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53420         Rely on <string.h> instead.
53421         * lib/canon-host.c: Likewise.
53422         * lib/chdir-long.c: Likewise.
53423         * lib/concatpath.c: Likewise.
53424         * lib/exclude.c: Likewise.
53425         * lib/fchdir.c: Likewise.
53426         * lib/getaddrinfo.c: Likewise.
53427         * lib/getcwd.c: Likewise.
53428         * lib/getsubopt.c: Likewise.
53429         * lib/glob.c: Likewise.
53430         * lib/hard-locale.c: Likewise.
53431         * lib/iconvme.c: Likewise.
53432         * lib/javacomp.c: Likewise.
53433         * lib/mempcpy.c: Likewise.
53434         * lib/memrchr.c: Likewise.
53435         * lib/regex_internal.h: Likewise.
53436         * lib/stpncpy.c: Likewise.
53437         * lib/strcasecmp.c: Likewise.
53438         * lib/strchrnul.c: Likewise.
53439         * lib/strdup.c: Likewise.
53440         * lib/striconv.c: Likewise.
53441         * lib/striconveh.c: Likewise.
53442         * lib/striconveha.c: Likewise.
53443         * lib/strncasecmp.c: Likewise.
53444         * lib/strndup.c: Likewise.
53445         * lib/strnlen.c: Likewise.
53446         * lib/strsep.c: Likewise.
53447         * lib/strstr.c: Likewise.
53448         * lib/strtok_r.c: Likewise.
53449         * lib/userspec.c: Likewise.
53450         * lib/w32spawn.h: Likewise.
53451         * lib/xstrndup.c: Likewise.
53452         * lib/mountlist.c (strstr): Remove decl.
53453         * m4/string_h.m4: New file.
53454         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53455         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53456         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53457         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53458         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53459         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53460         Set REPLACE_STRCASECMP if necessary.
53461         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
53462         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
53463         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
53464         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
53465         HAVE_DECL_STRDUP if necessary.
53466         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
53467         since gl_FUNC_STRNDUP does that now.
53468         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
53469         Check for decl here...
53470         (gl_PREREQ_STRNLEN): ... not here.
53471         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
53472         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
53473         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
53474         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
53475         necessary.
53476         * modules/string: New file.
53477         * modules/memmem (Files): Remove special-purpose include file.
53478         (Depends-on): Add string.
53479         (Include): Include <string.h>, not the removed file.
53480         * modules/mempcpy: Likewise.
53481         * modules/memrchr: Likewise.
53482         * modules/stpcpy: Likewise.
53483         * modules/stpncpy: Likewise.
53484         * modules/strcase: Likewise.
53485         * modules/strchrnul: Likewise.
53486         * modules/strdup: Likewise.
53487         * modules/strndup: Likewise.
53488         * modules/strnlen: Likewise.
53489         * modules/strpbrk: Likewise.
53490         * modules/strsep: Likewise.
53491         * modules/strstr: Likewise.
53492         * modules/strtok_r: Likewise.
53493         * tests/test-dirname.c: Don't include "strdup.h", since
53494         <string.h> now suffices.
53495         * tests/test-memmem.c: Don't include "memmem.h", since
53496         <string.h> now suffices.
53497
53498 2007-01-25  Bruno Haible  <bruno@clisp.org>
53499
53500         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
53501         *resultp is 0.
53502
53503         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
53504         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
53505         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
53506         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
53507
53508         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
53509         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
53510         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
53511         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
53512         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
53513         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
53514
53515 2007-01-24  Bruno Haible  <bruno@clisp.org>
53516
53517         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
53518         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
53519         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
53520         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
53521         gl_FUNC_FTS_CORE.
53522         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
53523         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
53524         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53525         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
53526         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
53527         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
53528         gl_FUNC_FCHOWNAT.
53529         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
53530         gl_FUNC_STRFTIME.
53531         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
53532         Reported by Ralf Wildenhues.
53533
53534 2007-01-24  Bruno Haible  <bruno@clisp.org>
53535
53536         Drop AC_REQUIRE calls that are redundant with the module dependencies.
53537         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
53538         gl_GETADDRINFO.
53539         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
53540         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
53541         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
53542
53543 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
53544
53545         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
53546         Don't use 'exit'; just return from 'main'.
53547         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
53548
53549         * lib/fnmatch_.h: Readjust white space and comments to match
53550         glibc, to avoid spurious diffs.
53551
53552 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53553
53554         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
53555         2004-12-01 change by Jakub Jelinek, since this code won't compile
53556         if !LIBC.  Problem reported by Bob Proulx.
53557
53558 2007-01-23  Bruno Haible  <bruno@clisp.org>
53559
53560         * lib/striconveh.c: Include c-strcaseeq.h.
53561         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
53562         * modules/striconveh (Depends-on): Add c-strcaseeq.
53563
53564 2007-01-23  Bruno Haible  <bruno@clisp.org>
53565
53566         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
53567
53568         * modules/c-strcaseeq: New file.
53569         * lib/c-strcaseeq.h: New file.
53570
53571         * modules/streq: New file.
53572         * lib/streq.h: New file.
53573
53574 2007-01-23  Bruno Haible  <bruno@clisp.org>
53575
53576         * modules/striconveha-tests: New file.
53577         * tests/test-striconveha.c: New file.
53578
53579         * lib/striconveha.h: Include <stdbool.h>.
53580         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
53581         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
53582         (mem_iconveha_notranslit): Renamed from mem_iconveha.
53583         (mem_iconveha): New function.
53584         (str_iconveha_notranslit): Renamed from str_iconveha.
53585         (str_iconveha): New function.
53586         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
53587         c-strcase.
53588
53589 2007-01-23  Bruno Haible  <bruno@clisp.org>
53590
53591         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
53592         encodings without forgiving before trying any encoding with handler.
53593         (str_iconveha): Try all encodings without forgiving before trying any
53594         encoding with handler.
53595
53596 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53597
53598         Import the following changes from libc.
53599
53600         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53601
53602         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
53603
53604         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53605
53606         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
53607         normal_bracket label.
53608
53609         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
53610
53611         [BZ #361]
53612         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
53613         to normal_bracket after fetching the next character.
53614
53615 2007-01-22  Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
53618         argument.
53619         * lib/striconveh.c (iconv_carefully_1): New function.
53620         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
53621         argument.
53622         (str_cd_iconveh): Update.
53623         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
53624         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
53625         * tests/test-striconveh.c (MAGIC): New macro.
53626         (new_offsets): New function.
53627         (main): Test call with and without offsets.
53628
53629 2007-01-22  Bruno Haible  <bruno@clisp.org>
53630
53631         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
53632         * modules/sys_select (Makefile.am): Likewise.
53633         * modules/sys_socket (Makefile.am): Likewise.
53634         * modules/sys_time (Makefile.am): Likewise.
53635
53636 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53637
53638         * modules/gettimeofday (License): Change from GPL to LGPL, since
53639         gettimeofday is a library function.
53640
53641 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53642
53643         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
53644
53645 2007-01-21  Bruno Haible  <bruno@clisp.org>
53646
53647         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
53648
53649 2007-01-21  Bruno Haible  <bruno@clisp.org>
53650
53651         * modules/striconveha: New file.
53652         * lib/striconveha.h: New file.
53653         * lib/striconveha.c: New file.
53654         * MODULES.html.sh (Internationalization functions): Add striconveha.
53655         * lib/striconv.c (str_iconv): Optimize the case of an empty input
53656         string.
53657         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
53658
53659 2007-01-21  Bruno Haible  <bruno@clisp.org>
53660
53661         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
53662         * lib/striconveh.c (str_iconveh): Likewise.
53663
53664 2007-01-21  Bruno Haible  <bruno@clisp.org>
53665
53666         * lib/striconveh.h (mem_iconveh): New declaration.
53667         * lib/striconveh.c (mem_iconveh): New function.
53668         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
53669
53670 2007-01-21  Bruno Haible  <bruno@clisp.org>
53671
53672         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
53673
53674         * lib/striconveh.h (mem_cd_iconveh): Change specification.
53675         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
53676         original result buffer.
53677         (str_cd_iconveh): Update.
53678         * tests/test-striconveh.c (main): Update.
53679
53680         * lib/striconv.h (mem_cd_iconv): Change specification.
53681         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
53682         result buffer.
53683         (str_cd_iconv): Update.
53684         * tests/test-striconv.c (main): Update.
53685
53686 2007-01-21  Bruno Haible  <bruno@clisp.org>
53687
53688         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
53689
53690 2007-01-20  Jim Meyering  <jim@meyering.net>
53691
53692         * lib/userspec.c (parse_with_separator): If a user or group string
53693         starts with "+", skip the corresponding name-to-ID look-up, since
53694         such a look-up must fail: user and group names may not include "+".
53695
53696 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53697
53698         * lib/poll.c: Include sys/time.h and time.h unconditionally,
53699         since we now assume the sys_time module.
53700         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
53701         check for sys/time.h; no longer needed.
53702         * modules/poll (Depends-on): Depend on sys_time.
53703
53704 2007-01-18  Bruno Haible  <bruno@clisp.org>
53705
53706         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
53707         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53708
53709         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
53710         gettimeofday.
53711
53712         * tests/test-gettimeofday.c: Include <time.h>.
53713         (dummy): Remove variable.
53714
53715         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
53716         gl_HEADER_SYS_TIME_H.
53717         (gl_HEADER_SYS_TIME_H): New macro.
53718
53719         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
53720         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53721         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53722         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
53723         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53724         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
53725         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
53726         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53727         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
53728         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
53729         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53730
53731         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
53732         last change; it caused a compilation error when cross-compiling to
53733         Cygwin.
53734
53735 2007-01-18  Jim Meyering  <jim@meyering.net>
53736
53737         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
53738         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
53739         than the race-prone "test -d sys || mkdir sys".
53740         (configure.ac): Use AC_PROG_MKDIR_P.
53741         * modules/sys_select: Likewise.
53742         * modules/sys_socket: Likewise.
53743         * modules/sys_time: Likewise.
53744
53745 2007-01-18  Eric Blake  <ebb9@byu.net>
53746
53747         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
53748         replace gettimeofday.
53749         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
53750         name, to avoid infinite recursion.
53751
53752 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
53753
53754         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
53755         module sys_time.
53756         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
53757         assume timespec.h defines struct timeval.
53758         * lib/settime.c: Likewise.
53759         * lib/utimens.c: Likewise.
53760         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
53761         since we now assume the gettimeofday module.
53762         * lib/tempname.c (__gen_tempname): Likewise.
53763         * lib/gettimeofday.h: Remove.
53764         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
53765         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
53766         Include <time.h>, for 'time()'.
53767         (localtime_buffer_addr): Also use this workaround if
53768         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
53769         to simplify the uses.  All uses changed.
53770         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
53771         that #undef is inside {}, and 'const' follows type name consistently.
53772         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
53773         (gettimeofday): Do not use the maximum possible value for
53774         tv->tv_usec, since that might break usages other than ls.c.
53775         Instead, we'll leave ls.c alone.  This undoes today's patch
53776         by Bruno.  Add a compile-time warning for 1s-clock resolution;
53777         we've never observed the problem but might as well keep the
53778         canary.
53779         * lib/nanosleep.c: Include timespec.h first, for interface check.
53780         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
53781         now assume the sys_time module.
53782         * lib/tempname.c: Likewise.
53783         * lib/timespec.h: Likewise.
53784         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
53785         needed.
53786         * lib/strftime.c: Likewise.
53787         * lib/timespec.h: Likewise.
53788         * lib/posixtm.c: Include posixtm.h first, for interface check.
53789         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
53790         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
53791         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
53792         * lib/sys_time_.h: New file.
53793         * lib/timespec.h (struct timespec): Use long int, not long.
53794         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53795         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
53796         Remove obsolescent call to AC_HEADER_TIME.
53797         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53799         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53800         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53801         Likewise.
53802         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53803         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53804         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53805         into the sys_time module.  Check for gettimeofday just once.
53806         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53807         for gettimeofday signature to just check the signature.  Merely
53808         compile it, since linking doesn't test signature.  Improve test for
53809         whether gettimeofday.o is actually needed.
53810         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53811         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53812         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53813         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53814         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53815         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53816         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53817         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53818         than worrying about sys/time.h.
53819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53820         Don't bother worrying about TIME_WITH_SYS_TIME.
53821         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53822         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53823         * m4/sys_time_h.m4: New file.
53824         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53825         Don't include sys/time.h.  Return from main rather than exiting.
53826         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53827         all uses changed.
53828         * modules/gethrxtime (Depends-on): Add sys_time.
53829         * modules/gettime (Depends-on): Likewise.
53830         * modules/gettimeofday (Depends-on): Likewise.
53831         * modules/nanosleep (Depends-on): Likewise.
53832         * modules/settime (Depends-on): Likewise.
53833         * modules/tempname (Depends-on): Likewise.
53834         * modules/utimens (Depends-on): Likewise.
53835         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53836         (Include:) Change back to <sys/time.h>.
53837         (Maintainer:) Add self.
53838         * modules/sys_time: New file.
53839         * modules/tempname (Depends-on): Add gettimeofday.
53840         * tests/test-gettimeofday.c: Include <sys/time.h>
53841         rather than gettimeofday.h.
53842
53843 2007-01-17  Bruno Haible  <bruno@clisp.org>
53844
53845         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53846         the license default to GPL.
53847         (func_create_testdir): Don't complain if a module is LGPL and its
53848         tests module depends on GPLed modules.
53849
53850 2007-01-17  Bruno Haible  <bruno@clisp.org>
53851
53852         * lib/gettimeofday.c (gettimeofday): Add code for the case
53853         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53854         maximum possible value for tv->tv_usec, rather than the minimum one.
53855
53856 2005-10-08  Martin Lambers  <marlam@marlam.de>
53857 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53858 2007-01-16  Bruno Haible  <bruno@clisp.org>
53859
53860         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53861         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53862         gl_FUNC_GETTIMEOFDAY.
53863         (Include): Add gettimeofday.h.
53864         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53865         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53866         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53867         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53868         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53869         * lib/gettimeofday.h: New file.
53870         * lib/gettimeofday.c: Include <sys/timeb.h>.
53871         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53872         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53873         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53874         fall back on time().
53875
53876         * tests/test-gettimeofday.c: New file.
53877         * modules/gettimeofday-tests: New file.
53878
53879 2007-01-16  Eric Blake  <ebb9@byu.net>
53880
53881         * modules/fnmatch (Depends-on): Depend on wchar.
53882         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53883         * m4/fnmatch.m4: Likewise.
53884         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53885         * m4/mbchar.m4: Likewise.
53886         * modules/mbswidth (Depends-on): Depend on wchar.
53887         * lib/mbswidth.c: Assume <wchar.h>.
53888         * m4/mbswidth.m4: Likewise.
53889         * modules/quotearg (Depends-on): Depend on wchar.
53890         * lib/quotearg.c: Assume <wchar.h>.
53891         * m4/quotearg.m4: Likewise.
53892         * modules/regex (Depends-on): Depend on wchar.
53893         * lib/regex_internal.h: Assume <wchar.h>.
53894         * m4/regex.m4: Likewise.
53895         * modules/stdint (Depends-on): Depend on wchar.
53896         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53897         * m4/stdint.m4: Likewise.
53898         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53899         * modules/strftime (Depends-on): Depend on wchar.
53900         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53901         * modules/strtol (Depends-on): Depend on wchar.
53902         * lib/strtol.c: Assume <wchar.h>.
53903         * modules/wcwidth (Depends-on): Depend on wchar.
53904         * lib/wcwidth.h: Assume <wchar.h>.
53905         * m4/wcwidth.m4: Likewise.
53906
53907 2007-01-16  Bruno Haible  <bruno@clisp.org>
53908
53909         * modules/csharpexec-script: New, created from...
53910         * modules/csharpexec: ... this.
53911
53912 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53913
53914         * modules/javaexec-script: New, created from...
53915         * modules/javaexec: ... this.
53916
53917 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53918
53919         * modules/poll (Dependencies): Add sys_select.
53920
53921 2007-01-15  Jim Meyering  <jim@meyering.net>
53922
53923         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53924         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53925         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53926         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53927
53928 2007-01-15  Bruno Haible  <bruno@clisp.org>
53929
53930         * modules/striconveh: New file.
53931         * lib/striconveh.h: New file.
53932         * lib/striconveh.c: New file.
53933         * MODULES.html.sh (Internationalization functions): Add striconveh.
53934
53935         * modules/striconveh-tests: New file.
53936         * tests/test-striconveh.c: New file.
53937
53938 2007-01-15  Bruno Haible  <bruno@clisp.org>
53939
53940         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53941         not from GNU libiconv or GNU libc.
53942
53943 2007-01-15  Bruno Haible  <bruno@clisp.org>
53944
53945         * doc/gnulib-intro.texi (Copyright): Explain the different license
53946         terms for module descriptions, autoconf macros, tests, documentation.
53947
53948 2007-01-14  Bruno Haible  <bruno@clisp.org>
53949
53950         * modules/striconv-tests: New file.
53951         * tests/test-striconv.c: New file.
53952
53953 2007-01-14  Bruno Haible  <bruno@clisp.org>
53954
53955         * modules/iconv-tests: New file.
53956         * tests/test-iconv.c: New file.
53957
53958 2007-01-14  Bruno Haible  <bruno@clisp.org>
53959
53960         * gnulib-tool (func_get_license): For test modules, use the license of
53961         the main module.
53962
53963 2007-01-14  Bruno Haible  <bruno@clisp.org>
53964
53965         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53966         if iconv is found to exist.
53967
53968 2007-01-14  Bruno Haible  <bruno@clisp.org>
53969
53970         * modules/c-ctype-tests: New file.
53971         * tests/test-c-ctype.c: New file.
53972
53973 2007-01-14  Bruno Haible  <bruno@clisp.org>
53974
53975         * modules/binary-io-tests: New file.
53976         * tests/test-binary-io.sh: New file.
53977         * tests/test-binary-io.c: New file.
53978
53979 2007-01-14  Bruno Haible  <bruno@clisp.org>
53980
53981         * modules/array-oset-tests: New file.
53982         * tests/test-array_oset.c: New file.
53983
53984 2007-01-14  Bruno Haible  <bruno@clisp.org>
53985
53986         * modules/array-list-tests: New file.
53987         * tests/test-array_list.c: New file.
53988
53989 2007-01-14  Bruno Haible  <bruno@clisp.org>
53990
53991         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53992         and make.
53993         Reported by Simon Josefsson in
53994         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53995
53996 2007-01-14  Bruno Haible  <bruno@clisp.org>
53997
53998         * modules/allocsa-tests: New file.
53999         * tests/test-allocsa.c: New file.
54000
54001 2007-01-14  Bruno Haible  <bruno@clisp.org>
54002
54003         * modules/fchdir (Depends-on): Add absolute-header.
54004         * modules/unistd (Depends-on): Likewise.
54005
54006 2006-12-30  Bruno Haible  <bruno@clisp.org>
54007
54008         * modules/fchdir: New file.
54009         * modules/unistd (Files): Add lib/unistd_.h.
54010         (Makefile.am): Generate unistd.h from unistd_.h.
54011         * lib/fchdir.c: New file.
54012         * lib/dirent_.h: New file.
54013         * lib/unistd_.h: New file.
54014         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54015         * m4/fchdir.m4: New file.
54016         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54017         (gl_HEADER_UNISTD): Invoke it.
54018         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54019         function.
54020         * lib/backupfile.c (opendir, closedir): Undefine.
54021         * lib/chown.c (open, close): Undefine.
54022         * lib/clean-temp.c (open, close): Undefine.
54023         * lib/copy-file.c (open, close): Undefine.
54024         * lib/execute.c (open, close): Undefine.
54025         * lib/fsusage.c (open, close): Undefine.
54026         * lib/gc-gnulib.c (open, close): Undefine.
54027         * lib/getcwd.c (opendir, closedir): Undefine.
54028         * lib/glob.c (opendir, closedir): Undefine.
54029         * lib/javacomp.c (open, close): Undefine.
54030         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54031         * lib/openat-proc.c (open, close): Undefine.
54032         * lib/pagealign_alloc.c (open, close): Undefine.
54033         * lib/pipe.c (open, close): Undefine.
54034         * lib/progreloc.c (open, close): Undefine.
54035         * lib/savedir.c (opendir, closedir): Undefine.
54036         * lib/utime.c (open, close): Undefine.
54037         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54038
54039 2007-01-10  Bruno Haible  <bruno@clisp.org>
54040
54041         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54042
54043 2007-01-12  Eric Blake  <ebb9@byu.net>
54044
54045         Provide a robust <wchar.h>.  Further simplifications are now
54046         possible in other modules, but not included here.
54047         * modules/wchar: New module.
54048         * m4/wchar.m4: New file.
54049         * lib/wchar_.h: Likewise.
54050         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54051         of the new module.
54052         * MODULES.html.sh (Extended multibyte and wide character utilities):
54053         New section.
54054
54055 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54056
54057         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54058         to a reasonable default for memory allocation.
54059         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54060         file system that reports garbage st_size values for symlinks.
54061         Problem reported by Liyang Hu.
54062
54063 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54064
54065         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54066         Emacs .#* auto-save files).
54067
54068 2007-01-11  Bruno Haible  <bruno@clisp.org>
54069
54070         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54071         directory.
54072
54073 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54074
54075         Use @...@ consistently in lib/wctype_.h.
54076         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54077         on it being set to 1 or 0.
54078         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54079         go back to AC_SUBSTing it.
54080         * modules/wctype (Makefile.am): Undo previous change.
54081
54082 2007-01-10  Eric Blake  <ebb9@byu.net>
54083
54084         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54085         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54086         * modules/wctype (Makefile.am): Likewise.
54087         Reported by Chris McGuire.
54088
54089 2007-01-10  Jim Meyering  <jim@meyering.net>
54090
54091         fts.c: a small readability/maintainability improvement
54092         * lib/fts.c (fts_read): Make this code slightly more readable and
54093         maintainable by hoisting the "sp->fts_cur = p" assignments to
54094         immediately follow the statements that set P.  Derived from
54095         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54096
54097 2007-01-10  Eric Blake  <ebb9@byu.net>
54098
54099         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54100         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54102         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54103         Reported by Chris McGuire.
54104
54105 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54106
54107         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54108         in sed script.
54109
54110 2007-01-09  Bruno Haible  <bruno@clisp.org>
54111
54112         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54113         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54114         variables.
54115         (func_module): Use them.
54116
54117 2007-01-09  Bruno Haible  <bruno@clisp.org>
54118
54119         * modules/unistr/base: New file.
54120         * lib/unistr.h: New file.
54121
54122         * modules/unistr/u8-to-u16: New file.
54123         * lib/unistr/u8-to-u16.c: New file.
54124
54125         * modules/unistr/u8-to-u32: New file.
54126         * lib/unistr/u8-to-u32.c: New file.
54127
54128         * modules/unistr/u16-to-u8: New file.
54129         * lib/unistr/u16-to-u8.c: New file.
54130
54131         * modules/unistr/u16-to-u32: New file.
54132         * lib/unistr/u16-to-u32.c: New file.
54133
54134         * modules/unistr/u32-to-u8: New file.
54135         * lib/unistr/u32-to-u8.c: New file.
54136
54137         * modules/unistr/u32-to-u16: New file.
54138         * lib/unistr/u32-to-u16.c: New file.
54139
54140         * modules/unistr/u8-check: New file.
54141         * modules/unistr/u16-check: New file.
54142         * modules/unistr/u32-check: New file.
54143         * lib/unistr/u8-check.c: New file.
54144         * lib/unistr/u16-check.c: New file.
54145         * lib/unistr/u32-check.c: New file.
54146
54147         * modules/unistr/u8-chr: New file.
54148         * modules/unistr/u16-chr: New file.
54149         * modules/unistr/u32-chr: New file.
54150         * lib/unistr/u8-chr.c: New file.
54151         * lib/unistr/u16-chr.c: New file.
54152         * lib/unistr/u32-chr.c: New file.
54153
54154         * modules/unistr/u8-cmp: New file.
54155         * modules/unistr/u16-cmp: New file.
54156         * modules/unistr/u32-cmp: New file.
54157         * lib/unistr/u8-cmp.c: New file.
54158         * lib/unistr/u16-cmp.c: New file.
54159         * lib/unistr/u32-cmp.c: New file.
54160
54161         * modules/unistr/u8-cpy: New file.
54162         * modules/unistr/u16-cpy: New file.
54163         * modules/unistr/u32-cpy: New file.
54164         * lib/unistr/u8-cpy.c: New file.
54165         * lib/unistr/u16-cpy.c: New file.
54166         * lib/unistr/u32-cpy.c: New file.
54167         * lib/unistr/u-cpy.h: New file.
54168
54169         * modules/unistr/u8-cpy-alloc: New file.
54170         * modules/unistr/u16-cpy-alloc: New file.
54171         * modules/unistr/u32-cpy-alloc: New file.
54172         * lib/unistr/u8-cpy-alloc.c: New file.
54173         * lib/unistr/u16-cpy-alloc.c: New file.
54174         * lib/unistr/u32-cpy-alloc.c: New file.
54175         * lib/unistr/u-cpy-alloc.h: New file.
54176
54177         * modules/unistr/u8-endswith: New file.
54178         * modules/unistr/u16-endswith: New file.
54179         * modules/unistr/u32-endswith: New file.
54180         * lib/unistr/u8-endswith.c: New file.
54181         * lib/unistr/u16-endswith.c: New file.
54182         * lib/unistr/u32-endswith.c: New file.
54183         * lib/unistr/u-endswith.h: New file.
54184
54185         * modules/unistr/u8-mblen: New file.
54186         * modules/unistr/u16-mblen: New file.
54187         * modules/unistr/u32-mblen: New file.
54188         * lib/unistr/u8-mblen.c: New file.
54189         * lib/unistr/u16-mblen.c: New file.
54190         * lib/unistr/u32-mblen.c: New file.
54191
54192         * modules/unistr/u8-mbtouc: New file.
54193         * modules/unistr/u16-mbtouc: New file.
54194         * modules/unistr/u32-mbtouc: New file.
54195         * lib/unistr/u8-mbtouc.c: New file.
54196         * lib/unistr/u16-mbtouc.c: New file.
54197         * lib/unistr/u32-mbtouc.c: New file.
54198
54199         * modules/unistr/u8-mbtouc-safe: New file.
54200         * modules/unistr/u16-mbtouc-safe: New file.
54201         * modules/unistr/u32-mbtouc-safe: New file.
54202         * lib/unistr/u8-mbtouc-safe.c: New file.
54203         * lib/unistr/u16-mbtouc-safe.c: New file.
54204         * lib/unistr/u32-mbtouc-safe.c: New file.
54205
54206         * modules/unistr/u8-move: New file.
54207         * modules/unistr/u16-move: New file.
54208         * modules/unistr/u32-move: New file.
54209         * lib/unistr/u8-move.c: New file.
54210         * lib/unistr/u16-move.c: New file.
54211         * lib/unistr/u32-move.c: New file.
54212         * lib/unistr/u-move.h: New file.
54213
54214         * modules/unistr/u8-next: New file.
54215         * modules/unistr/u16-next: New file.
54216         * modules/unistr/u32-next: New file.
54217         * lib/unistr/u8-next.c: New file.
54218         * lib/unistr/u16-next.c: New file.
54219         * lib/unistr/u32-next.c: New file.
54220
54221         * modules/unistr/u8-prev: New file.
54222         * modules/unistr/u16-prev: New file.
54223         * modules/unistr/u32-prev: New file.
54224         * lib/unistr/u8-prev.c: New file.
54225         * lib/unistr/u16-prev.c: New file.
54226         * lib/unistr/u32-prev.c: New file.
54227
54228         * modules/unistr/u8-set: New file.
54229         * modules/unistr/u16-set: New file.
54230         * modules/unistr/u32-set: New file.
54231         * lib/unistr/u8-set.c: New file.
54232         * lib/unistr/u16-set.c: New file.
54233         * lib/unistr/u32-set.c: New file.
54234         * lib/unistr/u-set.h: New file.
54235
54236         * modules/unistr/u8-startswith: New file.
54237         * modules/unistr/u16-startswith: New file.
54238         * modules/unistr/u32-startswith: New file.
54239         * lib/unistr/u8-startswith.c: New file.
54240         * lib/unistr/u16-startswith.c: New file.
54241         * lib/unistr/u32-startswith.c: New file.
54242         * lib/unistr/u-startswith.h: New file.
54243
54244         * modules/unistr/u8-stpcpy: New file.
54245         * modules/unistr/u16-stpcpy: New file.
54246         * modules/unistr/u32-stpcpy: New file.
54247         * lib/unistr/u8-stpcpy.c: New file.
54248         * lib/unistr/u16-stpcpy.c: New file.
54249         * lib/unistr/u32-stpcpy.c: New file.
54250         * lib/unistr/u-stpcpy.h: New file.
54251
54252         * modules/unistr/u8-stpncpy: New file.
54253         * modules/unistr/u16-stpncpy: New file.
54254         * modules/unistr/u32-stpncpy: New file.
54255         * lib/unistr/u8-stpncpy.c: New file.
54256         * lib/unistr/u16-stpncpy.c: New file.
54257         * lib/unistr/u32-stpncpy.c: New file.
54258         * lib/unistr/u-stpncpy.h: New file.
54259
54260         * modules/unistr/u8-strcat: New file.
54261         * modules/unistr/u16-strcat: New file.
54262         * modules/unistr/u32-strcat: New file.
54263         * lib/unistr/u8-strcat.c: New file.
54264         * lib/unistr/u16-strcat.c: New file.
54265         * lib/unistr/u32-strcat.c: New file.
54266         * lib/unistr/u-strcat.h: New file.
54267
54268         * modules/unistr/u8-strchr: New file.
54269         * modules/unistr/u16-strchr: New file.
54270         * modules/unistr/u32-strchr: New file.
54271         * lib/unistr/u8-strchr.c: New file.
54272         * lib/unistr/u16-strchr.c: New file.
54273         * lib/unistr/u32-strchr.c: New file.
54274
54275         * modules/unistr/u8-strcmp: New file.
54276         * modules/unistr/u16-strcmp: New file.
54277         * modules/unistr/u32-strcmp: New file.
54278         * lib/unistr/u8-strcmp.c: New file.
54279         * lib/unistr/u16-strcmp.c: New file.
54280         * lib/unistr/u32-strcmp.c: New file.
54281
54282         * modules/unistr/u8-strcpy: New file.
54283         * modules/unistr/u16-strcpy: New file.
54284         * modules/unistr/u32-strcpy: New file.
54285         * lib/unistr/u8-strcpy.c: New file.
54286         * lib/unistr/u16-strcpy.c: New file.
54287         * lib/unistr/u32-strcpy.c: New file.
54288         * lib/unistr/u-strcpy.h: New file.
54289
54290         * modules/unistr/u8-strcspn: New file.
54291         * modules/unistr/u16-strcspn: New file.
54292         * modules/unistr/u32-strcspn: New file.
54293         * lib/unistr/u8-strcspn.c: New file.
54294         * lib/unistr/u16-strcspn.c: New file.
54295         * lib/unistr/u32-strcspn.c: New file.
54296         * lib/unistr/u-strcspn.h: New file.
54297
54298         * modules/unistr/u8-strdup: New file.
54299         * modules/unistr/u16-strdup: New file.
54300         * modules/unistr/u32-strdup: New file.
54301         * lib/unistr/u8-strdup.c: New file.
54302         * lib/unistr/u16-strdup.c: New file.
54303         * lib/unistr/u32-strdup.c: New file.
54304         * lib/unistr/u-strdup.h: New file.
54305
54306         * modules/unistr/u8-strlen: New file.
54307         * modules/unistr/u16-strlen: New file.
54308         * modules/unistr/u32-strlen: New file.
54309         * lib/unistr/u8-strlen.c: New file.
54310         * lib/unistr/u16-strlen.c: New file.
54311         * lib/unistr/u32-strlen.c: New file.
54312         * lib/unistr/u-strlen.h: New file.
54313
54314         * modules/unistr/u8-strmblen: New file.
54315         * modules/unistr/u16-strmblen: New file.
54316         * modules/unistr/u32-strmblen: New file.
54317         * lib/unistr/u8-strmblen.c: New file.
54318         * lib/unistr/u16-strmblen.c: New file.
54319         * lib/unistr/u32-strmblen.c: New file.
54320
54321         * modules/unistr/u8-strmbtouc: New file.
54322         * modules/unistr/u16-strmbtouc: New file.
54323         * modules/unistr/u32-strmbtouc: New file.
54324         * lib/unistr/u8-strmbtouc.c: New file.
54325         * lib/unistr/u16-strmbtouc.c: New file.
54326         * lib/unistr/u32-strmbtouc.c: New file.
54327
54328         * modules/unistr/u8-strncat: New file.
54329         * modules/unistr/u16-strncat: New file.
54330         * modules/unistr/u32-strncat: New file.
54331         * lib/unistr/u8-strncat.c: New file.
54332         * lib/unistr/u16-strncat.c: New file.
54333         * lib/unistr/u32-strncat.c: New file.
54334         * lib/unistr/u-strncat.h: New file.
54335
54336         * modules/unistr/u8-strncmp: New file.
54337         * modules/unistr/u16-strncmp: New file.
54338         * modules/unistr/u32-strncmp: New file.
54339         * lib/unistr/u8-strncmp.c: New file.
54340         * lib/unistr/u16-strncmp.c: New file.
54341         * lib/unistr/u32-strncmp.c: New file.
54342
54343         * modules/unistr/u8-strncpy: New file.
54344         * modules/unistr/u16-strncpy: New file.
54345         * modules/unistr/u32-strncpy: New file.
54346         * lib/unistr/u8-strncpy.c: New file.
54347         * lib/unistr/u16-strncpy.c: New file.
54348         * lib/unistr/u32-strncpy.c: New file.
54349         * lib/unistr/u-strncpy.h: New file.
54350
54351         * modules/unistr/u8-strnlen: New file.
54352         * modules/unistr/u16-strnlen: New file.
54353         * modules/unistr/u32-strnlen: New file.
54354         * lib/unistr/u8-strnlen.c: New file.
54355         * lib/unistr/u16-strnlen.c: New file.
54356         * lib/unistr/u32-strnlen.c: New file.
54357         * lib/unistr/u-strnlen.h: New file.
54358
54359         * modules/unistr/u8-strpbrk: New file.
54360         * modules/unistr/u16-strpbrk: New file.
54361         * modules/unistr/u32-strpbrk: New file.
54362         * lib/unistr/u8-strpbrk.c: New file.
54363         * lib/unistr/u16-strpbrk.c: New file.
54364         * lib/unistr/u32-strpbrk.c: New file.
54365         * lib/unistr/u-strpbrk.h: New file.
54366
54367         * modules/unistr/u8-strrchr: New file.
54368         * modules/unistr/u16-strrchr: New file.
54369         * modules/unistr/u32-strrchr: New file.
54370         * lib/unistr/u8-strrchr.c: New file.
54371         * lib/unistr/u16-strrchr.c: New file.
54372         * lib/unistr/u32-strrchr.c: New file.
54373
54374         * modules/unistr/u8-strspn: New file.
54375         * modules/unistr/u16-strspn: New file.
54376         * modules/unistr/u32-strspn: New file.
54377         * lib/unistr/u8-strspn.c: New file.
54378         * lib/unistr/u16-strspn.c: New file.
54379         * lib/unistr/u32-strspn.c: New file.
54380         * lib/unistr/u-strspn.h: New file.
54381
54382         * modules/unistr/u8-strstr: New file.
54383         * modules/unistr/u16-strstr: New file.
54384         * modules/unistr/u32-strstr: New file.
54385         * lib/unistr/u8-strstr.c: New file.
54386         * lib/unistr/u16-strstr.c: New file.
54387         * lib/unistr/u32-strstr.c: New file.
54388         * lib/unistr/u-strstr.h: New file.
54389
54390         * modules/unistr/u8-strtok: New file.
54391         * modules/unistr/u16-strtok: New file.
54392         * modules/unistr/u32-strtok: New file.
54393         * lib/unistr/u8-strtok.c: New file.
54394         * lib/unistr/u16-strtok.c: New file.
54395         * lib/unistr/u32-strtok.c: New file.
54396         * lib/unistr/u-strtok.h: New file.
54397
54398         * modules/unistr/u8-uctomb: New file.
54399         * modules/unistr/u16-uctomb: New file.
54400         * modules/unistr/u32-uctomb: New file.
54401         * lib/unistr/u8-uctomb.c: New file.
54402         * lib/unistr/u16-uctomb.c: New file.
54403         * lib/unistr/u32-uctomb.c: New file.
54404
54405         * MODULES.html.sh (Unicode string functions): Add the new modules.
54406
54407 2007-01-08  Bruno Haible  <bruno@clisp.org>
54408
54409         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54410         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54411         subdirectories.
54412
54413 2007-01-08  Karl Berry  <karl@gnu.org>
54414
54415         * doc/error.texi: mention that main() fns must set program_name
54416         when progname is used.
54417
54418 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54421         WCTYPE_H is empty, for the benefit of builds from non-distclean
54422         directories.  Problem reported by Eric Blake in
54423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54424
54425 2007-01-08  Bruno Haible  <bruno@clisp.org>
54426
54427         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54428         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54429         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54430         PROVIDE_CANONICALIZE_FILENAME_MODE.
54431         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54432
54433 2007-01-08  Bruno Haible  <bruno@clisp.org>
54434
54435         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54436         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54437         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54438         * lib/fts.c: Likewise.
54439         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54440
54441 2006-12-25  Bruno Haible  <bruno@clisp.org>
54442
54443         * modules/utf8-ucs4-safe: New file.
54444         * lib/utf8-ucs4-safe.h: New file.
54445         * lib/unistr/utf8-ucs4-safe.c: New file.
54446
54447         * modules/utf16-ucs4-safe: New file.
54448         * lib/utf16-ucs4-safe.h: New file.
54449         * lib/unistr/utf16-ucs4-safe.c: New file.
54450
54451         * MODULES.html.sh (Unicode string functions): Add the new modules.
54452
54453 2007-01-08  Bruno Haible  <bruno@clisp.org>
54454
54455         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54456         (Depends-on): Add unitypes.
54457         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54458         (u8_mbtouc_aux): Move out to separate file.
54459         (u8_mbtouc): Use ucs4_t, uint8_t types.
54460         * lib/unistr/utf8-ucs4.c: New file.
54461
54462         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
54463         (Depends-on): Add unitypes.
54464         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54465         (u16_mbtouc_aux): Move out to separate file.
54466         (u16_mbtouc): Use ucs4_t, uint16_t types.
54467         * lib/unistr/utf16-ucs4.c: New file.
54468
54469         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
54470         (Depends-on): Add unitypes.
54471         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
54472         (u8_uctomb_aux): Move out to separate file.
54473         (u8_uctomb): Use ucs4_t, uint8_t types.
54474         * lib/unistr/ucs4-utf8.c: New file.
54475
54476         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
54477         (Depends-on): Add unitypes.
54478         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
54479         (u16_uctomb_aux): Move out to separate file.
54480         (u16_uctomb): Use ucs4_t, uint16_t types.
54481         * lib/unistr/ucs4-utf16.c: New file.
54482
54483 2006-12-25  Bruno Haible  <bruno@clisp.org>
54484
54485         * modules/unitypes: New file.
54486         * lib/unitypes.h: New file.
54487         * MODULES.html.sh (func_all_modules): New section "Unicode string
54488         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
54489         this section. Add unitypes.
54490
54491 2007-01-08  Bruno Haible  <bruno@clisp.org>
54492
54493         Avoid variable names that conflict with those from libtool.
54494         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
54495         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
54496         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
54497         library_names_spec to acl_library_names_spec, hardcode_* to
54498         acl_hardcode_*.
54499         Reported by Ralf Wildenhues.
54500
54501 2007-01-08  Bruno Haible  <bruno@clisp.org>
54502
54503         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54504         definition.
54505         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
54506         definition.
54507         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
54508         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
54509         definition.
54510         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
54511         definition.
54512         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
54513         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
54514         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
54515         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
54516         definition.
54517         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
54518         definition.
54519         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
54520         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
54521         GC_USE_<algorithm>.
54522         * lib/gc-libgcrypt.c: Likewise.
54523         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
54524         * modules/gc-arctwo (configure.ac): Likewise.
54525         * modules/gc-des (configure.ac): Likewise.
54526         * modules/gc-hmac-md5 (configure.ac): Likewise.
54527         * modules/gc-hmac-sha1 (configure.ac): Likewise.
54528         * modules/gc-md2 (configure.ac): Likewise.
54529         * modules/gc-md4 (configure.ac): Likewise.
54530         * modules/gc-md5 (configure.ac): Likewise.
54531         * modules/gc-random (configure.ac): Likewise.
54532         * modules/gc-rijndael (configure.ac): Likewise.
54533         * modules/gc-sha1 (configure.ac): Likewise.
54534
54535 2007-01-08  Bruno Haible  <bruno@clisp.org>
54536
54537         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
54538         macro definition.
54539         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
54540         definition.
54541         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
54542         definition.
54543         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
54544         * modules/fcntl-safer (configure.ac): Likewise.
54545         * modules/fopen-safer (configure.ac): Likewise.
54546         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
54547         GNULIB_FWRITEERROR macro definition.
54548
54549 2007-01-08  Bruno Haible  <bruno@clisp.org>
54550
54551         * m4/gnulib-common.m4: New file.
54552         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
54553         (func_get_filelist): Add m4/gnulib-common.m4.
54554
54555 2007-01-08  Bruno Haible  <bruno@clisp.org>
54556
54557         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
54558         command.
54559
54560 2007-01-08  Jim Meyering  <jim@meyering.net>
54561
54562         Use a more robust test for a "can't happen" condition.
54563         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
54564         narrowed the st_size value.  Presuming the "can't happen" condition
54565         is true, that narrowing could conceivably convert an invalid st_size
54566         value into a valid one.  Instead, use a change based on Matthew
54567         Woehlke's original patch.
54568
54569         Slight readability improvement: use an assert-like macro
54570         in place of literal "abort ()" uses.
54571         * lib/fts.c (fts_assert): Define.
54572         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
54573         Use this macro instead of a bare 'abort'.
54574
54575 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
54576
54577         Don't worry about using IRIX 5.3's wctype.h broken definitions;
54578         simply work around them.
54579         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
54580         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
54581         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
54582         declaring.
54583         Don't bother to define as macros, since the standard doesn't require it.
54584         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
54585         longer worry about IRIX 5.3.
54586         (HAVE_WCTYPE_CTMP_BUG): Remove.
54587
54588 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54589
54590         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
54591         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
54592         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54593         Problems reported by Georg Schwarz for IRIX 5.3.
54594
54595         * gnulib-tool (autoconf_minversion): Take the maximum version number
54596         found, not the minimum.  Problem reported by James Youngman.
54597
54598 2007-01-03  Karl Berry  <karl@gnu.org>
54599
54600         * doc/error.texi: new file, explaining interaction with progname.
54601         * doc/gnulib.texi: include it.  Update copyright.
54602
54603 2007-01-03  Simon Josefsson  <simon@josefsson.org>
54604
54605         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
54606         AC_CANONICAL_HOST, to improve autobuild outputs.
54607
54608 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
54609             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54610
54611         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
54612         sockets, server sockets, and other file descriptors.  Count errors
54613         to compute the return value.  Reorder the code a bit to be easier
54614         to follow.  Don't set event bits that were not requested (except
54615         POLLERR and POLLHUP).
54616
54617 2007-01-01  Bruno Haible  <bruno@clisp.org>
54618
54619         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
54620
54621 2007-01-03  Jim Meyering  <jim@meyering.net>
54622
54623         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
54624
54625 2007-01-02  Bruno Haible  <bruno@clisp.org>
54626
54627         * modules/settime (Include): Require timespec.h.
54628         * modules/nanosleep (Include): Likewise.
54629
54630 2007-01-01  Bruno Haible  <bruno@clisp.org>
54631
54632         * gnulib-tool (func_emit_copyright_notice): Bump year.
54633         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
54634
54635 2007-01-01  Bruno Haible  <bruno@clisp.org>
54636
54637         Improve support for OpenBSD.
54638         * build-aux/config.rpath (libname_spec): Export.
54639         (library_names_spec): New variable. Export.
54640         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
54641         library_names_spec from the config.rpath output. Locate shared library
54642         through the name pattern in library_names_spec.
54643
54644 2007-01-01  Eric Blake  <ebb9@byu.net>
54645
54646         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
54647
54648 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
54649
54650         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
54651         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
54652         assume the C locale, and avoid an "eval" that could cause trouble.
54653         Problem with SORT reported by Bob Proulx.
54654
54655         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
54656         Define.  Trivial patch from Henning Nielsen Lund, originally
54657         sent to bug-grep@gnu.org today.
54658
54659 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54660
54661         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
54662         struct stat.  Problem reported by Henning Nielsen Lund.
54663         * lib/acl.c: Include acl.h first, to check interface.  Don't
54664         bother to include sys/types.h and sys/stat.h again.
54665
54666 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54667
54668         Import the following change from libc; problem reported by
54669         Sven Verdoolaege.
54670
54671         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
54672
54673         [BZ #1373]
54674         * lib/argp.h: Remove __NTH for __argp_usage inline function.
54675
54676 2006-12-28  Jim Meyering  <jim@meyering.net>
54677
54678         * build-aux/announce-gen: Do not assume that the package
54679         builds any of tar.gz, tar.bz2, and .xdelta files.
54680         Suggestion from Simon Josefsson.
54681
54682 2006-12-28  Simon Josefsson  <simon@josefsson.org>
54683
54684         * modules/announce-gen: New file.
54685
54686 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
54687
54688         * lib/mbchar.h: Just include <wctype.h>; the wctype module
54689         handles its gotchas now.
54690         * lib/mbswidth.c: Likewise.
54691         * lib/wcwidth.h: Likewise.
54692         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
54693         and iswcntrl; the wctype module does this stuff now.
54694         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54696         * modules/mbchar (Depends-on): Add wctype.
54697         * modules/mbswidth (Depends-on): Likewise.
54698         * modules/wcwidth (Depends-on): Likewise.
54699
54700 2006-12-27  Eric Blake  <ebb9@byu.net>
54701
54702         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
54703         module uses more than what <wctype.h> is required to provide.
54704
54705 2006-12-26  Eric Blake  <ebb9@byu.net>
54706
54707         * gnulib-tool (sed_extract_prog): Avoid space-tab.
54708
54709 2006-12-26  Eric Blake  <ebb9@byu.net>
54710
54711         * modules/absolute-header: New module.
54712         * modules/fcntl (Depends-on): Depend on it.
54713         * modules/inttypes (Depends-on): Likewise.
54714         * modules/stdint (Depends-on): Likewise.
54715         * modules/sys_stat (Depends-on): Likewise.
54716         * modules/wctype (Depends-on): Likewise.
54717         * MODULES.html.sh (Support for building libraries and
54718         executables): Document it.
54719
54720 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54721
54722         * gnulib-tool (SED): Remove, undoing previous change.
54723         The problem was that it broke coreutils on Solaris, because
54724         "sed --posix" leaked into a makefile.
54725         (sed): New alias, if 'alias' and GNU sed.
54726
54727 2006-12-24  Jim Meyering  <jim@meyering.net>
54728
54729         Work around an fchownat bug in glibc-2.4:
54730         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
54731         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
54732         in spite of the -P option.
54733         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
54734         New macros.
54735         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
54736         * modules/openat (Files): Add lib/fchownat.c.
54737         * lib/openat.c (fchownat): Don't define here.  Move to...
54738         * lib/fchownat.c: ...this new file.
54739
54740 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54741
54742         Fix bug reported by Bruno Haible in
54743         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
54744         where quotearg.c didn't compile on Mac OS X 10.2 because it
54745         lacks <wchar.h> and wint_t.
54746         * lib/wctype_.h (__wctype_wint_t): New type.
54747         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
54748         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
54749         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
54750         Arg is now of type __wctype_wint_t, not wint_t.
54751         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
54752         substitute HAVE_WINT_T.
54753         * modules/wctype (Files): Add m4/wint_t.m4.
54754         (wctype.h): Substitute HAVE_WINT_T.
54755
54756 2006-12-23  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
54759
54760 2006-12-23  Bruno Haible  <bruno@clisp.org>
54761
54762         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
54763         S_ISLNK.
54764         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
54765         mingw.
54766
54767 2006-12-22  Bruno Haible  <bruno@clisp.org>
54768
54769         * lib/copy-file.c: Include acl.h.
54770         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
54771         Close the file descriptors only after being done with copy_acl.
54772         * modules/copy-file (Depends-on): Add acl.
54773
54774 2006-12-22  Bruno Haible  <bruno@clisp.org>
54775
54776         * gnulib-tool (SED): New variable.
54777         Use $SED instead of sed everywhere.
54778
54779 2006-12-22  Bruno Haible  <bruno@clisp.org>
54780
54781         * modules/no-c++: New file.
54782         * m4/no-c++.m4: New file.
54783         * MODULES.html.sh (Support for building libraries and executables):
54784         Add no-c++.
54785
54786 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54787
54788         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54789         Include <limits.h>, and use its INT_MAX to rewrite the
54790         j loop so that it does not overflow 'int'.  Problem reported by
54791         Ralf Wildenhues in
54792         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
54793         Play it safe by shifting left by 1 rather than multiplying by 2,
54794         as GCC is less likely to optimize this away when the value
54795         is signed (when it assumes overflow leads to undefined behavior).
54796         Also, don't assume time_t uses two's complement.
54797
54798 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54799
54800         * MODULES.html.sh: New module wctype.
54801         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54802         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54803         <wctype.h>, since the new wctype module should fix this.
54804         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54805         the wctype module should arrange for it.
54806         * lib/regex_internal.h: Likewise.
54807         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54808         since the wctype module should handle this now.
54809         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54810         * modules/fnmatch (Depends-on): Add wctype.
54811         * modules/quotearg (Depends-on): Likewise.
54812         * modules/regex (Depends-on): Likewise.
54813
54814 2006-12-19  Bruno Haible  <bruno@clisp.org>
54815
54816         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54817         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54818
54819 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54820
54821         * modules/savewd (Depends-on): Fix dependency on fcntl.
54822
54823 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54824
54825         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54826         conforms to C99, rather than relying on the user's environment
54827         setting of STDINT_H.
54828
54829 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54830         and Eric Blake  <ebb9@byu.net>
54831
54832         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54833         This is more consistent with the other defines here.
54834         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54835         Port to z/OS.  Problem reported by Paul Gilmartin.
54836         Change local vars to use gl_ prefix rather than ac_.
54837         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54838         with other defines.
54839         * modules/double-slash-root: New module.
54840         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54841         (Depends-on): Add double-slash-root.
54842         * MODULES.html.sh (File system functions): Mention new module.
54843
54844 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54845
54846         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54847         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54848         This is for the benefit of gzip, which doesn't do i18n.
54849
54850 2006-12-12  Jim Meyering  <jim@meyering.net>
54851
54852         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54853         Reported by Andreas Schwab <schwab@suse.de>.
54854
54855 2006-12-12  Bruno Haible  <bruno@clisp.org>
54856
54857         Merge these changes.
54858         2006-09-05  Bruno Haible  <bruno@clisp.org>
54859         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54860         iconv_alloc succeeded.
54861         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54862         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54863         test for " && dest " at the end - dest is always != NULL there. Call
54864         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54865         with 2xNULL arguments, also to flush the state storage. Handle the
54866         IRIX iconv behaviour. Realloc the final result, to throw away unused
54867         memory.
54868
54869 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54870
54871         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54872         and fchmodat unconditionally, since glibc 2.4 has them.
54873         Problem reported by Arkadiusz Miskiewicz.
54874
54875 2006-12-10  Bruno Haible  <bruno@clisp.org>
54876
54877         * gnulib-tool (func_import): Show the include files only for those
54878         modules that are copied and specified.
54879         Reported by Karl Berry.
54880
54881 2006-12-08  Jim Meyering  <jim@meyering.net>
54882
54883         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54884         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54885
54886         * build-aux/announce-gen: Add two new options, both optional:
54887         --bootstrap-tools=TOOL_LIST
54888               a comma-separated list of tools, e.g.,
54889               autoconf,automake,bison,gnulib
54890         --gnulib-snapshot-date=DATE
54891               if gnulib is in the bootstrap tool list,
54892               then report this as the snapshot date.
54893               If not specified, use the current date/time.
54894               If you specify a date here, be sure it's UTC.
54895
54896 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54897
54898         * tests/test-argp-2.sh: Fix test to match actual output.
54899         (func_compare): Fix sed script to be portable.
54900
54901 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54902
54903         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54904         workaround for this case.  It is not autoconfigured now; offhand
54905         it's hard to see how to autoconfigure it.
54906
54907 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54908
54909         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54910         a directory that is about to be chowned.  Such a directory's
54911         initial file permissions should permit the owner only and this
54912         should not be changed until after the chown, since the group and
54913         other bits would be incorrect if they granted permission before
54914         the chown.
54915
54916         Fix porting problem for iswctype reported by Georg Schwarz in:
54917         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54918         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54919         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54920         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54921         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54922
54923 2006-12-03  Jim Meyering  <jim@meyering.net>
54924
54925         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54926         p->fts_statp may not yet be defined.
54927         (fts_read): Instead, set it in the caller, once p->fts_statp is
54928         sure to be defined, and corresponds to a top-level directory.
54929         This bug made du -x fail.  Here's the coreutils test case:
54930         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54931         Reported by Mike Frysinger.
54932
54933 2006-12-01  Jim Meyering  <jim@meyering.net>
54934
54935         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54936         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54937         Reported by Simon Josefsson.
54938
54939 2006-11-30  Jim Meyering  <jim@meyering.net>
54940
54941         * m4/warning.m4: Use the all-permissive copyright notice
54942         recommended by RMS (rather than LGPL).
54943         * m4/vararrays.m4: Likewise.
54944         * m4/flexmember.m4: Likewise.
54945
54946 2006-11-29  Bruno Haible  <bruno@clisp.org>
54947
54948         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54949         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54950         using +=.
54951         Reported by Simon Josefsson <simon@josefsson.org>.
54952
54953 2006-11-28  James Youngman <jay@gnu.org>
54954
54955         * README: Advise users that they might find the bug-gnulib@gnu.org
54956         and autotools-announce@gnu.org mailing lists useful.
54957
54958 2006-11-28  Bruno Haible  <bruno@clisp.org>
54959
54960         * m4/ptrdiff_max.m4: Remove file.
54961
54962 2006-11-21  Bruno Haible  <bruno@clisp.org>
54963
54964         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54965         _AC_COMPUTE_INT.
54966         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54967         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54968         _AC_COMPUTE_INT.
54969         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54970         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54971         _AC_COMPUTE_INT.
54972         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54973
54974 2006-11-28  Jim Meyering  <jim@meyering.net>
54975
54976         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54977         warning from "gcc -Wshadow" about shadowing the builtin.
54978
54979 2006-11-27  Bruno Haible  <bruno@clisp.org>
54980
54981         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54982         _AC_COMPUTE_INT.
54983         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54984
54985 2006-11-27  Bruno Haible  <bruno@clisp.org>
54986             Paul Eggert  <eggert@cs.ucla.edu>
54987
54988         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54989
54990 2006-11-26  Bruno Haible  <bruno@clisp.org>
54991
54992         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54993         noinst_LTLIBRARIES.
54994
54995 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54996             Bruno Haible  <bruno@clisp.org>
54997
54998         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54999         if compiling with "gcc -ansi".
55000
55001 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55002
55003         Fix some incompatibilities with gcc -ansi -pedantic.
55004         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55005         if compiling pedantically with GCC, unless it's C99 or later.
55006         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55007         it mishandles gcc -ansi -pedantic as well.
55008         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55009         if gcc -pedantic.
55010         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55011         initializers for struct if -pedantic, unless it's C99 or later.
55012
55013 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55014
55015         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55016         Don't close an fd more than once. Identical atimes indicate
55017         success, not failure.
55018
55019 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55020
55021         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55022
55023 2006-11-23  Jim Meyering  <jim@meyering.net>
55024
55025         * build-aux/announce-gen: New file.  From coreutils.
55026
55027 2006-11-22  Jim Meyering  <jim@meyering.net>
55028
55029         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55030         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55031         (fts_read): Use a temporary to narrow the overused st_size member
55032         before using it in a switch statement.  Reported by Matthew Woehlke.
55033
55034         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55035         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55036
55037 2006-11-20  Bruno Haible  <bruno@clisp.org>
55038
55039         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55040         changequote instead of pairs of brackets.
55041         Reported by Andreas Schwab <schwab@suse.de>.
55042
55043 2006-11-21  Jim Meyering  <jim@meyering.net>
55044
55045         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55046         so as to remain compatible with older compilers.
55047         Patch from Michael Deutschmann.
55048
55049 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55050
55051         * MODULES.html.sh (File system functions): Add openat.
55052
55053         * lib/openat.h (rpl_fstatat): New macro, if
55054         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55055         (fstatat): Define to rpl_fstatat under the same conditions,
55056         unless COMPILING_FSTATAT.
55057         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55058         seems to have the bug.
55059         * lib/fstatat.c: New file.
55060         * modules/openat (Files): Add it.
55061
55062 2006-11-20  Bruno Haible  <bruno@clisp.org>
55063
55064         * Makefile: New file.
55065
55066 2006-11-20  Jim Meyering  <jim@meyering.net>
55067
55068         The beginnings of syntax-related checks for gnulib.
55069         * lib/Makefile: New file.
55070         * lib/t-idcache: New script.  Ensure that the two halves of
55071         idcache.c stay in sync.
55072
55073         * lib/idcache.c: Adjust comments in user- and group- portions to
55074         be more accurate, and to be consistent with one another.
55075
55076 2006-11-20  Jim Meyering  <jim@meyering.net>
55077
55078         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55079         continue using the flexible array member (thus, this module performs
55080         half as many malloc calls), with the addition that...
55081         (getgroup, getuser): Consistently record a non-match via an empty
55082         "name" string, and map an empty string match to a NULL return value.
55083         * modules/idcache (Depends-on): Re-add flexmember.
55084
55085         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55086         (getuidbyname, getgroup, getgidbyname): Likewise.
55087
55088         Use cleaner syntax: NULL rather than 0.
55089         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55090
55091 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55092
55093         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55094         It mishandled the case where the group was missing.
55095         Problem reported by Greg Schafer.
55096         * modules/idcache: Likewise.
55097
55098 2006-11-18  Jim Meyering  <jim@meyering.net>
55099
55100         * check-module (%exempt_header): Add exception for some
55101         conditionally-included headers.
55102
55103         * modules/i-ring (Depends-on): Add verify.
55104         (License): Change to LGPL.
55105
55106 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55107
55108         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55109         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55110         and inttostr.h.  Use snprintf rather than uinttostr, so that
55111         LGPLed code doesn't depend on GPLed.
55112
55113 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55114
55115         * modules/inline (License): Change from GPL to LGPL.
55116
55117 2006-11-17  Jim Meyering  <jim@meyering.net>
55118
55119         * modules/d-type (License): Switch to LGPL.
55120
55121 2006-11-15  Bruno Haible  <bruno@clisp.org>
55122
55123         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55124
55125 2006-11-15  Eric Blake  <ebb9@byu.net>
55126
55127         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55128         the module dependency.
55129
55130 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55131             Bruno Haible  <bruno@clisp.org>
55132
55133         * gnulib-tool (func_create_testdir): Add license consistency check.
55134
55135 2006-11-15  Eric Blake  <ebb9@byu.net>
55136
55137         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55138         random "(cached)" in configure output.
55139
55140 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55141
55142         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55143         test for conforming inttypes.h is both announced and cached.
55144
55145         * MODULES.html.sh (seen_modules, seen_files): New variables.
55146         (func_module): Rewrite to use a few less gnulib-tool and sed
55147         invocations.  Avoid a couple of quadratic algorithms for ...
55148         (missed_modules, missed_files): ... these, with ...
55149         (func_append, func_tmpdir): ... these new functions, from
55150         gnulib-tool.  Analogously, install traps for cleanup.
55151
55152         * tests/test-gc.c (main): Remove unused variables.
55153         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55154
55155 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55156
55157         * modules/inttostr (License): Change to LGPL.
55158
55159 2006-11-14  Eric Blake  <ebb9@byu.net>
55160
55161         * modules/tempname (License): Change to LGPL.
55162
55163 2006-11-14  Eric Blake  <ebb9@byu.net>
55164
55165         * doc/functions.texi (Function Portability): *printf functions on
55166         Cygwin now understand all POSIX size specifiers.
55167
55168 2006-11-14  Bruno Haible  <bruno@clisp.org>
55169
55170         * modules/c-ctype (License): Change to LGPL.
55171
55172 2006-11-12  Bruno Haible  <bruno@clisp.org>
55173
55174         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55175         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55176         for GNOME libraries, for which the include files are installed in
55177         subdirectories of $prefix/include.
55178
55179 2006-11-12  Bruno Haible  <bruno@clisp.org>
55180
55181         * m4/lib-link.m4: Require at least autoconf-2.54.
55182         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55183         name to underscores for the --with option.
55184
55185 2006-11-13  Bruno Haible  <bruno@clisp.org>
55186
55187         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55188         the tests directory.
55189         Reported by Ralf Wildenhues.
55190
55191 2006-11-13  Bruno Haible  <bruno@clisp.org>
55192
55193         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55194         (func_emit_initmacro_end): Undo the override here.
55195         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55196         Works around the famous automake error in coreutils.
55197
55198 2006-11-13  Eric Blake  <ebb9@byu.net>
55199
55200         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55201         element, not its node.
55202
55203 2006-11-12  Bruno Haible  <bruno@clisp.org>
55204
55205         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55206         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55207
55208 2006-11-12  Bruno Haible  <bruno@clisp.org>
55209
55210         * gnulib-tool: New option --local-symlink.
55211         (func_usage): Document it.
55212         (lsymbolic): New variable.
55213         (func_import, func_create_testdir): If --symlink was not specified,
55214         test whether --local-symlink was specified and the file comes from
55215         the local_gnulib_dir.
55216
55217 2006-11-12  Bruno Haible  <bruno@clisp.org>
55218
55219         * gnulib-tool (func_ln): New function.
55220         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55221
55222 2006-11-12  Bruno Haible  <bruno@clisp.org>
55223
55224         Finish support for source files in subdirectories.
55225         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55226         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55227         AUTOMAKE_OPTIONS.
55228         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55229
55230 2006-11-12  Bruno Haible  <bruno@clisp.org>
55231
55232         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55233         EXTRA_lib_SOURCES augmentation.
55234         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55235
55236 2006-11-12  Jim Meyering  <jim@meyering.net>
55237
55238         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55239         file descriptors.  This also averts a failure on systems with
55240         native openat support when a traversed directory lacks "x" access.
55241         * lib/fts_.h: Include "i-ring.h"
55242         (struct FTS) [fts_fd_ring]: New member.
55243         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55244         (FCHDIR): Add parentheses.
55245         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55246         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55247         When descending, rather than simply closing the previous
55248         fts_cwd_fd value, push that file descriptor onto the ring.
55249         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55250         (fts_open): Initialize the new fd_ring member.
55251         (fts_close): Clear the ring.
55252         (fts_safe_changedir): When possible, use our new fd_ring to skip
55253         the diropen and fstat and dev/ino comparison that would normally
55254         accompany a virtual `chdir ("..")'.
55255
55256         * modules/fts (Depends-on): Add i-ring.
55257         * modules/i-ring: New module.
55258         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55259         * m4/i-ring.m4: New file.
55260
55261 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55262
55263         * gnulib-tool (func_create_testdir): Fix replacement of
55264         `build-aux' in configure.ac.  Run autotools in gltests
55265         subdirectory.
55266         (func_create_testdir, func_create_megatestdir, test): There is
55267         no need for '--force' in most autotool invocations in a new
55268         tree.  Actually fail the whole test if any of the tools, or the
55269         configure or make stages fail.
55270
55271         Sync from Automake.
55272         * build-aux/gnupload: Revert last change.  Add pointer to upload
55273         instructions of the GNU Maintenance Instructions.
55274         Suggestion by Karl Berry.
55275
55276 2006-11-10  Jim Meyering  <jim@meyering.net>
55277
55278         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55279
55280 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55281
55282         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55283         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55284         (bind_textdomain_codeset) [! ENABLE_NLS]:
55285         Evaluate all the arguments.  That way, callers get compatible behavior
55286         if the arguments have side effects.  Also, it avoids some GCC
55287         diagnostics in some cases; Joel E. Denny reported problems when Bison
55288         was configured with --enable-gcc-warnigs.
55289
55290 2006-11-10  Jim Meyering  <jim@meyering.net>
55291
55292         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55293         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55294         account.
55295
55296 2006-11-10  Jim Meyering  <jim@meyering.net>
55297
55298         * modules/inline: New file/module.
55299         * modules/xalloc (Files): Remove m4/inline.m4.
55300         (Depends-on): Add inline, instead.
55301         * modules/oset: Likewise.
55302         * modules/list: Likewise.
55303
55304 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55305
55306         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55307         Problem reported by Matthew Woehlke.
55308
55309 2006-11-09  Bruno Haible  <bruno@clisp.org>
55310
55311         * lib/tempname.c (gen_tempname): Remove variant that invokes
55312         __gen_tempname.
55313         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55314         __gen_tempname.
55315
55316 2006-11-08  Bruno Haible  <bruno@clisp.org>
55317
55318         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55319         to 'yes' instead of 'cross-compiling'.
55320
55321 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55322
55323         * lib/quotearg.h (quotearg_free): New decl.
55324         * lib/quotearg.c (quotearg_free): New function.
55325         (slot0, nslots, slotvec0, slotvec):
55326         Now file-scope so that quotearg_free can get at them.
55327
55328 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55329
55330         Sync from Automake.
55331         * build-aux/gnupload: Add missing 'gnu' to example URL.
55332         Report by Karl Berry.
55333
55334 2006-11-08  Bruno Haible  <bruno@clisp.org>
55335
55336         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55337         Suggested by Paul Eggert.
55338
55339 2006-11-08  Jim Meyering  <jim@meyering.net>
55340
55341         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55342         It's already included if !_LIBC.
55343         (fts_safe_changedir): Add a comment.
55344
55345 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55346
55347         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55348         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55349         Matthew Woehlke.
55350
55351         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55352         definitions up, to avoid colliding with change below.
55353         (static_inline) [HAVE_INLINE]: New macro.
55354         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55355         Provide extern decls when !HAVE_INLINE.  Do not define unless
55356         static_inline is defined, either by us or by xmalloc.c.  Use
55357         static_inline rather than static inline.
55358         (XCALLOC): Optimize sizeof(T) = 1 case.
55359         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55360
55361 2006-11-07  Bruno Haible  <bruno@clisp.org>
55362
55363         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55364         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55365         AC_C_INLINE.
55366         * modules/xalloc (Files): Add m4/inline.m4.
55367
55368 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55369
55370         * README: Fix typo.
55371         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55372         (Miscellanous Notes): ...from this.
55373
55374 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55375
55376         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55377         Mention that offsetof should be used instead of sizeof.
55378         From Bruno Haible.
55379
55380 2006-11-07  Bruno Haible  <bruno@clisp.org>
55381
55382         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55383
55384 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55385
55386         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55387         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55388         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55389         (gl_tree_add_before, gl_tree_add_after):
55390         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55391         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55392         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55393         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55394         (gl_linked_add_after, gl_linked_add_at): Likewise.
55395         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55396         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55397         (gl_tree_add_before, gl_tree_add_after): Likewise.
55398         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55399         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55400         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55401
55402 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55403
55404         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55405
55406 2006-11-06  Bruno Haible  <bruno@clisp.org>
55407
55408         * m4/inline.m4: New file.
55409         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55410         * modules/list (Files): Add m4/inline.m4.
55411         * modules/oset (Files): Likewise.
55412
55413 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55414
55415         * lib/idcache.c: Include <stddef.h>, for offsetof.
55416         (struct userid.name): Change from char * to a flexible array member.
55417         All uses changed.
55418         * modules/idcache (Depends-on): Add flexmember.
55419
55420         * MODULES.html.sh (Core language properties): New module flexmember.
55421         * modules/flexmember, m4/flexmember.m4: New files.
55422
55423         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55424         inline functions that are identical with the old xnmalloc_inline,
55425         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55426         that we can avoid some unnecessary integer multiplications and
55427         divisions in the common case where the element size is known at
55428         compile time.
55429         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55430         needed.
55431         (xnboundedmalloc): Remove.
55432         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55433         arguments, for consistency with rest of this header.
55434         (xcharalloc): Rewrite using XNMALLOC.
55435         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55436         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55437         versions have been moved to lib/xalloc.h and renamed to be the
55438         non-*_inline versions.
55439         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55440         and xnrealloc functions, since those functions are now inline and
55441         now call us.
55442         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55443         renaming described above.
55444         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55445         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55446         captures the dependency in AC_C_INLINE.
55447
55448         New module canonicalize-lgpl, proposed by Charles Wilson in
55449         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55450         with a few small changes afterwards.
55451         * MODULES.html.sh (File system functions): New module
55452         canonicalize-lgpl.
55453         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55454         and canonicalize_file_name.
55455         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55456         * modules/canonicalize-lgpl: New files.
55457
55458 2006-11-05  Bruno Haible  <bruno@clisp.org>
55459
55460         * gnulib-tool (func_import, func_create_testdir): Create directories
55461         also for files in subdirectories of lib/.
55462
55463 2006-11-05  Bruno Haible  <bruno@clisp.org>
55464
55465         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
55466         ANSI C compliant.
55467
55468 2006-11-03  Bruno Haible  <bruno@clisp.org>
55469
55470         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55471         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
55472         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
55473         (xnboundedmalloc): New inline function.
55474         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
55475         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
55476         xmalloc.
55477         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
55478         xmalloc.
55479         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
55480         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
55481         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
55482         xmalloc.
55483         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55484         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
55485         xmalloc.
55486         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
55487         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55488         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
55489         xmalloc.
55490         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55491         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
55492         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55493         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
55494         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
55495         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
55496         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
55497
55498 2006-11-03  Bruno Haible  <bruno@clisp.org>
55499
55500         * lib/c-ctype.h [C++]: Define functions without name mangling.
55501         * lib/fwriteerror.h [C++]: Likewise.
55502         * lib/gcd.h [C++]: Likewise.
55503         * lib/linebreak.h [C++]: Likewise.
55504
55505 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55506
55507         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
55508         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
55509         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
55510         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55511         Check for functions and headers just once.
55512         Check for declaration of canonicalize_file_name.
55513         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
55514
55515 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55516
55517         * gnulib-tool (func_import): Fix typo in actioncmd.
55518
55519 2006-11-02  Bruno Haible  <bruno@clisp.org>
55520
55521         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
55522         newline sequence in the Makefile.am snippet as a space, like "make"
55523         does.
55524         Reported by Roger Persson <perrog@gmail.com>.
55525
55526 2006-11-01  Bruno Haible  <bruno@clisp.org>
55527
55528         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
55529         already declared in <string.h>.
55530         * lib/strcase.h (strncasecmp): Don't declare it if yes.
55531
55532 2006-11-01  Bruno Haible  <bruno@clisp.org>
55533
55534         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
55535         * lib/strcase.h: Include <string.h>.
55536         (strcasecmp): Define to rpl_strcasecmp here.
55537
55538 2006-11-01  Bruno Haible  <bruno@clisp.org>
55539
55540         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
55541
55542 2006-11-01  Eric Blake  <ebb9@byu.net>
55543
55544         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
55545
55546         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
55547
55548 2006-10-29  Bruno Haible  <bruno@clisp.org>
55549
55550         Make it compile in C++ mode.
55551         * lib/full-write.c (full_rw): Add a cast.
55552
55553 2006-11-01  Bruno Haible  <bruno@clisp.org>
55554
55555         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
55556         be POSIX compliant.
55557         Reported by Roger Persson <perrog@gmail.com>.
55558
55559 2006-11-01  Eric Blake  <ebb9@byu.net>
55560
55561         * lib/getopt_.h: Fix comments.
55562
55563 2006-10-31  Eric Blake  <ebb9@byu.net>
55564
55565         * modules/tmpdir (Depends-on): Add sys_stat.
55566         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
55567         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
55568         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
55569         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
55570         tempname.
55571
55572 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
55573
55574         Avoid some C++ diagnostics reported by Bruno Haible.
55575         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
55576         xmalloc.
55577         (quotearg_alloc): Use xcharalloc rather than xmalloc.
55578         (struct slotvec): Move to top level.
55579         (quotearg_n_options): Rewrite to avoid xmalloc.
55580         * lib/xalloc.h (xcharalloc): New function.
55581         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
55582         [defined __cplusplus]: Add function template that provides result
55583         type propagation.  This part of the change is from Bruno Haible.
55584
55585 2006-10-29  Bruno Haible  <bruno@clisp.org>
55586
55587         Make it compile in C++ mode.
55588         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
55589         * lib/strnlen1.c (strnlen1): Cast memchr result.
55590         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
55591         * lib/clean-temp.c (string_equals, string_hash): Add casts.
55592         (create_temp_dir): Rename local variable 'template'.
55593         (compile_csharp_using_sscli): Add cast.
55594         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
55595         * lib/findprog.c (find_in_path): Likewise.
55596         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
55597         * lib/wait-process.c (register_slave_subprocess): Likewise.
55598
55599 2006-10-22  Bruno Haible  <bruno@clisp.org>
55600
55601         * modules/tsearch: New file.
55602         * lib/tsearch.h: New file.
55603         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
55604         * m4/tsearch.m4: New file.
55605         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
55606
55607 2006-10-29  Eric Blake  <ebb9@byu.net>
55608
55609         * lib/arcfour.c: Assume config.h.
55610         * lib/arctwo.c: Likewise.
55611         * lib/base64.c: Likewise.
55612         * lib/check-version.c: Likewise.
55613         * lib/crc.c: Likewise.
55614         * lib/des.c: Likewise.
55615         * lib/gc-gnulib.c: Likewise.
55616         * lib/gc-libgcrypt.c: Likewise.
55617         * lib/gc-pbkdf2-sha1.c: Likewise.
55618         * lib/getaddrinfo.c: Likewise.
55619         * lib/getdelim.c: Likewise.
55620         * lib/getline.c: Likewise.
55621         * lib/hmac-md5.c: Likewise.
55622         * lib/hmac-sha1.c: Likewise.
55623         * lib/iconvme.c: Likewise.
55624         * lib/md2.c: Likewise.
55625         * lib/md4.c: Likewise.
55626         * lib/memxor.c: Likewise.
55627         * lib/read-file.c: Likewise.
55628         * lib/readline.c: Likewise.
55629         * lib/rijndael-alg-fst.c: Likewise.
55630         * lib/rijndael-api-fst.c: Likewise.
55631         * lib/xgetdomainname.c: Likewise.
55632
55633 2006-10-28  Eric Blake  <ebb9@byu.net>
55634
55635         * lib/xstrndup.c: Assume config.h.
55636
55637 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55638
55639         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
55640         stat-macros.h is now for our own macros, whereas stat_h is for
55641         macros in the <sys/stat.h> name space.
55642         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
55643         (STAT_MACROS_H): Remove.
55644         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
55645         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
55646         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
55647         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
55648         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
55649         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
55650         Move these macros to ...
55651         * lib/stat_.h: here.  Don't include stat-macros.h.
55652         * lib/canonicalize.c: Don't include stat-macros.h.
55653         * lib/chown.c: Likewise.
55654         * lib/euidaccess.c: Likewise.
55655         * lib/file-type.c: Likewise.
55656         * lib/filemode.c: Likewise.
55657         * lib/glob.c: Likewise.
55658         * lib/isapipe.c: Likewise.
55659         * lib/lchown.c: Likewise.
55660         * lib/lstat.c: Likewise.
55661         * lib/mkdir-p.c: Likewise.
55662         * lib/rmdir.c: Likewise.
55663         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
55664         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
55665         unless mkdir isn't declared, to speed up 'configure'.
55666         Always create sys/stat.h, since it's unlikely any real sys/stat.h
55667         would define all the S_* symbols.
55668         * modules/canonicalize (Depends-on):
55669         Depend on sys_stat, not stat-macros.
55670         * modules/chown: Likewise.
55671         * modules/euidaccess: Likewise.
55672         * modules/filemode: Likewise.
55673         * modules/file-type: Likewise.
55674         * modules/glob: Likewise.
55675         * modules/isapipe: Likewise.
55676         * modules/lchown: Likewise.
55677         * modules/lstat: Likewise.
55678         * modules/mkancesdirs: Likewise.
55679         * modules/rmdir: Likewise.
55680         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
55681         * modules/modechange: Likewise.
55682         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
55683         (configure.ac): Remove gl_STAT_MACROS.
55684         * modules/sys_stat (Depends-on): Remove stat-macros.
55685
55686 2006-10-27  Bruno Haible  <bruno@clisp.org>
55687
55688         * m4/signed.m4: Remove file.
55689         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
55690         invocation.
55691         * modules/vasnprintf (Files): Remove m4/signed.m4.
55692
55693 2006-10-27  Bruno Haible  <bruno@clisp.org>
55694
55695         Update to GNU gettext 0.16.
55696         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
55697         m4/inttypes-h.m4, m4/signed.m4.
55698         * m4/gettext.m4: Update to GNU gettext 0.16.
55699         * m4/intl.m4: New file, from GNU gettext.
55700         * m4/intldir.m4: New file, from GNU gettext.
55701         * config/srclist.txt: Update
55702
55703 2006-10-27  Eric Blake  <ebb9@byu.net>
55704
55705         * MODULES.html.sh: Document tempname.
55706         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
55707         dependencies.
55708         (Files): Move lib/tempname.c...
55709         * modules/tempname: ...to this new module.
55710         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
55711         (gl_PREREQ_TEMPNAME): Move...
55712         * m4/tempname.m4: ...to this new file.
55713         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
55714         * modules/sys_stat (Depends-on): Add stat-macros.
55715         * lib/stat_.h (includes): Pick up stat macros.
55716         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
55717         if stat macros are broken.
55718         * lib/tempname.c (includes): No need to include "stat-macros.h".
55719         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
55720         (direxists, __path_search) [!_LIBC]: Don't compile these in
55721         gnulib; the tmpdir module covers that.
55722         * lib/tempname.h: New file.
55723
55724 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55725
55726         * COPYING: Explain how gnulib-tool converts licence headers.
55727         Almost all wording by Eric Blake.
55728
55729 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
55730
55731         * lib/mbchar.h (is_basic_table): Make read-only.
55732         * lib/mbchar.c (is_basic_table): Likewise.
55733         Reported by John Darrington.
55734
55735 2006-10-25  Bruno Haible  <bruno@clisp.org>
55736
55737         * lib/progname.h (set_program_name): Undefine before defining.
55738
55739 2006-10-25  Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
55742         false for non-gcc C++ compilers.
55743         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55744
55745 2006-10-24  Bruno Haible  <bruno@clisp.org>
55746
55747         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
55748         iconv implementations like Irix iconv.
55749
55750 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55751
55752         * modules/vararrays: New file.
55753         * m4/vararrays.m4: New file, taken from diffutils.
55754         * MODULES.html.sh: New module vararrays.
55755
55756 2006-10-24  Karl Berry  <karl@gnu.org>
55757
55758         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
55759         Don't call GNU Unix.
55760
55761 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55762
55763         * users.txt: Add Libtool.
55764
55765         Sync from Libtool:
55766
55767         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55768
55769         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
55770         to gnulib's policy of including config.h unconditionally.
55771
55772 2006-10-24  Bruno Haible  <bruno@clisp.org>
55773
55774         * modules/wcwidth (Files): Add m4/wint_t.m4.
55775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
55776         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
55777
55778 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55779
55780         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
55781         to pacify GCC with some -W flags enabled.  Problem reported by
55782         Bruno Haible.
55783
55784 2006-10-24  Jim Meyering  <jim@meyering.net>
55785
55786         * MODULES.html.sh: Remove uinttostr.  It's not a module.
55787         Reported by Karl Berry.
55788
55789 2006-10-23  Bruno Haible  <bruno@clisp.org>
55790
55791         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
55792
55793 2006-10-24  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/gl_list.h: Use C comment style, not C++ comment style.
55796
55797 2006-10-23  Eric Blake  <ebb9@byu.net>
55798
55799         * lib/getaddrinfo.c (includes): Add missing include.
55800
55801 2006-10-23  Bruno Haible  <bruno@clisp.org>
55802             Paul Eggert  <eggert@cs.ucla.edu>
55803
55804         Ability to rename obstack_free.
55805         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55806         obstack_free.
55807         (obstack_free): Invoke the __obstack_free macro.
55808         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55809
55810 2006-10-23  Bruno Haible  <bruno@clisp.org>
55811             Paul Eggert  <eggert@cs.ucla.edu>
55812
55813         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55814         __argc, __argv from the declaration. (They are defined as macros on
55815         mingw.)
55816
55817 2006-10-22  Bruno Haible  <bruno@clisp.org>
55818
55819         * doc/gnulib-intro.texi: New file.
55820         * doc/gnulib.texi: Include it.
55821
55822 2006-10-21  Bruno Haible  <bruno@clisp.org>
55823
55824         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55825         "Introduction", "Miscellanous Notes", "Particular Modules".
55826
55827 2006-10-21  Bruno Haible  <bruno@clisp.org>
55828
55829         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55830         Change mostlyclean-local rule to avoid sh syntax error from bash
55831         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55832
55833 2006-10-23  Jim Meyering  <jim@meyering.net>
55834
55835         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55836         in place of snprintf.
55837
55838         * modules/inttostr (Files): Add lib/uinttostr.c.
55839         * lib/uinttostr.c (inttostr): New file/function.
55840         * lib/inttostr.h (uinttostr): Declare.
55841         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55842         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55843         Add uinttostr.
55844         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55845
55846 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55847
55848         * lib/canonicalize.c (ELOOP): Define if not already defined.
55849         Problem reported by Bruno Haible in
55850         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55851
55852 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55853
55854         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55855         Problem reported by Perry Smith and Ville Laurikari.
55856
55857         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55858         uses.
55859
55860 2006-10-19  Bruno Haible  <bruno@clisp.org>
55861
55862         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55863         for mingw.
55864
55865 2006-10-19  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55868         Needed for mingw.
55869
55870 2006-10-19  Bruno Haible  <bruno@clisp.org>
55871
55872         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55873
55874 2006-10-19  Bruno Haible  <bruno@clisp.org>
55875
55876         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55877         it.
55878
55879 2006-10-19  Bruno Haible  <bruno@clisp.org>
55880
55881         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55882         invocation.
55883
55884 2006-10-19  Bruno Haible  <bruno@clisp.org>
55885
55886         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55887         mountlist by default.
55888
55889 2006-10-16  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/c-strstr.c: Include c-strstr.h.
55892
55893 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55894
55895         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55896         in a slash.
55897
55898 2006-10-18  Bruno Haible  <bruno@clisp.org>
55899
55900         * lib/lock.h [C++]: Wrap definitions in extern "C".
55901
55902 2006-10-18  Bruno Haible  <bruno@clisp.org>
55903
55904         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55905         gl_LIBOBJS list.
55906
55907 2006-10-18  Bruno Haible  <bruno@clisp.org>
55908
55909         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55910
55911 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55912
55913         * lib/xstrtol.h: Include gettext.h.
55914         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55915         Problem reported by Eric Blake.
55916         * modules/xstrtol (Depends-on): Add gettext-h.
55917
55918 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55919
55920         * lib/strftime.c (advance): New macro.
55921         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55922         incomplete type, so you can't add 0 to it.  Problem and patch
55923         reported by Eelco Dolstra for dietlibc.
55924
55925 2006-10-18  Jim Meyering  <jim@meyering.net>
55926
55927         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55928         type for a local, and rename it: s/up/user_proc/.
55929
55930 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55931
55932         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55933         READ_UTMP_USER_PROCESS.
55934         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55935
55936 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55937
55938         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55939         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55940
55941 2006-10-17  Eric Blake  <ebb9@byu.net>
55942
55943         * lib/sigprocmask.c (sigprocmask): Fix typo.
55944
55945         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55946
55947         * modules/clean-temp (Makefile.am): Don't add to make output...
55948         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55949         config.h.
55950
55951 2006-10-17  Bruno Haible  <bruno@clisp.org>
55952
55953         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55954         differently if DEFAULT_TEXT_DOMAIN is set.
55955
55956 2006-10-16  Bruno Haible  <bruno@clisp.org>
55957
55958         * lib/clean-temp.c: Include fwriteerror.h.
55959
55960 2006-10-16  Bruno Haible  <bruno@clisp.org>
55961
55962         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55963
55964 2006-10-16  Bruno Haible  <bruno@clisp.org>
55965
55966         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55967         * lib/sigprocmask.h: Include <sys/types.h>.
55968         (sigset_t): Use the system's definition if present.
55969
55970 2006-10-17  Eric Blake  <ebb9@byu.net>
55971
55972         * lib/xvasprintf.c (includes): Assume config.h.
55973         * lib/xasprintf.c (includes): Likewise.
55974
55975 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55976
55977         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55978         at least as wide as intmax_t.
55979
55980 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55981
55982         (Imported from Automake.)
55983         * build-aux/gnupload: Update to version 1.1 of directive file.
55984
55985 2006-10-16  Eric Blake  <ebb9@byu.net>
55986
55987         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55988         match Automake 1.10a.
55989
55990 2006-10-14  Bruno Haible  <bruno@clisp.org>
55991
55992         * modules/sigprocmask: New file.
55993         * lib/sigprocmask.h: New file.
55994         * lib/sigprocmask.c: New file.
55995         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55996         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55997         request sigprocmask.o.
55998         (gl_PREREQ_SIGPROCMASK): New macro.
55999         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56000         (Depends-on): Add sigprocmask.
56001         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56002         gt_SIGNALBLOCKING. Test for 'raise' only once.
56003         * lib/fatal-signal.c: Include sigprocmask.h.
56004         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56005         unblock_fatal_signals): Define always.
56006         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56007         sigprocmask.
56008
56009 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56010
56011         Sync from Automake.
56012         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56013         which incorrectly sets the mode of an existing destination
56014         directory.  In some cases the unpatched install-sh could do the
56015         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56016         system.  We hope this is rare in practice, but it's clearly worth
56017         fixing.  Problem reported by Alex Unleashed in
56018         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56019         Also, don't bother to check for -m bugs unless we're using -m;
56020         suggested by Stepan Kasal.
56021
56022 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56023
56024         Sync from Automake.
56025         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56026         `-c' flag, so they appear at the same position as in %FASTDEP%
56027         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56028         which ignores unknown options only after the first non-option.
56029         Bug report against M4 by Nelson H. F. Beebe.
56030
56031 2006-10-13  Jim Meyering  <jim@meyering.net>
56032
56033         Fix a bug in yesterday's change.
56034         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56035         p->fts_statp->st_dev would be used uninitialized.
56036         Ensures that we always call fts_stat on the very first entry.
56037         Miklos Szeredi reported that find -xdev stopped working.
56038
56039 2006-10-12  Bruno Haible  <bruno@clisp.org>
56040
56041         * gnulib-tool (func_get_automake_snippet): Append an automatically
56042         computed EXTRA_DIST augmentation.
56043         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56044         * modules/alloca-opt (Makefile.am): Likewise.
56045         * modules/allocsa (Makefile.am): Likewise.
56046         * modules/arcfour (Makefile.am): Likewise.
56047         * modules/arctwo (Makefile.am): Likewise.
56048         * modules/argmatch (Makefile.am): Likewise.
56049         * modules/argz (Makefile.am): Likewise.
56050         * modules/atexit (Makefile.am): Likewise.
56051         * modules/backupfile (Makefile.am): Likewise.
56052         * modules/byteswap (Makefile.am): Likewise.
56053         * modules/c-strtod (Makefile.am): Likewise.
56054         * modules/c-strtold (Makefile.am): Likewise.
56055         * modules/calloc (Makefile.am): Likewise.
56056         * modules/canon-host (Makefile.am): Likewise.
56057         * modules/canonicalize (Makefile.am): Likewise.
56058         * modules/chdir-long (Makefile.am): Likewise.
56059         * modules/chdir-safer (Makefile.am): Likewise.
56060         * modules/check-version (Makefile.am): Likewise.
56061         * modules/chown (Makefile.am): Likewise.
56062         * modules/cloexec (Makefile.am): Likewise.
56063         * modules/close-stream (Makefile.am): Likewise.
56064         * modules/closeout (Makefile.am): Likewise.
56065         * modules/crc (Makefile.am): Likewise.
56066         * modules/csharpexec (Makefile.am): Likewise.
56067         * modules/cycle-check (Makefile.am): Likewise.
56068         * modules/des (Makefile.am): Likewise.
56069         * modules/dev-ino (Makefile.am): Likewise.
56070         * modules/dirfd (Makefile.am): Likewise.
56071         * modules/dirname (Makefile.am): Likewise.
56072         * modules/dup2 (Makefile.am): Likewise.
56073         * modules/eealloc (Makefile.am): Likewise.
56074         * modules/error (Makefile.am): Likewise.
56075         * modules/euidaccess (Makefile.am): Likewise.
56076         * modules/exclude (Makefile.am): Likewise.
56077         * modules/exitfail (Makefile.am): Likewise.
56078         * modules/fcntl-safer (Makefile.am): Likewise.
56079         * modules/fcntl (Makefile.am): Likewise.
56080         * modules/file-type (Makefile.am): Likewise.
56081         * modules/fileblocks (Makefile.am): Likewise.
56082         * modules/filemode (Makefile.am): Likewise.
56083         * modules/filenamecat (Makefile.am): Likewise.
56084         * modules/fnmatch (Makefile.am): Likewise.
56085         * modules/fopen-safer (Makefile.am): Likewise.
56086         * modules/fpending (Makefile.am): Likewise.
56087         * modules/fprintftime (Makefile.am): Likewise.
56088         * modules/free (Makefile.am): Likewise.
56089         * modules/fsusage (Makefile.am): Likewise.
56090         * modules/ftruncate (Makefile.am): Likewise.
56091         * modules/fts (Makefile.am): Likewise.
56092         * modules/gc-arcfour (Makefile.am): Likewise.
56093         * modules/gc-des (Makefile.am): Likewise.
56094         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56095         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56096         * modules/gc-md4 (Makefile.am): Likewise.
56097         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56098         * modules/gc-sha1 (Makefile.am): Likewise.
56099         * modules/gc (Makefile.am): Likewise.
56100         * modules/getaddrinfo (Makefile.am): Likewise.
56101         * modules/getcwd (Makefile.am): Likewise.
56102         * modules/getdelim (Makefile.am): Likewise.
56103         * modules/getdomainname (Makefile.am): Likewise.
56104         * modules/getgroups (Makefile.am): Likewise.
56105         * modules/gethostname (Makefile.am): Likewise.
56106         * modules/gethrxtime (Makefile.am): Likewise.
56107         * modules/getline (Makefile.am): Likewise.
56108         * modules/getloadavg (Makefile.am): Likewise.
56109         * modules/getlogin_r (Makefile.am): Likewise.
56110         * modules/getndelim2 (Makefile.am): Likewise.
56111         * modules/getopt (Makefile.am): Likewise.
56112         * modules/getpagesize (Makefile.am): Likewise.
56113         * modules/getpass-gnu (Makefile.am): Likewise.
56114         * modules/getpass (Makefile.am): Likewise.
56115         * modules/getsubopt (Makefile.am): Likewise.
56116         * modules/gettime (Makefile.am): Likewise.
56117         * modules/gettimeofday (Makefile.am): Likewise.
56118         * modules/getugroups (Makefile.am): Likewise.
56119         * modules/getusershell (Makefile.am): Likewise.
56120         * modules/glob (Makefile.am): Likewise.
56121         * modules/group-member (Makefile.am): Likewise.
56122         * modules/hard-locale (Makefile.am): Likewise.
56123         * modules/hash (Makefile.am): Likewise.
56124         * modules/hmac-md5 (Makefile.am): Likewise.
56125         * modules/hmac-sha1 (Makefile.am): Likewise.
56126         * modules/human (Makefile.am): Likewise.
56127         * modules/idcache (Makefile.am): Likewise.
56128         * modules/imaxabs (Makefile.am): Likewise.
56129         * modules/imaxdiv (Makefile.am): Likewise.
56130         * modules/inet_ntop (Makefile.am): Likewise.
56131         * modules/inet_pton (Makefile.am): Likewise.
56132         * modules/intprops (Makefile.am): Likewise.
56133         * modules/inttostr (Makefile.am): Likewise.
56134         * modules/inttypes (Makefile.am): Likewise.
56135         * modules/isapipe (Makefile.am): Likewise.
56136         * modules/javaversion (Makefile.am): Likewise.
56137         * modules/lchmod (Makefile.am): Likewise.
56138         * modules/lchown (Makefile.am): Likewise.
56139         * modules/localcharset (Makefile.am): Likewise.
56140         * modules/long-options (Makefile.am): Likewise.
56141         * modules/lstat (Makefile.am): Likewise.
56142         * modules/malloc (Makefile.am): Likewise.
56143         * modules/mathl (Makefile.am): Likewise.
56144         * modules/mbchar (Makefile.am): Likewise.
56145         * modules/md2 (Makefile.am): Likewise.
56146         * modules/md4 (Makefile.am): Likewise.
56147         * modules/md5 (Makefile.am): Likewise.
56148         * modules/memcasecmp (Makefile.am): Likewise.
56149         * modules/memchr (Makefile.am): Likewise.
56150         * modules/memcmp (Makefile.am): Likewise.
56151         * modules/memcoll (Makefile.am): Likewise.
56152         * modules/memcpy (Makefile.am): Likewise.
56153         * modules/memmem (Makefile.am): Likewise.
56154         * modules/memmove (Makefile.am): Likewise.
56155         * modules/mempcpy (Makefile.am): Likewise.
56156         * modules/memrchr (Makefile.am): Likewise.
56157         * modules/memset (Makefile.am): Likewise.
56158         * modules/memxor (Makefile.am): Likewise.
56159         * modules/mkancesdirs (Makefile.am): Likewise.
56160         * modules/mkdir-p (Makefile.am): Likewise.
56161         * modules/mkdir (Makefile.am): Likewise.
56162         * modules/mkdtemp (Makefile.am): Likewise.
56163         * modules/mkstemp (Makefile.am): Likewise.
56164         * modules/mktime (Makefile.am): Likewise.
56165         * modules/modechange (Makefile.am): Likewise.
56166         * modules/mountlist (Makefile.am): Likewise.
56167         * modules/nanosleep (Makefile.am): Likewise.
56168         * modules/obstack (Makefile.am): Likewise.
56169         * modules/openat (Makefile.am): Likewise.
56170         * modules/pagealign_alloc (Makefile.am): Likewise.
56171         * modules/pathmax (Makefile.am): Likewise.
56172         * modules/physmem (Makefile.am): Likewise.
56173         * modules/poll (Makefile.am): Likewise.
56174         * modules/posixtm (Makefile.am): Likewise.
56175         * modules/posixver (Makefile.am): Likewise.
56176         * modules/putenv (Makefile.am): Likewise.
56177         * modules/quote (Makefile.am): Likewise.
56178         * modules/quotearg (Makefile.am): Likewise.
56179         * modules/raise (Makefile.am): Likewise.
56180         * modules/read-file (Makefile.am): Likewise.
56181         * modules/readline (Makefile.am): Likewise.
56182         * modules/readlink (Makefile.am): Likewise.
56183         * modules/readtokens (Makefile.am): Likewise.
56184         * modules/readutmp (Makefile.am): Likewise.
56185         * modules/realloc (Makefile.am): Likewise.
56186         * modules/regex (Makefile.am): Likewise.
56187         * modules/rename-dest-slash (Makefile.am): Likewise.
56188         * modules/rename (Makefile.am): Likewise.
56189         * modules/rijndael (Makefile.am): Likewise.
56190         * modules/rmdir (Makefile.am): Likewise.
56191         * modules/rpmatch (Makefile.am): Likewise.
56192         * modules/safe-read (Makefile.am): Likewise.
56193         * modules/safe-write (Makefile.am): Likewise.
56194         * modules/same-inode (Makefile.am): Likewise.
56195         * modules/same (Makefile.am): Likewise.
56196         * modules/save-cwd (Makefile.am): Likewise.
56197         * modules/savedir (Makefile.am): Likewise.
56198         * modules/setenv (Makefile.am): Likewise.
56199         * modules/settime (Makefile.am): Likewise.
56200         * modules/sha1 (Makefile.am): Likewise.
56201         * modules/sig2str (Makefile.am): Likewise.
56202         * modules/snprintf (Makefile.am): Likewise.
56203         * modules/stat-macros (Makefile.am): Likewise.
56204         * modules/stat-time (Makefile.am): Likewise.
56205         * modules/stdbool (Makefile.am): Likewise.
56206         * modules/stdint (Makefile.am): Likewise.
56207         * modules/stdlib-safer (Makefile.am): Likewise.
56208         * modules/stpcpy (Makefile.am): Likewise.
56209         * modules/stpncpy (Makefile.am): Likewise.
56210         * modules/strcase (Makefile.am): Likewise.
56211         * modules/strcasestr (Makefile.am): Likewise.
56212         * modules/strchrnul (Makefile.am): Likewise.
56213         * modules/strcspn (Makefile.am): Likewise.
56214         * modules/strdup (Makefile.am): Likewise.
56215         * modules/strerror (Makefile.am): Likewise.
56216         * modules/strftime (Makefile.am): Likewise.
56217         * modules/strndup (Makefile.am): Likewise.
56218         * modules/strnlen (Makefile.am): Likewise.
56219         * modules/strpbrk (Makefile.am): Likewise.
56220         * modules/strsep (Makefile.am): Likewise.
56221         * modules/strstr (Makefile.am): Likewise.
56222         * modules/strtod (Makefile.am): Likewise.
56223         * modules/strtoimax (Makefile.am): Likewise.
56224         * modules/strtok_r (Makefile.am): Likewise.
56225         * modules/strtol (Makefile.am): Likewise.
56226         * modules/strtoll (Makefile.am): Likewise.
56227         * modules/strtoul (Makefile.am): Likewise.
56228         * modules/strtoull (Makefile.am): Likewise.
56229         * modules/strtoumax (Makefile.am): Likewise.
56230         * modules/strverscmp (Makefile.am): Likewise.
56231         * modules/sys_socket (Makefile.am): Likewise.
56232         * modules/sys_stat (Makefile.am): Likewise.
56233         * modules/sysexits (Makefile.am): Likewise.
56234         * modules/time_r (Makefile.am): Likewise.
56235         * modules/timegm (Makefile.am): Likewise.
56236         * modules/timespec (Makefile.am): Likewise.
56237         * modules/tmpfile-safer (Makefile.am): Likewise.
56238         * modules/trim (Makefile.am): Likewise.
56239         * modules/unistd-safer (Makefile.am): Likewise.
56240         * modules/unlinkdir (Makefile.am): Likewise.
56241         * modules/unlocked-io (Makefile.am): Likewise.
56242         * modules/userspec (Makefile.am): Likewise.
56243         * modules/utime (Makefile.am): Likewise.
56244         * modules/utimecmp (Makefile.am): Likewise.
56245         * modules/utimens (Makefile.am): Likewise.
56246         * modules/vasnprintf (Makefile.am): Likewise.
56247         * modules/vasprintf (Makefile.am): Likewise.
56248         * modules/vsnprintf (Makefile.am): Likewise.
56249         * modules/xalloc (Makefile.am): Likewise.
56250         * modules/xgetcwd (Makefile.am): Likewise.
56251         * modules/xnanosleep (Makefile.am): Likewise.
56252         * modules/xreadlink (Makefile.am): Likewise.
56253         * modules/xstrtod (Makefile.am): Likewise.
56254         * modules/xstrtol (Makefile.am): Likewise.
56255         * modules/xstrtold (Makefile.am): Likewise.
56256         * modules/yesno (Makefile.am): Likewise.
56257         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56258
56259 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56260
56261         * modules/error (Makefile.am): Distribute files through
56262         EXTRA_DIST, not lib_SOURCES.
56263
56264 2006-10-12  Eric Blake  <ebb9@byu.net>
56265
56266         * modules/error (Makefile.am): Distribute files in /lib.
56267         * modules/obstack (Makefile.am): Likewise.
56268
56269 2006-10-12  Bruno Haible  <bruno@clisp.org>
56270
56271         * modules/acl (Makefile.am): Distribute all files in lib/ through
56272         EXTRA_DIST.
56273         * modules/arcfour (Makefile.am): Likewise.
56274         * modules/arctwo (Makefile.am): Likewise.
56275         * modules/argmatch (Makefile.am): Likewise.
56276         * modules/argz (Makefile.am): Likewise.
56277         * modules/atexit (Makefile.am): Likewise.
56278         * modules/backupfile (Makefile.am): Likewise.
56279         * modules/c-strtod (Makefile.am): Likewise.
56280         * modules/c-strtold (Makefile.am): Likewise.
56281         * modules/calloc (Makefile.am): Likewise.
56282         * modules/canon-host (Makefile.am): Likewise.
56283         * modules/canonicalize (Makefile.am): Likewise.
56284         * modules/chdir-long (Makefile.am): Likewise.
56285         * modules/chdir-safer (Makefile.am): Likewise.
56286         * modules/check-version (Makefile.am): Likewise.
56287         * modules/chown (Makefile.am): Likewise.
56288         * modules/cloexec (Makefile.am): Likewise.
56289         * modules/close-stream (Makefile.am): Likewise.
56290         * modules/closeout (Makefile.am): Likewise.
56291         * modules/crc (Makefile.am): Likewise.
56292         * modules/cycle-check (Makefile.am): Likewise.
56293         * modules/des (Makefile.am): Likewise.
56294         * modules/dirfd (Makefile.am): Likewise.
56295         * modules/dirname (Makefile.am): Likewise.
56296         * modules/dup2 (Makefile.am): Likewise.
56297         * modules/euidaccess (Makefile.am): Likewise.
56298         * modules/exclude (Makefile.am): Likewise.
56299         * modules/exitfail (Makefile.am): Likewise.
56300         * modules/fcntl-safer (Makefile.am): Likewise.
56301         * modules/file-type (Makefile.am): Likewise.
56302         * modules/fileblocks (Makefile.am): Likewise.
56303         * modules/filemode (Makefile.am): Likewise.
56304         * modules/filenamecat (Makefile.am): Likewise.
56305         * modules/fnmatch (Makefile.am): Likewise.
56306         * modules/fopen-safer (Makefile.am): Likewise.
56307         * modules/fpending (Makefile.am): Likewise.
56308         * modules/fprintftime (Makefile.am): Likewise.
56309         * modules/free (Makefile.am): Likewise.
56310         * modules/fsusage (Makefile.am): Likewise.
56311         * modules/ftruncate (Makefile.am): Likewise.
56312         * modules/fts (Makefile.am): Likewise.
56313         * modules/gc (Makefile.am): Likewise.
56314         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56315         * modules/getaddrinfo (Makefile.am): Likewise.
56316         * modules/getcwd (Makefile.am): Likewise.
56317         * modules/getdelim (Makefile.am): Likewise.
56318         * modules/getdomainname (Makefile.am): Likewise.
56319         * modules/getgroups (Makefile.am): Likewise.
56320         * modules/gethostname (Makefile.am): Likewise.
56321         * modules/gethrxtime (Makefile.am): Likewise.
56322         * modules/getline (Makefile.am): Likewise.
56323         * modules/getloadavg (Makefile.am): Likewise.
56324         * modules/getlogin_r (Makefile.am): Likewise.
56325         * modules/getopt (Makefile.am): Likewise.
56326         * modules/getpass (Makefile.am): Likewise.
56327         * modules/getpass-gnu (Makefile.am): Likewise.
56328         * modules/getsubopt (Makefile.am): Likewise.
56329         * modules/gettime (Makefile.am): Likewise.
56330         * modules/gettimeofday (Makefile.am): Likewise.
56331         * modules/getugroups (Makefile.am): Likewise.
56332         * modules/getusershell (Makefile.am): Likewise.
56333         * modules/glob (Makefile.am): Likewise.
56334         * modules/group-member (Makefile.am): Likewise.
56335         * modules/hard-locale (Makefile.am): Likewise.
56336         * modules/hash (Makefile.am): Likewise.
56337         * modules/hmac-md5 (Makefile.am): Likewise.
56338         * modules/hmac-sha1 (Makefile.am): Likewise.
56339         * modules/human (Makefile.am): Likewise.
56340         * modules/idcache (Makefile.am): Likewise.
56341         * modules/imaxabs (Makefile.am): Likewise.
56342         * modules/imaxdiv (Makefile.am): Likewise.
56343         * modules/inet_ntop (Makefile.am): Likewise.
56344         * modules/inet_pton (Makefile.am): Likewise.
56345         * modules/inttostr (Makefile.am): Likewise.
56346         * modules/isapipe (Makefile.am): Likewise.
56347         * modules/lchown (Makefile.am): Likewise.
56348         * modules/long-options (Makefile.am): Likewise.
56349         * modules/lstat (Makefile.am): Likewise.
56350         * modules/malloc (Makefile.am): Likewise.
56351         * modules/mathl (Makefile.am): Likewise.
56352         * modules/mbchar (Makefile.am): Likewise.
56353         * modules/md2 (Makefile.am): Likewise.
56354         * modules/md4 (Makefile.am): Likewise.
56355         * modules/md5 (Makefile.am): Likewise.
56356         * modules/memcasecmp (Makefile.am): Likewise.
56357         * modules/memchr (Makefile.am): Likewise.
56358         * modules/memcmp (Makefile.am): Likewise.
56359         * modules/memcoll (Makefile.am): Likewise.
56360         * modules/memcpy (Makefile.am): Likewise.
56361         * modules/memmem (Makefile.am): Likewise.
56362         * modules/memmove (Makefile.am): Likewise.
56363         * modules/mempcpy (Makefile.am): Likewise.
56364         * modules/memrchr (Makefile.am): Likewise.
56365         * modules/memset (Makefile.am): Likewise.
56366         * modules/memxor (Makefile.am): Likewise.
56367         * modules/mkancesdirs (Makefile.am): Likewise.
56368         * modules/mkdir (Makefile.am): Likewise.
56369         * modules/mkdir-p (Makefile.am): Likewise.
56370         * modules/mkdtemp (Makefile.am): Likewise.
56371         * modules/mkstemp (Makefile.am): Likewise.
56372         * modules/mktime (Makefile.am): Likewise.
56373         * modules/modechange (Makefile.am): Likewise.
56374         * modules/mountlist (Makefile.am): Likewise.
56375         * modules/nanosleep (Makefile.am): Likewise.
56376         * modules/openat (Makefile.am): Likewise.
56377         * modules/pagealign_alloc (Makefile.am): Likewise.
56378         * modules/physmem (Makefile.am): Likewise.
56379         * modules/poll (Makefile.am): Likewise.
56380         * modules/posixtm (Makefile.am): Likewise.
56381         * modules/posixver (Makefile.am): Likewise.
56382         * modules/putenv (Makefile.am): Likewise.
56383         * modules/quote (Makefile.am): Likewise.
56384         * modules/quotearg (Makefile.am): Likewise.
56385         * modules/raise (Makefile.am): Likewise.
56386         * modules/read-file (Makefile.am): Likewise.
56387         * modules/readline (Makefile.am): Likewise.
56388         * modules/readlink (Makefile.am): Likewise.
56389         * modules/readtokens (Makefile.am): Likewise.
56390         * modules/readutmp (Makefile.am): Likewise.
56391         * modules/realloc (Makefile.am): Likewise.
56392         * modules/regex (Makefile.am): Likewise.
56393         * modules/rename (Makefile.am): Likewise.
56394         * modules/rename-dest-slash (Makefile.am): Likewise.
56395         * modules/rijndael (Makefile.am): Likewise.
56396         * modules/rmdir (Makefile.am): Likewise.
56397         * modules/rpmatch (Makefile.am): Likewise.
56398         * modules/safe-read (Makefile.am): Likewise.
56399         * modules/safe-write (Makefile.am): Likewise.
56400         * modules/same (Makefile.am): Likewise.
56401         * modules/save-cwd (Makefile.am): Likewise.
56402         * modules/savedir (Makefile.am): Likewise.
56403         * modules/setenv (Makefile.am): Likewise.
56404         * modules/settime (Makefile.am): Likewise.
56405         * modules/sha1 (Makefile.am): Likewise.
56406         * modules/sig2str (Makefile.am): Likewise.
56407         * modules/snprintf (Makefile.am): Likewise.
56408         * modules/stdlib-safer (Makefile.am): Likewise.
56409         * modules/stpcpy (Makefile.am): Likewise.
56410         * modules/stpncpy (Makefile.am): Likewise.
56411         * modules/strcase (Makefile.am): Likewise.
56412         * modules/strcasestr (Makefile.am): Likewise.
56413         * modules/strchrnul (Makefile.am): Likewise.
56414         * modules/strcspn (Makefile.am): Likewise.
56415         * modules/strdup (Makefile.am): Likewise.
56416         * modules/strerror (Makefile.am): Likewise.
56417         * modules/strftime (Makefile.am): Likewise.
56418         * modules/strndup (Makefile.am): Likewise.
56419         * modules/strnlen (Makefile.am): Likewise.
56420         * modules/strpbrk (Makefile.am): Likewise.
56421         * modules/strsep (Makefile.am): Likewise.
56422         * modules/strstr (Makefile.am): Likewise.
56423         * modules/strtod (Makefile.am): Likewise.
56424         * modules/strtoimax (Makefile.am): Likewise.
56425         * modules/strtok_r (Makefile.am): Likewise.
56426         * modules/strtol (Makefile.am): Likewise.
56427         * modules/strtoll (Makefile.am): Likewise.
56428         * modules/strtoul (Makefile.am): Likewise.
56429         * modules/strtoull (Makefile.am): Likewise.
56430         * modules/strtoumax (Makefile.am): Likewise.
56431         * modules/strverscmp (Makefile.am): Likewise.
56432         * modules/time_r (Makefile.am): Likewise.
56433         * modules/timegm (Makefile.am): Likewise.
56434         * modules/tmpfile-safer (Makefile.am): Likewise.
56435         * modules/unistd-safer (Makefile.am): Likewise.
56436         * modules/unlinkdir (Makefile.am): Likewise.
56437         * modules/userspec (Makefile.am): Likewise.
56438         * modules/utime (Makefile.am): Likewise.
56439         * modules/utimecmp (Makefile.am): Likewise.
56440         * modules/utimens (Makefile.am): Likewise.
56441         * modules/vasnprintf (Makefile.am): Likewise.
56442         * modules/vasprintf (Makefile.am): Likewise.
56443         * modules/vsnprintf (Makefile.am): Likewise.
56444         * modules/xalloc (Makefile.am): Likewise.
56445         * modules/xgetcwd (Makefile.am): Likewise.
56446         * modules/xnanosleep (Makefile.am): Likewise.
56447         * modules/xreadlink (Makefile.am): Likewise.
56448         * modules/xstrtod (Makefile.am): Likewise.
56449         * modules/xstrtol (Makefile.am): Likewise.
56450         * modules/xstrtold (Makefile.am): Likewise.
56451         * modules/yesno (Makefile.am): Likewise.
56452
56453 2006-10-12  Jim Meyering  <jim@meyering.net>
56454
56455         * m4/getloadavg.m4: Revert the change below.
56456
56457         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56458         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56459         fail with a symlink, which is what coreutils' ./bootstrap now
56460         creates by default.
56461
56462 2006-10-12  Bruno Haible  <bruno@clisp.org>
56463
56464         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
56465         mingw.
56466         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
56467         MSVC and mingw explicitly.
56468
56469 2006-10-11  Simon Josefsson  <jas@extundo.com>
56470             Bruno Haible  <bruno@clisp.org>
56471
56472         Add support for multiple gnulib-tool invocations in the scope of a
56473         single configure.ac file.
56474         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
56475         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
56476         with the same contents as the _LIBADD variable.
56477         (func_emit_initmacro_start, func_emit_initmacro_end,
56478         func_emit_initmacro_done): New functions.
56479         (func_import, func_create_testdir): Invoke them. Allow the identifiers
56480         gl_LIBOBJS and gl_LTLIBOBJS.
56481
56482 2006-10-11  Bruno Haible  <bruno@clisp.org>
56483
56484         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
56485         (func_create_testdir): Don't create po/Makefile.am, don't invoke
56486         autoreconf. Instead, invoke autopoint explicitly but move back the
56487         *.m4 files from gnulib.
56488
56489 2006-10-11  Bruno Haible  <bruno@clisp.org>
56490
56491         * gnulib-tool (func_usage): Make module names after --create-testdir
56492         optional.
56493         (func_create_testdir): If no module was specified, use nearly all
56494         modules.
56495
56496 2006-10-12  Jim Meyering  <jim@meyering.net>
56497
56498         Big performance improvement for fts-based tools that use FTS_NOSTAT.
56499         Avoid spurious inode-mismatch problems on non-POSIX file systems.
56500         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
56501         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
56502         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
56503         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
56504         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
56505         (fts_set_stat_required): New function.
56506         (fts_open): Defer the calls to fts_stat, if possible or requested.
56507         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
56508         into fts_stat itself.
56509         (fts_read): Perform any required (deferred) fts_stat call.
56510         (fts_build): Likewise, for the directory we're about to open and read.
56511         In the readdir loop, carefully decide whether each entry will require
56512         an eventual call to fts_stat, using dirent.d_type info if available.
56513         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
56514         a command line argument into this function.  Update all callers.
56515         Map a return value of FTS_DOT to FTS_D for a command line argument.
56516         * modules/fts (Depends-on): Add d-type.  Alphabetize.
56517         Thanks to Miklos Szeredi for his tenacity and for the initial
56518         bug report about "find" failing on a FUSE-based file system.
56519
56520         * lib/fts.c (fts_open): Use consistent indentation.
56521
56522 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56523
56524         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
56525         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
56526         reported by Jim Meyering.  All uses of cache variables renamed
56527         to match Autoconf's.
56528         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
56529         the other one.
56530
56531         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56532         Fix misspelling in diagnostic.
56533
56534 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56535
56536         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
56537         defined.  Problem reported by Matthew Woehlke.
56538
56539         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
56540         Add support for Tandem NonStop R series.
56541         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
56542         Use new macro.
56543
56544         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
56545         (has_trailing_slash): Omit size arg; all callers changed.
56546         Omit 'inline', since it doesn't help performance and we'd
56547         need to configure it.
56548         Don't count //, ///, etc. as having a trailing slash.
56549         As a side effect, this removes a C99ism reported by Matthew Woehlke.
56550         (rpl_rename_dest_slash): On failure, use rename's errno rather
56551         than (in some cases) an incorrect or junk errno.
56552         Simplify code by removing need to compute length; this does
56553         cause it to make two passes instead of one over the file name,
56554         but it's worth it.
56555
56556         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
56557         change, since Autoconf's version may no longer be appropriate now
56558         that we are using CVS Autoconf's version.  Add support for Tandem.
56559
56560 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56561             Bruno Haible  <bruno@clisp.org>
56562
56563         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
56564         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
56565         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
56566         gl_AC_TYPE_LONG_LONG.
56567
56568         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
56569         instead of HAVE_LONG_LONG.
56570         * lib/printf-args.c (printf_fetchargs): Likewise.
56571         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
56572         * lib/vasnprintf.c (VASNPRINTF): Likewise.
56573         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
56574         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
56575         gl_AC_TYPE_LONG_LONG.
56576
56577 2006-10-11  Bruno Haible  <bruno@clisp.org>
56578
56579         * m4/longlong.m4: Add comments.
56580         * m4/ulonglong.m4: Likewise.
56581
56582 2006-10-10  Bruno Haible  <bruno@clisp.org>
56583
56584         Make it possible to #define stpcpy, strdup to aliases.
56585         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
56586         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
56587
56588 2006-10-10  Bruno Haible  <bruno@clisp.org>
56589
56590         Make it possible to #define gcd to an alias.
56591         * lib/gcd.c: Include config.h.
56592
56593 2006-10-10  Bruno Haible  <bruno@clisp.org>
56594
56595         Make it possible to #define c_isascii to an alias.
56596         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
56597         defined. Undefine the macros before defining them, to avoid gcc
56598         warnings.
56599         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
56600         define NO_C_CTYPE_MACROS early.
56601
56602 2006-10-10  Bruno Haible  <bruno@clisp.org>
56603
56604         Make it possible to #define set_program_name to an alias.
56605         * lib/progname.c: Don't undefine set_program_name; instead, undefine
56606         ENABLE_RELOCATABLE early.
56607
56608 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56609
56610         Port to Tandem NSK OSS, which has 64-bit signed int but at most
56611         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
56612         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
56613         More generally, don't assume that 64-bit signed int is available
56614         if unsigned int is, and vice versa.
56615         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
56616         unsigned symbols, not on their signed counterparts.
56617         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
56618         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
56619         (UINT64_C, UINTMAX_C):
56620         Likewise.
56621         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
56622         unsigned counterparts.
56623         (Have_long_long, Unsigned): New macros.
56624         (Int): Renamed from INT.
56625         (strtoimax): Use the new macros.
56626         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
56627         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
56628         * modules/inttypes (inttypes.h): Substitute
56629         HAVE_UNSIGNED_LONG_LONG_INT.
56630         * modules/stdint (stdint.h): Likewise.
56631         (Files): Add m4/ulonglong.m4.
56632
56633 2006-10-10  Bruno Haible  <bruno@clisp.org>
56634
56635         Fix a gcc -Wshadow warning.
56636         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
56637         to 'bucket'.
56638         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
56639         gl_linked_indexof_from_to): Likewise.
56640         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
56641         Likewise.
56642         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
56643         Likewise.
56644         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
56645         Reported by Eric Blake.
56646
56647 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
56648
56649         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
56650         for NetBSD.  Problem reported by Bruno Haible.
56651
56652 2006-10-09  Jim Meyering  <jim@meyering.net>
56653
56654         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
56655         Patch from Bruno Haible.
56656
56657 2006-10-09  Jim Meyering  <jim@meyering.net>
56658
56659         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
56660         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
56661         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
56662
56663 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56664
56665         Don't include <config.h> twice; this doesn't work in some cases,
56666         e.g., when config.h has "#define intmax_t long long int" and
56667         we include <config.h>, <inttypes.h>, <config.h> in that order.
56668         Problem reported by Matthew Woehlke in:
56669         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
56670         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
56671         * lib/fts-cycle.c: Don't include config.h.
56672         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
56673         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
56674         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
56675         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
56676         inttypes.h.
56677         * lib/xstrtoumax.c: Likewise.
56678         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
56679         __strtol and the like, so that this module is more like its siblings.
56680         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
56681         Remove; no longer needed now that we assume gnulib inttypes.h.
56682
56683 2006-10-08  Bruno Haible  <bruno@clisp.org>
56684
56685         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
56686         option.
56687
56688 2006-10-07  Jim Meyering  <jim@meyering.net>
56689
56690         * modules/inttypes (inttypes.h): Revert what seems to have been
56691         an inadvertent part of today's change: use "|", not "/" in the
56692         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
56693
56694 2006-10-07  Bruno Haible  <bruno@clisp.org>
56695
56696         * modules/sublist: New file.
56697
56698 2006-10-07  Bruno Haible  <bruno@clisp.org>
56699
56700         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
56701         * modules/argz (argz.h): Likewise.
56702         * modules/arpa_inet (arpa/inet.h): Likewise.
56703         * modules/byteswap (byteswap.h): Likewise.
56704         * modules/configmake (configmake.h): Likewise.
56705         * modules/fcntl (fcntl.h): Likewise.
56706         * modules/fnmatch (fnmatch.h): Likewise.
56707         * modules/getopt (getopt.h): Likewise.
56708         * modules/glob (glob.h): Likewise.
56709         * modules/inttypes (inttypes.h): Likewise.
56710         * modules/netinet_in (netinet/in.h): Likewise.
56711         * modules/poll (poll.h): Likewise.
56712         * modules/stdbool (stdbool.h): Likewise.
56713         * modules/stdint (stdint.h): Likewise.
56714         * modules/sys_select (sys/select.h): Likewise.
56715         * modules/sys_socket (sys/socket.h): Likewise.
56716         * modules/sys_stat (sys/stat.h): Likewise.
56717         * modules/sysexits (sysexits.h): Likewise.
56718         * modules/unistd (unistd.h): Likewise.
56719         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56720         Add a "DO NOT EDIT" comment to the generated file.
56721         (func_import): Likewise for gnulib-comp.m4.
56722
56723 2006-10-07  Bruno Haible  <bruno@clisp.org>
56724
56725         * lib/gl_sublist.h: New file.
56726         * lib/gl_sublist.c: New file.
56727
56728 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56729
56730         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
56731         name (relative to the original working directory) and the file
56732         name component (relative to the temporary working directory).  All
56733         callers changed.
56734         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
56735         * lib/mkdir-p.c (make_dir_parents): Likewise.
56736         * lib/mkdir-p.h (make_dir_parents): Likewise.
56737
56738 2006-10-06  Eric Blake  <ebb9@byu.net>
56739
56740         Define several macros for use by the clean-temp module.
56741         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
56742         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
56743         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
56744
56745         * lib/clean-temp.h (close_stream_temp): New declaration.
56746         * lib/clean-temp.c (includes): Pull in headers according to what
56747         other modules are in use.
56748         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
56749
56750 2006-10-06  Bruno Haible  <bruno@clisp.org>
56751
56752         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
56753         instead of fopen, fwriteerror.
56754
56755 2006-10-06  Bruno Haible  <bruno@clisp.org>
56756
56757         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
56758         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
56759         int.
56760         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
56761         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
56762         Return an error indicator.
56763         Suggested by Eric Blake.
56764
56765 2006-10-06  Bruno Haible  <bruno@clisp.org>
56766
56767         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
56768         Reported by Eric Blake.
56769
56770 2006-10-06  Bruno Haible  <bruno@clisp.org>
56771
56772         * modules/closeout (Description): Mention stderr too.
56773
56774 2006-10-06  Bruno Haible  <bruno@clisp.org>
56775         and Paul Eggert  <eggert@cs.ucla.edu>
56776
56777         * lib/closeout.c (close_stdout): Also close stderr.
56778         * lib/closeout.h: Update comment.
56779
56780 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56781
56782         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
56783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
56784         * lib/dirchownmod.c: Include lchown.h.
56785         * lib/lchown.c: Don't include files that lchown.h now includes.
56786         Don't declare chown, since lchown.h now does that.
56787         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
56788         (lchown): Define to rpl_chown if lchown is declared but
56789         does not exist.  Declare using a prototype if lchown is not
56790         declared.  Add a copyright notice.
56791         * lib/mkstemp.h: Include <unistd.h>.
56792         * lib/openat.c: Include lchown.h.
56793
56794         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
56795         we now test for that separately.
56796         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56797         rather than O_NOFOLLOW, when testing whether it's possible to
56798         avoid a race condition reliably.
56799         * lib/savewd.c (savewd_chdir): Likewise.
56800
56801         Remove macros that are no longer needed now that stdint.h is
56802         reliable.
56803         * lib/fsusage.c (UINTMAX_MAX): Remove.
56804         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56805         * lib/utimecmp.c (SIZE_MAX): Remove.
56806
56807         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56808
56809         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56810         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56811         O_NOATIME works.
56812
56813 2006-10-05  Bruno Haible  <bruno@clisp.org>
56814
56815         * lib/gl_list.h (gl_sortedlist_search_from_to,
56816         gl_sortedlist_indexof_from_to): New declarations.
56817         (gl_list_implementation): New fields sortedlist_search_from_to,
56818         sortedlist_indexof_from_to.
56819         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56820         inline functions.
56821         * lib/gl_list.c (gl_sortedlist_search_from_to,
56822         gl_sortedlist_indexof_from_to): New functions.
56823         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56824         function.
56825         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56826         (gl_array_sortedlist_search_from_to): New function.
56827         (gl_array_list_implementation): Update.
56828         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56829         function.
56830         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56831         (gl_carray_sortedlist_search_from_to): New function.
56832         (gl_carray_list_implementation): Update.
56833         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56834         gl_linked_sortedlist_indexof_from_to): New functions.
56835         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56836         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56837         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56838         gl_tree_sortedlist_indexof_from_to): New functions.
56839         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56840         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56841         Update.
56842         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56843         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56844         Update.
56845
56846 2006-10-05  Bruno Haible  <bruno@clisp.org>
56847
56848         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56849         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56850         (struct gl_list_implementation): Add fields search_from_to,
56851         indexof_from_to. Remove fields search, indexof.
56852         (gl_list_search): Use the search_from_to method.
56853         (gl_list_search_from, gl_list_search_from_to): New functions.
56854         (gl_list_indexof): Use the indexof_from_to method.
56855         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56856         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56857         (gl_list_search_from, gl_list_search_from_to): New functions.
56858         (gl_list_indexof): Use the indexof_from_to method.
56859         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56860         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56861         gl_array_indexof. Add start_index, end_index arguments.
56862         (gl_array_search_from_to): Renamed from gl_array_search. Add
56863         start_index, end_index arguments.
56864         (gl_array_remove, gl_array_list_implementation): Update.
56865         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56866         gl_carray_indexof. Add start_index, end_index arguments.
56867         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56868         start_index, end_index arguments.
56869         (gl_carray_remove, gl_carray_list_implementation): Update.
56870         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56871         gl_linked_search. Add start_index, end_index arguments.
56872         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56873         start_index, end_index arguments.
56874         (gl_linked_remove): Update.
56875         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56876         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56877         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56878         field to 'size_t'.
56879         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56880         gl_tree_search. Add start_index, end_index arguments.
56881         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56882         start_index, end_index arguments.
56883         (gl_tree_remove): Update.
56884         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56885         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56886         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56887         function.
56888         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56889         gl_tree_search. Add start_index, end_index arguments.
56890         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56891         start_index, end_index arguments.
56892         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56893         Update.
56894         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56895
56896 2006-10-05  Bruno Haible  <bruno@clisp.org>
56897
56898         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56899
56900         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56901         fwriteerror_temp): New declarations.
56902         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56903         (descriptors): New variable.
56904         (cleanup): First, close the descriptors.
56905         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56906         fclose_temp, fwriteerror_temp): New functions.
56907
56908 2006-10-04  Jim Meyering  <jim@meyering.net>
56909
56910         * lib/fts.c (fts_open): Tiny comment change.
56911
56912 2006-10-04  Bruno Haible  <bruno@clisp.org>
56913
56914         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56915         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56916         gl_LOCK_BODY.
56917         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56918         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56919         gl_LOCK_EARLY_BODY.
56920         (gl_LOCK): Require gl_LOCK_BODY.
56921
56922 2006-10-04  Bruno Haible  <bruno@clisp.org>
56923
56924         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56925         (gl_oset_search_atleast): New declaration.
56926         (struct gl_oset_implementation): Add field 'search_atleast'.
56927         (gl_oset_search_atleast): New inline function.
56928         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56929         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56930         (gl_array_oset_implementation): Update.
56931         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56932         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56933         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56934
56935 2006-10-04  Bruno Haible  <bruno@clisp.org>
56936
56937         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56938
56939 2006-10-03  Bruno Haible  <bruno@clisp.org>
56940
56941         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56942         from gl_avltreehash_list_implementation.
56943
56944 2006-10-03  Bruno Haible  <bruno@clisp.org>
56945
56946         * lib/gl_oset.c (gl_oset_add): Fix return type.
56947
56948 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56949
56950         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56951
56952 2006-10-02  Eric Blake  <ebb9@byu.net>
56953
56954         * modules/strnlen (Depends-on): Add extensions.
56955
56956 2006-10-02  Eric Blake  <ebb9@byu.net>
56957
56958         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56959         definition in 2.60+.
56960
56961 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56962
56963         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56964         checks.
56965
56966 2006-10-02  Bruno Haible  <bruno@clisp.org>
56967
56968         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56969         to the AUTOMAKE_OPTIONS.
56970         Reported by Jim Meyering.
56971
56972 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56973
56974         Work around bug in Solaris 10 /proc file system:
56975         /proc/self/fd/NNN/.. isn't the parent directory of
56976         the directory whose file descriptor is NNN.  This needs to
56977         be worked around at run time, not compile time, since a
56978         program might be built on Solaris 8, where things work, and
56979         run on Solaris 10.
56980         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56981         to use the following interface instead:
56982         (OPENAT_BUFFER_SIZE): New macro.
56983         (openat_proc_name): New function.
56984         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56985         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56986         Likewise.
56987         * lib/openat-proc.c: New file.
56988         * modules/openat (Files): Add lib/openat-proc.c.
56989         (Depends-on): Add same-inode, stdbool.
56990         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56991
56992 2006-09-29  Bruno Haible  <bruno@clisp.org>
56993
56994         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56995         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56996         argument. Set stdout_closed before testing for ferror, not after.
56997         (fwriteerror, fwriteerror_no_ebadf): New functions.
56998
56999 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57000
57001         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57002
57003 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57004
57005         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57006         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57007
57008 2006-09-28  Jim Meyering  <jim@meyering.net>
57009
57010         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57011         Include <unistd.h>.
57012
57013 2006-09-28  Bruno Haible  <bruno@clisp.org>
57014
57015         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57016         * modules/linkedhash-list (Depends-on): Likewise.
57017         * modules/rbtreehash-list (Depends-on): Likewise.
57018
57019 2006-09-28  Bruno Haible  <bruno@clisp.org>
57020
57021         * lib/strndup.h: Simplify the redefinition of strndup.
57022         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57023         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57024
57025 2006-09-28  Bruno Haible  <bruno@clisp.org>
57026
57027         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57028         * lib/gl_linkedhash_list.c: Likewise.
57029         * lib/gl_rbtreehash_list.c: Likewise.
57030
57031 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57032
57033         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57034         getaddrinfo.
57035
57036         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57037         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57038         it causes <stdio_ext.h> to cause a compile-time error.
57039         Problem reported by Nelson H. F. Beebe.
57040         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57041         of HAVE_DECL___PENDING.
57042
57043         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57044         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57045         declaration.
57046
57047 2006-09-27  Jim Meyering  <jim@meyering.net>
57048
57049         This file could end up with a definition for a function
57050         named __strndup, rather than rpl_strndup on a system with
57051         incomplete weak_alias support.
57052         * lib/strndup.c (strndup): Rename from __strndup.
57053         Remove #defines that used to map __strndup to strndup.
57054         Don't use K&R prototypes.
57055         Remove LIBC-related code, since this file is not sync'd with glibc.
57056         * lib/strndup.h: Revamp, accordingly.
57057         * m4/strndup.m4: Modernize.
57058
57059 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57060
57061         * modules/savewd (Depends-on): Add 'raise'.
57062         * lib/savewd.c: Include <signal.h>, for 'raise'.
57063
57064 2006-09-26  Jim Meyering  <jim@meyering.net>
57065
57066         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57067         when we detect Darwin 8.7.0's acl_get_file bug.
57068         Rearrange to perform the new (below) run-test while $LIBS
57069         contains any acl-related library.  Set USE_ACL at the end.
57070         (gl_ACL_GET_FILE): New function.
57071
57072 2006-09-26  Eric Blake  <ebb9@byu.net>
57073
57074         * lib/verror.c: Include <config.h> unconditionally.
57075
57076 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57077
57078         * modules/clock-time (Maintainer): Add self.
57079         * modules/getlogin_r (Depends-on): Add extensions.
57080
57081 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57082
57083         * modules/clock-time: New module.
57084         * modules/nanosleep (Depends-on): Add clock-time.
57085         * modules/gethrxtime (Depends-on): Likewise.
57086         * modules/gettime (Depends-on): Likewise.
57087         * modules/settime (Depends-on): Likewise.
57088
57089         * modules/fts-lgpl: Depend on openat.
57090         * modules/mkancesdirs: Depend on savewd.
57091         * modules/mkdir-p: Likewise.
57092
57093 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57094
57095         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57096
57097         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57098         `gl_have_arbitrary_file_name_length_limit' to
57099         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57100         actually works between configure runs.
57101
57102 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57103             Bruno Haible  <bruno@clisp.org>
57104
57105         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57106
57107 2006-09-25  Jim Meyering  <jim@meyering.net>
57108
57109         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57110         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57111
57112 2006-09-25  Eric Blake  <ebb9@byu.net>
57113
57114         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57115         exec's in 2006-09-18 patch when shuffling fds.
57116
57117 2006-09-25  Bruno Haible  <bruno@clisp.org>
57118
57119         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57120         Reported by Jim Meyering.
57121
57122 2006-09-24  Jim Meyering  <jim@meyering.net>
57123
57124         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57125         compare a pointer against a literal "0".  That caused failures with
57126         at least HP-UX's hpcc.
57127
57128 2006-09-22  Simon Josefsson  <jas@extundo.com>
57129
57130         * modules/gc-sha1:
57131         * modules/gc-md4:
57132         * modules/gc-hmac-sha1:
57133         * modules/gc-hmac-md5:
57134         * modules/gc-des:
57135         * modules/gc-arcfour: Distribute more files.
57136
57137 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57138
57139         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57140         (gl_linked_iterator_from_to): Initialize struct completely.
57141         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57142         (gl_tree_iterator_from_to): Likewise
57143         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57144         * lib/gl_array_list.c [lint] (gl_array_iterator)
57145         (gl_array_iterator_from_to): Likewise.
57146         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57147         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57148         (gl_carray_iterator_from_to): Likewise.
57149
57150         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57151         * lib/md4.c (md4_process_block): Remove unused variable.
57152         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57153         parentheses for clarity.
57154
57155 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57156
57157         * modules/bison-i18n (Depends-on): Add gettext.
57158
57159 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57160
57161         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57162         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57163         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57164         also add missing comma that caused broken test.
57165         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57166         stdlib.h, for `abort'.
57167         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57168         variables.
57169         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57170         include unistd.h if present, for `rmdir'.
57171         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57172         variables.
57173         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57174         in the process include standard headers for prototypes.
57175         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57176         gets declared on GNU/Linux.
57177         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57178         unistd.h, for `rmdir'.
57179         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57180
57181         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57182         always true.
57183         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57184
57185         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57186
57187 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57188
57189         * gnulib-tool (func_version): Create output all at once.  This
57190         may help avoid triggering unnecessary SIGPIPEs, and at any
57191         rate it doesn't hurt.
57192
57193 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57194             Bruno Haible  <bruno@clisp.org>
57195
57196         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57197         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57198         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57199
57200         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57201         (gl_FUNC_VASPRINTF): Invoke it.
57202
57203 2006-09-22  Bruno Haible  <bruno@clisp.org>
57204
57205         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57206         getloadavg.c as first argument.
57207
57208 2006-09-22  Bruno Haible  <bruno@clisp.org>
57209
57210         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57211         at the beginning of the gl_INIT macro.
57212         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57213         gl_GETLOADAVG.
57214
57215 2006-09-22  Bruno Haible  <bruno@clisp.org>
57216
57217         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57218         module.
57219         Suggested by Ralf Wildenhues.
57220
57221 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57222
57223         Import this patch from libc:
57224
57225         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57226
57227         * lib/regex_internal.c (re_string_reconstruct): Handle
57228         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57229         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57230         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57231         re_string_context_at.
57232
57233         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57234         now requires it.
57235         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57236         gl_REGEX now does it for us.
57237         (gl_REGEX): Add test taken from
57238         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57239
57240         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57241         Check that large offsets work.  Modernize Autoconf usages.
57242         Prefer "yes" to mean a good thing rather than a bad.
57243         Don't put "#define mkstemp" in config.h, as this might interfere
57244         with standard system headers that "#define mkstemp mkstemp64".
57245
57246         * modules/mkstemp (Depends-on): Add extensions, so that
57247         mkstemp is visible on some platforms.
57248         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57249         (Include): Change to "mkstemp.h" from <stdlib.h>.
57250         (Files): Add mkstemp.h.
57251
57252         * lib/mkstemp.h: New file, since some standard headers
57253         #define mkstemp.
57254         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57255         Include "mkstemp.h".
57256         Make the _LIBC code resemble glibc original more,
57257         e.g., use K&R style.
57258         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57259         (mkstemp): Remove, since mkstemp.h does this for us.
57260         * lib/stdlib--.h: Include mkstemp.h.
57261
57262         Import this patch from libc:
57263
57264         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57265
57266         * lib/tempname.c (__gen_tempname): Change attempts_min
57267         into a macro.  Use preprocessor to decide how to initialize
57268         attempts [Coverity CID 67].
57269
57270 2006-09-20  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/mkdtemp.c: Import from libc.
57273         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57274                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57275                 attempts_min into a macro.  Use preprocessor to decide how to
57276                 initialize attempts [Coverity CID 67].
57277         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57278                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57279                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57280
57281 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57282
57283         * gnulib-tool (func_exit): New function, to allow to pass the
57284         exit status portably through the trap.  Use everywhere.
57285         (--help, --version): Signal a write error.
57286         (trap): catch SIGPIPE, for write errors.
57287         Exit at the end of the trap, with the correct exit status.
57288
57289 2006-09-19  Karl Berry  <karl@gnu.org>
57290
57291         * doc/gnulib.texi: note about the license texinfo files.
57292
57293 2006-09-19  Eric Blake  <ebb9@byu.net>
57294
57295         * gnulib-tool: Avoid space-tab.
57296
57297 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57298
57299         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57300         that prevented coreutils 6.1 from building.  Problem reported
57301         by Petter Reinholdtsen.
57302
57303 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57304
57305         * gnulib-tool (avoidlist): Fix typo that broke options like
57306         --avoid=lock that are used by coreutils bootstrap.
57307
57308 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57309
57310         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57311         more systematically.
57312
57313 2006-09-18  Jim Meyering  <jim@meyering.net>
57314
57315         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57316
57317 2006-09-18  Bruno Haible  <bruno@clisp.org>
57318
57319         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57320
57321 2006-09-18  Bruno Haible  <bruno@clisp.org>
57322
57323         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57324         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57325         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57326         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57327         * m4/gettext.m4: Require autoconf >= 2.52.
57328         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57329         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57330         of gl_cv_header_inttypes_h.
57331
57332 2006-09-18  Bruno Haible  <bruno@clisp.org>
57333
57334         * lib/javaversion.c: Include configmake.h.
57335
57336 2006-09-18  Bruno Haible  <bruno@clisp.org>
57337
57338         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57339         avoid that the while loops be executed in a subshell.
57340
57341 2006-09-18  Bruno Haible  <bruno@clisp.org>
57342
57343         * MODULES.html.sh (func_module): Break long lines.
57344         Suggested by Bruce Korb <bkorb@gnu.org>.
57345
57346 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57347
57348         Speed up by a factor of 1.12.
57349         * gnulib-tool (nl): New variable.
57350         (func_import): Rewrite include directive extraction to only read each
57351         directive once.
57352
57353 2006-09-17  Bruno Haible  <bruno@clisp.org>
57354
57355         * modules/javaversion (Makefile.am): Remove DEFS setting.
57356         (Depends-on): Add configmake, for PKGDATADIR definition.
57357
57358 2006-09-17  Bruno Haible  <bruno@clisp.org>
57359
57360         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57361
57362 2006-09-17  Bruno Haible  <bruno@clisp.org>
57363
57364         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57365         (func_modules_transitive_closure, func_modules_add_dummy,
57366         func_modules_to_filelist, func_import, func_create_testdir,
57367         func_create_megatestdir, ...): Use it wherever possible.
57368         Suggested by Ralf Wildenhues.
57369
57370 2006-09-16  Karl Berry  <karl@gnu.org>
57371
57372         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57373         to avoid sectioning errors.
57374         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57375         [ifinfo]: blank line after @center-ed titles.
57376         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57377         Spell FSF address consistently with others.
57378         (These changes approved by rms.)
57379
57380 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57381
57382         Speed up by a factor of 1.61.
57383         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57384         already checked module names again.
57385
57386 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57387
57388         Speed up by a factor of 1.13.
57389         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57390         for new_files, and the input to func_add_or_update.
57391
57392 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57393
57394         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57395         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57396
57397 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57398
57399         * modules/mkancesdirs (Depends-on): Add fcntl.
57400         * modules/savewd: New file.
57401         * MODULES.html.sh (File system functions): Add savewd.
57402
57403         * modules/configmake (Makefile.am): Add support for the
57404         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57405
57406 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57407
57408         * m4/savewd.m4: New file.
57409
57410 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57411
57412         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57413         (dirchownmod): New arg FD.  All callers changed.
57414         Use FD rather than opening the directory ourself, as opening is
57415         now the caller's responsibility.
57416         * lib/dirchownmod.h: Likewise.
57417         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57418         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57419         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57420         (test_dir): Remove.
57421         (mkancesdirs): Return length of prefix of FILE that has already
57422         been made, or -2 if there is a child doing the work.  Redo
57423         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57424         ".", and treat ".." specially since it might stray back into
57425         already-created areas.  Use a subprocess if necessary.  New arg
57426         WD; all users changed.  MAKE_DIR function should now return 1
57427         if it creates a directory that is not readable.  Return -2 if
57428         a child process is spun off.
57429         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57430         Adjust signature to match code.
57431         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57432         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57433         all users changed.
57434         * lib/savewd.c, lib/savewd.h: New files.
57435
57436 2006-09-15  Jim Meyering  <jim@meyering.net>
57437
57438         * modules/rename-dest-slash: New module.
57439         * MODULES.html.sh (posix_compat): Add it here.
57440
57441         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57442
57443 2006-09-15  Jim Meyering  <jim@meyering.net>
57444
57445         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57446         file.
57447
57448         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57449
57450 2006-09-15  Jim Meyering  <jim@meyering.net>
57451
57452         * lib/rename-dest-slash.c (has_trailing_slash): Use
57453         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57454         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57455         test before testing whether SRC is a directory.
57456         Suggestions from Bruno Haible.
57457
57458         Avoid a warning about an unused variable.
57459         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57460         into the #ifdef block where it's used.
57461
57462         * lib/rename-dest-slash.c: New file.
57463
57464 2006-09-14  Bruno Haible  <bruno@clisp.org>
57465
57466         * lib/allocsa.c: Include <config.h> unconditionally.
57467         * lib/asnprintf.c: Likewise.
57468         * lib/asprintf.c: Likewise.
57469         * lib/c-strcasecmp.c: Likewise.
57470         * lib/c-strcasestr.c: Likewise.
57471         * lib/c-strncasecmp.c: Likewise.
57472         * lib/c-strstr.c: Likewise.
57473         * lib/classpath.c: Likewise.
57474         * lib/clean-temp.c: Likewise.
57475         * lib/concatpath.c: Likewise.
57476         * lib/copy-file.c: Likewise.
57477         * lib/csharpcomp.c: Likewise.
57478         * lib/csharpexec.c: Likewise.
57479         * lib/execute.c: Likewise.
57480         * lib/fatal-signal.c: Likewise.
57481         * lib/findprog.c: Likewise.
57482         * lib/fwriteerror.c: Likewise.
57483         * lib/gl_array_list.c: Likewise.
57484         * lib/gl_array_oset.c: Likewise.
57485         * lib/gl_avltree_list.c: Likewise.
57486         * lib/gl_avltree_oset.c: Likewise.
57487         * lib/gl_avltreehash_list.c: Likewise.
57488         * lib/gl_carray_list.c: Likewise.
57489         * lib/gl_linked_list.c: Likewise.
57490         * lib/gl_linkedhash_list.c: Likewise.
57491         * lib/gl_list.c: Likewise.
57492         * lib/gl_oset.c: Likewise.
57493         * lib/gl_rbtree_list.c: Likewise.
57494         * lib/gl_rbtree_oset.c: Likewise.
57495         * lib/gl_rbtreehash_list.c: Likewise.
57496         * lib/imaxabs.c: Likewise.
57497         * lib/imaxdiv.c: Likewise.
57498         * lib/javacomp.c: Likewise.
57499         * lib/javaexec.c: Likewise.
57500         * lib/javaversion.c: Likewise.
57501         * lib/linebreak.c: Likewise.
57502         * lib/localcharset.c: Likewise.
57503         * lib/lock.c: Likewise.
57504         * lib/mbchar.c: Likewise.
57505         * lib/mbswidth.c: Likewise.
57506         * lib/mkdtemp.c: Likewise.
57507         * lib/pipe.c: Likewise.
57508         * lib/printf-args.c: Likewise.
57509         * lib/printf-parse.c: Likewise.
57510         * lib/progname.c: Likewise.
57511         * lib/progreloc.c: Likewise.
57512         * lib/readlink.c: Likewise.
57513         * lib/sh-quote.c: Likewise.
57514         * lib/stpcpy.c: Likewise.
57515         * lib/stpncpy.c: Likewise.
57516         * lib/strcasecmp.c: Likewise.
57517         * lib/strcasestr.c: Likewise.
57518         * lib/strcspn.c: Likewise.
57519         * lib/striconv.c: Likewise.
57520         * lib/strncasecmp.c: Likewise.
57521         * lib/strnlen1.c: Likewise.
57522         * lib/strstr.c: Likewise.
57523         * lib/strtok_r.c: Likewise.
57524         * lib/tls.c: Likewise.
57525         * lib/tmpdir.c: Likewise.
57526         * lib/unicodeio.c: Likewise.
57527         * lib/unsetenv.c: Likewise.
57528         * lib/vasnprintf.c: Likewise.
57529         * lib/vasprintf.c: Likewise.
57530         * lib/wait-process.c: Likewise.
57531         * lib/xallocsa.c: Likewise.
57532         * lib/xsetenv.c: Likewise.
57533         * lib/xstriconv.c: Likewise.
57534
57535 2006-09-13  Simon Josefsson  <jas@extundo.com>
57536
57537         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
57538         that internally, suggested by Ralf Wildenhues
57539         <Ralf.Wildenhues@gmx.de>.
57540
57541 2006-09-13  Simon Josefsson  <jas@extundo.com>
57542
57543         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
57544         @LIBOBJS@.
57545         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57546
57547 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         * lib/_fpending.c: Include <config.h> unconditionally, since we no
57550         longer worry about uses that don't define HAVE_CONFIG_H.
57551         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
57552         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
57553         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
57554         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
57555         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
57556         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
57557         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
57558         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
57559         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
57560         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
57561         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
57562         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
57563         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
57564         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
57565         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
57566         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
57567         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
57568         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
57569         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
57570         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
57571         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
57572         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
57573         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
57574         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
57575         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
57576         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
57577         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
57578         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
57579         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
57580         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
57581         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
57582         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
57583         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
57584         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
57585         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
57586         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
57587         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
57588         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
57589         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
57590         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
57591         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
57592         Likewise.
57593
57594 2006-09-13  Eric Blake  <ebb9@byu.net>
57595
57596         * lib/getopt.c: Fix typo in last commit.
57597
57598 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57599
57600         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
57601         dgettext.
57602
57603 2006-09-12  Jim Meyering  <jim@meyering.net>
57604
57605         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
57606         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
57607         Reported by Nelson H. F. Beebe.
57608
57609 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57610
57611         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
57612         program_invocation_name and program_invocation_short_name are
57613         initialized.
57614         * lib/argp-namefrob.h: Move declarations of program_invocation_name
57615         and program_invocation_short_name to argp.h, so they are visible
57616         to user programs.
57617         * lib/argp.h: Likewise
57618
57619 2006-09-10  Bruno Haible  <bruno@clisp.org>
57620
57621         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57622         m4/inttypes_h.m4, m4/uintmax_t.m4.
57623
57624 2006-09-10  Bruno Haible  <bruno@clisp.org>
57625
57626         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
57627         gl_AC_TYPE_UINTMAX_T.
57628
57629 2006-09-10  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
57632
57633 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57634
57635         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
57636         convention.  Text proposed by Bruno Haible.
57637         (struct argp_option): Document the use of N_() wrappers.
57638
57639         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
57640         '\v', and translate the two parts separately, instead of feeding
57641         the whole string to gettext.  This allows to exclude
57642         '\v' from the strings visible to the translator by writing doc
57643         strings as N_("..") "\v" N_("..").
57644
57645 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
57646
57647         * config/srclist.txt: Undo latest change; the bug was fixed.
57648
57649 2006-09-09  Bruno Haible  <bruno@clisp.org>
57650
57651         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
57652         assignments if building a library without libtool.
57653         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
57654         in func_emit_lib_Makefile_am.
57655         (func_import): When building a static library libfoo.a, arrange to
57656         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
57657         (func_create_testdir): Likewise.
57658         * modules/gc (configure.ac, Makefile.am): If building statically,
57659         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
57660         * modules/iconvme (configure.ac, Makefile.am): Likewise.
57661         * modules/striconv (configure.ac, Makefile.am): Likewise.
57662         Based on a suggestion by Ralf Wildenhues.
57663
57664 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57665
57666         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57667         Check for unistd.h too, since Autoconf doesn't assume POSIX.
57668         Also:
57669
57670         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57671         Add year_2050_test to catch glibc bug 2821
57672         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57673
57674         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57675         Prefer #ifdef to #if.
57676
57677         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
57678         Return from 'main' instead of calling 'exit'.
57679
57680 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57681
57682         * lib/mktime.c (guess_time_tm): Fix bug where mktime
57683         returned the maximum time_t value rather than (time_t) -1.
57684         Problem originally reported by William Bardwell
57685         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57686
57687         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57688         Moved to here ...
57689         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57690         ... from here.
57691
57692 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57693
57694         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
57695         2821 is fixed.
57696
57697 2006-09-08  Jim Meyering  <jim@meyering.net>
57698
57699         Don't make generated files read-only.  That would bother too many
57700         people.  However, do retain the ability to work when targets are
57701         read-only: remove the destination and temporary files before writing
57702         them (when generated via sed or echo), or by using the -f option for
57703         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
57704         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57705         * modules/byteswap, modules/configmake, modules/fcntl:
57706         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57707         * modules/localcharset, modules/netinet_in, modules/poll:
57708         * modules/stdbool, modules/stdint, modules/sys_select:
57709         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57710
57711 2006-09-08  Jim Meyering  <jim@meyering.net>
57712
57713         Avoid new build failure on FreeBSD 6.0.
57714         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
57715         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
57716         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
57717
57718 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57719
57720         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
57721
57722 2006-09-07  Jim Meyering  <jim@meyering.net>
57723
57724         Fix global typo in last change: use chmod u-w, not chmod u-x.
57725         Spotted by Paul Eggert and Bruce Korb.
57726         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57727         * modules/byteswap, modules/configmake, modules/fcntl:
57728         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57729         * modules/localcharset, modules/netinet_in, modules/poll:
57730         * modules/stdbool, modules/stdint, modules/sys_select:
57731         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57732
57733 2006-09-06  Jim Meyering  <jim@meyering.net>
57734
57735         Make generated files be read-only.
57736         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
57737         Ensure that each generated file is now read-only.
57738         * modules/argz: Likewise.
57739         * modules/arpa_inet: Likewise.
57740         * modules/byteswap: Likewise.
57741         * modules/configmake: Likewise.
57742         * modules/fcntl: Likewise.
57743         * modules/fnmatch: Likewise.
57744         * modules/getopt: Likewise.
57745         * modules/glob: Likewise.
57746         * modules/inttypes: Likewise.
57747         * modules/netinet_in: Likewise.
57748         * modules/poll: Likewise.
57749         * modules/stdbool: Likewise.
57750         * modules/stdint: Likewise.
57751         * modules/sys_select: Likewise.
57752         * modules/sys_socket: Likewise.
57753         * modules/sys_stat: Likewise.
57754         * modules/sysexits: Likewise.
57755         * modules/localcharset: Same as above, but continue using temporary
57756         file named "t-$@" (why different?) rather than the "$@-t" used
57757         everywhere else.
57758
57759         * modules/sysexits (Makefile.am): Replace literal occurrences
57760         of "sysexit.h" more readable, and more consistent, "$@".
57761
57762 2006-09-06  Bruno Haible  <bruno@clisp.org>
57763
57764         * modules/striconv: New file.
57765         * modules/xstriconv: New file.
57766         * MODULES.html.sh (Internationalization functions): Add striconv,
57767         xstriconv.
57768
57769 2006-09-06  Bruno Haible  <bruno@clisp.org>
57770
57771         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
57772         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
57773         not using libtool correctly.
57774
57775 2006-09-06  Bruno Haible  <bruno@clisp.org>
57776
57777         * lib/striconv.h: New file.
57778         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
57779         iconvstring.c.
57780         * lib/xstriconv.h: New file.
57781         * lib/xstriconv.c: New file.
57782
57783 2006-09-06  Bruno Haible  <bruno@clisp.org>
57784
57785         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57786         lib_..._LDFLAGS.
57787
57788 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57789
57790         * lib/argz_.h: Sync from Libtool.
57791
57792         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
57793                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57794
57795         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
57796
57797 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57798
57799         * modules/trim: New file.
57800
57801 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57802
57803         * lib/trim.h: New file.
57804         * lib/trim.c: New file.
57805
57806 2006-09-05  Bruno Haible  <bruno@clisp.org>
57807
57808         * MODULES.html.sh (String handling): Add trim.
57809
57810 2006-09-04  Karl Berry  <karl@gnu.org>
57811
57812         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57813         until next release.
57814
57815 2006-09-03  Bruno Haible  <bruno@clisp.org>
57816
57817         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57818         correctly.
57819
57820 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57821
57822         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57823         not gl_GETLOADAVG.  Omit unneeded semicolons.
57824         Problems reported by Ralf Wildenhues in
57825         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57826         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57827         at the end, which is the usual gnulib style.
57828
57829         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57830         of doing all the work ourselves.
57831         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57832         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57833
57834 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57835
57836         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57837         Problem reported by Ralf Wildenhues in
57838         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57839
57840         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57841         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57842
57843 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57844
57845         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57846         yesterday's patch by changing test -n to test -z.
57847
57848 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57849
57850         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57851         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57852         the former is now obsolescent.
57853
57854         * modules/chdir-long (Depends-on): Add fcntl.
57855
57856 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57857
57858         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57859         obsolescent, and programs should use gnulib instead.
57860         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57861         but with prefixes changed.
57862
57863 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57864
57865         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57866         or stdbool.h, because they might not exist while configuring.
57867
57868         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57869         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57870         does that for us.
57871         (O_DIRECTORY): Remove.
57872
57873 2006-08-31  Eric Blake  <ebb9@byu.net>
57874
57875         * gnulib-tool: Don't let emacs change spaces to TAB.
57876
57877 2006-08-31  Bruno Haible  <bruno@clisp.org>
57878
57879         * gnulib-tool: When calling func_import more than once, do it in a
57880         subshell.
57881         Reported by Eric Blake <ebb9@byu.net>.
57882
57883 2006-08-31  Bruno Haible  <bruno@clisp.org>
57884
57885         * gnulib-tool (nl): Remove variable.
57886         (sed_transform_lib_file): Use more robust test for config-h module.
57887         (func_import): Fix typo in 2006-08-25 patch.
57888
57889 2006-08-31  Bruno Haible  <bruno@clisp.org>
57890
57891         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57892         specified, augment Makefile.am variables instead of assigning them.
57893
57894 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57895
57896         Work around a bug in both the Linux and SunOS 64-bit kernels:
57897         nanosleep mishandles sleeps for longer than 2**31 seconds.
57898         Problem reported by Frank v Waveren in
57899         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57900         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57901         Check for nanosleep bug.
57902         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57903
57904 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57905
57906         Work around a bug in both the Linux and SunOS 64-bit kernels:
57907         nanosleep mishandles sleeps for longer than 2**31 seconds.
57908         Problem reported by Frank v Waveren in
57909         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57910         * lib/nanosleep.c (BILLION): New constant.
57911         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57912         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57913         implementation.
57914
57915 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         * modules/nanosleep (Depends-on): Add gettime.
57918
57919 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57920         and Simon Josefsson  <jas@extundo.com>
57921         and Oskar Liljeblad  <oskar@osk.mine.nu>
57922
57923         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57924         * gnulib-tool (func_import): New license type 'unmodifiable license
57925         text'.
57926         * modules/fdl: Use it.  Longer description.
57927         * module/gpl, module/lgpl: New files.
57928
57929 2006-08-30  Jim Meyering  <jim@meyering.net>
57930
57931         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57932         shadowing the parameter.
57933
57934 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57935
57936         Sync from Libtool:
57937
57938         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57939
57940         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57941         sharing with gnulib.  Report by Eric Blake.
57942
57943 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57944
57945         * modules/isapipe: New file.
57946         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57947
57948 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57949
57950         * modules/configmake (Makefile.am): Add a comment, and omit
57951         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57952         by Bruno Haible.
57953
57954 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57955
57956         * m4/isapipe.m4: New file.
57957
57958 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57959
57960         * lib/isapipe.c, lib/isapipe.h: New files.
57961
57962 2006-08-29  Jim Meyering  <jim@meyering.net>
57963
57964         * modules/configmake (Makefile.am): Make configmake.h depend on
57965         Makefile.  Otherwise, a stale configmake.h could hang around.
57966
57967 2006-08-29  Eric Blake  <ebb9@byu.net>
57968
57969         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57970         resolution of upstream bug 3044.
57971
57972 2006-08-29  Bruno Haible  <bruno@clisp.org>
57973
57974         * modules/localcharset (Depends-on): Add configmake.
57975         (Makefile.am): Remove setting of LIBDIR through DEFS.
57976
57977 2006-08-29  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57980         defined.
57981
57982 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57983
57984         * modules/fcntl: New file.
57985         * modules/chdir-safer (Depends-on): Add fcntl.
57986         * modules/fts: Likewise.
57987         * modules/mkdir-p: Likewise.
57988
57989         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57990         This undoes the most recent change, since we're now addressing the
57991         problem in a different way.
57992
57993         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57994         into output, since the output might be called Makefile.am even
57995         if $makefile_name is something different.
57996         (func_import): Use $makefile_am rather than
57997         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57998         empty.
57999
58000         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58001
58002 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58003
58004         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58005         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58006         recent change to stdint.m4, since we're now addressing the problem in a
58007         different way.
58008
58009 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58010
58011         * m4/fcntl_h.m4: New file.
58012
58013 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58014
58015         * lib/fcntl_.h: New file.
58016         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58017         the fcntl module.
58018         * lib/dirchownmod.c: Likewise.
58019         * lib/fts.c: Likewise.
58020
58021         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58022         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58023         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58024         just before including <inttypes.h>, to avoid circular inclusion.
58025
58026 2006-08-28  Jim Meyering  <jim@meyering.net>
58027
58028         * doc/visibility.texi: Actually read and correct the grammar of the
58029         sentence affected by yesterday's change.
58030
58031 2006-08-28  Eric Blake  <ebb9@byu.net>
58032
58033         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58034         needs wrapper.
58035
58036 2006-08-28  Eric Blake  <ebb9@byu.net>
58037
58038         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58039
58040 2006-08-28  Eric Blake  <ebb9@byu.net>
58041
58042         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58043
58044 2006-08-28  Bruno Haible  <bruno@clisp.org>
58045
58046         * modules/c-strstr: New file, from GNU gettext.
58047         * MODULES.html.sh (String handling): Add c-strstr.
58048
58049 2006-08-28  Bruno Haible  <bruno@clisp.org>
58050
58051         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58052         macros.
58053         Reported by Eric Blake.
58054
58055 2006-08-28  Bruno Haible  <bruno@clisp.org>
58056
58057         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58058         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58059         * lib/vasprintf.c: Include errno.h, limits.h.
58060         (EOVERFLOW): New fallback definition.
58061         (vasprintf): Test here whether the string length is > INT_MAX.
58062         * lib/vsnprintf.c: Include errno.h, limits.h.
58063         (EOVERFLOW): New fallback definition.
58064         (vsnprintf): Fix bug when generated string was too long for the buffer.
58065         Test here whether the string length is > INT_MAX.
58066
58067 2006-08-28  Bruno Haible  <bruno@clisp.org>
58068
58069         * lib/inttypes_.h (SCNX*): Remove definitions.
58070         Reported by Eric Blake.
58071
58072 2006-08-28  Bruno Haible  <bruno@clisp.org>
58073
58074         * lib/c-strstr.h: New file, from GNU gettext.
58075         * lib/c-strstr.c: New file, from GNU gettext.
58076
58077 2006-08-28  Bruno Haible  <bruno@clisp.org>
58078
58079         * gnulib-tool: Reorder some statements.
58080
58081 2006-08-28  Bruno Haible  <bruno@clisp.org>
58082
58083         * gnulib-tool: New option --makefile-name.
58084         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58085         $makefile_name.
58086         (func_import): Write $makefile_name to the cache file, and read it from
58087         there unless explicitly specified. Use $makefile_name as file name
58088         instead of Makefile.am. Adjust the recommendations accordingly.
58089
58090 2006-08-28  Bruno Haible  <bruno@clisp.org>
58091
58092         * gnulib-tool (func_verify_module): Check against misapplying patch.
58093
58094 2006-08-28  Bruno Haible  <bruno@clisp.org>
58095
58096         * gnulib-tool (func_relativize, func_relconcat): New functions.
58097         Give an error if --local-dir is given with --update.
58098         Remove trailing slashes from $local_gnulib_dir.
58099         (func_import): Store the relativized $local_gnulib_dir in
58100         gnulib-cache.m4, and read it from there if not specified explicitly.
58101
58102 2006-08-28  Bruno Haible  <bruno@clisp.org>
58103
58104         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58105         is the current directory. Respect also $local_gnulib_dir.
58106
58107 2006-08-28  Bruno Haible  <bruno@clisp.org>
58108             Simon Josefsson  <jas@extundo.com>
58109
58110         BeOS portability.
58111         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58112
58113 2006-08-27  Jim Meyering  <jim@meyering.net>
58114
58115         * doc/visibility.texi: Remove duplicate word: "pointer".
58116
58117 2006-08-26  Bruno Haible  <bruno@clisp.org>
58118
58119         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58120         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58121         (Makefile.am): Create inttypes.h from inttypes_.h.
58122         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58123
58124         * modules/imaxabs: New file.
58125
58126         * modules/imaxdiv: New file.
58127
58128 2006-08-26  Bruno Haible  <bruno@clisp.org>
58129
58130         * m4/inttypes.m4: New file.
58131         * m4/_inttypes_h.m4: Remove file.
58132         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58133         PRI_MACROS_BROKEN.
58134         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58135
58136         * m4/imaxabs.m4: New file.
58137
58138         * m4/imaxdiv.m4: New file.
58139
58140 2006-08-26  Bruno Haible  <bruno@clisp.org>
58141
58142         * lib/inttypes_.h: New file.
58143         * lib/inttypes.h: Remove file.
58144         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58145
58146         * lib/imaxabs.c: New file.
58147
58148         * lib/imaxdiv.c: New file.
58149
58150 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58151
58152         New config-h module, so that "make" output needn't be cluttered
58153         by -DHAVE_CONFIG_H.
58154         * MODULES.html.sh (Support for building libraries and executables):
58155         Add config-h.
58156         * modules/config-h: New file.
58157         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58158         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58159         the config-h module is used.
58160
58161         New configmake module, so that "make" output needn't be cluttered
58162         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58163         * MODULES.html.sh (Support for building libraries and executables):
58164         Add configmake.
58165         * modules/configmake: New file.
58166
58167 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58168
58169         * m4/config-h.m4: New file.
58170
58171 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58172
58173         * config/srclist.txt: Add elisp-comp.
58174
58175 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58176
58177         * MODULES.html.sh (Support for building libraries and executables):
58178         Add elisp-comp.
58179         * build-aux/elisp-comp: New file.
58180         * modules/elisp-comp: New file.
58181
58182 2006-08-24  Bruno Haible  <bruno@clisp.org>
58183
58184         * gnulib-tool (func_create_testdir): Use non-default values of
58185         sourcebase and m4base.
58186
58187 2006-08-24  Bruno Haible  <bruno@clisp.org>
58188
58189         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58190         HTML structure.
58191
58192 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58193
58194         * modules/openat (Depends-on): Add lchown.
58195
58196 2006-08-23  Bruno Haible  <bruno@clisp.org>
58197
58198         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58199         of gl_LOCK_EARLY instead of gl_LOCK.
58200
58201 2006-08-23  Bruno Haible  <bruno@clisp.org>
58202
58203         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58204         on OSF/1 to no.
58205         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58206
58207 2006-08-23  Bruno Haible  <bruno@clisp.org>
58208
58209         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58210         as unusable.
58211
58212         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58213         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58214         (gl_LOCK): New macro.
58215
58216 2006-08-22  Simon Josefsson  <jas@extundo.com>
58217
58218         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58219         to md5 module.
58220
58221 2006-08-22  Simon Josefsson  <jas@extundo.com>
58222
58223         * MODULES.html.sh: Add "Support for maintaining and release
58224         projects".
58225
58226         * build-aux/gnupload: New file, from coreutils.
58227
58228 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58229
58230         Avoid the need for AC_LIBSOURCES in m4 macros.
58231         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58232         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58233         * modules/check-version (EXTRA_DIST): Add check-version.h.
58234         * modules/crc (EXTRA_DIST): Add crc.h.
58235         * modules/des (EXTRA_DIST): Add des.h.
58236         * modules/gc (EXTRA_DIST): Add gc.h.
58237         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58238         * modules/getline (EXTRA_DIST): Add getline.h.
58239         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58240         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58241         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58242         * modules/md2 (EXTRA_DIST): Add md2.h.
58243         * modules/md4 (EXTRA_DIST): Add md4.h.
58244         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58245         * modules/read-file (EXTRA_DIST): Add read-file.h.
58246         * modules/readline (EXTRA_DIST): Add readline.h.
58247         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58248         rijndael-api-fst.h.
58249
58250 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58251
58252         * m4/rijndael.m4 (gl_ARCFOUR):
58253         * m4/arctwo.m4 (gl_ARCTWO):
58254         * m4/check-version.m4 (gl_CHECK_VERSION):
58255         * m4/crc.m4 (gl_CRC):
58256         * m4/des.m4 (gl_DES):
58257         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58258         * m4/gc.m4 (gl_GC):
58259         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58260         * m4/getline.m4 (gl_FUNC_GETLINE):
58261         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58262         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58263         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58264         * m4/md2.m4 (gl_MD2):
58265         * m4/md4.m4 (gl_MD4):
58266         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58267         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58268         * m4/readline.m4 (gl_FUNC_READLINE):
58269         * m4/rijndael.m4 (gl_RIJNDAEL):
58270         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58271         to get the necessary .h files and whatnot.
58272
58273 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58274
58275         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58276         gnulib rather than the other way around.
58277         * config/srclistvars.sh (COREUTILS): Remove.
58278
58279 2006-08-22  Jim Meyering  <jim@meyering.net>
58280
58281         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58282
58283         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58284
58285 2006-08-22  Eric Blake  <ebb9@byu.net>
58286
58287         * modules/regexprops-generic: New file.
58288         * MODULES.html.sh (Support for building documentation): List it.
58289
58290 2006-08-22  Eric Blake  <ebb9@byu.net>
58291
58292         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58293         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58294         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58295         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58296
58297 2006-08-22  Bruno Haible  <bruno@clisp.org>
58298
58299         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58300         and lib_LTLIBRARIES like the other lib_* variables.
58301
58302 2006-08-22  Bruno Haible  <bruno@clisp.org>
58303
58304         * build-aux/x-to-1.in: New file, from GNU gettext.
58305
58306 2006-08-22  Bruno Haible  <bruno@clisp.org>
58307
58308         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58309         <utmpx.h> exists.
58310
58311 2006-08-22  Bruno Haible  <bruno@clisp.org>
58312
58313         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58314         <utmpx.h> exists.
58315
58316 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58317
58318         BeOS portability.
58319         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58320         exist.
58321         Problem reported by Bruno Haible.
58322
58323 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58324
58325         Avoid the need for AC_LIBSOURCES in m4 macros.
58326         * modules/acl (EXTRA_DIST): Add acl.h.
58327         * modules/argmatch (Files): Add m4/argmatch.m4.
58328         (configure.ac): Add gl_ARGMATCH.
58329         (EXTRA_DIST): Renamed from lib_SOURCES, for
58330         consistency with the other modules.  Remove argmatch.c.
58331         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58332         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58333         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58334         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58335         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58336         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58337         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58338         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58339         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58340         * modules/closeout (EXTRA_DIST): Add closeout.h.
58341         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58342         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58343         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58344         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58345         dirname.h; remove basename.c and stripslash.c.
58346         * modules/exclude (EXTRA_DIST): Add exclude.h.
58347         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58348         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58349         * modules/file-type (EXTRA_DIST): Add file-type.h.
58350         * modules/filemode (EXTRA_DIST): Add filemode.h.
58351         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58352         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58353         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58354         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58355         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58356         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58357         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58358         * modules/getdate (EXTRA_DIST): Add getdate.c.
58359         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58360         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58361         * modules/getpass (EXTRA_DIST): Add getpass.h.
58362         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58363         * modules/group-member (EXTRA_DIST): Add group-member.h.
58364         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58365         * modules/hash (EXTRA_DIST): Add hash.h.
58366         * modules/human (EXTRA_DIST): Add human.h.
58367         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58368         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58369         * modules/lchown (EXTRA_DIST): Add lchown.h.
58370         * modules/long-options (EXTRA_DIST): Add long-options.h.
58371         * modules/lstat (EXTRA_DIST): Add lstat.h.
58372         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58373         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58374         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58375         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58376         * modules/memxor (EXTRA_DIST): Add memxor.h.
58377         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58378         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58379         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58380         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58381         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58382         * modules/physmem (EXTRA_DIST): Add physmem.h.
58383         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58384         * modules/posixver (EXTRA_DIST): Add posixver.h.
58385         * modules/quote (EXTRA_DIST): Add quote.h.
58386         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58387         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58388         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58389         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58390         regex_internal.h regexec.c.
58391         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58392         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58393         * modules/same (EXTRA_DIST): Add same.h.
58394         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58395         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58396         * modules/savedir (EXTRA_DIST): Add savedir.h.
58397         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58398         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58399         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58400         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58401         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58402         * modules/strdup (EXTRA_DIST): Add strdup.h.
58403         * modules/strftime (EXTRA_DIST): Add strftime.h.
58404         * modules/strndup (EXTRA_DIST): Add strndup.h.
58405         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58406         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58407         * modules/time_r (EXTRA_DIST): Add time_r.h.
58408         * modules/timespec (EXTRA_DIST): Add timespec.h.
58409         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58410         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58411         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58412         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58413         * modules/userspec (EXTRA_DIST): Add userspec.h.
58414         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58415         * modules/utimens (EXTRA_DIST): Add utimens.h.
58416         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58417         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58418         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58419         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58420         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58421         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58422         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58423         * modules/yesno (EXTRA_DIST): Add yesno.h.
58424
58425 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58426
58427         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58428
58429         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58430         * m4/dev-ino.m4, same-inode.m4: Remove.
58431
58432         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58433         * m4/acl.m4 (AC_FUNC_ACL):
58434         * m4/backupfile.m4 (gl_BACKUPFILE):
58435         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58436         * m4/canon-host.m4 (gl_CANON_HOST):
58437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58438         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58439         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58440         * m4/cloexec.m4 (gl_CLOEXEC):
58441         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58442         * m4/closeout.m4 (gl_CLOSEOUT):
58443         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58444         * m4/dirname.m4 (gl_DIRNAME):
58445         * m4/exclude.m4 (gl_EXCLUDE):
58446         * m4/exitfail.m4 (gl_EXITFAIL):
58447         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58448         * m4/file-type.m4 (gl_FILE_TYPE):
58449         * m4/filemode.m4 (gl_FILEMODE):
58450         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58451         * m4/fpending.m4 (gl_FUNC_FPENDING):
58452         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58453         * m4/fts.m4 (gl_FUNC_FTS):
58454         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58455         * m4/getdate.m4 (gl_GETDATE):
58456         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58457         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58458         * m4/getpass.m4 (gl_FUNC_GETPASS):
58459         * m4/gettime.m4 (gl_GETTIME):
58460         * m4/getugroups.m4 (gl_GETUGROUPS):
58461         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
58462         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
58463         * m4/hard-locale.m4 (gl_HARD_LOCALE):
58464         * m4/hash.m4 (gl_HASH):
58465         * m4/idcache.m4 (gl_IDCACHE):
58466         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
58467         * m4/lchown.m4 (gl_FUNC_LCHOWN):
58468         * m4/long-options.m4 (gl_LONG_OPTIONS):
58469         * m4/lstat.m4 (gl_FUNC_LSTAT):
58470         * m4/md5.m4 (gl_MD5):
58471         * m4/memcasecmp.m4 (gl_MEMCASECMP):
58472         * m4/memcoll.m4 (gl_MEMCOLL):
58473         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
58474         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
58475         * m4/memxor.m4 (gl_MEMXOR):
58476         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
58477         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
58478         * m4/modechange.m4 (gl_MODECHANGE):
58479         * m4/mountlist.m4 (gl_MOUNTLIST):
58480         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58481         * m4/openat.m4 (gl_FUNC_OPENAT):
58482         * m4/pathmax.m4 (gl_PATHMAX):
58483         * m4/physmem.m4 (gl_PHYSMEM):
58484         * m4/posixtm.m4 (gl_POSIXTM):
58485         * m4/posixver.m4 (gl_POSIXVER):
58486         * m4/quote.m4 (gl_QUOTE):
58487         * m4/quotearg.m4 (gl_QUOTEARG):
58488         * m4/readtokens.m4 (gl_READTOKENS):
58489         * m4/readutmp.m4 (gl_READUTMP):
58490         * m4/regex.m4 (gl_REGEX):
58491         * m4/safe-read.m4 (gl_SAFE_READ):
58492         * m4/safe-write.m4 (gl_SAFE_WRITE):
58493         * m4/same.m4 (gl_SAME):
58494         * m4/save-cwd.m4 (gl_SAVE_CWD):
58495         * m4/savedir.m4 (gl_SAVEDIR):
58496         * m4/settime.m4 (gl_SETTIME):
58497         * m4/sha1.m4 (gl_SHA1):
58498         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
58499         * m4/stat-macros.m4 (gl_STAT_MACROS):
58500         * m4/stat-time.m4 (gl_STAT_TIME):
58501         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
58502         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
58503         * m4/strdup.m4 (gl_FUNC_STRDUP):
58504         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
58505         * m4/strndup.m4 (gl_FUNC_STRNDUP):
58506         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
58507         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
58508         * m4/time_r.m4 (gl_TIME_R):
58509         * m4/timespec.m4 (gl_TIMESPEC):
58510         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
58511         * m4/unlinkdir.m4 (gl_UNLINKDIR):
58512         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
58513         * m4/userspec.m4 (gl_USERSPEC):
58514         * m4/utimecmp.m4 (gl_UTIMECMP):
58515         * m4/utimens.m4 (gl_UTIMENS):
58516         * m4/xalloc.m4 (gl_XALLOC):
58517         * m4/xgetcwd.m4 (gl_XGETCWD):
58518         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
58519         * m4/xreadlink.m4 (gl_XREADLINK):
58520         * m4/xstrtod.m4 (gl_XSTRTOD):
58521         * m4/yesno.m4 (gl_YESNO):
58522         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58523         to get the necessary .h files and whatnot.
58524
58525 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
58526             Bruno Haible  <bruno@clisp.org>
58527
58528         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
58529         /bin/sh understanding of '!' conditional negation.
58530
58531 2006-08-21  Jim Meyering  <jim@meyering.net>
58532
58533         * modules/openat (Depends-on): Really alphabetize.
58534
58535         * modules/acl (Depends-on): Add error and quote.
58536
58537         * check-module (find_included_lib_files): Add at-func.c to the
58538         ok-to-include-more-than-once white list.
58539
58540         * modules/openat (Depends-on): Add lstat.  Alphabetize.
58541
58542 2006-08-21  Bruno Haible  <bruno@clisp.org>
58543
58544         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58545         Emit a pkgdata_DATA variable only if some snippets add contents to it.
58546         Reported by Martin Lambers <marlam@marlam.de>.
58547
58548 2006-08-21  Bruno Haible  <bruno@clisp.org>
58549
58550         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
58551         specify an installation location, don't emit a noinst_LIBRARIES or
58552         noinst_LTLIBRARIES assignment.
58553
58554 2006-08-21  Bruno Haible  <bruno@clisp.org>
58555
58556         BeOS portability.
58557         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
58558         BeOS has mbrtowc() but no <wctype.h>.
58559
58560 2006-08-21  Bruno Haible  <bruno@clisp.org>
58561
58562         BeOS portability.
58563         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
58564         exist.
58565
58566 2006-08-21  Bruno Haible  <bruno@clisp.org>
58567
58568         BeOS portability.
58569         * lib/mbchar.h: Include <wctype.h> only if it exists.
58570
58571 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58572
58573         Remove files that are no longer needed by their respective modules.
58574         * m4/obstack.m4: Remove.
58575         * m4/strerror_r.m4: Remove.
58576         * m4/uint32_t.m4: Remove.
58577         * m4/uintptr_t.m4: Remove.
58578         * m4/ullong_max.m4: Remove.
58579         * m4/xstrtoimax.m4: Remove.
58580         * m4/xstrtoumax.m4: Remove.
58581
58582         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
58583         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
58584         dependencies now capture this.
58585
58586         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
58587         Do not use AC_LIBSOURCES, since gnulib modules now do this.
58588         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
58589         * m4/human.m4 (gl_HUMAN): Likewise.
58590         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
58591         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
58592
58593         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
58594
58595         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
58596         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
58597         stdint.
58598         * m4/human.m4 (gl_HUMAN): Likewise.
58599         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
58600         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
58601         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58602         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58603         * m4/xstrtol (gl_XSTRTOL): Likewise.
58604
58605         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
58606         AC_TYPE_LONG_LONG_INT.
58607         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58608         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
58609         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
58610         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58611
58612         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
58613         on stdbool.
58614
58615         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
58616         (gl_PREREQ_XSTRTOUL): Remove.
58617
58618         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
58619
58620         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
58621         mode.
58622
58623 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58624
58625         Add and change modules to make it easier for coreutils to use
58626         gnulib-tool.
58627         * modules/backupfile (Files): Remove m4/d-ino.m4.
58628         (Depends-on): Add d-ino.
58629         * modules/cycle-check (Depends-on): Add stdint.
58630         (lib_SOURCES): Add cycle-check.h.
58631         * modules/d-ino: New module.
58632         * modules/d-type: New module.
58633         * modules/error (Files): Remove m4/strerror_r.m4.
58634         * modules/filemode (Files): Add m4/st_dm_mode.m4.
58635         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58636         m4/inttypes_h.m4, m4/uintmax_t.m4.
58637         (Depends-on): Add stdint.
58638         (lib_SOURCES): Add fsusage.h.
58639         * modules/getcwd (Files): Remove d-ino.m4.
58640         (Depends-on): Add d-ino.
58641         * modules/getndelim2 (Depends-on): Add stdint.
58642         * modules/glob (Files): Remove m4/d-type.m4.
58643         (Depends-on): Add d-type.
58644         * modules/host-os: New module.
58645         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
58646         m4/inttypes_h.m4, m4/uintmax_t.m4.
58647         * Depends-on: Add stdint.
58648         (lib_SOURCES): Add human.h.
58649         * modules/inttostr (Files): Remove m4/intmax_t.m4,
58650         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
58651         m4/uintmax_t.m4, m4/ulonglong.m4.
58652         (Depends-on): Add stdint.
58653         (EXTRA_DIST): Add inttostr.h.
58654         * modules/lchmod: New module.
58655         * modules/link-follow: New module.
58656         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
58657         (Depends-on): Add lchmod.
58658         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
58659         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
58660         (Depends-on): Add stdint.
58661         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
58662         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
58663         (Depends-on): Add stdint.
58664         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
58665         * modules/perl: New module.
58666         * modules/regex (Depends-on): Add stdint.
58667         * modules/rmdir-errno: New module.
58668         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58669         m4/intmax_t.m4.
58670         (Depends-on): Add stdint.
58671         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58672         m4/uintmax_t.m4.
58673         (Depends-on): Add stdint.
58674         * modules/unlink-busy: New module.
58675         * modules/utimecmp (Depends-on): Add stdint.
58676         * modules/uptime: New module.
58677         * modules/winsz-ioctl: New module.
58678         * modules/winsz-termios: New module.
58679         * modules/xnanosleep (Depends-on): Add nanosleep.
58680         * modules/ullong_max: Remove.
58681         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
58682         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
58683         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
58684         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
58685         (Depends-on): Add inttypes.
58686         (lib_SOURCES): Add xstrtol.h.
58687         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
58688         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
58689         * MODULES.html.sh: Move 'assert' into the assert section.
58690         Move 'dummy' into the linking section.
58691         Remove ullong_max.
58692         Add section for compatibility checks for POSIX:2001 functions,
58693         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
58694         winsz-ioctl, and winsz-termios into it.
58695         Add lchmod.
58696         Add top-level Misc section and put host-os, perl, and uptime
58697         into it.
58698
58699 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58700
58701         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
58702         now assume the stdint module.  Do not include inttypes.h.
58703         * lib/fsusage.h: Likewise.
58704         * lib/getndelim2.c: Likewise.
58705         * lib/human.h: Likewise.
58706         * lib/inttostr.h: Likewise.
58707         * lib/obstack.c: Likewise.
58708         * lib/regex_internal.h: Likewise.
58709         * lib/tempname.c: Likewise.
58710         * lib/utimecmp.c: Likewise.
58711         * lib/xstrtol.h: Likewise.
58712
58713         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
58714
58715         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
58716         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
58717         * lib/xtime.h: Likewise.
58718
58719 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58720
58721         * modules/openat (Files): Add lib/fchmodat.c.
58722         Fixes problem reported by Jay Youngman.
58723
58724 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58725
58726         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
58727         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
58728
58729 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
58730             Bruno Haible  <bruno@clisp.org>
58731
58732         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
58733         and is a script that invokes bison. Tighten the code. Add comments.
58734
58735 2006-08-18  Jim Meyering  <jim@meyering.net>
58736
58737         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
58738         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
58739         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
58740         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
58741
58742 2006-08-18  Bruno Haible  <bruno@clisp.org>
58743
58744         * modules/bison-i18n: New file.
58745         * MODULES.html.sh (Internationalization functions): Add it.
58746
58747 2006-08-18  Bruno Haible  <bruno@clisp.org>
58748
58749         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
58750         sys/statvfs.h. When getmntinfo was found, check its declaration and
58751         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
58752
58753 2006-08-18  Bruno Haible  <bruno@clisp.org>
58754
58755         * m4/bison-i18n.m4: New file, from bison.
58756
58757 2006-08-18  Bruno Haible  <bruno@clisp.org>
58758
58759         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
58760         (ME_DUMMY): Treat "kernfs" as a dummy.
58761         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
58762
58763 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58764
58765         Update from coreutils.
58766
58767         2006-08-15  Jim Meyering  <jim@meyering.net>
58768
58769         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
58770
58771         2006-01-17  Jim Meyering  <jim@meyering.net>
58772
58773         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
58774
58775         2006-01-11  Jim Meyering  <jim@meyering.net>
58776
58777         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
58778         Check for the lchmod function.
58779
58780 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58781
58782         Update from coreutils.
58783
58784         * lib/__fpending.h: Add copyright notice.
58785         * lib/fprintftime.h: Likewise.
58786         * lib/savedir.c: Use (C) in copyright notice.
58787         * lib/savedir.h: Likewise.
58788
58789         2006-08-15  Jim Meyering  <jim@meyering.net>
58790
58791         * lib/at-func.c: New file, with the logic of all emulated at-functions.
58792         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
58793         in support of the EXPECTED_ERRNO macro.
58794         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
58795         definitions.  Instead, define the appropriate symbols and include
58796         "at-func.c".
58797         * lib/mkdirat.c (mkdirat): Likewise.
58798         * lib/fchmodat.c (fchmodat): Likewise.
58799         (ENOSYS): Remove definition.
58800         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58801         it.  Don't include "unistd--.h" -- it wasn't ever used.
58802
58803         2006-01-17  Jim Meyering  <jim@meyering.net>
58804
58805         Rewrite fts.c not to change the current working directory,
58806         by using openat, fstatat, fdopendir, etc..
58807
58808         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58809         (HAVE_OPENAT_SUPPORT): Define.
58810         [_LIBC] (fchdir): Don't undef or define; no longer used.
58811         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58812         Now, this `function' always succeeds, and consumes its file descriptor
58813         parameter -- so callers must not close such FDs.  Update callers.
58814         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58815         (diropen): Add parameter, SP.  Adjust all callers.
58816         Implement using diropen_fd, rather than open.
58817         (fts_open): Initialize new member, fts_cwd_fd.
58818         Remove fts_rft-setting code.
58819         (fts_close): Close fts_cwd_fd, if necessary.
58820         (__opendir2): Define in terms of opendir or opendirat,
58821         depending on whether the FST_NOCHDIR flag is set.
58822         (fts_build): Since fts_safe_changedir consumes its FD, and since
58823         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58824         and close the dup'd file descriptor upon failure.
58825         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58826         (fts_safe_changedir): Tweak semantics to reflect that this function
58827         now calls cwd_advance_fd and hence consumes its FD argument.
58828         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58829         [struct FTS] (fts_rft): Remove now-unused member.
58830         [struct FTS] (fts_cycle.state): Improve comment.
58831
58832         * lib/openat.c (openat_needs_fchdir): New function.
58833         * lib/openat.h (openat_needs_fchdir): Declare it.
58834
58835 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58836
58837         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58838         Problem and fix reported by Pádraig Brady in
58839         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58840
58841 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58842
58843         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58844
58845 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58846
58847         * lib/memcoll.c (memcoll): Optimize for the common case where the
58848         arguments are bytewise equal.
58849
58850 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58851
58852         * doc/regexprops-generic.texi: Add a copyright notice.
58853
58854 2006-08-15  Bruno Haible  <bruno@clisp.org>
58855
58856         * modules/tmpdir (License): Change to LGPL.
58857
58858 2006-08-15  Bruno Haible  <bruno@clisp.org>
58859
58860         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58861         module.
58862
58863 2006-08-14  Simon Josefsson  <jas@extundo.com>
58864
58865         * config/srclist.txt: Add gnupload.
58866
58867 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58868
58869         Change copyright notice from LGPL 2 to GPL 2, since that's the
58870         standard form used in the gnulib repository.
58871         * tests/test-lock.c: Likewise.
58872         * tests/test-stdint.c: Likewise.
58873         * tests/test-tls.c: Likewise.
58874
58875         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58876         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58877         Add copyright notice.
58878
58879         * check-module: Add copyright notice.  Output a copyright
58880         notice if "--version" is specified.
58881         * modules/COPYING: New file.
58882         * tests/test-getaddrinfo.c: Add copyright notice.
58883         * tests/test-verify.c: Likewise.
58884
58885 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58886
58887         Change copyright notice from LGPL 2 to GPL 2, since that's the
58888         standard form used in the gnulib repository.
58889         * lib/lock.c: LGPL -> GPL.
58890         * lib/lock.h: Likewise.
58891         * lib/strnlen1.c: Likewise.
58892         * lib/strnlen1.h: Likewise.
58893         * lib/tls.c: Likewise.
58894         * lib/tls.h: Likewise.
58895         * lib/tmpdir.c: Likewise.
58896
58897         * lib/TODO: Remove; this belongs only in coreutils.
58898
58899 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58900
58901         Add copyright notices to long-enough files that lack them, since
58902         otherwise the files aren't clearly free.  Use the same notice that
58903         getdate.texi already uses.
58904         * doc/alloca-opt.texi: Add copyright notice.
58905         * doc/alloca.texi: Likewise.
58906         * doc/ctime.texi: Likewise.
58907         * doc/functions.texi: Likewise.
58908         * doc/gcd.texi: Likewise.
58909         * doc/gnulib-tool.texi: Likewise.
58910         * doc/inet_ntoa.texi: Likewise.
58911         * doc/visibility.texi: Likewise.
58912
58913         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58914         * doc/quote.texi: Add copyright notice.
58915
58916         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58917         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58918         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58919         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58920         is now obsolete, and give a pointer to the Sun list.
58921         Add copyright notice.
58922
58923 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58924
58925         * config/srclistvars.sh: Add copyright notice.
58926
58927 2006-08-14  Eric Blake  <ebb9@byu.net>
58928
58929         Import the following change from libc:
58930
58931         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58932
58933         Upstream bug 2997.
58934         * lib/misc/error.c: Add space between program name and message if file
58935         name is missing.
58936
58937 2006-08-12  Karl Berry  <karl@gnu.org>
58938
58939         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58940         remove, these originate in gnulib now.
58941
58942 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58943
58944         * doc/Makefile (standards.info standards.html standards.dvi):
58945         Also depend on make-stds.texi.
58946
58947 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58948
58949         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58950         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58951
58952         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58953         in wchar_t.  Problem reported by Eric Blake.
58954
58955         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58956         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58957         Also, help the compiler to keep LEN in a register.
58958
58959 2006-08-11  Eric Blake  <ebb9@byu.net>
58960
58961         * users.txt: Sort.  Add tar.
58962
58963 2006-08-11  Bruno Haible  <bruno@clisp.org>
58964
58965         * users.txt: New file.
58966
58967 2006-08-11  Bruno Haible  <bruno@clisp.org>
58968
58969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58970         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58971
58972 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58973
58974         * modules/snprintf (Depends-on): Remove minmax.
58975         (Maintainer): Add self and Bruno.
58976
58977 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58978
58979         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58980         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58981         (EOVERFLOW): Define if the system does not.
58982         Do not include "minmax.h"; it wasn't used.
58983         (snprintf): Don't assume size_t promotes to an unsigned type.
58984         Fix bug when generated string was too long for the buffer: the
58985         buffer's contents are supposed to be the initial prefix of the
58986         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58987         exceeds INT_MAX; do the check ourselves.
58988
58989         Import the following changes from libc:
58990
58991         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58992
58993         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58994         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58995         set wc to the byte which couldn't be converted.
58996         (re_string_reconstruct): Don't clear valid_raw_len before calling
58997         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58998         tip_context using re_string_context_at.
58999
59000         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59001
59002         * lib/posix/regex.h: g++ still cannot handled [restrict].
59003
59004         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59005
59006         * lib/posix/regex.h: Remove special handling for VMS.
59007
59008 2006-08-10  Jim Meyering  <jim@meyering.net>
59009
59010         * modules/same-inode: New module.
59011         * modules/dev-ino: New module.
59012         * modules/cycle-check: Depend on these modules, rather than simply
59013         including their .h files.
59014         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59015         required via m4/cycle-check.m4.
59016         * modules/same: Depend on new same-inode module, rather than
59017         including same-inode.h.
59018         * modules/chdir-safer: New file.
59019
59020         * modules/chown (Depends-on): Add stat-macros.
59021
59022 2006-08-10  Jim Meyering  <jim@meyering.net>
59023
59024         * m4/cycle-check.m4: New file.
59025         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59026         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59027
59028 2006-08-10  Eric Blake  <ebb9@byu.net>
59029
59030         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59031         in from original proposal.
59032
59033 2006-08-10  Eric Blake  <ebb9@byu.net>
59034         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59035
59036         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59037         namespace.
59038
59039 2006-08-10  Bruno Haible  <bruno@clisp.org>
59040
59041         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59042         as well.
59043
59044 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59045
59046         Sync from coreutils.
59047
59048         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59049
59050         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59051         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59052
59053 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59054
59055         * modules/restrict: Remove; no longer needed now that we assume
59056         Autoconf 2.59 or later.
59057         * MODULES.html.sh: Remove 'restrict'.
59058         * modules/argp (Depends-on): Remove 'restrict'.
59059         * modules/base64 (Depends-on): Likewise.
59060         * modules/gc (Depends-on): Likewise.
59061         * modules/getaddrinfo (Depends-on): Likewise.
59062         * modules/glob (Depends-on): Likewise.
59063         * modules/inet_ntop (Depends-on): Likewise.
59064         * modules/inet_pton (Depends-on): Likewise.
59065         * modules/memxor (Depends-on): Likewise.
59066         * modules/regex (Depends-on): Likewise.
59067         * modules/strtok_r (Depends-on): Likewise.
59068         * modules/time_r (Depends-on): Likewise.
59069
59070 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59071
59072         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59073         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59074         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59075         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59076         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59077         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59078         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59079         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59080
59081         Merge from coreutils.
59082         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59083         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59084         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59085         * m4/time_r.m4 (gl_TIME_R): Likewise.
59086
59087 2006-08-09  Karl Berry  <karl@gnu.org>
59088
59089         * config/srclist.txt: no more gettext-tools, per Bruno.
59090
59091 2006-08-08  Eric Blake  <ebb9@byu.net>
59092
59093         * modules/verror: New module.
59094         * MODULES.html.sh: Document it.
59095
59096 2006-08-08  Eric Blake  <ebb9@byu.net>
59097
59098         * lib/verror.h, lib/verror.c: New files.
59099
59100 2006-08-08  Eric Blake  <ebb9@byu.net>
59101
59102         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59103         verror_at_line output complies with GNU Coding Standards even when
59104         file is NULL.
59105
59106 2006-08-07  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59109         versions of AIX.
59110         Reported by Ralf Wildenhues.
59111
59112 2006-08-07  Bruno Haible  <bruno@clisp.org>
59113
59114         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59115         in an AC_DEFUN. Needed so that the autoconf snippets can use
59116         AC_REQUIRE.
59117
59118 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59119
59120         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59121         Initialize pkgdata_DATA.
59122         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59123         overriding it.
59124
59125 2006-08-06  Eric Blake  <ebb9@byu.net>
59126
59127         * lib/error.h: Fold in some upstream changes from glibc.
59128         * lib/error.c: Likewise.
59129
59130 2006-08-04  Bruno Haible  <bruno@clisp.org>
59131
59132         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59133         Make the mostlyclean-local rule depend on mostlyclean-generic.
59134         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59135
59136 2006-07-31  Bruno Haible  <bruno@clisp.org>
59137
59138         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59139         <stdlib.h>, <string.h>.
59140
59141 2006-07-30  Bruno Haible  <bruno@clisp.org>
59142
59143         * modules/readlink (License): Change to LGPL.
59144
59145 2006-07-30  Bruno Haible  <bruno@clisp.org>
59146
59147         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59148         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59149         set PKGDATADIR to point to it.
59150
59151 2006-07-30  Bruno Haible  <bruno@clisp.org>
59152
59153         * modules/csharpexec (configure.ac): Comment out macro invocation.
59154         * modules/javaexec (configure.ac): Likewise.
59155         * modules/javacomp-script (configure.ac): Likewise.
59156
59157         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59158
59159 2006-07-30  Bruno Haible  <bruno@clisp.org>
59160
59161         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59162         linked-list.
59163
59164 2006-07-30  Bruno Haible  <bruno@clisp.org>
59165
59166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59167
59168 2006-07-30  Bruno Haible  <bruno@clisp.org>
59169
59170         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59171         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59172         get removed.
59173
59174 2006-07-29  Bruno Haible  <bruno@clisp.org>
59175
59176         Make it possible for gnulib-tool to work with locally modified or
59177         augmented gnulib repositories.
59178         * gnulib-tool (func_usage): Document --local-dir option.
59179         (local_gnulib_dir): New variable.
59180         Handle --local-dir option.
59181         (func_lookup_file): New function.
59182         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59183         (func_get_description, func_get_filelist, func_get_description,
59184         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59185         func_get_automake_snippet, func_get_include_directive,
59186         func_get_license, func_get_maintainer): Use func_lookup_file.
59187         (func_import, func_create_testdir): Use func_lookup_file.
59188
59189 2006-07-29  Bruno Haible  <bruno@clisp.org>
59190
59191         * modules/setenv (Depends-on): Add unistd.
59192
59193 2006-07-29  Bruno Haible  <bruno@clisp.org>
59194
59195         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59196
59197 2006-07-29  Bruno Haible  <bruno@clisp.org>
59198
59199         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59200
59201 2006-07-29  Bruno Haible  <bruno@clisp.org>
59202
59203         * gnulib-tool (import, update): If there is no Makefile.am, look at
59204         aclocal.m4, instead of bailing out.
59205
59206 2006-07-29  Bruno Haible  <bruno@clisp.org>
59207
59208         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59209         Categorize the options by when they are useful.
59210
59211 2006-07-29  Bruno Haible  <bruno@clisp.org>
59212
59213         * gnulib-tool (func_usage): Document option --no-libtool.
59214         Handle option --no-libtool.
59215         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59216         for changed semantics of $libtool variable.
59217         (func_import): Likewise. If libtool is not used, show this through
59218         an option --no-libtool.
59219         (func_create_testdir): Update.
59220
59221 2006-07-29  Bruno Haible  <bruno@clisp.org>
59222
59223         * gnulib-tool (func_import): Extend error message about missing
59224         --doc-base.
59225
59226 2006-07-29  Bruno Haible  <bruno@clisp.org>
59227
59228         * gnulib-tool (func_import): Don't create the $docbase directory if
59229         there is no file to store there.
59230
59231 2006-07-29  Bruno Haible  <bruno@clisp.org>
59232
59233         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59234         relevant, look for configure.ac there, not in the current directory.
59235         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59236
59237 2006-07-29  Bruno Haible  <bruno@clisp.org>
59238
59239         * gnulib-tool (SORT): New variable.
59240         (func_usage): Undocument --assume-autoconf option.
59241         Remove --assume-autoconf option handling.
59242         (autoconf_minversion): Determine from the contents of configure.ac.
59243         (func_import): Remove autoconf_minversion handling.
59244         Suggested by Eric Blake.
59245
59246 2006-07-29  Bruno Haible  <bruno@clisp.org>
59247
59248         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59249
59250 2006-07-29  Bruno Haible  <bruno@clisp.org>
59251
59252         * config/srclist.txt (*setenv.[ch]): Remove rules.
59253
59254 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59255
59256         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59257
59258 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59259
59260         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59261         arpa/inet.h.
59262
59263 2006-07-28  Simon Josefsson  <jas@extundo.com>
59264
59265         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59266         * modules/inet_pton (Depends-on): Likewise.
59267
59268 2006-07-28  Simon Josefsson  <jas@extundo.com>
59269
59270         * m4/netinet_in_h.m4: New file.
59271
59272 2006-07-28  Simon Josefsson  <jas@extundo.com>
59273
59274         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59275         #include's.
59276
59277 2006-07-28  Simon Josefsson  <jas@extundo.com>
59278
59279         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59280         #include's.
59281
59282 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59283
59284         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59285         setgid on directories only if they set these bits.
59286         * lib/modechange.h: Remove obsolete comment about masks.
59287
59288 2006-07-28  Eric Blake  <ebb9@byu.net>
59289
59290         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59291         macro expansion.
59292
59293 2006-07-28  Bruno Haible  <bruno@clisp.org>
59294
59295         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59296
59297 2006-07-28  Bruno Haible  <bruno@clisp.org>
59298
59299         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59300
59301 2006-07-28  Bruno Haible  <bruno@clisp.org>
59302
59303         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59304         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59305         Define fallbacks.
59306         Avoids link error on FreeBSD 4.x.
59307         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59308
59309         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59310         encoding.
59311         * lib/mbswidth.c (iswcntrl): Likewise.
59312
59313 2006-07-27  Bruno Haible  <bruno@clisp.org>
59314
59315         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59316         test.
59317
59318 2006-07-27  Bruno Haible  <bruno@clisp.org>
59319
59320         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59321         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59322         defined.
59323
59324 2006-07-26  Eric Blake  <ebb9@byu.net>
59325
59326         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59327
59328 2006-07-26  Eric Blake  <ebb9@byu.net>
59329
59330         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59331         like mingw that lack mkstemp.
59332         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59333         avoid compilation warning on mingw.
59334
59335 2006-07-26  Bruno Haible  <bruno@clisp.org>
59336
59337         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59338         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59339         INT_FAST*_MIN, INTPTR_MIN.
59340
59341 2006-07-25  Bruno Haible  <bruno@clisp.org>
59342
59343         * modules/version-etc (Depends-on): Add stdarg.
59344
59345 2006-07-25  Bruno Haible  <bruno@clisp.org>
59346
59347         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59348         complex commands.
59349
59350 2006-07-25  Bruno Haible  <bruno@clisp.org>
59351
59352         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59353         defined in <stdarg.h> or config.h.
59354
59355 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59356
59357         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59358         (gl_STDIO_SAFER): Remove.
59359
59360 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59361
59362         * MODULES.html.sh (File stream based Input/Output):
59363         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59364         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59365         * modules/fopen-safer, modules/tmpfile-safer: New files.
59366         * modules/stdio-safer: Remove.
59367
59368 2006-07-24  Bruno Haible  <bruno@clisp.org>
59369
59370         * modules/tmpdir: New file.
59371         * MODULES.html.sh (File system functions): Add it.
59372
59373 2006-07-24  Bruno Haible  <bruno@clisp.org>
59374
59375         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59376         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59377
59378 2006-07-24  Bruno Haible  <bruno@clisp.org>
59379
59380         * modules/clean-temp: New file.
59381
59382 2006-07-24  Bruno Haible  <bruno@clisp.org>
59383
59384         * m4/tmpdir.m4: New file, from GNU gettext.
59385
59386 2006-07-24  Bruno Haible  <bruno@clisp.org>
59387
59388         * lib/tmpdir.h: New file, from GNU gettext.
59389         * lib/tmpdir.c: New file, from GNU gettext.
59390
59391 2006-07-24  Bruno Haible  <bruno@clisp.org>
59392
59393         * lib/clean-temp.h: New file, from GNU gettext.
59394         * lib/clean-temp.c: New file, from GNU gettext.
59395
59396 2006-07-23  Eric Blake  <ebb9@byu.net>
59397
59398         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59399         (Depends-on): Add binary-io.
59400
59401 2006-07-23  Eric Blake  <ebb9@byu.net>
59402
59403         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59404
59405 2006-07-23  Eric Blake  <ebb9@byu.net>
59406
59407         * lib/tmpfile-safer.c: New file.
59408         * lib/stdio-safer.h (fopen_safer): Add prototype.
59409         * lib/stdio--.h (tmpfile): Make safer.
59410
59411 2006-07-23  Bruno Haible  <bruno@clisp.org>
59412
59413         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59414         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59415         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59416         gl_linked_remove_at): Use it.
59417
59418 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59419         and Simon Josefsson <jas@extundo.com>
59420
59421         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59422
59423         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59424
59425 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59426
59427         * modules/close-stream: New file.
59428         * modules/closeout (Description): Make it clear that it exits
59429         with a diagnostic on error.
59430         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59431         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59432
59433 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59434
59435         * m4/close-stream.m4: New file.
59436
59437 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59438
59439         * lib/close-stream.c, lib/close-stream.h: New files.
59440
59441 2006-07-22  Bruno Haible  <bruno@clisp.org>
59442
59443         Merge from GNU gettext 0.15.
59444
59445         2006-05-01  Bruno Haible  <bruno@clisp.org>
59446
59447                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59448
59449         2006-07-22  Bruno Haible  <bruno@clisp.org>
59450
59451                 * modules/javaversion: New file.
59452                 * MODULES.html.sh (Java): Add javaversion.
59453
59454         2006-03-12  Bruno Haible  <bruno@clisp.org>
59455
59456                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59457
59458         2005-12-04  Bruno Haible  <bruno@clisp.org>
59459
59460                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
59461                 (untested).
59462
59463         2006-06-21  Bruno Haible  <bruno@clisp.org>
59464
59465                 Avoid warnings from recent versions of mcs.
59466                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
59467                 -o, -L, -r any more. Use options documented since mcs-1.0
59468                 instead. Similarly for -g.
59469
59470         2005-12-04  Bruno Haible  <bruno@clisp.org>
59471
59472                 * build-aux/csharpcomp.sh.in: Suffix for resources is
59473                 .resources, not .resource.
59474
59475         2005-07-09  Bruno Haible  <bruno@clisp.org>
59476
59477                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
59478                 add a .dll suffix.
59479                 Reported by Mark Junker <mjscod@gmx.de>.
59480
59481         2006-07-22  Bruno Haible  <bruno@clisp.org>
59482
59483                 * modules/gettext: Upgrade to gettext-0.15.
59484                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
59485                 m4/visibility.m4.
59486                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
59487
59488 2006-07-22  Bruno Haible  <bruno@clisp.org>
59489
59490         Merge from GNU gettext 0.15.
59491
59492         2006-03-25  Bruno Haible  <bruno@clisp.org>
59493
59494                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
59495
59496         2006-07-21  Bruno Haible  <bruno@clisp.org>
59497
59498                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
59499                 "1.1".
59500
59501         2006-05-09  Bruno Haible  <bruno@clisp.org>
59502
59503                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
59504                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
59505                 for the conftestver execution.
59506
59507         2006-05-01  Bruno Haible  <bruno@clisp.org>
59508
59509                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
59510                 optional target-version argument. Verify that the compiler
59511                 groks source of the specified source-version, or add -source
59512                 option as necessary. Verify that the compiler produces
59513                 bytecode in the specified target-version, or add -target and
59514                 -source options as necessary. Make the result of the test
59515                 available as variable CONF_JAVAC. Also log error output in
59516                 config.log.
59517
59518         2006-03-11  Bruno Haible  <bruno@clisp.org>
59519
59520                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
59521
59522         2006-05-09  Bruno Haible  <bruno@clisp.org>
59523
59524                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
59525                 CLASSPATH_SEPARATOR to a semicolon.
59526
59527         2006-03-12  Bruno Haible  <bruno@clisp.org>
59528
59529                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
59530                 available as variable CONF_JAVA, for subsequent autoconf
59531                 tests. Also log error output in config.log.
59532
59533         2006-07-19  Bruno Haible  <bruno@clisp.org>
59534
59535                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
59536                 that getline works on glibc2 systems. Needed to avoid trouble
59537                 in relocatable.c.
59538                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
59539
59540         2005-12-04  Bruno Haible  <bruno@clisp.org>
59541
59542                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
59543                 launcher (untested).
59544
59545         2005-12-04  Bruno Haible  <bruno@clisp.org>
59546
59547                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
59548
59549         2006-07-22  Bruno Haible  <bruno@clisp.org>
59550
59551                 * gettext.m4: Update from GNU gettext-0.15.
59552                 * nls.m4: Likewise.
59553                 * po.m4: Likewise.
59554                 * inttypes-pri.m4: Likewise.
59555                 * inttypes-h.m4: Renamed from inttypes.m4.
59556                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
59557
59558 2006-07-22  Bruno Haible  <bruno@clisp.org>
59559
59560         Merge from GNU gettext 0.15.
59561
59562         2005-07-05  Bruno Haible  <bruno@clisp.org>
59563
59564                 * printf-args.c (printf_fetchargs): Work around broken
59565                 definition of wint_t on mingw.
59566
59567         2005-02-12  Bruno Haible  <bruno@clisp.org>
59568
59569                 * xallocsa.h: Add extern "C" for C++.
59570
59571         2006-05-17  Bruno Haible  <bruno@clisp.org>
59572
59573                 Cygwin portability.
59574                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
59575
59576         2006-04-30  Bruno Haible  <bruno@clisp.org>
59577
59578                 * progreloc.c: Include <mach-o/dyld.h> if available.
59579                 (find_executable): Use _NSGetExecutablePath when possible.
59580
59581         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59582
59583                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
59584                 function.
59585
59586         2005-12-29  Bruno Haible  <bruno@clisp.org>
59587
59588                 * progreloc.c (set_program_name_and_installdir): Fix
59589                 compilation error.
59590
59591         2005-12-04  Bruno Haible  <bruno@clisp.org>
59592
59593                 Cygwin portability.
59594                 * progreloc.c: Include <windows.h> also on Cygwin.
59595                 (find_executable): Add support for Cygwin.
59596                 (set_program_name_and_installdir): Handle also platforms with
59597                 nonempty EXEEXT.
59598
59599         2006-07-11  Bruno Haible  <bruno@clisp.org>
59600
59601                 * javacomp.c: Fix a comment.
59602                 Reported by Jim Meyering.
59603
59604         2006-04-30  Bruno Haible  <bruno@clisp.org>
59605
59606                 * javacomp.h (compile_java_class): Add source_version,
59607                 target_version arguments.
59608                 * javacomp.c: Rewritten to choose only a compiler that
59609                 respects the specified source_version and target_version.
59610
59611         2006-06-27  Bruno Haible  <bruno@clisp.org>
59612
59613                 Assume correct S_ISDIR macro.
59614                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
59615
59616         2006-07-22  Bruno Haible  <bruno@clisp.org>
59617
59618                 * javaversion.h: New file, from GNU gettext.
59619                 * javaversion.c: New file, from GNU gettext.
59620                 * javaversion.java: New file, from GNU gettext.
59621                 * javaversion.class: New file, from GNU gettext.
59622
59623         2006-05-17  Bruno Haible  <bruno@clisp.org>
59624
59625                 Cygwin portability.
59626                 * javaexec.c (execute_java_class): Test for jview program
59627                 also on Cygwin.
59628
59629         2006-04-09  Bruno Haible  <bruno@clisp.org>
59630
59631                 * fatal-signal.c: Don't include string.h.
59632                 (at_fatal_signal): Use a copying loop instead of memcpy.
59633
59634         2005-12-04  Bruno Haible  <bruno@clisp.org>
59635
59636                 * csharpexec.c: Add support for 'clix' launcher (untested).
59637                 (execute_csharp_using_sscli): New function.
59638                 (execute_csharp_program): Call it.
59639
59640         2006-06-21  Bruno Haible  <bruno@clisp.org>
59641
59642                 Avoid warnings from recent versions of mcs.
59643                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
59644                 -o, -L, -r any more. Use options documented since mcs-1.0
59645                 instead. Similarly for -g.
59646
59647         2005-07-09  Bruno Haible  <bruno@clisp.org>
59648
59649                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
59650                 add a .dll suffix.
59651                 Reported by Mark Junker <mjscod@gmx.de>.
59652
59653         2006-06-17  Bruno Haible  <bruno@clisp.org>
59654
59655                 * config.charset: Update for NetBSD 3.0.
59656
59657         2006-05-17  Bruno Haible  <bruno@clisp.org>
59658
59659                 Cygwin portability.
59660                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
59661
59662         2006-05-16  Bruno Haible  <bruno@clisp.org>
59663
59664                 * localcharset.c [CYGWIN]: Include <windows.h>.
59665                 (get_charset_aliases): For Cygwin, return the same CPxxx
59666                 aliases list as under WIN32.
59667                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
59668                 the environment variables. Fall back to GetACP().
59669
59670         2006-04-05  Bruno Haible  <bruno@clisp.org>
59671
59672                 * config.charset: Update Juan Manuel Guerrero's address.
59673
59674         2005-02-12  Bruno Haible  <bruno@clisp.org>
59675
59676                 * allocsa.h: Add extern "C" for C++.
59677
59678         2005-02-10  Bruno Haible  <bruno@clisp.org>
59679
59680                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
59681                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
59682
59683         2006-07-22  Bruno Haible  <bruno@clisp.org>
59684
59685                 * gettext.h: Update to GNU gettext-0.15.
59686
59687 2006-07-22  Bruno Haible  <bruno@clisp.org>
59688
59689         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
59690         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
59691         lib-prefix.m4, longdouble.m4, ssize_t.m4.
59692
59693 2006-07-21  Eric Blake  <ebb9@byu.net>
59694
59695         * modules/stdlib-safer: New file.
59696         * MODULES.html.sh (File stream based Input/Output): Add
59697         stdlib-safer.
59698
59699 2006-07-21  Eric Blake  <ebb9@byu.net>
59700
59701         * lib/stdlib-safer.h: New file from coreutils, required by
59702         stdlib--.h.
59703
59704 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
59705
59706         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
59707
59708 2006-07-20  Bruno Haible  <bruno@clisp.org>
59709
59710         * gnulib-tool: Recognize new option --assume-autoconf.
59711         (autoconf_minversion): New variable.
59712         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
59713
59714 2006-07-20  Bruno Haible  <bruno@clisp.org>
59715
59716         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
59717
59718 2006-07-19  Derek R. Price  <derek@ximbiot.com>
59719
59720         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
59721         Reindent and repaginate.
59722
59723 2006-07-19  Derek Price  <derek@ximbiot.com>
59724
59725         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
59726         Correct grammar.
59727
59728 2006-07-17  Bruno Haible  <bruno@clisp.org>
59729
59730         * modules/list: New file.
59731         * modules/array-list: New file.
59732         * modules/carray-list, modules/carray-list-tests: New files.
59733         * modules/linked-list, modules/linked-list-tests: New files.
59734         * modules/avltree-list, modules/avltree-list-tests: New files.
59735         * modules/rbtree-list, modules/rbtree-list-tests: New files.
59736         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
59737         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
59738         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
59739         * modules/oset: New file.
59740         * modules/array-oset: New file.
59741         * modules/avltree-oset, modules/avltree-oset-tests: New files.
59742         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
59743         * tests/test-carray_list.c: New file.
59744         * tests/test-linked_list.c: New file.
59745         * tests/test-avltree_list.c: New file.
59746         * tests/test-rbtree_list.c: New file.
59747         * tests/test-linkedhash_list.c: New file.
59748         * tests/test-avltreehash_list.c: New file.
59749         * tests/test-rbtreehash_list.c: New file.
59750         * tests/test-avltree_oset.c: New file.
59751         * tests/test-rbtree_oset.c: New file.
59752         * MODULES.html.sh (Container data structures): New section.
59753
59754 2006-07-17  Bruno Haible  <bruno@clisp.org>
59755
59756         * m4/gl_list.m4: New file.
59757
59758 2006-07-17  Bruno Haible  <bruno@clisp.org>
59759
59760         * lib/gl_list.h: New file.
59761         * lib/gl_list.c: New file.
59762         * lib/gl_array_list.h: New file.
59763         * lib/gl_array_list.c: New file.
59764         * lib/gl_carray_list.h: New file.
59765         * lib/gl_carray_list.c: New file.
59766         * lib/gl_linked_list.h: New file.
59767         * lib/gl_linked_list.c: New file.
59768         * lib/gl_anylinked_list1.h: New file.
59769         * lib/gl_anylinked_list2.h: New file.
59770         * lib/gl_avltree_list.h: New file.
59771         * lib/gl_avltree_list.c: New file.
59772         * lib/gl_anyavltree_list1.h: New file.
59773         * lib/gl_anyavltree_list2.h: New file.
59774         * lib/gl_rbtree_list.h: New file.
59775         * lib/gl_rbtree_list.c: New file.
59776         * lib/gl_anyrbtree_list1.h: New file.
59777         * lib/gl_anyrbtree_list2.h: New file.
59778         * lib/gl_anytree_list1.h: New file.
59779         * lib/gl_anytree_list2.h: New file.
59780         * lib/gl_linkedhash_list.h: New file.
59781         * lib/gl_linkedhash_list.c: New file.
59782         * lib/gl_anyhash_list1.h: New file.
59783         * lib/gl_anyhash_list2.h: New file.
59784         * lib/gl_avltreehash_list.h: New file.
59785         * lib/gl_avltreehash_list.c: New file.
59786         * lib/gl_rbtreehash_list.h: New file.
59787         * lib/gl_rbtreehash_list.c: New file.
59788         * lib/gl_anytreehash_list1.h: New file.
59789         * lib/gl_anytreehash_list2.h: New file.
59790
59791         * lib/gl_oset.h: New file.
59792         * lib/gl_oset.c: New file.
59793         * lib/gl_array_oset.h: New file.
59794         * lib/gl_array_oset.c: New file.
59795         * lib/gl_avltree_oset.h: New file.
59796         * lib/gl_avltree_oset.c: New file.
59797         * lib/gl_rbtree_oset.h: New file.
59798         * lib/gl_rbtree_oset.c: New file.
59799         * lib/gl_anytree_oset.h: New file.
59800
59801 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         * m4/mkancesdirs.m4: New file.
59804         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59805         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59806         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59807         it.
59808
59809 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59810
59811         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59812         * lib/mkancesdirs.h: New files.
59813         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59814         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59815         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59816         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59817         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59818         callers changed.  Revamp internals significantly, by not
59819         attempting to create directories that are temporarily more
59820         permissive than the final results.  Do not attempt to use
59821         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59822         This removes some race conditions, fixes some bugs, and simplifies
59823         things.  Use new dirchownmod function to do owner and mode changes.
59824         * lib/mkdir-p.h: Likewise.
59825         * lib/modechange.c (octal_to_mode): New function.
59826         (struct mode_change): New member mentioned.
59827         (make_node_op_equals): New arg mentioned.  All callers changed.
59828         (mode_compile): Keep track of which mode bits the user has explicitly
59829         mentioned.
59830         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59831         New arg PMODE_BITS, to keep track of which mode bits the user
59832         mentioned; it treats S_ISUID and S_ISGID speciall.
59833         All callers changed.
59834         * lib/modechange.h: Likewise.
59835
59836 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59837
59838         * MODULES.html.sh: Add mkancestors.
59839         * modules/mkancesdirs: New module.
59840         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59841         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59842         The chdir-safer and afs files are now orphans; I'll remove them
59843         unless someone speaks up.
59844         Add lib/dirchownmod.c, lib/dirchownmod.h.
59845         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59846         Add lchown, mkancesdirs.
59847         (Maintainer): Add self.
59848
59849 2006-07-15  Karl Berry  <karl@gnu.org>
59850
59851         * gnulib-tool: help message wording/arrangement.
59852
59853 2006-07-14  Simon Josefsson  <jas@extundo.com>
59854
59855         * doc/gnulib.texi (Libtool and Windows): New section.
59856
59857 2006-07-12  Simon Josefsson  <jas@extundo.com>
59858
59859         * modules/gendocs (License): Fix license, approved by Karl.
59860
59861 2006-07-12  Eric Blake  <ebb9@byu.net>
59862
59863         * MODULES.html.sh: Add gendocs.
59864
59865 2006-07-11  Eric Blake  <ebb9@byu.net>
59866
59867         * modules/fdl: New module, to install doc/fdl.texi.
59868         * MODULES.html.sh: Add new section for documentation modules.
59869         * gnulib-tool: Avoid space-tab.
59870         (--doc-base): New option, to manage files from doc.
59871
59872 2006-07-11  Eric Blake  <ebb9@byu.net>
59873
59874         * m4/absolute-header.m4: Fix comments to match recent change.
59875
59876 2006-07-11  Eric Blake  <ebb9@byu.net>
59877
59878         * gnulib-tool: List --doc-base before --tests-base.
59879
59880 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59881
59882         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59883
59884 2006-07-11  Bruno Haible  <bruno@clisp.org>
59885
59886         * README: Mention where to put documentation.
59887
59888 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59889
59890         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59891
59892 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59893
59894         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59895         to stdint.m4.
59896
59897 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59898
59899         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59900         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59901         "no/such/file/stdint.h" when there is no such file, so that
59902         the resulting C code can be parsed by dodgy compilers.
59903         Problems reported by Bob Proulx.
59904
59905 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59906
59907         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59908         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59909         macros into the GNU _D_EXACT_NAMLEN.
59910         * lib/savedir.c:  Likewise.
59911         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59912
59913 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59914         and Paul Eggert  <eggert@cs.ucla.edu>
59915
59916         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59917         * m4/savedir.m4:
59918         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59919         macros into the GNU _D_EXACT_NAMLEN.
59920
59921 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59922
59923         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59924         around the absolute name, to work around a problem with the HP-UX
59925         11.23 native C compiler, reported by Bob Proulx.
59926
59927 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59928
59929         * doc/maintain.texi, make-stds.texi: Sync from
59930         <http://savannah.gnu.org/projects/gnustandards>.
59931
59932 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59933
59934         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59935
59936 2006-07-09  Jim Meyering  <jim@meyering.net>
59937
59938         * m4/glob.m4: Remove a doubled word in a comment.
59939
59940 2006-07-09  Jim Meyering  <jim@meyering.net>
59941
59942         * lib/argp-pv.c: Remove a doubled word in a comment.
59943         * lib/check-version.c (check_version): Likewise.
59944         * lib/javacomp.c (compile_java_class): Likewise.
59945
59946 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59949         for the benefit of people using Autoconf 2.60.  If you want to
59950         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59951         (or m4/onceonly.m4, if pre-2.57) manually.
59952
59953 2006-07-08  Jim Meyering  <jim@meyering.net>
59954
59955         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59956         comment.
59957         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59958         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59959         comment.
59960
59961 2006-07-08  Jim Meyering  <jim@meyering.net>
59962
59963         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59964
59965 2006-07-07  Simon Josefsson  <jas@extundo.com>
59966
59967         * tests/test-crc.c: Change expected crc value, the test vector
59968         were probably computed using the old broken crc.c?
59969
59970 2006-07-06  Simon Josefsson  <jas@extundo.com>
59971
59972         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59973         now the canonical place for the M4 file).
59974
59975         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59976         from the sys_socket dependency now.
59977
59978         * modules/inet_pton (Files): Ditto.
59979
59980         * modules/inet_ntop (Files): Ditto.
59981
59982 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59983
59984         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59985         not gl_PREREQ_GETUSERSHELL.
59986
59987 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59988
59989         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59990         with only one argument, for Autoconf 2.60.
59991         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59992         expand to nothing, so add a shell command to avoid syntax error.
59993         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59994
59995 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59996
59997         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59998
59999 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60000
60001         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60002         no longer needed.  Check for isblank decl.
60003         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60004         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60005         of existence.
60006
60007 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60008
60009         * lib/getloadavg.c: Use __VMS, not VMS.
60010         * lib/getopt.c: Likewise.
60011         * lib/getpagesize.h: Likewise.
60012         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60013         and probably does not work.
60014
60015 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60016
60017         * lib/.cppi-disable: Add wcwidth.
60018         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60019         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60020         (ISGRAPH): Remove.  All uses changed to isgraph.
60021         (FOLD) [!defined _LIBC]: Remove special case.
60022         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60023         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60024         HAVE_ISBLANK.
60025         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60026         case.
60027
60028 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60029
60030         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60031         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60032         brackets.  Other minor changes to suppress some compiler
60033         warnings.
60034
60035 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60036         and Paul Eggert  <eggert@cs.ucla.edu>
60037
60038         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60039         of invoking obsolescent AC_HEADER_DIRENT macro.
60040         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60041         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60042         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60043         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60044         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60045         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60046         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60047         * m4/readdir.m4: Remove; no longer needed.
60048
60049 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60050         and Paul Eggert  <eggert@cs.ucla.edu>
60051
60052         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60053         Don't worry about this obsolete case any more.
60054         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60055         directories.
60056         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60057         worry about this obsolete case any more.
60058         * lib/fts.c: Likewise.
60059         * lib/getcwd.c: Likewise.
60060         * lib/glob.h: Likewise.
60061         * lib/savedir.c: Likewise.
60062
60063 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60064
60065         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60066         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60067         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60068         needed.
60069         All uses removed.
60070         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60071         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60072         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60073         needed.
60074         * m4/getdate.m4 (gl_GETDATE): Likewise.
60075         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60076         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60077         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60078         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60079         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60080         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60081         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60082         needed.
60083
60084 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60085
60086         * lib/memcasecmp.c: Include <limits.h>.
60087         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60088         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60089         Don't assume isdigit succeeds only on '0' through '9'.
60090
60091 2006-07-05  Eric Blake  <ebb9@byu.net>
60092
60093         * modules/getaddrinfo (Depends-on): Add snprintf.
60094
60095 2006-07-05  Eric Blake  <ebb9@byu.net>
60096
60097         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60098         to avoid 'header present but could not be compiled' on cygwin.
60099
60100 2006-07-05  Eric Blake  <ebb9@byu.net>
60101
60102         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60103         missing from netdb.h.
60104         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60105
60106 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60107
60108         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60109         no longer needed.
60110         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60111         * m4/getdate.m4 (gl_GETDATE): Likewise.
60112         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60113         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60114         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60115         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60116         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60117
60118 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60119
60120         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60121         All uses of is_space replaced by isspace.
60122         * lib/exit.h: Don't talk about STDC_HEADERS.
60123         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60124         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60125         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60126         replaced by isprint etc.
60127         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60128         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60129         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60130         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60131         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60132         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60133
60134 2006-07-05  Bruno Haible  <bruno@clisp.org>
60135
60136         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60137         the function exists, before testing against AIX.
60138         Reported by Martin Lambers <marlam@marlam.de>.
60139
60140 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60141
60142         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60143         From Mark D. Baushke.
60144
60145 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60146
60147         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60148         to the absolute name, not just one, to bypass Sun C 5.8's
60149         "warning: #include of /usr/include/... may be non-portable".
60150
60151 2006-07-04  Eric Blake  <ebb9@byu.net>
60152
60153         * modules/dirname-tests: New test module.
60154         * tests/test-dirname.c: New file, replacing dirname.c
60155         TEST_DIRNAME section that was recently deleted.
60156
60157 2006-07-04  Bruno Haible  <bruno@clisp.org>
60158
60159         Assume ANSI C header files and <ctype.h> functions.
60160         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60161         (mbsnwidth): Use isprint, iscntrl instead.
60162
60163 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60164
60165         Merge from coreutils.
60166         * MODULES.html.sh: Add xstrtold.
60167         * modules/xstrtold: New file.
60168         * modules/cycle-check (Files): Add lib/same-inode.h.
60169         * modules/dirname (Files): Add m4/double-slash-root.m4.
60170         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60171         * modules/mkdir-p (Files): Add lib/same-inode.h.
60172         * modules/same (Files): Add lib/same-inode.h.
60173
60174 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60175
60176         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60177         This is to keep the terminology clean; POSIX talks about
60178         "absolute pathnames", not "full pathnames", but the GNU
60179         Coding Standards say to use "path" for something else;
60180         so use "absolute" to keep both sides happy.
60181         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60182         Set gl_absolute_header, not gl_full_header_path.
60183         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60184         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60185         All uses changed.
60186
60187         Merge from coreutils.
60188
60189         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60190
60191         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60192         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60193         want to require the building of c-strtod.o.
60194         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60195         needs -lm directly.
60196         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60197
60198         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60199
60200         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60201         --as-needed option if available.  Problem reported by Albert Chin in
60202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60203         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60204         cc merely issues a bunch of annoying warnings for --as-needed
60205         (this problem was reported by Bob Proulx).  Also, try linking with
60206         -lm to detect a bug in binutils 2.16 (this problem was reported
60207         by Ralf Wildenhues).
60208
60209         2006-06-18  Jim Meyering  <jim@meyering.net>
60210
60211         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60212         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60213         macro.
60214         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60215         also check for glibc-2.4's abort-inducing bug.
60216
60217         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60218         Low-probability clean-up should be to use rmdir to get rid of
60219         the just-created directory, not unlink.
60220
60221         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60222         configure fail, and request a bug report to inform us about it.
60223         Add a comment that, barring reports to the contrary, in 2007 we'll
60224         assume ftruncate is universally available.
60225
60226         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60229
60230         2006-03-12  Jim Meyering  <jim@meyering.net>
60231
60232         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60233         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60234         * m4/same.m4 (gl_SAME): Likewise.
60235         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60236
60237         2006-03-11  Eric Blake  <ebb9@byu.net>
60238
60239         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60240         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60241         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60242         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60243
60244 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60245
60246         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60247         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60248         reported by Mark D. Baushke, one in
60249         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60250
60251         Merge from coreutils.
60252
60253         * lib/.cppi-disable: Add stdint_.h.
60254         * lib/.cvsignore: Add stdint.h.
60255
60256         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60257
60258         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60259         both double and long double versions.
60260         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60261         * lib/xstrtold.c: New file.
60262         * lib/xstrtod.h (xstrtold): New decl.
60263
60264         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60265
60266         * lib/filemode.c (setst): Remove.
60267         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60268         (arguably) clearer, and the generated code is a bit smaller on my
60269         Debian GNU/Linux stable x86 host.
60270
60271         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60272
60273         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60274         Assume that filemode.h includes sys/types.h and sys/stat.h.
60275         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60276         (ftypelet): Reorder to put common cases first, for efficiency.
60277         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60278         to do 'M'.
60279         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60280         of 10, for compatibility with FreeBSD.  All callers changed.
60281         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60282         types that can't be deduced solely from st_mode.  First arg is now a
60283         const pointer.
60284         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60285         (strmode): Renamed from mode_string.
60286         (filemodestring): New decl.
60287         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60288         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60289         needed.
60290         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60291
60292         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60293
60294         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60295         fsusage.h now does that.  Include fsusage.h first, to test interface.
60296         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60297         at most one method (the old code could have generated decls that
60298         didn't conform to C89, not that this was ever exercised).
60299         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60300
60301         2006-03-19  Jim Meyering  <jim@meyering.net>
60302
60303         Work even in a chroot where d_ino values for entries in "/"
60304         don't match the stat.st_ino values for the same names.
60305         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60306         number, iterate through all entries again, using lstat instead.
60307         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60308         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60309
60310         * lib/getcwd.c (__getcwd): Clarify a comment.
60311         Use memcpy in place of a call to strcpy.
60312
60313         2006-03-12  Jim Meyering  <jim@meyering.net>
60314
60315         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60316         matches that of the current directory (which we're about to chdir ".."
60317         out of), then save the dev-ino of the parent, instead.
60318
60319         * lib/same-inode.h (SAME_INODE): New file/macro.
60320         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60321         Include "same-inode.h", instead.
60322         * lib/same.c: Likewise.
60323         * lib/cycle-check.h: Include "same-inode.h".
60324         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60325         * lib/cycle-check.c (SAME_INODE): Remove definition.
60326         * lib/root-dev-ino.h: Include "same-inode.h".
60327
60328         2006-03-11  Eric Blake  <ebb9@byu.net>
60329
60330         * lib/same.c (same_name): s/base_name/last_component/
60331         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60332         * lib/filenamecat.c (file_name_concat): Likewise.
60333
60334         2006-03-11  Eric Blake  <ebb9@byu.net>,
60335                     Paul Eggert  <eggert@cs.ucla.edu>
60336
60337         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60338         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60339         drive prefix.
60340         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60341         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60342         (last_component): New method.
60343         * lib/dirname.c (dir_len): Determine when drive letters need a
60344         subsequent slash.  Preserve // when it is special.
60345         (dir_name): Don't append dot when drive letter is absolute.
60346         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60347         * lib/basename.c (base_name): New semantics - malloc the result.
60348         Preserve // when it is special.  Preserve relative files that look
60349         like drive letters.
60350         (base_len): Preserve // when it is special.
60351         (last_component): New method, similar to old base_name semantics.
60352         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60353         base_name.  Strip redundant slashes from ///.
60354
60355 2006-07-03  Jim Meyering  <jim@meyering.net>
60356
60357         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60358         macro is used before the first cycle_check call.
60359
60360 2006-07-03  Eric Blake  <ebb9@byu.net>
60361
60362         * modules/dirname (Depends-on): Add xstrndup.
60363
60364 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60367         test cases, so that config.log is a bit easier to follow.
60368
60369 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60370
60371         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60372         both are 64 bits, since this seems to be the tradition, and this
60373         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60374         we ever run into a host that prefers long long to long in this
60375         case, we'll need another configure-time test.  Problem reported by
60376         Jim Meyering.
60377
60378 2006-07-02  Eric Blake  <ebb9@byu.net>
60379
60380         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60381
60382 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60383
60384         * modules/inttypes (Depends-on): No longer depends on stdint.
60385         * modules/stdint (Description): Say more about assumptions.
60386         Say that the fast types might differ.  Say macros are used.
60387         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60388         (Makefile.am): Revise list of substituted symbols to match
60389         new stdint.m4.
60390         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60391         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60392         * tests/test-stdint.c (verify_same_types)
60393         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60394         the code conforms to C99/C89.
60395         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60396         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60397
60398 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60399
60400         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60401         but fix a bug, by requiring at least 64 bits.
60402         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60403         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60404         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60405         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60406
60407         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60408         changes.  Make 2.59 a prerequisite.  Check and substitute for
60409         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60410         inttypes.h.  Do not use special include files; just use the
60411         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60412         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60413         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60414         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60415         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60416         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60417         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60418         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60419         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60420         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60421         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60422         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60423         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60424         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60425         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60426         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60427         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60428         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60429         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60430         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60431         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60432         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60433         not check for things that C99 does not require, e.g., int8_t.  If
60434         a test isn't needed unless <stdint.h> isn't working, and is
60435         unlikely to be needed for any other reason, then don't do it
60436         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60437         size_t, since we assume C89 freestanding at least.  Do not check
60438         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60439         the right thing even if the types are not defined.  Instead use:
60440         (gl_STDINT_TYPE_PROPERTIES): New macro.
60441         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60442         testing whether <sys/types.h> clashes, as Autoconf does this for
60443         us now.  All uses removed.
60444         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60445         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60446         (gl_CHECK_TYPE_SAME):
60447         Remove; no longer needed.
60448         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60449         exists, since we'll return 0 anyway in that case.
60450         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60451
60452 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60455         possible collision with system files.
60456         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60457         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60458         WCHAR_MIN and WCHAR_MAX in this case.
60459         (<stddef.h>): Do not include; no longer needed.
60460         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
60461         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
60462         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
60463         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
60464         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
60465         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
60466         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
60467         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
60468         !defined(__c99))]: Include in this case too, since it's harmless
60469         now.
60470         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
60471         dangerous to do so.
60472         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
60473         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
60474         (_STDINT_MIN, _STDINT_MAX): New macros.
60475         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
60476         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
60477         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
60478         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
60479         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
60480         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
60481         macros, not typedefs; this simplifies things quite a bit.
60482         Use long int for all types narrower than int64_t.
60483         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
60484         Define in terms of long long int or int64_t or long int,
60485         not int64_t or int32_t.  This saves some compile-time testing.
60486         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
60487         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
60488         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
60489         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
60490         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
60491         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
60492         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
60493         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
60494         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
60495         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
60496         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60497         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60498         undef any previous version and define our own version, for
60499         simplicity and consistency with the new macros for types.
60500         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60501         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60502         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
60503         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
60504         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
60505         @WINT_T_SUFFIX@ to keep things simple here.
60506         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
60507         Simplify by assuming typical 8/16/32/64 host, since we're
60508         already doing that elsewhere anyway.
60509         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
60510         and assume long long int is 64 bits if available.  This
60511         speeds up 'configure'.
60512
60513 2006-07-01  Eric Blake  <ebb9@byu.net>
60514
60515         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
60516         Reported by Andreas Buening.
60517
60518 2006-07-01  Eric Blake  <ebb9@byu.net>
60519
60520         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
60521
60522 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60523
60524         * lib/getaddrinfo.c: fixed typo
60525
60526 2006-06-29  Jim Meyering  <jim@meyering.net>
60527
60528         * modules/strftime (Maintainer): Add my name, since with the
60529         FPRINTFTIME changes strftime.c has forked from glibc.
60530
60531 2006-06-29  Eric Blake  <ebb9@byu.net>
60532
60533         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
60534
60535 2006-06-29  Eric Blake  <ebb9@byu.net>
60536
60537         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
60538
60539 2006-06-29  Eric Blake  <ebb9@byu.net>
60540
60541         * lib/stat_.h: New file.
60542
60543 2006-06-29  Eric Blake  <ebb9@byu.net>
60544
60545         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
60546         unused static function.
60547
60548 2006-06-29  Eric Blake  <ebb9@byu.net>
60549
60550         * doc/functions.texi (Function Portability): Document missing lstat
60551         on mingw.
60552
60553 2006-06-29  Eric Blake  <ebb9@byu.net>
60554
60555         * MODULES.html.sh: Add sys_stat.
60556         * modules/sys_stat: New module.
60557         * modules/mkstemp (Depends-on): Add sys_stat.
60558
60559 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60560
60561         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
60562
60563 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60564
60565         * m4/c-bs-a.m4: Removed.
60566
60567 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60568
60569         * lib/strftime.c: Assume strftime() exists.
60570
60571 2006-06-29  Derek Price  <derek@ximbiot.com>
60572
60573         * modules/c-bs-a: Removed - \a is C89.
60574         * MODULES.html.sh: Remove c-bs-a.
60575
60576 2006-06-29  Bruno Haible  <bruno@clisp.org>
60577
60578         * modules/wcwidth (License): Change to LGPL.
60579
60580 2006-06-28  Simon Josefsson  <jas@extundo.com>
60581
60582         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
60583         on _WIN32.
60584
60585         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
60586         getnameinfo.
60587
60588 2006-06-28  Simon Josefsson  <jas@extundo.com>
60589
60590         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
60591
60592 2006-06-28  Simon Josefsson  <jas@extundo.com>
60593
60594         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
60595         functions there.  It will succeed on Windows XP, but on Windows
60596         2000 and (presumably) earlier, it will fail, and use the internal
60597         re-implementation.
60598         (use_win32_p): New function.
60599         (getaddrinfo): Use strtoul on servname, to support numeric ports.
60600         Support AI_NUMERICSERV to disable getservbyname.
60601         (getnameinfo): New function, only supports
60602         NI_NUMERICHOST|NI_NUMERICSERV for now.
60603
60604         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
60605         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
60606         getnameinfo.
60607
60608 2006-06-28  Eric Blake  <ebb9@byu.net>
60609
60610         * modules/wcwidth: New file.
60611         * modules/mbchar (Depends-on): Add wcwidth.
60612         * modules/mbswidth (Depends-on): Add wcwidth.
60613         * MODULES.html.sh: Add wcwidth.
60614
60615 2006-06-28  Eric Blake  <ebb9@byu.net>
60616
60617         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
60618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
60619
60620 2006-06-28  Eric Blake  <ebb9@byu.net>
60621
60622         * lib/xvasprintf.h: Fix comments.
60623
60624 2006-06-28  Eric Blake  <ebb9@byu.net>
60625
60626         * lib/mbchar.h (wcwidth): Include wcwidth.h.
60627         * lib/mbswidth.c (wcwidth): Move from here...
60628         * lib/wcwidth.h: ...to this new file.
60629
60630 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60631
60632         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
60633
60634         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
60635         it's obsolete.
60636         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
60637
60638 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60639
60640         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
60641         Autoconf 2.60 says this stuff was obsolete.
60642
60643 2006-06-28  Bruno Haible  <bruno@clisp.org>
60644
60645         * modules/wcwidth (Files): Add m4/wchar_t.m4.
60646
60647 2006-06-28  Bruno Haible  <bruno@clisp.org>
60648
60649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
60650         gt_TYPE_WCHAR_T.
60651
60652 2006-06-28  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
60655         declaration for wcwidth.
60656         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
60657
60658 2006-06-28  Bruno Haible  <bruno@clisp.org>
60659
60660         * lib/mkdtemp.c [MINGW]: Include <io.h>.
60661         (mkdir): Define using _mkdir.
60662
60663 2006-06-28  Bruno Haible  <bruno@clisp.org>
60664
60665         * lib/getaddrinfo.h: Fix POSIX URL.
60666         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
60667         _WIN32.
60668         (use_win32_p): Make static.
60669         (getaddrinfo): Reject service name if it is empty or does not consist
60670         solely of decimal digits, or if its value is > 65535.
60671         (getnameinfo): Remove useless casts.
60672
60673 2006-06-27  Simon Josefsson  <jas@extundo.com>
60674
60675         * modules/sys_select: New file, suggested by Bruno Haible, Paul
60676         Eggert and Martin Lambers.
60677
60678 2006-06-27  Simon Josefsson  <jas@extundo.com>
60679
60680         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
60681         Eggert and Martin Lambers.
60682
60683 2006-06-27  Bruno Haible  <bruno@clisp.org>
60684
60685         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
60686         result to 0, not to empty.
60687         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
60688
60689 2006-06-27  Bruno Haible  <bruno@clisp.org>
60690
60691         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
60692
60693 2006-06-26  Simon Josefsson  <jas@extundo.com>
60694
60695         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
60696         present.
60697
60698 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
60699
60700         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
60701         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
60702         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
60703
60704 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
60705
60706         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
60707
60708 2006-06-26  Bruno Haible  <bruno@clisp.org>
60709
60710         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
60711
60712 2006-06-26  Bruno Haible  <bruno@clisp.org>
60713
60714         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
60715
60716 2006-06-26  Bruno Haible  <bruno@clisp.org>
60717
60718         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
60719         SGI C compiler in pre-C99 mode.
60720         Suggested by Mark D. Baushke and Larry Jones.
60721
60722 2006-06-26  Bruno Haible  <bruno@clisp.org>
60723
60724         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
60725         WCHAR_MAX.
60726         Reported by Mark D. Baushke and Larry Jones.
60727
60728 2006-06-26  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
60731         in pre-C99 mode.
60732         Suggested by Mark D. Baushke and Larry Jones.
60733
60734 2006-06-23  Simon Josefsson  <jas@extundo.com>
60735             Bruno Haible  <bruno@clisp.org>
60736
60737         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
60738         Emit mostlyclean-local rule.
60739         (func_emit_tests_Makefile_am): Likewise.
60740         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
60741
60742 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
60743
60744         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
60745
60746 2006-06-23  Bruno Haible  <bruno@clisp.org>
60747
60748         * tests/test-stdint.c: Update to match ISO C 99 Technical
60749         Corrigendum 1.
60750
60751 2006-06-23  Bruno Haible  <bruno@clisp.org>
60752
60753         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
60754
60755 2006-06-23  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/stdint_.h: Treat IRIX like OpenBSD.
60758
60759 2006-06-23  Bruno Haible  <bruno@clisp.org>
60760
60761         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
60762         ISO C 99 Technical Corrigendum 1.
60763
60764 2006-06-22  Simon Josefsson  <jas@extundo.com>
60765
60766         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
60767         MinGW.
60768
60769 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60770
60771         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
60772         needed.  Some compiler complained about some of them.  Problem reported
60773         by Larry Jones in
60774         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
60775
60776 2006-06-21  Simon Josefsson  <jas@extundo.com>
60777
60778         * tests/test-getaddrinfo.c: New file.
60779
60780         * modules/getaddrinfo-tests: New file.
60781
60782         * MODULES.html.sh: Add inet_pton.
60783
60784         * modules/inet_pton: New file.
60785
60786 2006-06-21  Simon Josefsson  <jas@extundo.com>
60787
60788         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
60789         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
60790         of using the (limited) gnulib implementation on Windows XP.
60791
60792         * m4/inet_pton.m4: New file.
60793
60794 2006-06-21  Simon Josefsson  <jas@extundo.com>
60795
60796         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60797         variable.
60798
60799         * lib/socket_.h: Don't define WINVER.
60800
60801         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60802         slightly modified to work in gnulib.
60803
60804 2006-06-21  Simon Josefsson  <jas@extundo.com>
60805
60806         * doc/gnulib.texi (Windows sockets): Add.
60807
60808 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60809
60810         * lib/read-file.c (fread_file): Start with buffer allocation of
60811         0 bytes rather than 1 byte; this simplifies the code.
60812         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60813         code to free buffer and save/restore errno.
60814         (internal_read_file): Remove unused local.
60815
60816 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60817
60818         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60819         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60820         Problem reported by Denis Excoffier in
60821         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60822
60823 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60824
60825         * modules/sys_socket, modules/socklen: Include sys/types since
60826         FreeBSD 4.x's sys/socket.h needs it.
60827
60828 2006-06-19  Simon Josefsson  <jas@extundo.com>
60829
60830         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60831
60832 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60833
60834         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60835
60836 2006-06-19  Bruno Haible  <bruno@clisp.org>
60837
60838         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60839         and FULL_PATH_INTTYPES_H in angle brackets.
60840         Reported by Mark D. Baushke <mdb@gnu.org>.
60841
60842 2006-06-17  Eric Blake  <ebb9@byu.net>
60843
60844         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60845         errno.
60846
60847 2006-06-17  Bruno Haible  <bruno@clisp.org>
60848
60849         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60850         <sys/inttypes.h>.
60851
60852 2006-06-17  Bruno Haible  <bruno@clisp.org>
60853
60854         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60855         whether errno is declared. Assume <errno.h> declares errno.
60856
60857 2006-06-17  Bruno Haible  <bruno@clisp.org>
60858
60859         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60860
60861 2006-06-17  Bruno Haible  <bruno@clisp.org>
60862
60863         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60864         problem on Solaris 2.5.1.
60865
60866 2006-06-16  Eric Blake  <ebb9@byu.net>
60867
60868         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60869         * lib/unicodeio.c [!defined errno]: Likewise.
60870         * lib/strtol.c [!defined errno]: Likewise.
60871         * lib/strtod.c [!defined errno]: Likewise.
60872
60873 2006-06-15  Eric Blake  <ebb9@byu.net>
60874
60875         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60876
60877 2006-06-15  Eric Blake  <ebb9@byu.net>
60878
60879         * config/srclist.txt (ssize_t.m4): Lose sync.
60880
60881 2006-06-15  Bruno Haible  <bruno@clisp.org>
60882
60883         * modules/stdint (Files): Include m4/full-header-path.m4,
60884         m4/size_max.m4, m4/wchar_t.m4.
60885         (Makefile.am): Many more substitutions.
60886         * modules/stdint-tests: New file.
60887         * tests/test-stdint.c: New file.
60888
60889 2006-06-15  Bruno Haible  <bruno@clisp.org>
60890
60891         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60892         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60893         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60894         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60895         gl_CHECK_TYPE_SAME): New macros.
60896
60897 2006-06-15  Bruno Haible  <bruno@clisp.org>
60898
60899         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60900
60901 2006-06-15  Bruno Haible  <bruno@clisp.org>
60902
60903         * lib/stdint_.h: Rewritten to be fully auto-configured.
60904         Fixes bug on HP-UX/IA64.
60905
60906 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60907
60908         * lib/getdate.y (__attribute__): Don't define if already defined.
60909         Problem reported by Larry Jones.
60910         * lib/utimens.c (__attribute__): Likewise.
60911
60912 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60913
60914         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60915         reported by Andreas Schwab.
60916
60917 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60918             Bruno Haible  <bruno@clisp.org>
60919
60920         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60921         check for the declaration of strnlen and a run test that exposes the
60922         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60923         rpl_strndup.
60924
60925 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60926             Bruno Haible  <bruno@clisp.org>
60927
60928         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60929
60930 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60931
60932         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60933         compile test, for Tru64 4.0D.
60934
60935 2006-05-28  Karl Berry  <karl@gnu.org>
60936
60937         * config/srclist.txt (printf-args.c): lose sync.
60938
60939 2006-05-26  Martin Lambers  <marlam@marlam.de>
60940
60941         * lib/getpass.c: Updates the test for the native W32 API, and adds
60942         missing includes, thus fixing compilation warnings.
60943
60944 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60945
60946         * lib/exclude.c (exclude_fnmatch): New function.
60947         (excluded_file_name): Call exclude_fnmatch.
60948         * lib/exclude.h (excluded_file_name): New prototype
60949
60950 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         * lib/tempname.c (small_open, large_open): New macros.
60953         (__open, __open64) [!_LIBC]: Remove.
60954         (__gen_tempname): Use small_open and large_open instead of __open
60955         and __open64.  This fixes a portability bug on HP-UX 11.11i
60956         reported by Simon Wing-Tang in
60957         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60958
60959 2006-05-24  Bruno Haible  <bruno@clisp.org>
60960
60961         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60962         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60963         Reported by Thorsten Maerz <torte@netztorte.de> via
60964         Aaron Stone <aaron@serendipity.cx>.
60965
60966 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60967
60968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60969         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60970         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60971         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60972         not really conditional on the cache.
60973         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60974
60975 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60978         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60979         (my_usleep): Don't mishandle maximum value.
60980
60981 2006-05-19  Jim Meyering  <jim@meyering.net>
60982
60983         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60984
60985 2006-05-17  Bruno Haible  <bruno@clisp.org>
60986
60987         Cygwin portability.
60988         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60989
60990 2006-05-17  Bruno Haible  <bruno@clisp.org>
60991
60992         * lib/stdint_.h: Fix recognition of Cygwin.
60993
60994 2006-05-15  Bruno Haible  <bruno@clisp.org>
60995
60996         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60997         on libtool patch by Ralf Wildenhues.
60998
60999 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61000
61001         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61002         test for C99 conformance; (bool) 0.5 is an integer constant
61003         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61004         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61005
61006 2006-05-11  Simon Josefsson  <jas@extundo.com>
61007
61008         * m4/xvasprintf.m4: Fix obvious typo.
61009
61010 2006-05-11  Jim Meyering  <jim@meyering.net>
61011
61012         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61013         James Lemley.
61014
61015 2006-05-10  Simon Josefsson  <jas@extundo.com>
61016
61017         * lib/md4.c: Typo fix, update copyright years.
61018         (K1, K2): Don't use L because it turn computations into 64-bit on
61019         64-bit platforms.
61020
61021 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61022
61023         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61024         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61025         unwanted sign propagation, e.g., on hosts with 64-bit int.
61026         There still are some problems with reeelly weird theoretical hosts
61027         (e.g., 33-bit int) but it's not worth worrying about now.
61028         * lib/sha1.c (rol): Likewise.
61029         (K1, K2, K3, K4): Remove unnecessary L suffix.
61030
61031 2006-05-10  Bruno Haible  <bruno@clisp.org>
61032
61033         * lib/des.c: Cast to avoid warnings.
61034
61035 2006-05-09  Bruno Haible  <bruno@clisp.org>
61036
61037         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61038         (Depends-on): Depend also on xsize, stdarg.
61039         (configure.ac): Add gl_XVASPRINTF.
61040
61041 2006-05-09  Bruno Haible  <bruno@clisp.org>
61042
61043         * m4/xvasprintf.m4: New file.
61044
61045 2006-05-09  Bruno Haible  <bruno@clisp.org>
61046
61047         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61048         (EOVERFLOW): Define fallback value.
61049         (xstrcat): New function.
61050         (xvasprintf): Recognize the special case of a string concatenation.
61051
61052 2006-05-08  Eric Blake  <ebb9@byu.net>
61053
61054         * gnulib-tool (func_version): Base copyright year on CVS date.
61055         (func_emit_copyright_notice): New function.
61056         (func_emit_lib_Makefile_am): Use it.
61057         (func_emit_tests_Makefile_am): Likewise.
61058         (func_import): Likewise.
61059
61060 2006-05-08  Bruno Haible  <bruno@clisp.org>
61061
61062         * modules/stdarg: New file.
61063         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61064
61065 2006-05-08  Bruno Haible  <bruno@clisp.org>
61066
61067         * m4/stdarg.m4: New file, from GNU gettext.
61068
61069 2006-05-08  Bruno Haible  <bruno@clisp.org>
61070
61071         * config/srclist.txt (build-aux/config.rpath): different from latest
61072         release.
61073
61074 2006-05-08  Bruno Haible  <bruno@clisp.org>
61075
61076         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61077
61078 2006-05-05  Jim Meyering  <jim@meyering.net>
61079
61080         * m4/warning.m4: New file, derived from bison's file by the same name.
61081
61082 2006-05-03  Bruno Haible  <bruno@clisp.org>
61083
61084         * lib/stdint_.h: Shorter URL.
61085         * lib/inttypes.h: Likewise.
61086
61087 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61088
61089         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61090
61091 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61092
61093         * lib/verify.h: Document the internals better.  Most of this change
61094         was written by Bruno Haible.
61095
61096 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         * doc/verify.texi: New file, partly based on a proposal by
61099         Bruno Haible.
61100
61101 2006-05-02  Bruno Haible  <bruno@clisp.org>
61102
61103         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61104         test from here...
61105         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61106
61107 2006-04-29  Bruno Haible  <bruno@clisp.org>
61108
61109         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61110         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61111
61112 2006-04-29  Bruno Haible  <bruno@clisp.org>
61113
61114         * gnulib-tool: Make --update option actually work.
61115
61116 2006-04-29  Bruno Haible  <bruno@clisp.org>
61117
61118         * doc/gcd.texi: New file.
61119         * doc/gnulib.texi: Include it.
61120
61121 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61122
61123         * lib/getdate.y (get_date): When adding relative date, start with the
61124         initial time, not with the result of the first mktime call.
61125
61126 2006-04-25  Bruno Haible  <bruno@clisp.org>
61127
61128         * gnulib-tool (func_import): Output the include directives in three
61129         blocks, sorted separately.
61130         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61131
61132 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61133
61134         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61135         to define main with arguments, for C++.  Reported by Eric Blake.
61136         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61137         Prefer 'int main ()' to 'int main (void)', for C++.
61138         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61139         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61140         for 'main', for C99 and C++.
61141
61142 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61143
61144         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61145         Don't assume that exit status -1 is valid.
61146         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61147         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61148         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61149         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61150         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61151         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61152         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61153         functions can be used without declaring them, or that you can
61154         exit with status -1.
61155         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61156
61157 2006-04-24  Karl Berry  <karl@gnu.org>
61158
61159         * config/srclist.txt (longdouble.m4): sync lost.
61160
61161 2006-04-24  Eric Blake  <ebb9@byu.net>
61162
61163         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61164
61165 2006-04-24  Bruno Haible  <bruno@clisp.org>
61166
61167         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61168         poll() implementation in AIX.
61169         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61170
61171 2006-04-24  Bruno Haible  <bruno@clisp.org>
61172
61173         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61174         assigned exactly once.
61175
61176 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61177             Bruno Haible  <bruno@clisp.org>
61178
61179         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61180         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61181         for AM_CPPFLAGS.
61182
61183 2006-04-23  Bruno Haible  <bruno@clisp.org>
61184
61185         * modules/copy-file: Depend on unistd.
61186         * modules/execute: Likewise.
61187         * modules/fatal-signal: Likewise.
61188         * modules/findprog: Likewise.
61189         * modules/mkdtemp : Likewise.
61190         * modules/pipe: Likewise.
61191         * modules/wait-process: Likewise.
61192
61193 2006-04-23  Bruno Haible  <bruno@clisp.org>
61194
61195         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61196         condition was already detected.
61197         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61198
61199 2006-04-23  Bruno Haible  <bruno@clisp.org>
61200
61201         * lib/copy-file.c: Include <unistd.h> unconditionally.
61202         * lib/execute.c: Likewise.
61203         * lib/fatal-signal.c: Likewise.
61204         * lib/findprog.c: Likewise.
61205         * lib/mkdtemp.c: Likewise.
61206         * lib/pipe.h: Likewise.
61207         * lib/pipe.c: Likewise.
61208         * lib/wait-process.h: Likewise.
61209
61210 2006-04-23  Bruno Haible  <bruno@clisp.org>
61211
61212         * gnulib-tool (func_usage): Fix --import description. Document
61213         --update.
61214         (func_import): Create temporary file in a temporary directory, if
61215         --dry-run is specified. Silence errors from 'grep' when there are no
61216         m4 files in $m4dir.
61217         (func_create_testdir): Silence errors from 'grep' when there are no
61218         m4 files in $m4dir.
61219         Reported by Karl Berry <karl@freefriends.org>.
61220
61221 2006-04-20  Bruno Haible  <bruno@clisp.org>
61222
61223         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61224         one argument, so that the code will be portable to Autoconf 2.60.
61225         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61226         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61227         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61228
61229 2006-04-19  Derek Price  <derek@ximbiot.com>
61230             Eric Blake  <ebb9@byu.net>
61231
61232         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61233         rather than "/full/path.h".  Update comment to match.  Shorten &
61234         generalize m4_translit call via AS_TR_CPP.
61235
61236 2006-04-19  Derek Price  <derek@ximbiot.com>
61237             Eric Blake  <ebb9@byu.net>
61238
61239         * lib/inttypes.h: Correct grammar in comment.
61240
61241 2006-04-18  Derek Price  <derek@ximbiot.com>
61242             Paul Eggert  <eggert@cs.ucla.edu>
61243
61244         * modules/inttypes: New file.
61245         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61246
61247 2006-04-18  Derek Price  <derek@ximbiot.com>
61248             Paul Eggert  <eggert@cs.ucla.edu>
61249
61250         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61251         New files.
61252
61253 2006-04-18  Derek Price  <derek@ximbiot.com>
61254             Paul Eggert  <eggert@cs.ucla.edu>
61255
61256         * lib/inttypes.h: New file.
61257         * lib/strtoimax.c: Assume <inttypes.h>.
61258
61259 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61260
61261         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61262         isn't mounted.  Problem reported by Kir Kolyshkin.
61263
61264 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61265
61266         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61267         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61268         Derek R. Price.
61269         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61270         implementation.
61271
61272 2006-04-12  Eric Blake  <ebb9@byu.net>
61273
61274         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61275         is now done automatically by the corresponding Autoconf macro.
61276
61277 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61278
61279         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61280         time_r.h.
61281
61282 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61283
61284         Merge regex changes from libc, removing some of our
61285         POSIX-conformance changes that were rejected and redoing them in a
61286         less-intrusive way.
61287
61288         * lib/regcomp.c (re_compile_internal, init_dfa):
61289         Length arg is now size_t, not Idx.  All uses changed.
61290         (peek_token): Forward decl now says internal_function.
61291         (__re_error_msgid, __re_error_msgid_idx):
61292         Now static rather than extern with attribute_hidden.
61293         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61294         For some reason libc prefers K&R style defns for external functions.
61295         (regerror) [!defined _LIBC]: Likewise.
61296         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61297         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61298         (build_range_exp, build_collating_symbol):
61299         Use K&R-style defn.
61300         (re_compile_fastmap): Use '\0' to memset, not 0.
61301         (utf8_sb_map): Make the calculations more obvious.
61302         (init_dfa, parse_bracket_exp, build_charclass_op):
61303         Call calloc and cast result, as glibc does.
61304         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61305         (build_range_exp, build_collating_symbol):
61306         Now internal functions.
61307
61308         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61309
61310         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61311         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61312         Don't depend on VMS; depend on __VMS instead, for POSIX
61313         namespace cleanness.
61314         (regoff_t): Define to ssize_t, not long int.
61315
61316         Remove the REG_ macros named below.  Instead, make the old names
61317         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61318         __USE_GNU_REGEX.
61319         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61320         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61321         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61322         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61323         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61324         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61325         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61326         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61327         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61328         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61329         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61330         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61331         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61332         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61333         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61334         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61335         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61336         (REG_NREGS):
61337         Remove.  All uses replaced by the old RE_* names.
61338         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61339         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61340         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61341         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61342         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61343         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61344         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61345         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61346         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61347         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61348         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61349         Don't bother having these macros be independent of each others'
61350         values, since they no longer exist in the POSIX name space.
61351
61352         Rename the following member names back to their old names,
61353         unless !__USE_GNU_REGEX.  All uses changed back.
61354         (buffer): Renamed from re_buffer.
61355         (allocated): Renamed from re_allocated.
61356         (used): Renamed from re_used.
61357         (syntax): Renamed from re_syntax.
61358         (fastmap): Renamed from re_fastmap.
61359         (translate): Renamed from re_translate.
61360         (can_be_null): Renamed from re_can_be_null.
61361         (regs_allocated): Renamed from re_regs_allocated.
61362         (fastmap_accurate): Renamed from re_fastmap_accurate.
61363         (no_sub): Renamed from re_no_sub.
61364         (not_bol): Renamed from re_not_bol.
61365         (not_eol): Renamed from re_not_eol.
61366         (newline_anchor): Renamed from re_newline_anchor.
61367         (num_regs): Renamed from rm_num_regs.
61368         (start): Renamed from rm_start.
61369         (end): Renamed from rm_end.
61370
61371         (free_state): Move up a bit.
61372
61373         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61374         #define to be empty.
61375         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61376         when that is what is intended.
61377         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61378         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61379         (MAX): New macro.
61380         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61381         All uses changed back to re_malloc, etc.  It's now the caller's
61382         responsibility to check for overflow; all callers changed.
61383         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61384         (re_x2nrealloc): Remove.
61385         (free_state): Remove decl.
61386
61387         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61388         (re_set_registers, re_exec):
61389         Use K&R-style defn.
61390
61391         2006-01-31  Roland McGrath  <roland@redhat.com>
61392
61393         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61394         Reported by Mike Frysinger <vapier@gentoo.org>.
61395
61396         2006-01-15  Andreas Jaeger  <aj@suse.de>
61397
61398         [BZ #1950]
61399         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61400         build_wcs_upper_buffer change.
61401         (build_wcs_upper_buffer): Change return type.
61402
61403         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61404
61405         * lib/regex_internal.h: Include <stdint.h> if available.
61406
61407         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61408
61409         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61410
61411         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61412
61413         * lib/regcomp.c: Adjust for changed secondary hash function.
61414
61415         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61416
61417         * lib/regex.h: Pretty printing.
61418         Clean up namespace a bit.
61419
61420         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61421
61422         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61423         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61424
61425         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61426                     Ulrich Drepper  <drepper@redhat.com>
61427
61428         [BZ #1302]
61429         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61430         changed.
61431         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61432
61433         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61434
61435         [BZ #281]
61436         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61437         * lib/regcomp.c: Remove unnecessary uses of
61438         unsigned RE_TRANSLATE_TYPE.
61439         * lib/regex_internal.h: Likewise.
61440         * lib/regex_internal.c: Likewise.
61441         * lib/regexec.c: Likewise.
61442         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61443
61444         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61445
61446         * lib/regexec.c (find_recover_state): Remove unnecessary
61447         initialization.
61448         (transit_state_bkref): Make DFA a const pointer.
61449         (get_subexp): Likewise.
61450         (check_arrival): Likewise.
61451         (update_cur_sifted_state): Likewise.
61452         (re_search_internal): Likewise.
61453         (prune_impossible_nodes): Likewise.
61454         (acquire_init_state_context): Likewise.
61455         (proceed_next_node): Likewise.
61456         (set_regs): Likewise.
61457         (free_fail_stack_return): Likewise.
61458         (check_arrival_expand_ecl): Mark DFA parameter as const.
61459         (check_arrival_expand_ecl_sub): Likewise.
61460         (check_subexp_limits): Likewise.
61461         (sub_epsilon_src_nodes):  Likewise.
61462         (add_epsilon_src_nodes):  Likewise.
61463         (merge_state_array): Likewise.
61464         (update_regs): Likewise.
61465         (build_trtable): Likewise.
61466         (sift_states_backward): Mark MCTX parameter as const.
61467         (build_sifted_states): Likewise.
61468         (update_cur_sifted_state): Likewise.
61469         (sift_states_mkref): Likewise.
61470         (check_arrival_expand_ecl): Mark eclosure as const.
61471         (check_dst_limits_calc_pos_1): Likewise.
61472         * lib/regex_internal.h (re_match_context_t): Make dfa a const
61473         pointer.
61474
61475         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
61476
61477         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
61478         (transit_state_sb): Likewise.
61479         (transit_state_mb): Likewise.
61480         (sift_states_iter_mb): Likewise.
61481         (check_arrival_add_next_nodes): Likewise.
61482         (check_node_accept_bytes): Change first parameter to pointer-to-const.
61483         [_LIBC] (re_search_2_stub): Use mempcpy.
61484
61485         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
61486         mbrtowc for very simple UTF-8 case.
61487
61488         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
61489         a pointer-to-const.
61490         (re_acquire_state_context): Likewise.
61491         * lib/regex_internal.h: Adjust prototypes.
61492
61493         * lib/regex.c: Prevent using C++ compilers.
61494
61495         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
61496         (re_acquire_state_context): Likewise.
61497
61498 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61499
61500         * modules/regex (Depends-on): Add ssize_t.
61501
61502 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61503
61504         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
61505         translation table.
61506
61507 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61508
61509         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
61510
61511 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
61512             Bruno Haible  <bruno@clisp.org>
61513
61514         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
61515         <sys/types.h> and <inttypes.h>.
61516
61517 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61518
61519         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
61520         `__error_t_defined', so argp.h will not typedef the former.
61521
61522 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61523
61524         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
61525         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
61526         glibc names.  Even if glibc is changed to conform to POSIX, the
61527         traditional names will be available anyway, since regex depends on
61528         the extensions module.  Also, fix a longstanding typo in the
61529         implementation of Spencer ERE test #75 from grep 2.3.  Problems
61530         reported by Emanuele Giaquinta.  Also, change sense of cached
61531         variable, so that the message makes sense.
61532
61533 2006-03-24  Simon Josefsson  <jas@extundo.com>
61534
61535         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
61536         including some doc fixes.
61537         (base64_encode_alloc): Fix +1 bug on allocation failures.
61538
61539 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61540
61541         * lib/base64.c (base64_encode): Do not read past end of array with
61542         unsanitized input on systems with CHAR_BIT > 8.
61543
61544 2006-03-24  Eric Blake  <ebb9@byu.net>
61545
61546         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
61547
61548 2006-03-22  Karl Berry  <karl@gnu.org>
61549
61550         * config/srclist.txt (*setenv.[ch]): get from coreutils.
61551         * config/srclistvars.sh (COREUTILS): new var.
61552
61553 2006-03-17  Jim Meyering  <jim@meyering.net>
61554
61555         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
61556         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
61557
61558 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61559
61560         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
61561         no longer needs it.  Instead, check that regoff_t is as least
61562         as wide as ptrdiff_t.
61563
61564         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
61565         so that our regex.h stays compatible with the installed regex.
61566         This is helpful for installers who configure --without-included-regex.
61567         Problem reported by Emanuele Giaquinta.
61568
61569 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61570
61571         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
61572         Typedef to long int, not to off_, as POSIX will likely change
61573         in that direction.
61574
61575 2006-03-15  Eric Blake  <ebb9@byu.net>
61576
61577         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
61578
61579 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61580
61581         * lib/argp-help.c (validate_uparams): Fix typo
61582         * lib/argp-parse.c (argp_default_options): Consistently begin help
61583         messages with a lowercase letter.
61584
61585 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
61586
61587         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
61588         overrun buffers and shouldn't be used (much as gets shouldn't be
61589         used).
61590         * lib/time_r.c (asctime_r, ctime_r): Likewise.
61591
61592 2006-03-08  Simon Josefsson  <jas@extundo.com>
61593
61594         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
61595         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61596
61597 2006-03-08  Simon Josefsson  <jas@extundo.com>
61598
61599         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
61600         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61601
61602 2006-03-08  Simon Josefsson  <jas@extundo.com>
61603
61604         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
61605         signal that configure disabled the device.
61606
61607 2006-03-08  Simon Josefsson  <jas@extundo.com>
61608
61609         * build-aux/maint.mk: Fix refresh-po, to handle no translated
61610         languages.
61611
61612 2006-03-07  Simon Josefsson  <jas@extundo.com>
61613
61614         * modules/getopt (Depends-on): Add unistd.
61615
61616         * modules/unistd: New file.
61617
61618 2006-03-07  Simon Josefsson  <jas@extundo.com>
61619
61620         * modules/gc-random: New file.
61621
61622 2006-03-07  Simon Josefsson  <jas@extundo.com>
61623
61624         * m4/unistd_h.m4: New file.
61625
61626 2006-03-07  Simon Josefsson  <jas@extundo.com>
61627
61628         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
61629         test to be side-effect free by storing the result in the cache
61630         variable gl_cv_lib_readline, and moving the assignment of
61631         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
61632         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61633
61634 2006-03-07  Simon Josefsson  <jas@extundo.com>
61635
61636         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
61637         error on missing devices (the functions will return an error).
61638
61639         * m4/gc.m4: Move random stuff to gc-random.m4
61640
61641 2006-03-07  Simon Josefsson  <jas@extundo.com>
61642
61643         * lib/unistd_.h: New file.
61644
61645 2006-03-07  Simon Josefsson  <jas@extundo.com>
61646
61647         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
61648
61649 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61650
61651         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
61652         Problem reported by Juan Manuel Guerrero.
61653
61654 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
61657         the unistd module.
61658         * lib/getlogin_r.c: Likewise.
61659         * lib/getlogin_r.h: Likewise.
61660         * lib/glob.c: Likewise.
61661         * lib/pagealign_alloc.c: Likewise.
61662         * lib/unistd_.h: Remove; no longer needed.
61663
61664 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61665
61666         * MODULES.html.sh (Support for systems lacking POSIX:2001):
61667         Add unistd.
61668         * modules/c-stack (Depends-on): Add unistd.
61669         * modules/getlogin_r: Likewise.
61670         * modules/glob: Likewise.
61671         * modules/pagealign_alloc: Likewise.
61672         * modules/unistd (Files): Remove lib/unistd_.h.
61673         (EXTRA_DIST): Remove.
61674         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
61675         need unistd_.h.
61676         (MOSTLYCLEANFILES): Remove unistd.h-t.
61677
61678 2006-03-03  Simon Josefsson  <jas@extundo.com>
61679
61680         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
61681
61682 2006-03-03  Simon Josefsson  <jas@extundo.com>
61683
61684         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
61685         libidn and bison.
61686
61687 2006-03-03  Simon Josefsson  <jas@extundo.com>
61688
61689         * build-aux/maint.mk: Add indent target.
61690
61691 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
61692
61693         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
61694         our replacement poll.h in any case, to avoid a differing
61695         declaration from a system header.  Seen on AIX.
61696
61697 2006-03-01  Simon Josefsson  <jas@extundo.com>
61698
61699         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
61700         <kasal@ucw.cz>.
61701
61702 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61703
61704         * modules/gettime (Depends-on): Add extensions module.
61705         * modules/nanosleep (Depends-on): Likewise.
61706         * modules/settime (Depends-on): Likewise.
61707
61708 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61709
61710         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
61711         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
61712         pedantically.
61713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61714         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
61715
61716         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
61717         not "==".  Reported by Ralf Wildenhues.
61718
61719 2006-03-01  Karl Berry  <karl@gnu.org>
61720
61721         * doc/Copyright/request-*: new files, synced from gnuorg.
61722
61723 2006-03-01  Karl Berry  <karl@gnu.org>
61724
61725         * config/srclist.txt (Copyright/*): new entries.
61726
61727 2006-02-28  Simon Josefsson  <jas@extundo.com>
61728
61729         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
61730
61731 2006-02-27  Simon Josefsson  <jas@extundo.com>
61732
61733         * lib/base64.h: Indent #define's.  From Jim Meyering
61734         <jim@meyering.net>.
61735
61736 2006-02-27  Jim Meyering  <jim@meyering.net>
61737
61738         Revert the change of 2006-02-24, so these files can continue
61739         to be sync'd from gettext.
61740         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
61741         of `config.h'.
61742
61743 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61744
61745         * modules/intprops: New file.
61746         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61747         Add intprops.
61748         * modules/getloadavg (Files): Remove lib/intprops.h.
61749         (Depends-on): Add intprops.
61750         * modules/human: Likewise.
61751         * modules/inttostr: Likewise.
61752         * modules/openat: Likewise.
61753         * modules/sig2str: Likewise.
61754         * modules/userspec: Likewise.
61755         * modules/utimecmp: Likewise.
61756         * modules/xnanosleep: Likewise.
61757         * modules/xstrtol: Likewise.
61758
61759 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
61760
61761         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
61762         * modules/lock-tests (TESTS): Use $(EXEEXT).
61763         * modules/tls-tests: Likewise.
61764         * modules/argp-tests: Likewise.
61765         (check_PROGRAMS): New var, replacing...
61766         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
61767
61768 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61769
61770         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
61771         `config.h'.
61772
61773 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61774
61775         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
61776
61777 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61778
61779         Sync from coreutils.
61780         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
61781         gl_CHDIR_SAFER.
61782
61783 2006-02-22  Jim Meyering  <jim@meyering.net>
61784
61785         Sync from coreutils.
61786         * m4/chdir-safer.m4: New file.
61787
61788 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61789
61790         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
61791         AT_FDCWD exceeds INT_MAX.
61792         * lib/openat.h (AT_FDCWD): Likewise.
61793
61794 2006-02-17  Eric Blake  <address@hidden>
61795
61796         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61797
61798 2006-02-16  Simon Josefsson  <jas@extundo.com>
61799
61800         * modules/getaddrinfo (Depends-on): Add sys_socket.
61801
61802 2006-02-15  Simon Josefsson  <jas@extundo.com>
61803
61804         * build-aux/maint.mk: Add dsyntax-check rule.
61805
61806 2006-02-15  Eric Blake  <ebb9@byu.net>
61807
61808         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61809         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61810         'present but cannot compile' warnings on cygwin.
61811         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61812         use ws2tcpip.h if sys/socket.h works.
61813         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61814         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61815
61816 2006-02-14  Simon Josefsson  <jas@extundo.com>
61817
61818         * modules/maintainer-makefile (Files): Rename.
61819
61820         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61821         and (the local) Makefile.cfg to maint-cfg.mk.
61822
61823         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61824         to the latter.
61825
61826         * modules/maintainer-makefile: New module.
61827
61828         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61829         severaly stripped to make it possible to build it up from scratch
61830         with reliable tests.
61831
61832         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61833         fixes to permit overriding the default actions when configure and
61834         makefile are not available.
61835
61836 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61837
61838         Sync from coreutils.
61839         * modules/lstat (Depends-on): Don't depend on xalloc.
61840         (License): Change from GPL to LGPL, since this is now simply a
61841         replacement for a libc function.
61842
61843 2006-02-14  Jim Meyering  <jim@meyering.net>
61844
61845         Sync from coreutils.
61846
61847         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61848         failure on deficient systems, and simplify gnulib lgpl dependencies.
61849         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61850         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61851
61852         * lib/xalloc-die.c: Remove unused definition of N_.
61853
61854 2006-02-14  Jim Meyering  <jim@meyering.net>
61855
61856         Sync from coreutils.
61857         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61858         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61859         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61860         double-quote uses of that variable, to accommodate the rare case in
61861         which getmntent is available in none of the libraries checked.  This
61862         happens at least on FreeBSD 5.0.
61863
61864 2006-02-13  Simon Josefsson  <jas@extundo.com>
61865
61866         * gnulib-tool (Usage): Fix --import, from
61867         karl@freefriends.org (Karl Berry).
61868
61869 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61870
61871         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61872
61873 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61874
61875         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61876         "autoupdate" on 2005-12-12.
61877
61878 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61879
61880         * modules/closeout (Depends-on): Remove atexit.
61881
61882 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61883
61884         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61885         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61886
61887 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61888
61889         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61890         __EXTENSIONS__ if this causes compilation to fail.  Problem
61891         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61892         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61893
61894 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61895
61896         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61897         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61898         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61899         All uses changed.
61900
61901 2006-01-26  Simon Josefsson  <jas@extundo.com>
61902
61903         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61904         prototype is visible on mingw32.
61905
61906         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61907         for mingw32.
61908
61909         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61910         mingw32).
61911
61912 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61913
61914         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61915         attempt to open for write; this always fails, at least on POSIX
61916         hosts.  This reinstates the 2006-01-09 change, which was
61917         inadvertently removed.
61918
61919 2006-01-26  Bruno Haible  <bruno@clisp.org>
61920
61921         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61922         Reported by Paul Eggert.
61923
61924 2006-01-26  Bruno Haible  <bruno@clisp.org>
61925             Paul Eggert  <eggert@cs.ucla.edu>
61926
61927         * lib/stdbool_.h (_Bool)
61928         [(! (defined __cplusplus || defined __BEOS__)
61929           && !defined __GNUC__
61930           && !(defined __HP_cc || defined __xlc__
61931                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61932                || defined __sgi))]:
61933         #define to signed char in these cases too; this simplifies
61934         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61935         etc., separately) and makes it more conservative.
61936
61937 2006-01-25  Simon Josefsson  <jas@extundo.com>
61938
61939         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61940         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61941         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61942
61943 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61944
61945         * lib/argp-namefrob.h: Bugfix. Remove stray #
61946
61947 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61948
61949         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61950         so that we test the test.
61951         Check for yet another HP-UX cc bug involving *bool |= bool.
61952
61953 2006-01-25  Karl Berry  <karl@gnu.org>
61954
61955         * config/srclist.txt (vasnprintf.c): sync lost.
61956
61957 2006-01-25  Jim Meyering  <jim@meyering.net>
61958
61959         Sync from the stable (b5) branch of coreutils:
61960
61961         * lib/fts.c (fts_children): Don't let close() clobber errno from
61962         failed fchdir().
61963
61964         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61965         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61966         a dangling symlink.  That can also happen at least for ELOOP.
61967         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61968         FYI, this bug predates the inclusion of fts.c in coreutils.
61969
61970         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61971         in their own block, so pre-c99 compilers don't object.
61972
61973         Avoid the double-free (first in fts_read, second in fts_close) that
61974         would occur when an `active' directory is made inaccessible (e.g.,
61975         via chmod a-x) during a traversal.
61976         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61977         before returning.  Reproduce this failure by
61978         mkdir -p a/b; cd a; chmod a-x . b
61979         Reported by Stavros Passas.
61980
61981 2006-01-25  Jim Meyering  <jim@meyering.net>
61982
61983         * lib/fileblocks.c: Remove more useless parentheses.
61984         * lib/readutmp.h: Likewise.
61985
61986 2006-01-25  Bruno Haible  <bruno@clisp.org>
61987
61988         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61989         warnings.
61990         Reported by Paul Eggert.
61991
61992 2006-01-25  Bruno Haible  <bruno@clisp.org>
61993
61994         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61995         rid of a trap command. For Solaris sh.
61996         Reported by Mark D. Baushke <mdb@gnu.org>.
61997
61998 2006-01-24  Simon Josefsson  <jas@extundo.com>
61999
62000         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62001         Bruno.
62002
62003 2006-01-24  Karl Berry  <karl@gnu.org>
62004
62005         * config/srclist.txt (argp-namefrob.h): sync lost.
62006
62007 2006-01-24  Jim Meyering  <jim@meyering.net>
62008
62009         * modules/openat (Files): Add lib/intprops.h.
62010         From Mark D. Baushke.
62011
62012 2006-01-24  Jim Meyering  <jim@meyering.net>
62013
62014         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62015         Reported by Mark D. Baushke.
62016
62017 2006-01-24  Jim Meyering  <jim@meyering.net>
62018
62019         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62020
62021 2006-01-24  Bruno Haible  <bruno@clisp.org>
62022
62023         * modules/strnlen (Maintainer): Change from glibc to all.
62024
62025 2006-01-24  Bruno Haible  <bruno@clisp.org>
62026
62027         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62028         Patch by Paul Eggert.
62029
62030 2006-01-24  Bruno Haible  <bruno@clisp.org>
62031
62032         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62033         already has it.
62034         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62035         2005-11-26.
62036
62037         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62038         'signed char' to avoid problems with the built-in _Bool type.
62039         Reported by Paul Eggert on 2005-11-26.
62040
62041 2006-01-24  Bruno Haible  <bruno@clisp.org>
62042
62043         * gnulib-tool (func_import): Avoid constructing complicated sed
62044         expressions inside backquote.
62045         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62046
62047 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62048
62049         These changes imported from libc.
62050         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62051         test and two separate function calls.
62052         * lib/strndup.c (__strndup): Add libc_hidden_def.
62053
62054 2006-01-23  Simon Josefsson  <jas@extundo.com>
62055
62056         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62057         Remove the test_*_SOURCES variable: automake infers it by default.
62058         * modules/tls-tests: Likewise.
62059
62060 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62061
62062         Work around porting bugs reported by Dieter in
62063         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62064         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62065         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62066         Include "getopt.h" first, to check interface.
62067         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62068         !HAVE_DECL_GETENV.
62069         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62070         (__strndup): Revert to K&R-style function dfns, the glibc style.
62071         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62072         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62073         Include strnlen.h first, to get prototype properly.
62074         (strnlen): Renamed from __strnlen.
62075         Remove weak alias.
62076
62077 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62078
62079         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62080
62081 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62082
62083         * config/srclist.txt: Adjust to reflect glibc reorganization.
62084         This affects only comments.
62085
62086 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62087
62088          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62089          Reported by Bruce Korb <bkorb@gnu.org>.
62090
62091 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62092
62093         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62094         to pacify gcc -Wswitch-default.
62095
62096 2006-01-22  Bruno Haible  <bruno@clisp.org>
62097
62098         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62099         temporary buffer for sprintf, take into account the precision also
62100         for 'd', 'i', 'u', 'o', 'x', 'X'.
62101
62102 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62103
62104         * modules/argp-tests: New module
62105         * tests/test-argp.c: New file
62106         * tests/test-argp-2.sh: New file
62107
62108 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62109
62110         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62111         (__argp_base_name): Removed
62112         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62113         typo.
62114         (__argp_base_name): Provide macro definition or extern declaration
62115         depending on the configuration
62116
62117 2006-01-20  Simon Josefsson  <jas@extundo.com>
62118
62119         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62120
62121 2006-01-20  Simon Josefsson  <jas@extundo.com>
62122
62123         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62124
62125 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62126
62127         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62128         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62129         Suggested by Bruno Haible.
62130
62131 2006-01-20  Karl Berry  <karl@gnu.org>
62132
62133         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62134         until changes propagate, I guess.
62135
62136 2006-01-19  Simon Josefsson  <jas@extundo.com>
62137
62138         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62139
62140 2006-01-19  Simon Josefsson  <jas@extundo.com>
62141
62142         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62143
62144 2006-01-19  Simon Josefsson  <jas@extundo.com>
62145
62146         * gnulib-tool: Set check_PROGRAMS.
62147
62148         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62149         modules/des-tests, modules/gc-arcfour-tests,
62150         modules/gc-arctwo-tests, modules/gc-des-tests,
62151         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62152         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62153         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62154         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62155         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62156         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62157         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62158         test_*_SOURCES.
62159
62160 2006-01-18  Simon Josefsson  <jas@extundo.com>
62161
62162         * modules/socklen (Depends-on): Depend on sys_socket.
62163
62164 2006-01-18  Simon Josefsson  <jas@extundo.com>
62165
62166         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62167         modules/des-tests, modules/gc-arcfour-tests,
62168         modules/gc-arctwo-tests, modules/gc-des-tests,
62169         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62170         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62171         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62172         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62173         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62174         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62175         $(EXEEXT) to automake TESTS variable, for mingw32.
62176
62177 2006-01-17  Simon Josefsson  <jas@extundo.com>
62178
62179         * modules/socklen (Include): Need sys/socket.h.
62180
62181 2006-01-17  Bruno Haible  <bruno@clisp.org>
62182
62183         * modules/ssize_t (Include): Add <sys/types.h>.
62184
62185 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62186
62187         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62188         it's not portable and it doesn't work with cross-compiles.
62189         Problem reported by Bruno Haible.  Fix missing-$ typo in
62190         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62191         -zignore from being used with Sun's C compiler.
62192
62193 2006-01-12  Simon Josefsson  <jas@extundo.com>
62194
62195         * lib/base64.c: Fix warning, reported by Bruno Haible
62196         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62197
62198 2006-01-12  Bruno Haible  <bruno@clisp.org>
62199
62200         * modules/ldd: New file.
62201         * build-aux/ldd.sh.in: New file.
62202         * MODULES.html.sh (Support for building libraries and executables): Add
62203         ldd.
62204
62205 2006-01-12  Bruno Haible  <bruno@clisp.org>
62206
62207         * m4/ldd.m4: New file.
62208
62209 2006-01-12  Bruno Haible  <bruno@clisp.org>
62210
62211         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62212         endless loop while replacing $auxdir with build-aux.
62213
62214 2006-01-11  Simon Josefsson  <jas@extundo.com>
62215
62216         * lib/stdint_.h (SIZE_MAX): Add missing (.
62217
62218 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62219
62220         Sync from coreutils.
62221         * lib/md5.c: Fix commentary typos.
62222         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62223         * lib/md5.h (__attribute__): Remove; unused.
62224         * lib/sha1.c: Fix commentary to match md5 better.
62225         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62226         so that we don't need to worry about alignment.  All uses changed.
62227         This merges the 2005-10-28 md5 change into sha1.
62228
62229 2006-01-11  Jim Meyering  <jim@meyering.net>
62230
62231         Sync from coreutils.
62232         * lib/md5.c (OP): Fix spacing.
62233
62234 2006-01-11  Bruno Haible  <bruno@clisp.org>
62235
62236         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62237         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62238         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62239
62240 2006-01-11  Bruno Haible  <bruno@clisp.org>
62241
62242         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62243         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62244         the "early" section as well.
62245
62246 2006-01-11  Bruno Haible  <bruno@clisp.org>
62247
62248         Avoid "ar: no archive members specified" error on MacOS X.
62249         * gnulib-tool (func_modules_add_dummy): New function.
62250         (func_import, func_create_testdir): Invoke it.
62251
62252 2006-01-11  Bruno Haible  <bruno@clisp.org>
62253
62254         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62255         with $auxdir in AC_CONFIG_FILES statements.
62256
62257 2006-01-11  Bruno Haible  <bruno@clisp.org>
62258
62259         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62260         Initialize also noinst_HEADERS to empty.
62261
62262 2006-01-11  Bruno Haible  <bruno@clisp.org>
62263
62264         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62265         variables.
62266         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62267         autoreconf.
62268
62269 2006-01-11  Bruno Haible  <bruno@clisp.org>
62270
62271         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62272         overridable by the user.
62273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62274
62275 2006-01-10  Simon Josefsson  <jas@extundo.com>
62276
62277         * modules/sys_socket: New file.
62278
62279 2006-01-10  Simon Josefsson  <jas@extundo.com>
62280
62281         * m4/sys_socket_h.m4: New file.
62282
62283 2006-01-10  Simon Josefsson  <jas@extundo.com>
62284
62285         * lib/socket_.h: New file.
62286
62287 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62288
62289         * modules/readutmp (Maintainer): Add myself.
62290
62291 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62292
62293         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62294         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62295         People who are still concerned with buggy memcmp implementations
62296         can invoke gl_FUNC_MEMCMP themselves.
62297
62298 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62299
62300         * lib/regex_internal.h (BITSET_WORD_BITS):
62301         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62302         preprocessor mishandles large unsigned values as if they were signed.
62303         Problem reported by Claudio Fontana in
62304         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62305
62306 2006-01-10  Jim Meyering  <jim@meyering.net>
62307
62308         Avoid the double-free (first in fts_read, second in fts_close) that
62309         would occur when an `active' directory is made inaccessible (e.g.,
62310         via chmod a-x) during a traversal.
62311         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62312         before returning.  Reproduce this failure by
62313         mkdir -p a/b; cd a; chmod a-x . b
62314         Reported by Stavros Passas.
62315
62316         Sync from coreutils.
62317         * lib/sha1.c: Tweak grammar in a comment.
62318
62319 2006-01-10  Jim Meyering  <jim@meyering.net>
62320
62321         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62322         Patch by Joerg Sonnenberger.
62323
62324 2006-01-10  Bruno Haible  <bruno@clisp.org>
62325
62326         * modules/readutmp: Depend on module free.
62327         * modules/strtok_r: Depend on module restrict.
62328
62329 2006-01-10  Bruno Haible  <bruno@clisp.org>
62330
62331         * modules/gettext (configure.ac): Add an invocation of
62332         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62333
62334 2006-01-10  Bruno Haible  <bruno@clisp.org>
62335
62336         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62337         Reported by Werner Lemberg <wl@gnu.org>.
62338
62339 2006-01-10  Bruno Haible  <bruno@clisp.org>
62340
62341         * lib/localcharset.c: Update from GNU gettext.
62342
62343 2006-01-10  Bruno Haible  <bruno@clisp.org>
62344
62345         * lib/argp.h (__const): Remove macro. Use const instead.
62346         * lib/argp-fmtstream.h (__const): Likewise.
62347         * lib/glob_.h (__const): Remove macro.
62348         * lib/glob-libc.h: Use const instead of __const.
62349
62350 2006-01-10  Bruno Haible  <bruno@clisp.org>
62351
62352         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62353         variable.
62354         Needed to avoid an automake error regarding the 'gettext' module.
62355
62356 2006-01-09  Simon Josefsson  <jas@extundo.com>
62357
62358         * modules/inet_ntop (Depends-on): Add restrict.
62359
62360 2006-01-09  Simon Josefsson  <jas@extundo.com>
62361
62362         * modules/gc-rijndael-tests (License): Put under LGPL.
62363
62364         * modules/gc-des-tests (License): Likewise.
62365
62366         * modules/gc-arcfour-tests (License): Likewise.
62367
62368         * modules/gc-arctwo-tests (License): Likewise.
62369
62370         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62371
62372         * modules/gc-hmac-sha1-tests (Files): Likewise.
62373
62374         * modules/gc-hmac-md5-tests (License): Likewise.
62375
62376         * modules/gc-sha1-tests (License): Likewise.
62377
62378         * modules/gc-md5-tests (License): Likewise.
62379
62380         * modules/gc-md4-tests (License): Likewise.
62381
62382         * modules/gc-md2-tests (License): Likewise.
62383
62384         * modules/gc-tests (License): Likewise.
62385
62386         * modules/des-tests (License): Likewise.
62387
62388         * modules/md4-tests (License): Likewise.
62389
62390         * modules/md2-tests (License): Likewise.
62391
62392 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62393
62394         Sync from coreutils:
62395
62396         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62397         * modules/lib-ignore: New file.
62398         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62399         chdir-safer.m4, lchmod.m4.
62400         * modules/openat: Add mkdirat.c, openat-priv.h.
62401
62402 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62403
62404         Sync from coreutils.
62405         * m4/lib-ignore.m4: New file.
62406         * m4/lchmod.m4: New file.
62407
62408 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62409
62410         Sync from coreutils.
62411         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62412         for write access: POSIX says that must fail.
62413         * lib/fts.c (diropen): Likewise.
62414         * lib/save-cwd.c (save_cwd): Likewise.
62415         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62416         well, for minor improvements on hosts that lack O_DIRECTORY.
62417         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62418         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62419         Fall back on chown if open failed with EACCES.
62420
62421         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62422         Report an error at compile-time if only a 1-second nominal clock
62423         resolution is found.
62424
62425         * lib/lchmod.h: New file.
62426         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62427         (make_dir_parents): Use lchown rather than chown, and
62428         lchmod rather than chmod.
62429
62430         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62431         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62432         "proc" reported by n0dalus.
62433
62434         * lib/mountlist.c: Include <limits.h>.
62435         (dev_from_mount_options)
62436         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62437         New function.  It no longer assumes "dev=" has the System V meaning
62438         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62439         (read_file_system_list)
62440         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62441         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62442         dev= in that case.
62443
62444         * lib/posixtm.h (PDS_PRE_2000): New macro.
62445         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62446         allow_century.  All usages changed.  Reject dates outside the range
62447         1969-1999 if PDS_PRE_2000 is used.
62448
62449 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62450
62451         Sync from coreutils.
62452         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62453         (Time of day items): Mention the possibility of leap seconds.
62454         Problem reported by Dr. David Alan Gilbert.
62455
62456 2006-01-09  Jim Meyering  <jim@meyering.net>
62457
62458         Sync from coreutils.
62459
62460         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
62461
62462         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
62463
62464         * lib/modechange.c (mode_compile): Reject an invalid mode string
62465         that starts with an octal digit.  From Andreas Gruenbacher.
62466
62467         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
62468         and dup to open_safer and dup_safer, respectively.
62469         (openat_permissive): Fix typo in comment.
62470
62471         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
62472         "gettext.h"; either no longer needed or are guaranteed by openat.h.
62473         (_): Remove; no longer needed.
62474         (openat): Renamed from rpl_openat; no need for rpl_openat
62475         since openat.h renames openat for us.
62476         Replace most of the body with a call to openat_permissive,
62477         to avoid duplicate code.
62478         Port to (probably hypothetical) environments were mode_t is
62479         wider than int.
62480         (openat_permissive): Require mode arg, so that we can check
62481         types better.  Put it just after flags.  Change cwd failure
62482         indicator from pointer-to-bool to pointer-to-errno-value.
62483         All callers changed.
62484         Invoke openat_save_fail and/or openat_restore_fail if
62485         cwd_errno is null, so that openat can call us.
62486         (openat_permissive, fdopendir, fstatat, unlinkat):
62487         Simplify errno handling to avoid some duplicate code,
62488         as it's OK to set errno on success.
62489         * lib/openat.h: Revamp code so that function macros depend on
62490         __OPENAT_PREFIX only, not also on AT_FDCWD.
62491         (openat_ro): Remove.  Caller changed to use openat_permissive.
62492         (openat_permissive): Now a macro, if not a function.
62493         (openat_restore_fail, openat_save_fail): Now always functions,
62494         since mkdirat needs them even if __OPENAT_PREFIX is defined.
62495
62496         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
62497         and openat.c.
62498         * lib/mkdirat.c: Include openat-priv.h.
62499         Remove definitions of macros defined therein.
62500         * lib/openat.c: Likewise.
62501
62502         * lib/mkdirat.c (mkdirat): New file and function.
62503         * lib/openat.h (mkdirat): Declare.
62504
62505         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
62506
62507         * lib/openat.h (openat_permissive): Declare.
62508         (openat_ro): Define.
62509
62510         * lib/openat.c (EXPECTED_ERRNO): New macro.
62511         (openat_permissive): New function -- used in remove.c rewrite.
62512         (all functions): Set errno just before returning, only if there
62513         was an actual failure.
62514         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
62515
62516         Emulate openat-family functions using Linux's procfs, if possible.
62517         Idea and some code based on Ulrich Drepper's glibc changes.
62518
62519         * lib/openat.c: (BUILD_PROC_NAME): New macro.
62520         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
62521         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
62522         before falling back on save_cwd and restore_cwd.
62523         (fdopendir, fstatat, unlinkat): Likewise.
62524
62525         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
62526         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
62527
62528         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
62529         as second argument to va_arg.  Otherwise, some versions of gcc
62530         warn that `if this code is reached, the program will abort'.
62531
62532 2006-01-09  Jim Meyering  <jim@meyering.net>
62533
62534         Sync from coreutils.
62535         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
62536         Require openat-priv.h.
62537
62538 2006-01-09  Bruno Haible  <bruno@clisp.org>
62539
62540         * modules/strnlen (Include): Use strnlen.h.
62541
62542 2006-01-09  Bruno Haible  <bruno@clisp.org>
62543
62544         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
62545
62546 2006-01-09  Bruno Haible  <bruno@clisp.org>
62547
62548         * lib/sysexit_.h (EX_OK): New macro.
62549         Suggested by Martin Lambers <marlam@marlam.de>.
62550
62551 2006-01-09  Bruno Haible  <bruno@clisp.org>
62552
62553         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
62554         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
62555
62556 2006-01-09  Bruno Haible  <bruno@clisp.org>
62557
62558         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
62559         numbers.
62560
62561 2006-01-09  Bruno Haible  <bruno@clisp.org>
62562
62563         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
62564         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
62565         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
62566         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
62567
62568 2006-01-09  Bruno Haible  <bruno@clisp.org>
62569
62570         * build-aux/javacomp.sh.in: New file, moved from lib/.
62571         * modules/javacomp-script (Files): Update.
62572         (configure.ac): Add AC_CONFIG_FILES invocation.
62573         (EXTRA_DIST): Remove variable.
62574
62575         * build-aux/javaexec.sh.in: New file, moved from lib/.
62576         * modules/javaexec (Files): Update.
62577         (configure.ac): Add AC_CONFIG_FILES invocation.
62578         (EXTRA_DIST): Remove javaexec.sh.in.
62579
62580         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
62581         * modules/csharpcomp-script (Files): Update.
62582         (configure.ac): Add AC_CONFIG_FILES invocation.
62583         (EXTRA_DIST): Remove variable.
62584
62585         * build-aux/csharpexec.sh.in: New file, moved from lib/.
62586         * modules/csharpexec (Files): Update.
62587         (configure.ac): Add AC_CONFIG_FILES invocation.
62588         (EXTRA_DIST): Remove csharpexec.sh.in.
62589
62590 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62591
62592         Sync from coreutils.
62593
62594         Add POSIX ACL support
62595         * lib/acl.h (copy_acl, set_acl): Add declarations.
62596         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
62597         systems other than Linux.
62598         (chmod_or_fchmod): New function: use fchmod when possible,
62599         and chmod otherwise.
62600         (file_has_acl): Add a POSIX ACL implementation, with a
62601         Linux-specific subcase.
62602         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
62603         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
62604         acls are unsupported.
62605         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
62606         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
62607         are unsupported.
62608
62609 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62610
62611         Sync from coreutils.
62612         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
62613
62614 2006-01-07  Bruno Haible  <bruno@clisp.org>
62615
62616         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
62617         gl_EARLY.
62618
62619 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62620
62621         * lib/strftime.c (tzname): Don't declare if it is already #defined.
62622         Problem reported for Mingw by Mark Junker.
62623
62624 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * README: Gnulib normally doesn't generate a tarball.
62627
62628 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
62629
62630         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
62631         long int, not int, for nanosecond counts, so that people who are
62632         used to POSIX struct timespec won't be surprised.  Reported by Jim
62633         Meyering.
62634
62635 2005-12-28  Bruno Haible  <bruno@clisp.org>
62636
62637         * build-aux/config.rpath: Update from GNU gettext.
62638
62639 2005-12-16  Jim Meyering  <jim@meyering.net>
62640
62641         * modules/fprintftime: New module.
62642         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
62643
62644 2005-12-16  Jim Meyering  <jim@meyering.net>
62645
62646         * m4/fprintftime.m4: New file.
62647
62648 2005-12-16  Jim Meyering  <jim@meyering.net>
62649
62650         * lib/fprintftime.c, lib/fprintftime.h: New files.
62651
62652 2005-12-15  Simon Josefsson  <jas@extundo.com>
62653
62654         * modules/socklen (configure.ac): Fix M4 macro name, to align with
62655         new m4/socklen.m4.
62656
62657 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62658
62659         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
62660         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
62661
62662 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62663
62664         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
62665         * lib/argp-help.c (fill_in_uparams): Check if the constructed
62666         struct uparams is valid. Fall back to the default values if it is
62667         not.
62668
62669 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62670
62671         * modules/argp (Files): Add argp-pin.c
62672         (Depends-on): dirname
62673         (lib_SOURCES): Add argp-pin.c
62674
62675 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62676
62677         * m4/argp.m4:  Check if program_invocation_name and
62678         program_invocation_short_name are declared and define appropriate
62679         macros if they are not.
62680
62681 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62682
62683         * lib/argp-help.c (__argp_base_name): New function
62684         (__argp_short_program_name): Rewrite using __argp_base_name
62685         * lib/argp-namefrob.h: Define program_invocation_name and
62686         program_invocation_short_name if requested
62687         (__argp_base_name): Add prototype
62688         * lib/argp-parse.c (argp_def): Use gettext wrappers
62689         (argp_default_parser): Use __argp_base_name
62690         * lib/argp-pin.c: New file. Defines program_invocation_name and
62691         program_invocation_short_name on systems that lack them.
62692
62693 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62694
62695         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
62696         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62697         porting problem reported by Georg Schwarz in
62698         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62699
62700 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62701
62702         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
62703         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62704         porting problem reported by Georg Schwarz in
62705         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62706
62707 2005-12-05  Bruno Haible  <bruno@clisp.org>
62708
62709         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
62710         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
62711         Reported by Mark Junker <mjscod@gmx.de>.
62712
62713 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
62714
62715         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
62716         Use implementation from Albert Chin, with some
62717         comments/corrections by Stepan Kasal and myself.
62718
62719 2005-12-02  Bruno Haible  <bruno@clisp.org>
62720
62721         * gnulib-tool (func_import): Accept GPLed build tool modules when
62722         --lgpl is given.
62723         * modules/csharpcomp-script: New file.
62724         * modules/csharpcomp: Depend on it.
62725         * modules/javacomp-script: New file.
62726         * modules/javacomp: Depend on it.
62727         Suggested by Simon Josefsson.
62728
62729 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62730
62731         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
62732         statement, to work around an HP-UX 10.20 compiler bug reported by
62733         Peter O'Gorman.
62734
62735 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * modules/savedir (Depends-on): Add openat.
62738
62739 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62740
62741         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
62742         (uintmax_t) [defined uintmax_t]: Do not declare.
62743         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
62744         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
62745         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
62746         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
62747         sake of portability to weird hosts that C allows (though we don't
62748         know of any practical examples).
62749
62750         * lib/savedir.h (fdsavedir): New decl.
62751         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
62752         contains most of the former guts of savedir.
62753         (savedir): Use savedirstream.
62754         Include "openat.h".
62755
62756 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62757
62758         * modules/obstack (Files): Add m4/ulonglong.m4.
62759         Problem reported by Davide Angelocola.
62760
62761 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62762
62763         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
62764         coreutils no longer futzes with rounding modes.
62765
62766 2005-11-14  Jim Meyering  <jim@meyering.net>
62767
62768         * lib/mkstemp-safer.c: Include <config.h>, required for possible
62769         replacement of mkstemp.
62770
62771 2005-11-10  Simon Josefsson  <jas@extundo.com>
62772
62773         * lib/readline.c: Remove EOL.
62774
62775 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62776
62777         * modules/gethrxtime (Depends-on): Add gettime.
62778
62779 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62780
62781         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
62782         or gettimeofday; no longer needed.
62783
62784 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62785
62786         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
62787         time business.
62788         (gethrxtime) [! (HAVE_NANOUPTIME
62789         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
62790         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
62791         our own approximation.
62792
62793 2005-11-08  Eric Blake  <ebb9@byu.net>
62794
62795         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62796
62797 2005-11-08  Eric Blake  <ebb9@byu.net>
62798
62799         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62800
62801 2005-11-04  Bruno Haible  <bruno@clisp.org>
62802
62803         * gnulib-tool: Implement --update mode.
62804
62805 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62806
62807         Fix porting problem reported by Theodoros V. Kalamatianos.
62808         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62809         Don't assume that futimes failing means we must fail.
62810
62811 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62812
62813         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62814         variables to suggest the intended function of the PATH_MAX check.
62815
62816 2005-10-30  Kean Johnston  <jkj@sco.com>
62817
62818         Trivial changes to support SCO systems.
62819         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62820         as PATH_MAX.
62821         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62822         where __ptr is null when no I/O is pending.
62823
62824 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62825
62826         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62827         leave errno alone.  Problem reported by Dmitry V. Levin.
62828
62829 2005-10-28  Simon Josefsson  <jas@extundo.com>
62830
62831         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62832         Test more.
62833
62834         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62835
62836         * modules/md2, modules/md2-tests: New files.
62837
62838 2005-10-28  Simon Josefsson  <jas@extundo.com>
62839
62840         * m4/inet_ntop.m4: More tests.
62841
62842         * m4/gc-md2.m4, md2.m4: New file.
62843
62844 2005-10-28  Simon Josefsson  <jas@extundo.com>
62845
62846         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62847         "restrict" keywords, as per POSIX.  Protect the function
62848         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62849         Don't use K&R prototypes.  Check the sprintf return values.
62850         Re-define EAFNOSUPPORT if not present.  Indent.
62851
62852         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62853         suggested by Bruno Haible <bruno@clisp.org>.
62854
62855         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62856
62857         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62858
62859         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62860         libgcrypt).
62861
62862         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62863
62864         * lib/md2.h, lib/md2.c: New files.
62865
62866 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62867
62868         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62869         errno alone.  Problem reported by Frederic Jolliton.
62870
62871 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62872
62873         * modules/verify (License): Change from GPL to LGPL.  This is a
62874         tiny module and there are apparently near-equivalents that are
62875         under the BSD license.
62876
62877 2005-10-24  Simon Josefsson  <jas@extundo.com>
62878
62879         * modules/sha1: Relicense to LGPL.
62880
62881 2005-10-24  Simon Josefsson  <jas@extundo.com>
62882
62883         * lib/md4.h: Shrink buffer size, now that we changed the type.
62884
62885 2005-10-23  Simon Josefsson  <jas@extundo.com>
62886
62887         * gnulib-tool (func_import): Fix --tests-base.
62888
62889 2005-10-22  Simon Josefsson  <jas@extundo.com>
62890
62891         * modules/arcfour (Depends-on): Need stdint.
62892
62893 2005-10-22  Simon Josefsson  <jas@extundo.com>
62894
62895         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62896         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62897
62898 2005-10-22  Simon Josefsson  <jas@extundo.com>
62899
62900         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62901         suggested by Bruno Haible <bruno@clisp.org>.
62902
62903 2005-10-22  Simon Josefsson  <jas@extundo.com>
62904
62905         * lib/crc.h: Include stddef.h, for size_t.
62906
62907 2005-10-22  Simon Josefsson  <jas@extundo.com>
62908
62909         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62910         arcfour_context struct (simplify test vector testing in GNU
62911         Shishi).
62912
62913 2005-10-21  Simon Josefsson  <jas@extundo.com>
62914
62915         * modules/des, modules/des-tests: New files.
62916
62917         * modules/gc-des, modules/gc-des-tests: New files.
62918
62919         * tests/test-des.c, tests/test-gc-des.c: New file.
62920
62921 2005-10-21  Simon Josefsson  <jas@extundo.com>
62922
62923         * modules/arctwo, modules/arctwo-tests: New files.
62924
62925         * tests/test-arctwo.c: New file.
62926
62927         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62928
62929         * tests/test-gc-arctwo.c: New file.
62930
62931 2005-10-21  Simon Josefsson  <jas@extundo.com>
62932
62933         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62934         Bruno Haible <bruno@clisp.org>.
62935
62936         * m4/gc-des.m4: New file.
62937
62938 2005-10-21  Simon Josefsson  <jas@extundo.com>
62939
62940         * m4/arctwo.m4: New file.
62941
62942         * m4/gc-arctwo.m4: New file.
62943
62944 2005-10-21  Simon Josefsson  <jas@extundo.com>
62945
62946         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62947         block.
62948
62949 2005-10-21  Simon Josefsson  <jas@extundo.com>
62950
62951         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62952         <bruno@clisp.org>.
62953
62954         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62955
62956         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62957         Bruno Haible <bruno@clisp.org>.
62958
62959         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62960         <bruno@clisp.org>.
62961
62962 2005-10-21  Simon Josefsson  <jas@extundo.com>
62963
62964         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62965
62966 2005-10-21  Simon Josefsson  <jas@extundo.com>
62967
62968         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62969
62970 2005-10-21  Simon Josefsson  <jas@extundo.com>
62971
62972         * lib/des.h, lib/des.c: New files.
62973
62974         * lib/gc-gnulib.c: Support DES.c
62975
62976 2005-10-21  Simon Josefsson  <jas@extundo.com>
62977
62978         * lib/arctwo.h, lib/arctwo.c: New files.
62979
62980         * lib/gc-gnulib.c: Support ARCTWO.
62981
62982 2005-10-21  Simon Josefsson  <jas@extundo.com>
62983
62984         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62985         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62986
62987 2005-10-21  Simon Josefsson  <jas@extundo.com>
62988
62989         * gnulib-tool (func_import, func_create_testdir): Define automake
62990         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62991         Makefile.am snippet),
62992         suggested by Bruno Haible <bruno@clisp.org>.
62993
62994         * modules/gc (Makefile.am): Use it.
62995
62996 2005-10-21  Bruno Haible  <bruno@clisp.org>
62997
62998         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62999         patch.
63000
63001 2005-10-19  Simon Josefsson  <jas@extundo.com>
63002
63003         * tests/test-gc-rijndael.c: New file.
63004
63005         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63006
63007 2005-10-19  Simon Josefsson  <jas@extundo.com>
63008
63009         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63010         interface too.
63011
63012 2005-10-19  Simon Josefsson  <jas@extundo.com>
63013
63014         * tests/test-gc-arcfour.c: New file.
63015
63016         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63017
63018 2005-10-19  Simon Josefsson  <jas@extundo.com>
63019
63020         * modules/gc-md4, modules/gc-md4-tests: New file.
63021
63022         * tests/test-gc-md4.c: New file.
63023
63024 2005-10-19  Simon Josefsson  <jas@extundo.com>
63025
63026         * m4/gc-md4.m4: New file.
63027
63028 2005-10-19  Simon Josefsson  <jas@extundo.com>
63029
63030         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63031         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63032         <kasal@ucw.cz>.
63033
63034 2005-10-19  Simon Josefsson  <jas@extundo.com>
63035
63036         * m4/gc-arcfour.m4: New file.
63037
63038         * m4/gc-rijndael.m4: New file.
63039
63040 2005-10-19  Simon Josefsson  <jas@extundo.com>
63041
63042         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63043
63044 2005-10-19  Simon Josefsson  <jas@extundo.com>
63045
63046         * lib/gc-gnulib.c: Support ARCFOUR.
63047
63048 2005-10-19  Simon Josefsson  <jas@extundo.com>
63049
63050         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63051         support.
63052
63053         * lib/gc.h: Add ECB enum type.
63054
63055         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63056
63057 2005-10-18  Simon Josefsson  <jas@extundo.com>
63058
63059         * tests/test-md5.c: New file.
63060
63061         * modules/md5-tests: New file.
63062
63063 2005-10-18  Simon Josefsson  <jas@extundo.com>
63064
63065         * tests/test-md4.c: New file.
63066
63067         * modules/md4, modules/md4-tests: New files.
63068
63069 2005-10-18  Simon Josefsson  <jas@extundo.com>
63070
63071         * m4/md4.m4: New file.
63072
63073 2005-10-18  Simon Josefsson  <jas@extundo.com>
63074
63075         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63076
63077 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63078
63079         * gnulib-tool (func_create_testdir): Omit the second check whether
63080         BUILT_SOURCES in nonempty.
63081
63082 2005-10-17  Simon Josefsson  <jas@extundo.com>
63083
63084         * tests/test-rijndael.c: New file.
63085
63086 2005-10-17  Simon Josefsson  <jas@extundo.com>
63087
63088         * modules/sha1: Depend on stdint instead of md5.
63089
63090         * modules/md5: Depend on stdint, remove uint32_t.
63091
63092 2005-10-17  Simon Josefsson  <jas@extundo.com>
63093
63094         * modules/gc-sha1-tests: New file.
63095
63096         * tests/test-gc-sha1.c: New file.
63097
63098 2005-10-17  Simon Josefsson  <jas@extundo.com>
63099
63100         * m4/md5.m4: Remove call to uint32_t.m4.
63101
63102 2005-10-17  Simon Josefsson  <jas@extundo.com>
63103
63104         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63105
63106         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63107         md5.h.
63108
63109         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63110
63111         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63112
63113 2005-10-17  Simon Josefsson  <jas@extundo.com>
63114
63115         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63116
63117 2005-10-17  Simon Josefsson  <jas@extundo.com>
63118
63119         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63120
63121 2005-10-17  Simon Josefsson  <jas@extundo.com>
63122
63123         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63124
63125         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63126
63127 2005-10-17  Bruno Haible  <bruno@clisp.org>
63128
63129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63130         that it can also be used in a test.
63131
63132 2005-10-16  Bruno Haible  <bruno@clisp.org>
63133
63134         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63135         TESTS_ENVIRONMENT, so that individual tests can augment it.
63136
63137         * gnulib-tool (func_create_testdir): Use an intermediate target for
63138         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63139         macros, like $(ALLOCA_H), which cannot be passed through the command
63140         line.
63141
63142 2005-10-15  Simon Josefsson  <jas@extundo.com>
63143
63144         * modules/rijndael-tests: New file.
63145
63146         * modules/rijndael: New file.
63147
63148 2005-10-15  Simon Josefsson  <jas@extundo.com>
63149
63150         * m4/rijndael.m4: New file.
63151
63152 2005-10-15  Simon Josefsson  <jas@extundo.com>
63153
63154         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63155
63156         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63157
63158 2005-10-14  Simon Josefsson  <jas@extundo.com>
63159
63160         * tests/test-arcfour.c: New file.
63161
63162         * modules/arcfour, modules/arcfour-tests: New files.
63163
63164 2005-10-14  Simon Josefsson  <jas@extundo.com>
63165
63166         * m4/arcfour.m4: New file.
63167
63168 2005-10-14  Simon Josefsson  <jas@extundo.com>
63169
63170         * lib/arcfour.h, lib/arcfour.c: New files.
63171
63172 2005-10-14  Roland McGrath  <roland@redhat.com>
63173
63174         Import from libc.  [BZ #1331]
63175         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63176         macro argument.
63177         Reported by Matej Vela <vela@debian.org>.
63178
63179 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63180
63181         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63182         include <wchar.h>; no longer needed.
63183
63184 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63185
63186         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63187
63188 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63189         and  Ulrich Drepper  <drepper@redhat.com>
63190
63191         Import from libc.
63192         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63193         instead of inline stream orientation test and two separate
63194         function calls.  Pay no attention to USE_IN_LIBIO.
63195
63196 2005-10-13  Simon Josefsson  <jas@extundo.com>
63197
63198         * modules/gc-hmac-md5-tests: New file.
63199
63200         * tests/test-gc-hmac-sha1.c: New file.
63201
63202         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63203
63204         * modules/gc-hmac-md5-tests: New file.
63205
63206         * tests/test-gc-md5.c: New file.
63207
63208         * modules/gc-md5-tests: New file.
63209
63210 2005-10-13  Simon Josefsson  <jas@extundo.com>
63211
63212         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63213         Move memory allocation outside of loop.
63214
63215 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63216
63217         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63218         intermediate directory is in a read-only file system.  Problem
63219         reported by Eric Blake.
63220
63221 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63222
63223         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63224
63225 2005-10-12  Simon Josefsson  <jas@extundo.com>
63226
63227         * tests/test-hmac-sha1.c: New file.
63228
63229         * modules/hmac-sha1-tests: New file.
63230
63231         * modules/hmac-sha1: New file.
63232
63233 2005-10-12  Simon Josefsson  <jas@extundo.com>
63234
63235         * modules/gc-sha1: New file.
63236
63237 2005-10-12  Simon Josefsson  <jas@extundo.com>
63238
63239         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63240
63241         * tests/test-gc-pbkdf2-sha1.c: New file.
63242
63243 2005-10-12  Simon Josefsson  <jas@extundo.com>
63244
63245         * modules/gc-md5, modules/gc-hmac-md5: New files.
63246
63247         * modules/gc (Files): Remove md5, memxor and hmac files.
63248
63249 2005-10-12  Simon Josefsson  <jas@extundo.com>
63250
63251         * m4/gc-pbkdf2-sha1.m4: New file.
63252
63253         * m4/gc-hmac-sha1.m4: New file.
63254
63255         * m4/gc-sha1: New file.
63256
63257         * m4/hmac-sha1.m4: New file.
63258
63259 2005-10-12  Simon Josefsson  <jas@extundo.com>
63260
63261         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63262
63263         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63264
63265 2005-10-12  Simon Josefsson  <jas@extundo.com>
63266
63267         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63268         suggested by Bruno Haible <bruno@clisp.org>.
63269
63270 2005-10-12  Simon Josefsson  <jas@extundo.com>
63271
63272         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63273
63274 2005-10-12  Simon Josefsson  <jas@extundo.com>
63275
63276         * lib/gc-pbkdf2-sha1.c: New file.
63277
63278         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63279
63280 2005-10-12  Simon Josefsson  <jas@extundo.com>
63281
63282         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63283
63284         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63285
63286 2005-10-12  Simon Josefsson  <jas@extundo.com>
63287
63288         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63289         GC_USE_HMAC_MD5, respectively.
63290
63291         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63292         (gc_md5): Fix typo.
63293
63294         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63295
63296         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63297
63298         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63299
63300 2005-10-12  Bruno Haible  <bruno@clisp.org>
63301
63302         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63303         Reported by Stepan Kasal <kasal@ucw.cz>.
63304
63305 2005-10-11  Simon Josefsson  <jas@extundo.com>
63306
63307         * tests/test-crc.c: New file.
63308
63309         * modules/crc, modules/crc-tests: New files.
63310
63311 2005-10-11  Simon Josefsson  <jas@extundo.com>
63312
63313         * m4/crc.m4: New file.
63314
63315 2005-10-11  Simon Josefsson  <jas@extundo.com>
63316
63317         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63318
63319         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63320
63321         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63322
63323 2005-10-11  Simon Josefsson  <jas@extundo.com>
63324
63325         * lib/crc.h, lib/crc.c: New files.
63326
63327         * lib/gc.h (gc_hash_buffer): Add doc.
63328
63329 2005-10-11  Bruno Haible  <bruno@clisp.org>
63330
63331         * modules/c-strcasestr: New file.
63332         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63333
63334 2005-10-11  Bruno Haible  <bruno@clisp.org>
63335
63336         * modules/c-strcase: New file.
63337         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63338
63339 2005-10-11  Bruno Haible  <bruno@clisp.org>
63340
63341         * lib/strcasecmp.c: Include limits.h.
63342         (strcasecmp): Avoid integer overflow on exotic platforms.
63343         * lib/strncasecmp.c: Include limits.h.
63344         (strncasecmp): Avoid integer overflow on exotic platforms.
63345         Reported by Paul Eggert.
63346
63347 2005-10-11  Bruno Haible  <bruno@clisp.org>
63348
63349         * lib/c-strcasestr.h: New file, from GNU gettext.
63350         * lib/c-strcasestr.c: New file, from GNU gettext.
63351
63352 2005-10-11  Bruno Haible  <bruno@clisp.org>
63353
63354         * lib/c-strcase.h: New file, from GNU gettext.
63355         * lib/c-strcasecmp.c: New file, from GNU gettext.
63356         * lib/c-strncasecmp.c: New file, from GNU gettext.
63357
63358 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63359
63360         * modules/mempcpy (License): GPL -> LGPL.
63361         * modules/strchrnul (License): Likewise.
63362         * modules/sysexits (License): Likewise.
63363
63364 2005-10-08  Simon Josefsson  <jas@extundo.com>
63365
63366         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63367
63368 2005-10-07  Simon Josefsson  <jas@extundo.com>
63369
63370         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63371
63372 2005-10-06  Simon Josefsson  <jas@extundo.com>
63373
63374         * tests/test-hmac-md5.c: New file.
63375
63376         * modules/hmac-md5-tests: New file.
63377
63378         * modules/hmac-md5: New file.
63379
63380 2005-10-06  Simon Josefsson  <jas@extundo.com>
63381
63382         * m4/hmac-md5.m4: New file.
63383
63384         * m4/memxor.m4: Require gl_C_RESTRICT.
63385
63386 2005-10-06  Simon Josefsson  <jas@extundo.com>
63387
63388         * lib/memxor.c (memxor): Avoid casts and warnings.
63389
63390 2005-10-06  Simon Josefsson  <jas@extundo.com>
63391
63392         * lib/hmac-md5.c: New file.
63393
63394         * lib/hmac.h: New file.
63395
63396 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63397
63398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63399         promotes to int, not unsigned int, to catch the AIX 5.3
63400         compiler bug.
63401
63402 2005-10-05  Simon Josefsson  <jas@extundo.com>
63403
63404         * modules/memxor: New file.
63405
63406         * modules/iconv (Files): Move config.rpath to havelib, it is used
63407         there.
63408
63409         * modules/havelib (Files): Add config.rpath.
63410
63411 2005-10-05  Simon Josefsson  <jas@extundo.com>
63412
63413         * m4/memxor.m4: New file.
63414
63415 2005-10-05  Simon Josefsson  <jas@extundo.com>
63416
63417         * lib/memxor.c (memxor): Fix compiler error.
63418
63419         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63420         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63421
63422         * lib/memxor.h, lib/memxor.c: New files.
63423
63424         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63425         we assume all systems have it, suggested by Jim Meyering
63426         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63427         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63428         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63429         same reasons.
63430
63431 2005-10-05  Simon Josefsson  <jas@extundo.com>
63432
63433         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63434
63435 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63436
63437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63438         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63439         needed, since the source code now assumes these .h files.
63440
63441 2005-10-05  Derek Price  <derek@ximbiot.com>
63442
63443         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63444
63445 2005-10-05  Bruno Haible  <bruno@clisp.org>
63446
63447         * modules/stdint (License): Change to LGPL.
63448
63449 2005-10-04  Simon Josefsson  <jas@extundo.com>
63450
63451         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63452         D. Baushke" <mdb@gnu.org>.
63453
63454 2005-10-04  Bruno Haible  <bruno@clisp.org>
63455
63456         * lib/verify.h (verify_true): Provide alternative definition for C++.
63457
63458 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
63461         (SSIZE_MAX): New macro, if not already defined.
63462         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
63463         than 2 GiB.
63464
63465 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63466
63467         Sync from coreutils.
63468         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
63469         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
63470         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
63471         ULLONG_MAX doesn't work with 2.7.2.1.
63472
63473 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63474
63475         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
63476         From Ben Pfaff.
63477
63478         * modules/exclude (Depends-on): Depend on verify.
63479         * modules/strtoimax (Depends-on): Likewise.
63480         * modules/utimecmp (Depends-on): Likewise.
63481
63482 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63483
63484         * lib/exclude.c: Include verify.h.
63485         (verify): Remove.  All callers changed to use verify.h's version.
63486         * lib/strtoimax.c: Likewise.
63487         * lib/utimecmp.c: Likewis.e
63488
63489         Sync from coreutils.
63490         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
63491         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
63492         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
63493         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
63494         bother returning ENOSYS if settimeofday or stime fails; just let
63495         them return whatever errno they want to return.
63496         * lib/utimens.c: Include unistd.h, for dup2.
63497         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
63498         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
63499
63500 2005-10-02  Jim Meyering  <jim@meyering.net>
63501
63502         Sync from coreutils.
63503         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
63504         from glibc-2.2.5 that fails for read-only files.
63505
63506 2005-10-02  Jim Meyering  <jim@meyering.net>
63507
63508         Sync from coreutils.
63509         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
63510         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
63511         `#if HAVE_CONFIG_H'.
63512         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
63513         Remove AT_FDCWD test.
63514         Do not consume the fd unless successful.
63515         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
63516         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
63517         block, so that we don't even try to compile it if settimeofday is
63518         available.  This works around a compilation failure on OSF1 V5.1,
63519         due to stime requiring a `long int*' while tv_sec is `int'.
63520
63521 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
63522
63523         Sync from coreutils.
63524         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
63525         against `yes', rather than just testing for nonempty.
63526
63527 2005-10-01  Simon Josefsson  <jas@extundo.com>
63528
63529         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
63530         and Darwin.
63531
63532         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
63533         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
63534         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
63535         freeaddrinfo and gai_strerror are declared by the POSIX headers.
63536         Check if struct addrinfo is declared.
63537
63538 2005-10-01  Simon Josefsson  <jas@extundo.com>
63539
63540         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
63541         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
63542         AI_* and EAI_* definitions.  Protect function declarations.
63543
63544 2005-10-01  Jim Meyering  <jim@meyering.net>
63545
63546         Sync from coreutils.
63547
63548         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
63549         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
63550         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
63551         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63552         in the inet and nsl libraries.  Required on Solaris 5.7.
63553
63554 2005-10-01  Jim Meyering  <jim@meyering.net>
63555
63556         Sync from coreutils.
63557         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63558         in the inet and nsl libraries.  Required on Solaris 5.7.
63559
63560 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
63561
63562         * lib/getdelim.c (getdelim): Remove unused variables.
63563
63564 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63565
63566         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
63567         so that the code works even with ancient cpp.  Portability problem
63568         with GCC 2.7.2.1 reported by Thomas M.Ott.
63569
63570 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63571
63572         * modules/regex (Depends-on): Add strcase.
63573
63574         * modules/gethostname (Licence): Change from GPL to LGPL, since
63575         gethostname.c is a trivial implementation of a standard library
63576         function.
63577         * modules/poll (License): Change from GPL to LGPL, since it's
63578         derived from LGPL code.
63579
63580 2005-09-27  Jim Meyering  <jim@meyering.net>
63581
63582         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
63583         HAVE_CONFIG_H.
63584
63585         * lib/intprops.h (signed_type_or_expr__): Define.
63586         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
63587         for unsigned types.
63588
63589 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63590
63591         * lib/verify.h (verify_expr): Remove, replacing with:
63592         (verify_true): New macro that returns true instead of void.
63593         (verify_type__): Remove.
63594         (verify): Use verify_true rather than verify_type__.
63595
63596 2005-09-26  Bruno Haible  <bruno@clisp.org>
63597
63598         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
63599         is necessary.
63600         (lib_SOURCES): Remove mbchar.c.
63601         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
63602         (Files): Add m4/mbrtowc.m4.
63603         * modules/mbiter: Likewise.
63604         * modules/mbuiter: Likewise.
63605
63606 2005-09-26  Bruno Haible  <bruno@clisp.org>
63607
63608         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
63609         compile mbchar.c if they are not both present.
63610         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
63611         * m4/mbiter.m4 (gl_MBITER): Likewise.
63612         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
63613         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
63614         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
63615
63616 2005-09-25  Jim Meyering  <jim@meyering.net>
63617
63618         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
63619         also uses socklen_t.
63620
63621 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
63622
63623         * lib/utimens.c (ENOSYS): Define if not already defined.
63624         (futimens): Support having a null PATH if the file descriptor
63625         is nonnegative.
63626
63627         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
63628         Remove.
63629         (__attribute): Define to empty unless GCC 3.1 or later.
63630         This works around a core dump on OpenBSD 3.4, which has GCC
63631         2.95.3, which dumps core when given __attribute__(()).  It also
63632         simplifies other tests, since we really don't want to bother with
63633         worrying about which ancient version of GCC supported what.
63634         Original problem reported by Yoann Vandoorselaere, with part of
63635         the fix suggested by Derek Price.
63636
63637 2005-09-24  Jim Meyering  <jim@meyering.net>
63638
63639         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
63640         so we can once again use a positive bitfield width of 1 -- now we
63641         don't have to explain why we were using a bitfield width of 2.
63642
63643 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63644
63645         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
63646         and similarly for the other external symbols.  Problem reported
63647         by James Gallager.
63648
63649         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
63650         bug reported by Jim Meyering.
63651
63652         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
63653         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
63654         not needed, since socklen is a prerequisite module.
63655
63656 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63657
63658         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
63659         Problem reported by Eric Blake.
63660         (getaddrinfo): Initialize se so that it's not garbage.
63661         Redo internal storage allocation so that it doesn't make unportable
63662         assumptions about alignment.
63663         Fix a memory leak.
63664
63665         * lib/utimens.c (futimens): Use futimesat if available.
63666         Prefer it to futimes since it doesn't have the futimes bug.
63667
63668         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
63669         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
63670         Instead, declare a function that returns a pointer to an array,
63671         and use verify_type__ to declare the size of the array.
63672         Problem and germ of a solution reported by Bruno Haible.
63673         (verify_type__): Use 2, not 1, for bitfield size, to avoid
63674         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
63675
63676 2005-09-23  Jim Meyering  <jim@meyering.net>
63677
63678         Sync from coreutils.
63679         Correct build failure (socklen_t not defined) on at least
63680         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
63681         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
63682
63683 2005-09-23  Jim Meyering  <jim@meyering.net>
63684
63685         * modules/getaddrinfo (Depends-on): Add socklen.
63686
63687 2005-09-23  Bruno Haible  <bruno@clisp.org>
63688
63689         * tests/test-verify.c: New file.
63690
63691 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63692
63693         Sync from coreutils.
63694
63695         * modules/argmatch (Depends-on): Add verify.
63696         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
63697         unistd-safer.
63698         * modules/save-cwd (Depends-on): Likewise.
63699
63700         * modules/openat (Files): Add lib/openat-die.c.
63701         (Depends-on): Remove error, exitfail.
63702         Add dirname.
63703
63704         * modules/verify: New file.
63705         * MODULES.html.sh (Diagnostics <assert.h>): New section,
63706         with "verify" module.
63707
63708 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63709
63710         Sync from coreutils.
63711
63712         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
63713         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
63714         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
63715         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
63716         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
63717         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
63718         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
63719         Don't bother checking for string.h, stdlib.h, unistd.h.
63720         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
63721         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
63722         module's job.
63723         * m4/jm-macros.m4 (gl_MACROS): Likewise.
63724         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
63725
63726         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
63727         (gl_GETDATE): Use it.
63728
63729         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
63730
63731 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63732
63733         Sync from coreutils.
63734
63735         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
63736         stat-time.h.
63737         * lib/argmatch.h: Include verify.h
63738         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
63739         (ARGMATCH_ASSERT): Remove; unused.
63740         * lib/canonicalize.c: Assume STDC_HEADERS.
63741         * lib/exclude.c: Include "strcase.h".
63742         * lib/regex_internal.h [!defined _LIBC]: Likewise.
63743         * lib/getusershell.c: Include stdio--.h rather than stdio.h
63744         and stdio-safer.h.
63745         (getusershell): Call fopen, not fopen_safer.
63746         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
63747         Do not include unistd-safer.h.
63748         (save_cwd): Don't call fd_safer; no longer needed
63749         now that we include fcntl--.h.
63750
63751         * lib/getdate.y (relative_time): New type.
63752         (RELATIVE_TIME_0): New constant.
63753         (parser_control): Use relative_time instead of doing it ourselves.
63754         (%union): Add new relative_time rel member.
63755         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
63756         Now typeless.
63757         (relunit, relunit_snumber): Now of type rel.
63758         (zone, rel, relunit, get_date): Adjust to above changes.
63759
63760         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
63761         Do not include unistd-safer.h.
63762         (getloadavg): Don't call fd_safer; no longer needed
63763         now that we include fcntl--.h.
63764
63765         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
63766         (make_dir_parents): Treat ENOSYS like EEXIST.
63767
63768         Improve quality of diagnostics on restore_cwd failure.
63769         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
63770         (make_dir_parents): Last arg is now int * (for errno), not bool *.
63771         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
63772         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
63773         each time through the loop.  Do not diagnose restore_cwd failure;
63774         that is the caller's job (and perhaps the caller does not care).
63775
63776         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
63777         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
63778         If the file already exists but is not a directory, don't bother
63779         to try to make its parents.
63780         Close potential file descriptor leak if we can't chdir("/") (!).
63781         Don't always return true if chdir($PWD) fails; return true only
63782         if the requested action was done successfully (except for the
63783         chdir($PWD)).
63784         Don't log final directory unless we actually made it.
63785         Refactor to avoid duplicate code to fix up permissions.
63786         Don't attempt to fix up parent permissions if chdir($PWD) fails.
63787
63788         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
63789         to make it a bit faster and (I hope) clearer.
63790         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
63791         Fix bug in formats like %2N.
63792
63793         * lib/verify.h: New file.
63794
63795 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63796
63797         Sync from coreutils.
63798         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63799
63800 2005-09-22  Jim Meyering  <jim@meyering.net>
63801
63802         Sync from coreutils.
63803
63804         * m4/lstat.m4 (gl_FUNC_LSTAT):
63805         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63806         Remove obsolete comment.
63807         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63808         * m4/xstrtod.m4: Likewise.
63809
63810         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63811
63812 2005-09-22  Jim Meyering  <jim@meyering.net>
63813
63814         Sync from coreutils.
63815
63816         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63817
63818         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63819         the .tm_year member, since otherwise gcc-4.0 would now warn about
63820         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63821
63822         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63823         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63824
63825         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63826         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63827         when run in a time zone for which daylight savings time is in effect
63828         for the starting date.
63829
63830         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63831         stop us from restricting permissions of just-created absolute-named
63832         directories.
63833         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63834         to restore initial working directory.
63835         * lib/mkdir-p.c (make_dir_parents): New parameter:
63836         different_working_dir, to tell caller if/when we change the working
63837         directory and are unable to return to the initial one.
63838         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63839         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63840         `return false'.  This fixes a bug introduced on 2004-07-30.
63841
63842         * lib/openat.c (fdopendir): Be sure to close the supplied
63843         file descriptor before returning.  This makes our replacement
63844         implementation a little closer to Solaris's, where fdopendir
63845         ties the file descriptor to the returned DIR* pointer.
63846         * lib/openat.c (unlinkat): New function.
63847         * lib/openat.h (unlinkat): Add prototype.
63848         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63849         (openat_restore_fail): Rename from openat_restore_die.
63850         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63851
63852         Provide an alternative to exiting immediately upon save_cwd or
63853         restore_cwd failure.  Now, an application can arrange e.g.,
63854         to perform a longjump in that case.
63855         * lib/openat.c: Include dirname.h.
63856         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63857         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63858         and openat_restore_die rather than calling error directly.
63859         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63860
63861         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63862         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63863         define.
63864
63865         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63866         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63867                             int utc, int nanoseconds);
63868         Background:
63869         date should not have to allocate a megabyte of virtual memory to
63870         handle a format argument like +%1048575T.  When implemented with
63871         strftime, it must allocate such a buffer, use strftime to fill it
63872         in, print it, then free it.
63873         With fprintftime, it simply prints everything and exits.
63874         With no need for memory allocation, that's one fewer way to fail.
63875         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63876         optional field width, not before, so we accept %9:z, not %:9z.
63877         (my_strftime): Be sure to use L_('x') for literals.
63878
63879         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63880         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63881         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63882         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63883         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63884         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63885         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63886         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63887         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63888         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63889         * lib/xgethostname.c, lib/xreadlink.c:
63890         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63891
63892         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63893         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63894         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63895         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63896         and don't include <sys/file.h>).
63897
63898 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63899
63900         Sync from coreutils.
63901
63902         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63903         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63904         [!LDAV_DONE]: Avoid unused variable warning.
63905
63906 2005-09-21  Bruno Haible  <bruno@clisp.org>
63907
63908         * lib/unicodeio.h (unicode_to_mb): New declaration.
63909
63910 2005-09-20  Derek Price  <derek@ximbiot.com>
63911
63912         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63913         getaddrinfo.h.
63914
63915 2005-09-20  Bruno Haible  <bruno@clisp.org>
63916
63917         * gnulib-tool: Remove trailing slashes from the values specified for
63918         --source-base, --m4-base, --tests-base, --aux-dir.
63919         Suggested by Simon Josefsson <jas@extundo.com>.
63920
63921 2005-09-20  Bruno Haible  <bruno@clisp.org>
63922
63923         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63924         func_modules_to_filelist, func_import, func_create_testdir): Make all
63925         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63926         change when gnulib-tool is invoked in a different locale.
63927
63928 2005-09-19  Simon Josefsson  <jas@extundo.com>
63929
63930         * m4/socklen.m4: Fix typo.
63931
63932 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63933
63934         Use a consistent style for including <config.h>.
63935         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63936         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63937         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63938         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63939         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63940         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63941         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63942         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63943         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63944         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63945         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63946         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63947         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63948         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63949         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63950         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63951         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63952         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63953         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63954         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63955         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63956         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63957         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63958         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63959         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63960         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63961         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63962         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63963         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63964         lib/xstrtoumax.c, lib/yesno.c:
63965         Standardize inclusion of config.h.
63966         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63967         lib/inttostr.h:  Removed inclusion of config.h from header files.
63968         * lib/inttostr.c:  Adjusted in-tree users.
63969         * lib/timespec.h: Remove superfluous warning to include config.h.
63970         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63971         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63972         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63973         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63974         config.h with HAVE_CONFIG_H.
63975
63976 2005-09-19  Jim Meyering  <jim@meyering.net>
63977
63978         * modules/pathmax (License): Change to LGPL.
63979
63980 2005-09-19  Derek Price  <derek@ximbiot.com>
63981
63982         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63983
63984 2005-09-19  Bruno Haible  <bruno@clisp.org>
63985
63986         * gnulib-tool (import): Provide default for --tests-base.
63987
63988 2005-09-19  Bruno Haible  <bruno@clisp.org>
63989
63990         * doc/quote.texi: New file, extracted from gnulib.texi.
63991         * doc/ctime.texi: New file, extracted from gnulib.texi.
63992         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63993         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63994         * doc/gnulib.texi: Include them.
63995
63996 2005-09-18  Bruno Haible  <bruno@clisp.org>
63997
63998         Portability fix.
63999         * gnulib-tool (func_readlink): New function.
64000         (func_ln_if_changed): Use it.
64001
64002 2005-09-18  Bruno Haible  <bruno@clisp.org>
64003
64004         * gnulib-tool: Support --with-tests also with --import.
64005         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64006         (func_import): Use variables $testsbase and $inctests. Emit a
64007         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64008         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64009         SUBDIRS += $testsdir.
64010         (func_create_testdir): Update.
64011
64012 2005-09-18  Bruno Haible  <bruno@clisp.org>
64013
64014         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64015         instead of $dry_run.
64016         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64017         (func_ln_if_changed): Don't handle dry-run here.
64018         (func_import): In dry-run mode, detect more precisely which actions
64019         would be performed, and don't use "...ing" verbs.
64020
64021 2005-09-18  Bruno Haible  <bruno@clisp.org>
64022
64023         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64024         (func_import): Use join on two temporary files instead of three nested
64025         loops, in order to determine which files are new or old.
64026
64027 2005-09-18  Bruno Haible  <bruno@clisp.org>
64028
64029         * gnulib-tool (func_import): Comment out code that spits out the
64030         new files with --dry-run.
64031
64032 2005-09-18  Bruno Haible  <bruno@clisp.org>
64033
64034         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64035
64036 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         * lib/stat-time.h: New file.
64039         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64040         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64041         in a different way.
64042         (timespec_cmp): New function.
64043         * lib/utimecmp.c: Include stat-time.h.
64044         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64045         members exist, not on the obsolescent ST_MTIM_NSEC.
64046         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64047
64048 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64049
64050         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64051
64052 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64053
64054         * MODULES.html.sh (File system functions): Add stat-time.
64055         * modules/stat-time: New file.
64056         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64057         is now done in a different way, by the stat-time module.
64058         * modules/utimecmp (Depends-on): Add stat-time.
64059
64060 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64061
64062         * m4/st_mtim.m4: Remove.  Superseded by...
64063         * m4/stat-time.m4: New file.
64064         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64065         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64066
64067 2005-09-15  Derek Price  <derek@ximbiot.com>
64068
64069         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64070
64071 2005-09-15  Derek Price  <derek@ximbiot.com>
64072
64073         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64074         * lib/regex_internal.c: Ditto, using this...
64075         (__GNUC_PREREQ): ...new macro.
64076         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64077         using...
64078         (__GNUC_PREREQ): ...this new macro.
64079
64080         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64081
64082 2005-09-15  Derek Price  <derek@ximbiot.com>
64083             Paul Eggert  <eggert@cs.ucla.edu>
64084
64085         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64086         changes, consolidating in...
64087         * lib/regex_internal.h: ...this file.
64088
64089 2005-09-13  Jim Meyering  <jim@meyering.net>
64090
64091         * lib/canon-host.c: Filter through gnu indent and reword comments
64092         slightly.
64093         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64094
64095 2005-09-13  Derek Price  <derek@ximbiot.com>
64096
64097         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64098         failure.
64099         Reported by Jim Meyering  <jim@meyering.net>.
64100
64101 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64102
64103         * lib/base64.c: Typo.
64104         (base64_encode): Put b64str in initialized data section.
64105
64106 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64107
64108         Merge glibc and coreutils changes into gnulib, plus a few
64109         extra fixes.
64110         * lib/md5.c: Use #error rather than a string.
64111         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64112         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64113         (__attribute__): Define to empty for non recent-GCC.
64114         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64115         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64116         Renamed from their non-__ counterparts, with new macros replacing
64117         them if not _LIBC.  Add __THROW attribute.
64118         (rol): Remove.
64119         (struct md5_ctx): Align buffer if using GCC.
64120         * lib/sha1.h (struct sha1_ctx): Likewise.
64121         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64122         The old name was backwards.
64123         (NOTSWAP): Remove; not used.
64124         (rol): New macro, moved here from md5.h.
64125         (sha1_process_block): Remove a FIXME that doesn't make sense.
64126
64127 2005-09-12  Derek Price  <derek@ximbiot.com>
64128
64129         Return usable errors from canon-host.
64130         * lib/canon-host.h: New file.
64131         * lib/canon-host.c (canon_host): Wrap...
64132         (canon_host_r): ...this new function, which now relies exclusively on
64133         getaddrinfo.
64134         (ch_strerror): New function.
64135         (last_cherror): New global.
64136         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64137         interface.
64138         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64139         void *.
64140         (freeaddrinfo): Free ai->ai_canonname when set.
64141
64142 2005-09-12  Derek Price  <derek@ximbiot.com>
64143
64144         Make canon-host require getaddrinfo.
64145         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64146         AC_LIBSOURCE canon-host.h.  Call...
64147         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64148         gl_GETADDRINFO.
64149         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64150
64151 2005-09-12  Derek Price  <derek@ximbiot.com>
64152
64153         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64154         LGPL.
64155         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64156
64157 2005-09-12  Derek Price  <derek@ximbiot.com>
64158
64159         * lib/gai_strerror.c: Include config.h when available.  Include
64160         getaddrinfo.h before other headers to test interface.
64161         Reported by Larry Jones <lawrence.jones@ugs.com>.
64162
64163 2005-09-12  Derek Price  <derek@ximbiot.com>
64164             Paul Eggert  <eggert@cs.ucla.edu>
64165
64166         * modules/glob (Files): Add glob-libc.h.
64167
64168 2005-09-12  Derek Price  <derek@ximbiot.com>
64169             Paul Eggert  <eggert@cs.ucla.edu>
64170
64171         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64172         glob_.h, glob-libc.h.
64173         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64174
64175 2005-09-12  Derek Price  <derek@ximbiot.com>
64176             Paul Eggert  <eggert@cs.ucla.edu>
64177
64178         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64179         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64180         protecting things that should be done only in gnulib contexts.
64181         * lib/glob_.h: New file, containing only the glob things needed for
64182         gnulib.
64183         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64184         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64185         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64186         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64187         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64188         and to respect the namespace rules better.
64189
64190 2005-09-08  Simon Josefsson  <jas@extundo.com>
64191
64192         * modules/socklen: New file.
64193
64194 2005-09-08  Simon Josefsson  <jas@extundo.com>
64195
64196         * m4/socklen.m4: New file.
64197
64198 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64199
64200         * modules/utimens (Files): Add m4/utimbuf.m4, since
64201         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64202         Reported by Sergey Poznyakoff.
64203
64204 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64205
64206         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64207         definitions, since that's the preferred style in glibc.
64208         Fix a minor spacing issue, and update copyright notice to match
64209         glibc's.
64210
64211 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64212
64213         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64214
64215 2005-09-06  Simon Josefsson  <jas@extundo.com>
64216
64217         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64218         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64219
64220 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64221
64222         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64223         warning.
64224
64225 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64226
64227         * config/srclist.txt: Add glibc bug 1302.
64228
64229 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64230
64231         Change bitset word type from unsigned int to unsigned long int,
64232         as this has better performance on typical 64-bit hosts.
64233         Port bitset code to hosts with unusual word sizes.
64234         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64235         (build_collating_symbol):
64236         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64237         argument is a bitset.  This is merely a style issue, but it makes
64238         it clearer that an entire array is expected.
64239         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64240         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64241         Port to the case where bitset_word is not the same as unsigned int.
64242         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64243         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64244         Likewise.
64245         * lib/regexec.c (check_dst_limits_calc_pos_1,
64246         check_subexp_matching_top):
64247         (build_trtable, group_nodes_into_DFAstates):
64248         Likewise.
64249         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64250         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64251         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64252         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64253         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64254         * lib/regcomp.c (optimize_subexps, lower_subexp):
64255         Work even if bitset_word has holes in its bitwise representation.
64256         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64257         * lib/regexec.c (check_dst_limits_calc_pos_1,
64258         check_subexp_matching_top):
64259         Likewise.
64260         * lib/regex_internal.c (re_string_reconstruct):
64261         Don't assume UCHAR_MAX == 255.
64262         * lib/regex_internal.h (bitset_set_all): Likewise.
64263         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64264         All uses changed.
64265         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64266         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64267         All uses changed.
64268         (BITSET_WORD_MAX): New macro.
64269         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64270         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64271         (bitset_empty, bitset_copy):
64272         Prefer sizeof (bitset) to multiplying it out ourselves.
64273         (bitset_not_merge): Remove; unused.
64274         (bitset_contain): Return bool, not unsigned int with one bit on.
64275         All callers changed.
64276         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64277         alignment than re_node_set; do this by defining a new internal
64278         type struct dests_alloc and using it to allocate memory.
64279
64280 2005-09-05  Bruno Haible  <bruno@clisp.org>
64281
64282         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64283         links.
64284
64285 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64286
64287         * modules/size_max (Makefile.am): Add size_max.h
64288
64289 2005-09-04  Derek Price  <derek@ximbiot.com>
64290
64291         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64292
64293 2005-09-03  Simon Josefsson  <jas@extundo.com>
64294
64295         * gnulib-tool: Fix typo.
64296
64297 2005-09-03  Simon Josefsson  <jas@extundo.com>
64298
64299         * config/srclist.txt: Add glibc bug 1293.
64300
64301 2005-09-03  Derek Price  <derek@ximbiot.com>
64302
64303         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64304         From Larry Jones <lawrence.jones@ugs.com>.
64305
64306 2005-09-02  Simon Josefsson  <jas@extundo.com>
64307
64308         * modules/socklen: New file.
64309
64310 2005-09-02  Simon Josefsson  <jas@extundo.com>
64311
64312         * modules/havelib: New module.
64313
64314         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64315         Use havelib.
64316
64317 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64318
64319         Check for arithmetic overflow when calculating sizes, to prevent
64320         some buffer-overflow issues.  These patches are conservative, in the
64321         sense that when I couldn't determine whether an overflow was possible,
64322         I inserted a run-time check.
64323         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64324         macros.
64325         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64326         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64327         (re_xnrealloc, re_x2nrealloc): New inline functions.
64328         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64329         parse_bracket_exp):
64330         (build_equiv_class, build_charclass): Check for arithmetic overflow
64331         in size expression calculations.
64332         * lib/regex_internal.c (re_string_realloc_buffers):
64333         (build_wcs_upper_buffer, re_node_set_add_intersect):
64334         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64335         (re_dfa_add_node, register_state): Likewise.
64336         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64337         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64338         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64339         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64340
64341 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64342
64343         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64344         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64345
64346 2005-09-02  Bruno Haible  <bruno@clisp.org>
64347
64348         Support for lib vs. lib64 distinction on biarch platforms.
64349         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64350         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64351         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64352
64353 2005-09-02  Bruno Haible  <bruno@clisp.org>
64354
64355         * gnulib-tool (import): In the other first-use case, provide defaults
64356         as well.
64357
64358 2005-09-02  Bruno Haible  <bruno@clisp.org>
64359
64360         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64361         patches not yet found in the latest gettext release.
64362
64363 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64364
64365         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64366         to avoid a collision with bits/local_lim.h in glibc.
64367         All uses changed.  Problem reported by Dmitry V. Levin in
64368         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64369
64370         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64371         bugs in int versus size_t comparisons.
64372         (re_string_context_at): Fix bug where the code assumed that
64373         Idx is signed.
64374
64375         Use bool where appropriate.
64376         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64377         All callers changed.
64378         (calc_eclosure_iter): Likewise, for ROOT arg.
64379         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64380         (build_charclass_op): Likewise, for NON_MATCH arg.
64381         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64382         (re_string_construct_common): Likewise, for ICASE arg.
64383         * lib/regexec.c (re_search_2_stub, re_search_stub):
64384         Likewise, for RET_LEN arg.
64385         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64386         (set_regs): Likewise, for FL_BACKTRACK arg.
64387         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64388         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64389         (calc_eclosure_iter, parse_bracket_exp):
64390         Use bool for internal variables that are booleans.
64391         * lib/regexec.c (re_search_internal, check_matching,
64392         proceed_next_node):
64393         (set_regs, build_sifted_states, sift_states_bkref):
64394         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64395         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64396         (find_collation_sequence_value):
64397         Likewise.
64398         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64399         (re_node_set_compare):
64400         Return bool, not int. All callers changed.
64401         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64402         (build_trtable, check_node_accept): Likewise.
64403         * lib/regex_internal.h: Include stdbool.h.
64404
64405         Fix bugs uncovered when converting to bool.
64406         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64407         failure instead of charging ahead blindly.
64408         * lib/regex_internal.c (register_state): Likewise.
64409         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64410         for freeing internal storage.
64411         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64412         bitset pieces used as boolean, to avoid undefined behavior
64413         on hosts that do int overflow checking.
64414
64415 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64416
64417         * config/srclist.txt: Add glibc bugs 1285-1287.
64418
64419 2005-09-01  Jim Meyering  <jim@meyering.net>
64420
64421         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64422         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64423         Require gl_STAT_MACROS, too.
64424
64425 2005-09-01  Bruno Haible  <bruno@clisp.org>
64426
64427         * gnulib-tool (import): In the first-use case, provide defaults.
64428
64429 2005-09-01  Bruno Haible  <bruno@clisp.org>
64430
64431         * gnulib-tool (func_import): Remove the .tmp files.
64432
64433 2005-09-01  Bruno Haible  <bruno@clisp.org>
64434
64435         * gnulib-tool (func_import): Fix handling of symbolic links.
64436
64437 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64438
64439         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64440         old glibc regex code mishandles strings longer than 2**31 bytes.
64441         This patch fixes this when the regex code is used in gnulib
64442         (i.e., outside glibc).
64443
64444         This patch should not affect the use of the regex code inside
64445         glibc.  No doubt this problem also needs to be handled for glibc
64446         as well, but the result will be an incompatible change to the
64447         glibc ABI, and the old ABI will have to be supported too.  That
64448         can be the the subject for another patch.
64449
64450         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64451         governing whether the rest of this patch is active.  By default,
64452         the macro is disabled and the patch has no effect.
64453         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64454         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64455         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64456         (re_match_2, re_set_registers): Use the new types.
64457         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64458         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64459         New macros.
64460         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
64461         (re_string_context_at, bin_tree_t, re_dfastate_t):
64462         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
64463         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
64464         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
64465         (re_string_char_size_at, re_string_wchar_at):
64466         (re_string_elem_size_at):
64467         Use the new types and macros to port to 64-bit hosts.
64468         Use unsigned types for internal values, so that the code
64469         mostly works even for arrays larger than SSIZE_MAX.
64470         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
64471         (search_duplicated_node, calc_eclosure_iter, fetch_number):
64472         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
64473         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
64474         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
64475         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
64476         (calc_inveclosure, parse_dup_op, build_range_exp):
64477         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
64478         (fetch_number, create_token_tree, mark_opt_subexp):
64479         Likewise.
64480         * lib/regex_internal.c (re_string_construct_common,
64481         create_ci_newstate):
64482         (create_cd_newstate, re_string_allocate, re_string_construct):
64483         (re_string_realloc_buffers, build_wcs_upper_buffer):
64484         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64485         (re_string_reconstruct, re_string_peek_byte_case):
64486         (re_string_fetch_byte_case, re_string_context_at):
64487         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64488         (re_node_set_init_copy, re_node_set_add_intersect):
64489         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64490         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64491         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64492         (re_acquire_state, re_acquire_state_context, register_state):
64493         Likewise.
64494         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
64495         search_cur_bkref_entry):
64496         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
64497         (re_search_internal, re_search_2_stub, re_search_stub)
64498         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
64499         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
64500         (update_cur_sifted_state, check_dst_limits):
64501         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64502         (check_subexp_limits, sift_states_bkref, merge_state_array):
64503         (check_subexp_matching_top, get_subexp, get_subexp_sub):
64504         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
64505         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64506         (expand_bkref_cache, check_node_accept_bytes):
64507         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
64508         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
64509         (acquire_init_state_context, check_halt_node_context):
64510         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
64511         (sift_states_backward, clean_state_log_if_needed):
64512         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
64513         (find_recover_state, transit_state_sb, transit_state_mb):
64514         (transit_state_bkref, build_trtable, match_ctx_clean):
64515         Likewise.
64516         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
64517         to work around an assumption that REG_MISSING is negative.
64518
64519         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
64520         (seek_collating_symbol_entry) [defined _LIBC]:
64521         (lookup_collation_sequence_value) [defined _LIBC]:
64522         (build_range_exp, build_collating_symbol) [defined _LIBC]:
64523         Use prototypes rather than old-style function definitions.
64524         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
64525         (transit_state_sb) [0]:
64526         (find_collation_sequence_value) [defined _LIBC]: Likewise.
64527
64528         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
64529         rm_eo.
64530
64531         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
64532         (optimize_subexps, lower_subexp):
64533         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
64534         since the signed shift might overflow.  Use 1u<<31 instead.
64535         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64536         Likewise.
64537         * lib/regexec.c (check_dst_limits_calc_pos_1,
64538         check_subexp_matching_top): Likewise.
64539
64540         * lib/regcomp.c (optimize_subexps, lower_subexp):
64541         Use CHAR_BIT rather than 8, for clarity.
64542         * lib/regexec.c (check_dst_limits_calc_pos_1):
64543         (check_subexp_matching_top): Likewise.
64544         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
64545         have to worry about portability issues when shifting it left.
64546         Remove no-longer-needed test for table_size > 0.
64547         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
64548         in a word, as the resulting behavior is undefined.
64549         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
64550         in one case, a <= should have been an <, and in another case the
64551         whole test was missing.
64552         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
64553         the standard name CHAR_BIT.
64554         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
64555         this is not true on one's complement and signed-magnitude hosts.
64556
64557         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
64558         next_last_offset.
64559         (struct re_dfa_t): Remove unused member states_alloc.
64560         * lib/regcomp.c (init_dfa): Don't initialize unused members.
64561
64562 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64563
64564         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
64565         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
64566         and large-file glibc and in 32-bit large-file Solaris.
64567
64568 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
64571         lengths fit in regoff_t; this isn't true if regoff_t is the same
64572         width as size_t.
64573         * lib/regex.c (re_search_internal): 5th arg is LAST_START
64574         (= START + RANGE) instead of RANGE.  This avoids overflow
64575         problems when regoff_t is the same width as size_t.
64576         All callers changed.
64577         (re_search_2_stub): Check for overflow when adding the
64578         sizes of the two strings.
64579         (re_search_stub): Check for overflow when adding START
64580         to RANGE; if it occurs, substitute the extreme value.
64581
64582 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64583
64584         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
64585
64586 2005-08-31  Jim Meyering  <jim@meyering.net>
64587
64588         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
64589         a pointer-to-const.
64590         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
64591         (register_state): Likewise.
64592         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
64593         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64594         (group_nodes_into_DFAstates): Likewise.
64595
64596 2005-08-31  Jim Meyering  <jim@meyering.net>
64597
64598         * check-module: Add a FIXME comment.
64599
64600 2005-08-31  Eric Blake  <ebb9@byu.net>
64601
64602         * modules/unistd-safer (Files): Add unistd--.h.
64603         * modules/stdio-safer (Files): Add stdio--.h.
64604
64605 2005-08-31  Derek Price  <derek@ximbiot.com>
64606
64607         * lib/getdelim.c (getdelim): Return EOF on EOF.
64608         Reported by Larry Jones <lawrence.jones@ugs.com>.
64609
64610 2005-08-31  Bruno Haible  <bruno@clisp.org>
64611
64612         Avoid unnecessary diffs in the generated lib/Makefile.am.
64613         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
64614         the generated files.
64615         (func_import): Don't set cmd.
64616
64617 2005-08-31  Bruno Haible  <bruno@clisp.org>
64618
64619         * lib/strstr.c: Include <stddef.h>, for NULL.
64620         * lib/strcasestr.c: Likewise.
64621         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64622
64623 2005-08-31  Bruno Haible  <bruno@clisp.org>
64624
64625         * gnulib-tool: New option --macro-prefix.
64626         (func_import): Use macro_prefix.
64627         (import): Handle option --macro-prefix.
64628
64629 2005-08-31  Bruno Haible  <bruno@clisp.org>
64630
64631         * gnulib-tool (import): Rename most ac_* variables to cached_*.
64632         Also use new variables cached_lgpl, cached_libtool.
64633
64634 2005-08-31  Bruno Haible  <bruno@clisp.org>
64635
64636         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
64637         always instantiating them.
64638
64639 2005-08-31  Bruno Haible  <bruno@clisp.org>
64640
64641         * gnulib-tool (func_import): Read the previous cached settings
64642         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
64643         earlier added by gnulib but are now dropped. Warn when a gnulib file
64644         overwrites a non-gnulib file.
64645
64646 2005-08-31  Bruno Haible  <bruno@clisp.org>
64647
64648         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
64649         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
64650         projects that don't keep autogenerated files in CVS. Put into
64651         actioncmd only the specified modules, not the transitive closure.
64652
64653 2005-08-31  Bruno Haible  <bruno@clisp.org>
64654
64655         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
64656         Create directories that shall be filled.
64657         (import): Don't look for gl_* macros in configure.ac. Recurse across
64658         all directories containing a gnulib-cache.m4 files, if meaningful.
64659
64660 2005-08-31  Bruno Haible  <bruno@clisp.org>
64661
64662         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
64663         (import): Set seen_libtool when we see gl_LIBTOOL.
64664
64665 2005-08-31  Bruno Haible  <bruno@clisp.org>
64666
64667         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
64668         declaration macro definitions from generated gnulib.m4.
64669
64670 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
64671
64672         * lib/iconvme.h: Add prototype for iconv_alloc.
64673
64674 2005-08-29  Simon Josefsson  <jas@extundo.com>
64675
64676         * lib/iconvme.c: Fix errno.
64677
64678 2005-08-29  Bruno Haible  <bruno@clisp.org>
64679
64680         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
64681         that it works when the directory contains spaces.
64682
64683 2005-08-29  Bruno Haible  <bruno@clisp.org>
64684
64685         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
64686
64687 2005-08-29  Bruno Haible  <bruno@clisp.org>
64688
64689         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
64690         Emit more advice.
64691
64692 2005-08-29  Bruno Haible  <bruno@clisp.org>
64693         and Stepan Kasal  <kasal@ucw.cz>
64694
64695         * check-module: If more parameters are given, check each of them
64696         separately; add more exceptions, as noted by Jim Meyering.
64697         (check_module): New procedure.
64698         (%exempt_header): Now contains all exceptions.
64699
64700 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
64701
64702         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
64703
64704 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64705
64706         * lib/iconvme.c: Split iconv_string into iconv_alloc.
64707
64708 2005-08-28  Bruno Haible  <bruno@clisp.org>
64709
64710         * m4/gnulib-tool.m4: New file.
64711
64712 2005-08-27  Jim Meyering  <jim@meyering.net>
64713
64714         * modules/unistd-safer (Files): Add pipe-safer.c.
64715         * modules/fcntl-safer (Files): Add creat-safer.c.
64716
64717 2005-08-27  Jim Meyering  <jim@meyering.net>
64718
64719         * m4/stdlib-safer.m4: New file.  From coreutils.
64720         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
64721         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
64722         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
64723         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
64724         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
64725
64726 2005-08-27  Jim Meyering  <jim@meyering.net>
64727
64728         * lib/fopen-safer.c: Merge minor changes from coreutils.
64729         * lib/dup-safer.c: Likewise.
64730         * lib/fd-safer.c: Likewise.
64731
64732         Merge from coreutils.
64733         * lib/stdio--.h: New file.
64734         * lib/stdlib--.h: New file.
64735         * lib/mkstemp-safer.c: New file.
64736
64737         GNU tar needs these.
64738         * lib/pipe-safer.c: New file.
64739         * lib/creat-safer.c: New file.
64740         * lib/fcntl--.h (creat): Define to creat_safer.
64741         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
64742         * lib/unistd--.h (pipe): Define to pipe_safer.
64743         * lib/unistd-safer.h: Declare pipe_safer.
64744
64745 2005-08-26  Simon Josefsson  <jas@extundo.com>
64746
64747         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
64748         Haible <bruno@clisp.org>.
64749
64750 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
64751
64752         * lib/regex_internal.h: Remove all references to
64753         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
64754         or better.
64755         (bitset_not, bitset_merge, bitset_not_merge):
64756         (bitset_mask, re_string_allocate, re_string_construct):
64757         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
64758         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
64759         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
64760         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
64761         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64762         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64763         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
64764         (re_acquire_state_context):
64765         Remove unnecessary forward decls.
64766         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
64767         Put __attribute at function definition,
64768         now that the function decl has been removed.
64769         * lib/regex_internal.c (re_string_peek_byte_case):
64770         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
64771         Likewise.
64772
64773 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
64774
64775         * m4/regex.m4: Add AC_PREREQ(2.50).
64776         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
64777
64778 2005-08-25  Simon Josefsson  <jas@extundo.com>
64779
64780         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
64781         __fsetlocking.
64782
64783 2005-08-25  Simon Josefsson  <jas@extundo.com>
64784
64785         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
64786         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
64787         GLIBC specific code.
64788
64789 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64790
64791         Make regex safe for g++.  This fixes one real bug (an "err"
64792         that should have been "*err").  g++ problem reported by
64793         Sam Steingold.
64794         * lib/regex_internal.h (re_calloc): New macro, consistent with
64795         re_malloc etc.  All callers of calloc changed to use re_calloc.
64796         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64797         not int.  All callers changed.
64798         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64799         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64800         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64801         (find_recover_state): Change "err" to "*err"; this fixes what
64802         appears to be a real bug.
64803         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64804         versus int.
64805
64806 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64807
64808         * modules/regex (Depends-on): Add malloc, since the code
64809         assumes that !malloc(0) means failure.
64810
64811 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64812
64813         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64814
64815         alloca modernization/simplification for regex.
64816         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64817         needs to be at the start of the file, and can be moved into
64818         regex_internal.h and simplified.
64819         * lib/regex_internal.h: Include <alloca.h>.
64820         (__libc_use_alloca) [!defined _LIBC]: New macro.
64821         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64822         now works outside glibc.
64823
64824 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64825
64826         * config/srclist.txt: Add glibc bugs 1241, 1245.
64827
64828 2005-08-25  Jim Meyering  <jim@meyering.net>
64829
64830         * lib/open-safer.c: Include <config.h>.
64831         Otherwise, we'd lose LARGEFILE support in any file using
64832         e.g. "fcntl--.h"
64833
64834 2005-08-25  Bruno Haible  <bruno@clisp.org>
64835
64836         * m4/minmax.m4: Require autoconf 2.52.
64837         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64838         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64839         alternatives of translit over the alphabet.
64840         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64841
64842 2005-08-24  Simon Josefsson  <jas@extundo.com>
64843
64844         * tests/test-getpass.c: New file.
64845
64846 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64849         for GNU regex features.
64850
64851 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64852
64853         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64854         * lib/regex.h (regerror): Likewise.
64855
64856         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64857         requires this.  (The code never needed it.)
64858
64859         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64860         All uses of recently-renamed identifiers changed to use the new,
64861         POSIX-compliant names.  The code will build and run just fine
64862         without these changes, but it's better to eat our own dog food
64863         and use the standard-conforming names.
64864
64865         * lib/regex.h: Fix a multitude of POSIX name space violations.
64866         These changes have an effect only for programs that define
64867         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64868         do not change anything for programs compiled in the normal way.
64869         Also, there is no effect on the ABI.
64870
64871         (_REGEX_SOURCE): New macro.
64872         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64873         defined and _GNU_SOURCE is not; this fixes a name space violation.
64874
64875         Rename the following macros to obey POSIX requirements.
64876         The old names are still visible as macros if _REGEX_SOURCE is defined.
64877         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64878         RE_BACKSLASH_ESCAPE_IN_LISTS.
64879         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64880         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64881         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64882         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64883         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64884         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64885         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64886         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64887         (REG_INTERVALS): renamed from RE_INTERVALS.
64888         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64889         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64890         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64891         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64892         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64893         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64894         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64895         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64896         RE_UNMATCHED_RIGHT_PAREN_ORD.
64897         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64898         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64899         (REG_DEBUG): renamed from RE_DEBUG.
64900         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64901         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64902         unusual, since we can't clash with the POSIX REG_ICASE.
64903         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64904         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64905         (REG_NO_SUB): renamed from RE_NO_SUB.
64906         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64907         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64908         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64909         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64910         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64911         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64912         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64913         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64914         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64915         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64916         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64917         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64918         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64919         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64920         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64921         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64922         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64923         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64924         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64925         (REG_FIXED): Renamed from REGS_FIXED.
64926         (REG_NREGS): Renamed from RE_NREGS.
64927
64928         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64929         of other REG_* macros, since POSIX says the user is allowed to
64930         #undef these macros selectively.
64931
64932         (reg_errcode_t): Update comment stating what other tables need
64933         to be consistent.
64934
64935         Rename the following enum values to obey POSIX requirements.
64936         The old names are still visible as macros.
64937         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64938         is not defined, since GNU is supposed to be a superset of POSIX as
64939         much as possible, and since we want reg_errcode_t to be a signed
64940         type for implementation consistency.
64941         (_REG_NOERROR): Renamed from REG_NOERROR.
64942         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64943         (_REG_BADPAT): Renamed from REG_BADPAT.
64944         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64945         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64946         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64947         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64948         (_REG_EBRACK): Renamed from REG_EBRACK.
64949         (_REG_EPAREN): Renamed from REG_EPAREN.
64950         (_REG_EBRACE): Renamed from REG_EBRACE.
64951         (_REG_BADBR): Renamed from REG_BADBR.
64952         (_REG_ERANGE): Renamed from REG_ERANGE.
64953         (_REG_ESPACE): Renamed from REG_ESPACE.
64954         (_REG_BADRPT): Renamed from REG_BADRPT.
64955         (_REG_EEND): Renamed from REG_EEND.
64956         (_REG_ESIZE): Renamed from REG_ESIZE.
64957         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64958         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64959         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64960         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64961         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64962
64963         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64964         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64965         changed.  But support the old name if the new one is not defined
64966         and if _REGEX_SOURCE.
64967
64968         Change the following member names in struct re_pattern_buffer.
64969         The old names are still supported if !_REGEX_SOURCE.
64970         The new names are always supported, regardless of _REGEX_SOURCE.
64971         (re_buffer): Renamed from buffer.
64972         (re_allocated): Renamed from allocated.
64973         (re_used): Renamed from used.
64974         (re_syntax): Renamed from syntax.
64975         (re_fastmap): Renamed from fastmap.
64976         (re_translate): Renamed from translate.
64977         (re_can_be_null): Renamed from can_be_null.
64978         (re_regs_allocated): Renamed from regs_allocated.
64979         (re_fastmap_accurate): Renamed from fastmap_accurate.
64980         (re_no_sub): Renamed from no_sub.
64981         (re_not_bol): Renamed from not_bol.
64982         (re_not_eol): Renamed from not_eol.
64983         (re_newline_anchor): Renamed from newline_anchor.
64984
64985         Change the following member names in struct re_registers.
64986         The old names are still supported if !_REGEX_SOURCE.
64987         The new names are always supported, regardless of _REGEX_SOURCE.
64988         (rm_num_regs): Renamed from num_regs.
64989         (rm_start): Renamed from start.
64990         (rm_end): Renamed from end.
64991
64992         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64993         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64994         Prepend __ to parameter names.
64995
64996         Undo yesterday's changes.
64997
64998 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64999
65000         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65001         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65002         lib/regex.c.
65003
65004 2005-08-24  Jim Meyering  <jim@meyering.net>
65005
65006         Sync from coreutils.
65007         * m4/fcntl-safer.m4: New file.
65008
65009         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65010         and object files for this module.
65011
65012 2005-08-24  Jim Meyering  <jim@meyering.net>
65013
65014         Sync from coreutils.
65015         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65016
65017 2005-08-24  Jim Meyering  <jim@meyering.net>
65018
65019         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65020         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65021
65022 2005-08-24  Jim Meyering  <jim@meyering.net>
65023
65024         * modules/fcntl-safer: New module.
65025         * modules/fts (Depends-on): Add fcntl-safer.
65026         * MODULES.html.sh (File descriptor based Input/Output):
65027         Add fcntl-safer.
65028
65029 2005-08-24  Bruno Haible  <bruno@clisp.org>
65030
65031         Support for unit test modules.
65032         * modules/README: Mention tests modules.
65033         * modules/TEMPLATE-TESTS: New file.
65034         * gnulib-tool: New options --extract-tests-module, --with-tests and
65035         --tests-base (unused for the moment).
65036         (testsbase, inctests): New variables.
65037         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65038         (func_verify_module): Exclude TEMPLATE-TESTS.
65039         (func_verify_nontests_module, func_verify_tests_module): New functions.
65040         (func_get_dependencies): Add implicit dependency for tests modules.
65041         (func_get_tests_module): New function.
65042         (func_modules_transitive_closure): When --with-tests was specified,
65043         include the unit tests as well, unless explicitly avoided.
65044         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65045         (func_emit_tests_Makefile_am): New function.
65046         (func_create_testdir): When --with-tests was specified, emit a
65047         tests/ directory.
65048         * MODULES.html.sh (Future developments): Update.
65049
65050 2005-08-24  Bruno Haible  <bruno@clisp.org>
65051
65052         * modules/tls-tests: New file.
65053         * tests/test-tls.c: New file, from GNU gettext.
65054
65055 2005-08-24  Bruno Haible  <bruno@clisp.org>
65056
65057         * modules/lock-tests: New file.
65058         * tests/test-lock.c: New file, from GNU gettext.
65059
65060 2005-08-24  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/lock.h: Add multiple inclusion guard.
65063         * lib/tls.h: Add multiple inclusion guard.
65064
65065 2005-08-24  Bruno Haible  <bruno@clisp.org>
65066
65067         * gnulib-tool: Add support for the --aux-dir option to
65068         --create-testdir, --create-megatestdir, --test, --megatest.
65069         (func_create_testdir, func_create_megatestdir): Optionally emit a
65070         AC_CONFIG_AUX_DIR directive.
65071         (create-testdir, create-megatestdir, test, megatest): Provide a
65072         default value for $auxdir.
65073
65074 2005-08-24  Bruno Haible  <bruno@clisp.org>
65075
65076         * gnulib-tool (import): Use compound statement instead of subshell
65077         where possible.
65078
65079 2005-08-24  Bruno Haible  <bruno@clisp.org>
65080
65081         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65082
65083 2005-08-24  Bruno Haible  <bruno@clisp.org>
65084
65085         * gnulib-tool (func_version): Update.
65086
65087 2005-08-24  Bruno Haible  <bruno@clisp.org>
65088
65089         * gnulib-tool (func_import, func_create_testdir,
65090         func_create_megatestdir): Quote all autoconf macro arguments.
65091
65092 2005-08-24  Bruno Haible  <bruno@clisp.org>
65093
65094         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65095         option --force, because --force causes the aclocal.m4 of each
65096         subdirectory to be newer than the corresponding config.h.in.
65097
65098 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65101         All contents moved to gl_REGEX.
65102         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65103         assume that it does.
65104
65105 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65106
65107         * lib/regex.h (REG_NOSYS)
65108         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65109         Define, since POSIX requires it as of 2001.
65110         (_REG_ENOSYS)
65111         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65112         New private symbol, used to keep the enum signed in all cases.
65113         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65114         Youngman in
65115         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65116
65117         * lib/regex_internal.c (re_string_skip_chars, register_state):
65118         (calc_state_hash):
65119         Remove forward decls; no longer needed now that we use prototypes.
65120         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65121         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65122         (clean_state_log_if_needed): Likewise.
65123
65124 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65125
65126         * config/srclist.txt: Add glibc bugs 1231-1233.
65127
65128 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65129
65130         Fix problems reported by Sam Steingold in
65131         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65132         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65133         assumed that reg_errcode_t is a signed type, which is not
65134         necessarily true if _XOPEN_SOURCE is not defined.
65135         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65136         since some compilers warn about it otherwise.
65137
65138 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65139
65140         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65141         (init_word_char, create_initial_state, duplicate_node_closure):
65142         (fetch_token, peek_token_bracket, build_range_exp):
65143         (build_collating_symbol): Remove forward decls; no longer needed
65144         now that we use prototypes.
65145
65146         * lib/regcomp.c:
65147         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65148         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65149         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65150         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65151         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65152         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65153         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65154         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65155         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65156         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65157         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65158         (build_charclass, build_charclass_op, fetch_number, create_tree):
65159         (create_token_tree, mark_opt_subexp, duplicate_tree):
65160         Use prototypes rather than old-style definitions.
65161
65162         * lib/regex_internal.c:
65163         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65164         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65165         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65166         (re_string_reconstruct, re_string_peek_byte_case):
65167         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65168         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65169         (re_node_set_init_copy, re_node_set_add_intersect):
65170         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65171         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65172         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65173         (re_acquire_state, re_acquire_state_context, register_state):
65174         (create_ci_newstate, create_cd_newstate, free_state):
65175         Likewise.
65176         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65177         re_search_2):
65178         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65179         (re_search_internal, prune_impossible_nodes):
65180         (acquire_init_state_context, check_matching, static):
65181         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65182         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65183         (update_regs, sift_states_backward, build_sifted_states):
65184         (clean_state_log_if_needed, merge_state_array):
65185         (update_cur_sifted_state, add_epsilon_src_nodes):
65186         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65187         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65188         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65189         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65190         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65191         (check_arrival, check_arrival_add_next_nodes):
65192         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65193         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65194         (check_node_accept_bytes, check_node_accept, extend_buffers):
65195         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65196         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65197         (sift_ctx_init):
65198         Likewise.
65199
65200         * lib/regex_internal.h:
65201         (re_string_allocate, re_string_construct, re_string_reconstruct):
65202         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65203         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65204         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65205         (re_string_context_at, re_string_peek_byte_case):
65206         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65207         is defined, since we now use prototypes always.
65208
65209         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65210         C89 or better.  All uses removed.
65211
65212 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65213
65214         * config/srclist.txt: Add glibc bugs 1220-1227.
65215
65216 2005-08-20  Jim Meyering  <jim@meyering.net>
65217
65218         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65219         of unused local, dfa.
65220
65221 2005-08-20  Bruno Haible  <bruno@clisp.org>
65222
65223         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65224
65225 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65226
65227         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65228         (re_node_set_insert_last, re_dfa_add_node):
65229         Rename local variables to avoid GCC shadowing warnings.
65230
65231 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65234         [defined lint]: Suppress bogus uninitialized-variable warnings.
65235
65236         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65237         and let the caller return REG_ESPACE if out of space.  This
65238         removes an uninitialied-variable warning with GCC 4.0.1, and also
65239         avoids taking the address of a local variable.  All callers
65240         changed.
65241
65242 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65243
65244         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65245         $LIBCSRC/posix/regexec.c.
65246         Add glibc bug 1217 for regcomp.c.
65247
65248 2005-08-19  Jim Meyering  <jim@meyering.net>
65249
65250         * lib/regexec.c (proceed_next_node): Redo local variables to
65251         avoid GCC shadowing warnings.
65252
65253 2005-08-18  Bruno Haible  <bruno@clisp.org>
65254
65255         * lib/strstr.c (strstr): Fix return value in multibyte case.
65256         * lib/strcasestr.c (strcasestr): Likewise.
65257
65258 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65259
65260         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65261
65262 2005-08-17  Jim Meyering  <jim@meyering.net>
65263
65264         Make the %s format (seconds since the epoch) work for a negative
65265         number and when used with a zero-padded field width, e.g. %015s.
65266
65267         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65268         label so that it precedes the code to set `digits'.  Otherwise,
65269         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65270         print `00-22'.  Now, it prints `-0022', as it should.
65271
65272 2005-08-17  Bruno Haible  <bruno@clisp.org>
65273
65274         * modules/strstr (Files): Add m4/mbrtowc.m4.
65275         (Depends-on): Add mbuiter.
65276
65277 2005-08-17  Bruno Haible  <bruno@clisp.org>
65278
65279         * modules/strcasestr: New file.
65280         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65281         strcasestr.
65282
65283 2005-08-17  Bruno Haible  <bruno@clisp.org>
65284
65285         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65286
65287 2005-08-17  Bruno Haible  <bruno@clisp.org>
65288
65289         * modules/mbuiter: New file.
65290         * MODULES.html.sh (Extended multibyte and wide character utilities):
65291         Add mbuiter.
65292
65293 2005-08-17  Bruno Haible  <bruno@clisp.org>
65294
65295         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65296         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65297
65298 2005-08-17  Bruno Haible  <bruno@clisp.org>
65299
65300         * m4/strcasestr.m4: New file.
65301
65302 2005-08-17  Bruno Haible  <bruno@clisp.org>
65303
65304         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65305         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65306
65307 2005-08-17  Bruno Haible  <bruno@clisp.org>
65308
65309         * lib/strcasestr.h: New file.
65310         * lib/strcasestr.c: New file.
65311
65312 2005-08-17  Bruno Haible  <bruno@clisp.org>
65313
65314         * lib/strcasecmp.c: Use mbuiter.h.
65315
65316 2005-08-17  Bruno Haible  <bruno@clisp.org>
65317
65318         * lib/mbuiter.h: New file.
65319
65320 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65321
65322         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65323         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65324         and gl_GETOPT are both invoked via different paths (as happens
65325         with GNU tar CVS because it uses both argp and getopt), the former
65326         wins.
65327
65328 2005-08-16  Bruno Haible  <bruno@clisp.org>
65329
65330         * modules/tls: New file.
65331         * MODULES.html.sh (Multithreading): Add tls.
65332
65333 2005-08-16  Bruno Haible  <bruno@clisp.org>
65334
65335         * modules/strnlen1: New file.
65336         * MODULES.html.sh (String handling): Add strnlen1.
65337
65338 2005-08-16  Bruno Haible  <bruno@clisp.org>
65339
65340         * modules/strcase (Files): Add m4/mbrtowc.m4.
65341         (Depends-on): Add strnlen1, mbchar.
65342
65343 2005-08-16  Bruno Haible  <bruno@clisp.org>
65344
65345         * modules/mbiter: New file.
65346         * MODULES.html.sh (Extended multibyte and wide character utilities):
65347         Add mbiter.
65348
65349 2005-08-16  Bruno Haible  <bruno@clisp.org>
65350
65351         * modules/mbfile: New file.
65352         * MODULES.html.sh (Extended multibyte and wide character utilities):
65353         Add mbfile.
65354
65355 2005-08-16  Bruno Haible  <bruno@clisp.org>
65356
65357         * modules/mbchar: New file.
65358         * MODULES.html.sh (Extended multibyte and wide character utilities):
65359         New section.
65360
65361 2005-08-16  Bruno Haible  <bruno@clisp.org>
65362
65363         * m4/tls.m4: New file, from GNU gettext.
65364
65365 2005-08-16  Bruno Haible  <bruno@clisp.org>
65366
65367         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65368         always.
65369         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65370
65371 2005-08-16  Bruno Haible  <bruno@clisp.org>
65372
65373         * m4/mbiter.m4: New file.
65374
65375 2005-08-16  Bruno Haible  <bruno@clisp.org>
65376
65377         * m4/mbfile.m4: New file.
65378
65379 2005-08-16  Bruno Haible  <bruno@clisp.org>
65380
65381         * m4/mbchar.m4: New file.
65382
65383 2005-08-16  Bruno Haible  <bruno@clisp.org>
65384
65385         * lib/tls.h: New file, from GNU gettext.
65386         * lib/tls.c: New file, from GNU gettext.
65387
65388 2005-08-16  Bruno Haible  <bruno@clisp.org>
65389
65390         * lib/strnlen1.h: New file.
65391         * lib/strnlen1.c: New file.
65392
65393 2005-08-16  Bruno Haible  <bruno@clisp.org>
65394
65395         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65396         (mbi_init): Update.
65397         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65398         NUL byte, not after it.
65399
65400 2005-08-16  Bruno Haible  <bruno@clisp.org>
65401
65402         * lib/strcase.h (strcasecmp): Add note in comments.
65403         * lib/strncasecmp.c: Use code from strcasecmp.c.
65404         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65405         (strcasecmp): Work correctly in multibyte locales.
65406
65407 2005-08-16  Bruno Haible  <bruno@clisp.org>
65408
65409         * lib/mbiter.h: New file.
65410
65411 2005-08-16  Bruno Haible  <bruno@clisp.org>
65412
65413         * lib/mbfile.h: New file.
65414
65415 2005-08-16  Bruno Haible  <bruno@clisp.org>
65416
65417         * lib/mbchar.h: New file.
65418         * lib/mbchar.c: New file.
65419
65420 2005-08-16  Bruno Haible  <bruno@clisp.org>
65421
65422         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65423         the valid ones. Makes the comparison operations transitive:
65424         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65425         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65426
65427 2005-08-15  Simon Josefsson  <jas@extundo.com>
65428
65429         * modules/ssize_t (License): Change to 'unlimited'.
65430
65431         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65432
65433 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65434
65435         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65436         Add comments for each pending glibc patch.
65437
65438 2005-08-15  Bruno Haible  <bruno@clisp.org>
65439
65440         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65441         __cplusplus is defined.
65442
65443 2005-08-14  Jim Meyering  <jim@meyering.net>
65444
65445         Sync from coreutils.
65446
65447         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65448         Use the hash-table-based cycle-detection code not just when
65449         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65450         Reported by James Youngman in
65451         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65452         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65453         FTS_TIGHT_CYCLE_CHECK.
65454         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65455         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65456         once again.
65457         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65458         * lib/fts.c (fd_safer): Remove decl.
65459         Include fcntl--.h rather than unistd-safer.h
65460         (fts_safe_changedir): Don't call fd_safer; no longer needed
65461         now that we include fcntl--.h.
65462
65463 2005-08-12  Simon Josefsson  <jas@extundo.com>
65464
65465         * modules/getndelim2: Use ssize_t module.
65466         * modules/getnline: Likewise.
65467         * modules/safe-read: Likewise.
65468         * modules/xreadlink: Likewise.
65469
65470         * modules/ssize_t: New file.
65471
65472 2005-08-12  Simon Josefsson  <jas@extundo.com>
65473
65474         * m4/readline.m4: Look for termcap, curses or ncurses if required.
65475
65476 2005-08-12  Simon Josefsson  <jas@extundo.com>
65477
65478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65479         ssize_t.
65480
65481 2005-08-12  Simon Josefsson  <jas@extundo.com>
65482
65483         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
65484         readline, getdelim and check_version.
65485         (Support for systems lacking ISO C 99: Sizes of integer types):
65486         Add size_max.
65487
65488 2005-08-12  Bruno Haible  <bruno@clisp.org>
65489
65490         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
65491
65492 2005-08-11  Simon Josefsson  <jas@extundo.com>
65493
65494         * modules/readline: New file.
65495
65496         * modules/strnlen (Files): Add strnlen.h.
65497
65498 2005-08-11  Simon Josefsson  <jas@extundo.com>
65499
65500         * m4/readline.m4: New file.
65501
65502 2005-08-11  Simon Josefsson  <jas@extundo.com>
65503
65504         * lib/readline.h, readline.c: New file.
65505
65506 2005-08-11  Simon Josefsson  <jas@extundo.com>
65507
65508         * doc/gnulib.texi (Initial import, Finishing touches): Mention
65509         gl_AVOID.
65510
65511 2005-08-11  Bruno Haible  <bruno@clisp.org>
65512
65513         * lib/strnlen.h (strnlen): Change parameter name to match comment.
65514
65515 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
65516
65517         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
65518
65519 2005-08-10  Simon Josefsson  <jas@extundo.com>
65520
65521         * tests/test-iconvme.c: New file.
65522
65523 2005-08-10  Simon Josefsson  <jas@extundo.com>
65524
65525         * m4/strnlen.m4: New file.
65526
65527         * m4/strndup.m4: Don't check for strnlen declaration, done in
65528         strnlen.m4.
65529
65530 2005-08-10  Simon Josefsson  <jas@extundo.com>
65531
65532         * lib/strndup.c: Use strnlen.h.
65533
65534         * lib/strnlen.h: New file.
65535
65536 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65537
65538         * README: Typos.
65539
65540 2005-08-02  Simon Josefsson  <jas@extundo.com>
65541
65542         * modules/readline: New file.
65543
65544 2005-08-02  Simon Josefsson  <jas@extundo.com>
65545
65546         * modules/getdelim: New file.
65547
65548         * modules/getline: Rewrite, don't use getndelim2.
65549
65550 2005-08-02  Simon Josefsson  <jas@extundo.com>
65551
65552         * m4/getline.m4: Separate out getdelim stuff into separate module.
65553
65554         * m4/getdelim.m4: New file.
65555
65556 2005-08-02  Simon Josefsson  <jas@extundo.com>
65557
65558         * lib/getline.h, getline.c: Rewrite.
65559
65560         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
65561
65562 2005-07-31  Bruno Haible  <bruno@clisp.org>
65563
65564         * lib/lock.h (gl_lock_initializer): New macro.
65565         (gl_lock_define_initialized): Use it.
65566         (gl_rwlock_initializer): New macro.
65567         (gl_rwlock_define_initialized): Use it.
65568         (gl_recursive_lock_initializer): New macro.
65569         (gl_recursive_lock_define_initialized): Use it.
65570
65571 2005-07-30  Karl Berry  <karl@gnu.org>
65572
65573         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
65574         Report from Ben Pfaff, regarding getopt.
65575
65576 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
65577
65578         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
65579         normal way.
65580         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
65581         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
65582         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
65583         (gl_GETOPT): Use the new macros.  Most of the implementation
65584         is moved to the new macros.  This is for programs like Emacs
65585         that don't want all the functionality of gl_GETOPT.
65586
65587 2005-07-26  Bruno Haible  <bruno@clisp.org>
65588
65589         * m4/lock.m4: Update from GNU gettext.
65590
65591 2005-07-26  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/lock.h: Update from GNU gettext.
65594         * lib/lock.c: Update from GNU gettext.
65595
65596 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
65597
65598         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
65599         obsolescent AC_TRY_RUN.  Include the default includes files, for
65600         'exit'.
65601
65602 2005-07-24  Bruno Haible  <bruno@clisp.org>
65603
65604         * modules/visibility: New file.
65605         * MODULES.html.sh (Misc): Add visibility.
65606
65607 2005-07-24  Bruno Haible  <bruno@clisp.org>
65608
65609         * m4/visibility.m4: New file.
65610
65611 2005-07-24  Bruno Haible  <bruno@clisp.org>
65612
65613         * doc/visibility.texi: New file.
65614
65615 2005-07-22  Bruno Haible  <bruno@clisp.org>
65616
65617         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
65618         $(ALLOCA_H), redundant through BUILT_SOURCES.
65619         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
65620         redundant through BUILT_SOURCES.
65621         * modules/byteswap (Makefile.am): Remove explicit dependency on
65622         $(BYTESWAP_H), redundant through BUILT_SOURCES.
65623         * modules/fnmatch (Makefile.am): Remove explicit dependency on
65624         $(FNMATCH_H), redundant through BUILT_SOURCES.
65625         * modules/getopt (Makefile.am): Remove explicit dependency on
65626         $(GETOPT_H), redundant through BUILT_SOURCES.
65627         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
65628         redundant through BUILT_SOURCES.
65629         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
65630         redundant through BUILT_SOURCES.
65631         * modules/stdbool (Makefile.am): Remove explicit dependency on
65632         $(STDBOOL_H), redundant through BUILT_SOURCES.
65633         * modules/stdint (Makefile.am): Remove explicit dependency on
65634         $(STDINT_H), redundant through BUILT_SOURCES.
65635         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
65636         Remove explicit dependency on $(SYSEXITS_H).
65637         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
65638
65639 2005-07-18  Simon Josefsson  <jas@extundo.com>
65640
65641         * lib/check-version.c (check_version): Accept identical versions too.
65642
65643 2005-07-18  Bruno Haible  <bruno@clisp.org>
65644
65645         * modules/lock: New file.
65646         * MODULES.html.sh (Multithreading): New section.
65647
65648 2005-07-18  Bruno Haible  <bruno@clisp.org>
65649
65650         * m4/lock.m4: New file, from GNU gettext.
65651
65652 2005-07-18  Bruno Haible  <bruno@clisp.org>
65653
65654         * lib/lock.h: New file, from GNU gettext.
65655         * lib/lock.c: New file, from GNU gettext.
65656
65657 2005-07-18  Bruno Haible  <bruno@clisp.org>
65658
65659         * lib/lock.h (gl_once_t): New type.
65660         (gl_once_define, gl_once): New macros.
65661         * lib/lock.c (fresh_once): New variable.
65662         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
65663         functions.
65664
65665 2005-07-16  Simon Josefsson  <jas@extundo.com>
65666
65667         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
65668         workaround, suggested by Bruno.
65669
65670 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65671
65672         * modules/xalloc (Depends-on): Add xalloc-die.
65673         * modules/xvasprintf (Depends-on): Add xalloc-die.
65674
65675 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65676
65677         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
65678         with a minor change.
65679
65680 2005-07-15  Bruno Haible  <bruno@clisp.org>
65681
65682         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
65683         When using lib/poll.c, define poll as rpl_poll.
65684
65685 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * modules/argp (Depends-on): Remove unlocked-io.
65688
65689 2005-07-14  Derek Price  <derek@ximbiot.com>
65690
65691         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
65692         for glob symlink bug.
65693
65694 2005-07-14  Bruno Haible  <bruno@clisp.org>
65695
65696         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
65697         Instead, test for *_unlocked function declarations directly.
65698
65699 2005-07-11  Simon Josefsson  <jas@extundo.com>
65700
65701         * modules/size_max: New file.
65702
65703         * modules/xsize: Depend on size_max module for size_max.m4.
65704
65705 2005-07-11  Simon Josefsson  <jas@extundo.com>
65706
65707         * lib/size_max.h: New file.
65708
65709 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
65712         copyright symbol and the year.
65713         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
65714         (version_etc_va): Use parameterized copyright notice.
65715         Reword to conform to the current GNU coding standards.
65716
65717 2005-07-11  Karl Berry  <karl@gnu.org>
65718
65719         * doc/gnulib.texi (Quoting): new node.
65720         (Initial import): more info, from Patrice.
65721
65722 2005-07-11  Bruno Haible  <bruno@clisp.org>
65723
65724         * gnulib-tool (func_usage): Document option --avoid.
65725         (Command line options): Handle --avoid.
65726         (func_acceptable): New function.
65727         (func_modules_transitive_closure): Use it.
65728
65729 2005-07-11  Bruno Haible  <bruno@clisp.org>
65730
65731         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
65732         Reported by Jim Meyering.
65733
65734 2005-07-10  Bruno Haible  <bruno@clisp.org>
65735
65736         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
65737         Needed when size_t is smaller than 'unsigned int'.
65738         Reported by Paul Eggert.
65739
65740 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65741
65742         * modules/argp (Depends-on): Add unlocked-io
65743
65744 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65745
65746         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
65747         block of defines.
65748
65749 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65750
65751         * config/srclist.txt: Comment out regcomp.c, since we have a porting
65752         fix now.
65753
65754 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
65755         and Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
65758         in wint_t, not wchar_t.  Remove now-unnecessary cast.
65759
65760 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65761
65762         * modules/regex (Files): Add lib/regex_internal.c,
65763         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
65764         (Depends-on): Add extensions.
65765         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
65766
65767 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65768
65769         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
65770         pathconf.
65771         * m4/same.m4 (gl_SAME): Likewise.
65772         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
65773
65774         * m4/regex.m4: Adjust to new libc regex implementation.
65775         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
65776         all the .c and .h parts of (the new) regex.
65777         Quote the m4 stuff better.
65778         Check for RE_ICASE bug of old gnulib.
65779         Check for REG_STARTEND of recent libc.
65780         Rename local variables from jm_* to gl_*.
65781         Quote operand of "test -f".
65782         Say "recent enough" version of libc, not "version 2".
65783         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
65784         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
65785         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
65786         Remove check for btowc, isascii.
65787         Require AM_LANGINFO_CODESET.
65788
65789 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65790
65791         * lib/regex.c, regex.h: Sync from libc.
65792         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
65793         * lib/regexec.c:
65794         New files, synced from libc, except that regex_internal.h
65795         currently has a small porting fix.
65796
65797 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65800         regex_internal.c, regexec.c.
65801         Add regex_internal.h too, but as a comment, since the libc version
65802         is currently broken in gnulib mode.
65803
65804 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         Support programs like Emacs that use gnulib but not gettext.
65807         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65808         * modules/gettext-h: New file.
65809         * modules/gettext (Files): Remove lib/gettext.h.
65810         (Depends-on): Add gettext-h.
65811         (Makefile.am): Remove lib_SOURCES.
65812         * modules/argmatch, modules/c-stack, modules/closeout:
65813         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65814         * modules/execute, modules/file-type, modules/getaddrinfo:
65815         * modules/getopt, modules/human, modules/javacomp:
65816         * modules/javaexec, modules/mkdir-p, modules/obstack:
65817         * modules/openat, modules/pagealign_alloc, modules/pipe:
65818         * modules/quotearg, modules/regex, modules/rpmatch:
65819         * modules/unicodeio, modules/userspec, modules/version-etc:
65820         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65821         * modules/xsetenv:
65822         Depend on gettext-h, not gettext.
65823
65824 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65825
65826         * gnulib-tool (func_import): Add support for 'public domain' license.
65827         * modules/alloca, modules/atexit, modules/memmove:
65828         Now public domain, not GPL.
65829         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65830         * modules/realloc, modules/strerror, modules/strtod:
65831         Now LGPL, not GPL.
65832
65833 2005-07-05  Bruno Haible  <bruno@clisp.org>
65834
65835         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65836         autoconf CVS. Needed for mingw.
65837
65838 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65839
65840         Remove the dependency of the strftime module on the tzset module.
65841         * modules/strftime (Depends-on): Remove dependency on tzset.
65842
65843 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65844
65845         Remove the dependency of the strftime module on the tzset module.
65846         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65847         gl_FUNC_TZSET_CLOBBER.
65848
65849 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65850
65851         Remove the dependency of the strftime module on the tzset module.
65852         * lib/strftime.c (my_strftime)
65853         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65854         Copy the input structure, to work around some of the bug with
65855         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65856         Solaris releases, you should also use the tzset module, but we won't
65857         require it as a dependency any more since we don't want LGPLed code
65858         to depend on GPLed code.
65859
65860 2005-07-02  Jim Meyering  <jim@meyering.net>
65861
65862         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65863         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65864         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65865         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65866
65867 2005-07-02  Jim Meyering  <jim@meyering.net>
65868
65869         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65870
65871 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65874         declares only 'struct timespec;' (!).
65875
65876 2005-07-01  Jim Meyering  <jim@meyering.net>
65877
65878         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65879         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65880         * lib/save-cwd.c, tempname.c:
65881         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65882         and don't include <sys/file.h>).
65883
65884 2005-06-29  Jim Meyering  <jim@meyering.net>
65885
65886         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65887         type name.  Use the variable name instead.
65888         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65889         Likewise.
65890
65891 2005-06-28  Simon Josefsson  <jas@extundo.com>
65892
65893         * modules/check-version (Files): Add check-version.m4.
65894
65895 2005-06-28  Simon Josefsson  <jas@extundo.com>
65896
65897         * m4/check-version.m4: New file, suggested by Jim Meyering
65898         <jim@meyering.net>.
65899
65900 2005-06-28  Simon Josefsson  <jas@extundo.com>
65901
65902         * lib/check-version.h, lib/check-version.c: New files.
65903
65904 2005-06-28  Simon Josefsson  <jas@extundo.com>
65905
65906         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65907         collision with global variable.  Better indentation.  Don't
65908         increment buffer pointer beyond buffer end.  Based on comments
65909         from Paul Eggert <eggert@cs.ucla.edu>.
65910
65911         * lib/base64.h: Indent.
65912
65913 2005-06-28  Simon Josefsson  <jas@extundo.com>
65914
65915         * doc/gnulib.texi (Library version handling): New section.
65916
65917 2005-06-28  Jim Meyering  <jim@meyering.net>
65918
65919         * check-module (find_included_lib_files): Hard-code another
65920         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65921         but modules/fts-lgpl (correctly) does not list those files.
65922
65923         * modules/canonicalize (Files): Add lib/pathmax.h.
65924
65925 2005-06-25  Simon Josefsson  <jas@extundo.com>
65926
65927         * modules/check-version: New file.
65928
65929 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65930
65931         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65932         initializer of struct addrinfo, as an indication that we don't
65933         care how many members the structure has.
65934
65935 2005-06-24  Derek Price  <derek@ximbiot.com>
65936         and Bruno Haible  <bruno@clisp.org>
65937
65938         Remove stat module & update lstat.
65939         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65940         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65941         * m4/stat.m4: Remove this file.
65942
65943 2005-06-24  Derek Price  <derek@ximbiot.com>
65944         and Bruno Haible  <bruno@clisp.org>
65945
65946         Remove stat module & update lstat.
65947         * lib/stat.c: Remove this file...
65948         (slash_aware_lstat): ...moving this content and its support...
65949         * lib/lstat.c (rpl_lstat): ...into here.
65950         * lib/lstat.h: New file.
65951
65952 2005-06-24  Derek Price  <derek@ximbiot.com>
65953         and Bruno Haible  <bruno@clisp.org>
65954
65955         Remove stat module & update lstat.
65956         * config/srclist.txt (libc sources): Remove stat.
65957
65958 2005-06-24  Derek Price  <derek@ximbiot.com>
65959         and Bruno Haible  <bruno@clisp.org>
65960
65961         Remove stat module & update lstat.
65962         * MODULES.html.sh (stat): Remove.
65963         * MODULES.html: Regenerated.
65964         * modules/lstat (Description): Correct function name.
65965         (Files): Add "lstat.h".
65966         (Depends-on): Remove stat, add xalloc, stat-macros.
65967         * modules/stat: Remove this file.
65968         (Include): Add "lstat.h", remove <sys/stat.h>.
65969
65970 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65971
65972         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65973         (ranged_convert): Don't save conversion in a temporary struct.
65974         This causes a warning with GCC 4.0.0, and anyway in the typical
65975         case it's not worth the extra 100 bytes or so of code.
65976         (ranged_convert, __mktime_internal): When calling a function via a
65977         pointer P, use P () rather than (*P) (), as we now assume C89 or
65978         better.
65979
65980 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65981
65982         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65983         "who -r" failed to give output.  Problem reported by Tim Waugh.
65984
65985         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65986         (xcalloc): Use it to avoid needless tests.
65987         Problem reported by Jim Meyering.
65988
65989 2005-06-20  Derek Price  <derek@ximbiot.com>
65990
65991         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65992         unnecessary for Autoconfs > 2.59c.
65993
65994 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65995
65996         * lib/argp.h (__option_is_short): Check upper limit of
65997         __key. Isprint() requires its argument to have the value
65998         of an unsigned char or EOF.
65999
66000 2005-06-16  Jim Meyering  <jim@meyering.net>
66001
66002         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66003         when either N or S is zero.
66004
66005 2005-06-16  Derek Price  <derek@ximbiot.com>
66006
66007         * m4/bison.m4: Declare YACC & YFLAGS precious.
66008
66009 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66010
66011         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66012         multibyte string or pattern, fall back on unibyte matching.
66013         Problem reported by James Youngman.
66014
66015 2005-06-08  Bruno Haible  <bruno@clisp.org>
66016
66017         * modules/csharpcomp: New file.
66018         * MODULES.html.sh (C#): Add csharpcomp.
66019
66020 2005-06-08  Bruno Haible  <bruno@clisp.org>
66021
66022         * m4/csharpcomp.m4: New file, from GNU gettext.
66023
66024 2005-06-08  Bruno Haible  <bruno@clisp.org>
66025
66026         * lib/csharpcomp.h: New file, from GNU gettext.
66027         * lib/csharpcomp.c: New file, from GNU gettext.
66028         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66029
66030 2005-06-08  Bruno Haible  <bruno@clisp.org>
66031
66032         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66033         warning on mingw.
66034
66035 2005-06-07  Derek Price  <derek@ximbiot.com>
66036
66037         Sync from CVS.
66038         * lib/glob_.h: Indent nested #ifdef.
66039
66040 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66041
66042         Sync from coreutils.
66043         Use "file name" when talking about file names, instead of "filename"
66044         or "path", as per the GNU coding standards.
66045         * lib/mkdir-p.c: Renamed from makepath.c.
66046         (make_dir_parents): Renamed from make_path.  All callers changed.
66047         * lib/mkdir-p.h: Likewise.  All includers changed.
66048         * lib/filenamecat.c: Renamed from path-concat.c.
66049         (file_name_concat): Renamed from path_concat.  All callers changed.
66050         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66051         * lib/filenamecat.h: Likewise.  All includers changed.
66052         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66053         in comments or local variable names.
66054         * lib/basename.c: Likewise.
66055         * lib/canonicalize.c, canonicalize.h: Likewise.
66056         * lib/dirname.c, dirname.h: Likewise.
66057         * lib/euidaccess.c: Likewise.
66058         * lib/exclude.c: Likewise
66059         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66060         * lib/fsusage.c, fsuage.h: Likewise.
66061         * lib/fts.c, fts_.h: Likewise.
66062         * lib/getcwd.c: Likewise.
66063         * lib/getloadavg.c: Likewise.
66064         * lib/mkstemp.c: Likewise.
66065         * lib/mountlist.c, mountlist.h: Likewise.
66066         * lib/openat.c, openat.h: Likewise.
66067         * lib/readlink-stub.c: Likewise.
66068         * lib/readutmp.c, readutmp.h: Likewise.
66069         * lib/rename.c: Likewise.
66070         * lib/rmdir.c: Likewise.
66071         * lib/same.c: Likewise.
66072         * lib/savedir.c: Likewise.
66073         * lib/stripslash.c: Likewise.
66074         * lib/tempname.c: Likewise.
66075         * lib/xreadlink.c: Likewise.
66076         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66077         All uses changed.
66078         * lib/exclude.h: Likewise.
66079
66080         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66081         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66082         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66083         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66084         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66085         files have been getting away with it for years (MORE/BSD 4.3
66086         is extinct now).
66087         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66088         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66089
66090         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66091         Define to 256, not 255, as per modern POSIX.
66092
66093 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         Sync from coreutils.
66096         Use "file name" when talking about file names, instead of "filename"
66097         or "path", as per the GNU coding standards.
66098         * MODULES.html.sh: mkdir-p renamed from makepath.
66099         filenamecat renamed from path-concat.
66100         * modules/filenamecat: Renamed from modules/path-concat.
66101         (Files): filenamecat.h and filenamecat.c renamed from
66102         path-concat.h and path-concat.c.
66103         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66104         (Include): filenamecat.h, not path-concat.h.
66105         * modules/mkdir-p: Renamed from modules/makepath.
66106         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66107         makepath.c.
66108         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66109         (Include): mkdir-p.h, not makepath.h.
66110
66111 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66112
66113         Sync from coreutils.
66114         * m4/mkdir-p.m4: Renamed from makepath.m4.
66115         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66116         Rename files from makepath.c to mkdir-p.c, and from
66117         makepath.h to mkdir-p.h.
66118         * m4/filenamecat.m4: Renamed from path-concat.m4.
66119         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66120         Rename files from path-concat.c to filenamecat.c,
66121         and from path-concat.h to filenamecat.h.
66122         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66123         "file name" in local variables or comments.
66124         * m4/rename.m4: Likewise.
66125
66126 2005-06-01  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/csharpexec: New file.
66129         * MODULES.html.sh (C#): New section.
66130
66131 2005-06-01  Bruno Haible  <bruno@clisp.org>
66132
66133         * m4/csharp.m4: New file, from GNU gettext.
66134         * m4/csharpexec.m4: New file, from GNU gettext.
66135
66136 2005-06-01  Bruno Haible  <bruno@clisp.org>
66137
66138         * lib/csharpexec.h: New file, from GNU gettext.
66139         * lib/csharpexec.c: New file, from GNU gettext.
66140         * lib/csharpexec.sh.in: New file, from GNU gettext.
66141
66142 2005-05-31  Derek Price  <derek@ximbiot.com>
66143             Paul Eggert  <eggert@cs.ucla.edu>
66144
66145         Sync from cvs.
66146         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66147
66148 2005-05-31  Derek Price  <derek@ximbiot.com>
66149             Paul Eggert  <eggert@cs.ucla.edu>
66150
66151         Sync from cvs.
66152         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66153
66154 2005-05-29  Derek Price  <derek@ximbiot.com>
66155
66156         * config/srclist.txt (glob_.h, glob.c): Add these files.
66157
66158 2005-05-29  Derek Price  <derek@ximbiot.com>
66159
66160         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66161         * modules/glob: New file.
66162         * modules/getlogin_r: Add link to POSIX spec in description.
66163
66164 2005-05-29  Derek Price  <derek@ximbiot.com>
66165             Paul Eggert  <eggert@cs.ucla.edu>
66166
66167         * m4/glob.m4: New file.
66168
66169 2005-05-29  Derek Price  <derek@ximbiot.com>
66170             Paul Eggert  <eggert@cs.ucla.edu>
66171
66172         * lib/glob_.h, lib/glob.c: New files.
66173
66174 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66175
66176         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66177         * modules/fts-lgpl (Depends-on): Remove gettext.
66178
66179 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66182         and don't require gt_INTTYPES_PRI.
66183
66184 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66185
66186         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66187
66188         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66189         the configuration hassle isn't worth it.
66190         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66191         (LONGEST_MODIFIER, PRIuMAX): Remove.
66192
66193 2005-05-27  Bruno Haible  <bruno@clisp.org>
66194
66195         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66196
66197 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66198
66199         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66200         _POSIX_PTHREAD_SEMANTICS for Solaris.
66201
66202 2005-05-25  Derek Price  <derek@ximbiot.com>
66203
66204         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66205
66206 2005-05-25  Derek Price  <derek@ximbiot.com>
66207             Paul Eggert  <eggert@cs.ucla.edu>
66208
66209         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66210         * lib/getlogin_r.c, getlogin_r.h: New files.
66211
66212 2005-05-25  Bruno Haible  <bruno@clisp.org>
66213             Derek Price  <derek@ximbiot.com>
66214
66215         * lib/getlogin_r.h: Simplify API documentation.
66216
66217 2005-05-23  Derek Price  <derek@ximbiot.com>
66218
66219         * modules/minmax (Files): Add m4/minmax.m4.
66220         (configure.ac): Add gl_MINMAX.
66221
66222 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66223
66224         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66225         so that unistd-safer.h (GPL'ed code) need not be included.
66226
66227 2005-05-22  Bruno Haible  <bruno@clisp.org>
66228
66229         * m4/minmax.m4: New file.
66230         Based on a patch by Derek Price <derek@ximbiot.com>.
66231
66232 2005-05-22  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66235         (INT64_MIN): Fix definition.
66236         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66237
66238         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66239         NEED_SIGNED_INT_TYPES.
66240
66241         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66242         HAVE_SYSTEM_INTTYPES.
66243
66244 2005-05-22  Bruno Haible  <bruno@clisp.org>
66245
66246         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66247         Also include <sys/param.h> if it defines MIN, MAX.
66248         Based on a patch by Derek Price <derek@ximbiot.com>.
66249
66250 2005-05-21  Jim Meyering  <jim@meyering.net>
66251
66252         * modules/fts (Files): Add m4/inttypes-pri.m4.
66253         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66254
66255 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66256
66257         New fts module.
66258         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66259         (setup_dir, free_dir): New functions.
66260         (enter_dir, leave_dir): Define trivial
66261         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66262         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66263         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66264         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66265         Move to fts-cycle.c.
66266         (fts_open): Use setup_dir.
66267         (fts_close): Use free_dir.
66268         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66269         This adds a label and some gotos, but the alternatives were messier.
66270         Check for memory allocation failure when entering a dir.
66271         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66272         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66273         (FTS): New member fts_cycle, that is a union that contains the
66274         old active_dir_ht and cycle_state.  All uses changed to mention
66275         fts_cycle.ht and fts_cycle.state.
66276         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66277         fts.c, with the following changes:
66278         (setup_dir, free_dir): New functions.
66279         (enter_dir): Now returns bool.  Return true if successful, false
66280         if memory exhausted.  All callers changed.
66281         Do not bother partly cleaning up on
66282         memory allocation failure; that is free_dir's job.
66283         However, free ad if hash_insert fails, to avoid memory leak.
66284         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66285         fts->fts_options to see which union member to use.
66286
66287 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66288
66289         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66290         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66291
66292 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66293
66294         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66295
66296 2005-05-20  Jim Meyering  <jim@meyering.net>
66297
66298         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66299         Now a macro, to pacify GCC.
66300
66301 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66302
66303         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66304         of -1.
66305
66306 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66307
66308         * lib/chown.c (rpl_chown): Return -1 on failure.
66309
66310 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66311
66312         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66313         Don't check for stddef.h.
66314         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66315         don't use its results.
66316         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66317         since we include them unconditionally.  Don't require
66318         AM_STDBOOL_H, since stdbool is a prerequisite.
66319         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66320         since we assume C89 or better.
66321         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66322         as we don't use their results.
66323         Don't check for fchdir, memmove, memset, strrchr, as we use
66324         them unconditionally.
66325         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66326         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66327
66328 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66329
66330         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66331         Include <stddef.h> unconditionally, since we assume C89 now.
66332         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66333         * lib/fts.c: Include fts_.h first, to check interface.
66334         Do not include intprops.h; no longer needed.
66335         Include cycle-check.h and hash.h, since fts_.h no longer does.
66336         Remove unnecessary casts of closedir to void.
66337         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66338         decide whether to decrement nlinks.
66339         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66340         (FTS): Use struct hash_table * instead of Hash_table, so that
66341         we no longer need to include hash.h here.
66342
66343 2005-05-18  Jim Meyering  <jim@meyering.net>
66344
66345         * modules/dirfd (License): Change to LGPL.  Most of the code
66346         is already in the public domain.
66347
66348 2005-05-18  Jim Meyering  <jim@meyering.net>
66349
66350         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66351         Reported by Yoann Vandoorselaere.
66352
66353 2005-05-17  Jim Meyering  <jim@meyering.net>
66354
66355         * m4/fts.m4: New file, from coreutils.
66356
66357 2005-05-17  Jim Meyering  <jim@meyering.net>
66358
66359         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66360
66361 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66362
66363         Sync from coreutils.
66364         * m4/unlinkdir.m4: New file.
66365
66366 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66367
66368         Sync from coreutils.
66369         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66370         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66371         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66372         White space changes only.
66373         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66374         special.
66375         * lib/yesno.c: Include getline.h, not ctype.h.
66376         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66377         Use getline to remove arbitrary restriction on response length.
66378
66379 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66380
66381         * config/srclist-update: Spell out "Street" in FSF postal
66382         mail address; this is the style the FSF seems to prefer.
66383
66384         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66385         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66386         this updates FSF postal mail address.
66387
66388         Sync from coreutils.
66389         * modules/unlinkdir: New file.
66390         * modules/yesno (Depends-on): Add getline.
66391         * MODULES.html.sh (File system functions): Add unlinkdir.
66392
66393 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66394
66395         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66396         lib/strsep.h:
66397         Change the initial comment to refer to GPL, not LGPL.
66398         gnulib-tool will change it to LGPL as needed.
66399
66400         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66401         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66402         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66403         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66404         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66405         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66406         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66407         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66408         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66409         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66410         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66411         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66412         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66413         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66414         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66415         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66416         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66417         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66418         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66419         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66420         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66421         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66422         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66423         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66424         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66425         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66426         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66427         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66428         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66429         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66430         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66431         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66432         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66433         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66434         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66435         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66436         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66437         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66438         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66439         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66440         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66441         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66442         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66443         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66444         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66445         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66446         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66447         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66448         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66449         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66450         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66451         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66452         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66453         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66454         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66455         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66456         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66457         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66458         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66459         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66460         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
66461         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
66462         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
66463         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
66464         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
66465         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
66466         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
66467         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
66468         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
66469         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
66470         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
66471         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
66472         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
66473         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
66474         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
66475         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
66476         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
66477         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
66478         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
66479         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
66480         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
66481         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
66482         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
66483         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
66484         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
66485         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
66486         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
66487         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
66488         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
66489         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
66490         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
66491         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
66492         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
66493         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
66494         lib/yesno.c, lib/yesno.h:
66495         Update FSF postal mail address.
66496
66497 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66498
66499         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
66500         tests/test-memmem.c, tests/test-stpncpy.c:
66501         Update FSF postal mail address.
66502
66503 2005-05-13  Bruno Haible  <bruno@clisp.org>
66504
66505         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
66506         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
66507         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
66508         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
66509         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
66510         Add support for 64-bit integers in the MSVC compiler.
66511
66512 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66513
66514         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
66515
66516 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
66517
66518         * gnulib-tool (func_import): Sort and uniquify recommended includes.
66519
66520 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
66521
66522         * doc/getdate.texi (General date syntax): Don't say that date
66523         date --iso-8601=ns generates acceptable dates; it doesn't yet.
66524         Problem reported by Nic Ferrier.
66525
66526 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66527
66528         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
66529         specified in ai_socktype. Fix invalid ai_protocol
66530         check. ai_protocol is usually set to 0 or depending on
66531         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
66532         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
66533         ai_socktype / ai_protocol in the returned addrinfo structure.
66534
66535 2005-05-10  Simon Josefsson  <jas@extundo.com>
66536
66537         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
66538         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66539
66540 2005-05-10  Karl Berry  <karl@gnu.org>
66541
66542         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
66543         (from http://www.gnu.org/licenses).
66544         * doc/COPYING.LIB: also rename to COPYING.LESSER.
66545         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
66546         fdl.texi suffices.
66547
66548 2005-05-10  Karl Berry  <karl@gnu.org>
66549
66550         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
66551         (COPYING.DOC): remove.
66552
66553         * config/srclist-update: new FSF address.
66554
66555 2005-05-10  Derek Price  <derek@ximbiot.com>
66556
66557         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
66558         possible.
66559
66560 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66561             Bruno Haible  <bruno@clisp.org>
66562
66563         * modules/inet_ntop: New file.
66564         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66565         inet_ntop.
66566
66567 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66568             Bruno Haible  <bruno@clisp.org>
66569
66570         * m4/inet_ntop.m4: New file.
66571
66572 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66573             Bruno Haible  <bruno@clisp.org>
66574
66575         * lib/inet_ntop.h: New file.
66576         * lib/inet_ntop.c: New file, from glibc with modifications.
66577
66578 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
66579
66580         * modules/time_r (License): Change to LGPL.
66581         * modules/extensions (License): Change to LGPL.  Actually,
66582         the license is more permissive than that, but currently gnulib-tool
66583         doesn't know how to handle more-permissive licenses.
66584
66585         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
66586         Problem reported by Dave Love.
66587
66588 2005-05-08  Jim Meyering  <jim@meyering.net>
66589
66590         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
66591         blank.
66592
66593 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * modules/argmatch (Depends-on): Add stdbool.
66596         * modules/backupfile (Depends-on): Likewise.
66597         * modules/chdir-long (Depends-on): Likewise.
66598         * modules/closeout (Depends-on): Likewise.
66599         * modules/cycle-check (Depends-on): Likewise.
66600         * modules/dirname (Depends-on): Likewise.
66601         * modules/fnmatch (Depends-on): Likewise.
66602         * modules/fsusage (Depends-on): Likewise.
66603         * modules/fwriteerror (Depends-on): Likewise.
66604         * modules/getcwd (Depends-on): Likewise.
66605         * modules/getloadavg (Depends-on): Likewise.
66606         * modules/hard-locale (Depends-on): Likewise.
66607         * modules/makepath (Depends-on): Likewise.
66608         * modules/mountlist (Depends-on): Likewise.
66609         * modules/nanosleep (Depends-on): Likewise.
66610         * modules/posixtm (Depends-on): Likewise.
66611         * modules/quotearg (Depends-on): Likewise.
66612         * modules/readtokens (Depends-on): Likewise.
66613         * modules/readtokens0 (Depends-on): Likewise.
66614         * modules/readutmp (Depends-on): Likewise.
66615         * modules/save-cwd (Depends-on): Likewise.
66616         * modules/strftime (Depends-on): Likewise.
66617         * modules/userspec (Depends-on): Likewise.
66618         * modules/utimecmp (Depends-on): Likewise.
66619         * modules/xgetcwd (Depends-on): Likewise.
66620         * modules/xnanosleep (Depends-on): Likewise.
66621         * modules/xstrtod (Depends-on): Likewise.
66622         * modules/yesno (Depends-on): Likewise.
66623
66624 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
66625
66626         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
66627         needless checks.
66628
66629 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66630
66631         Merge from coreutils.  Among other things,
66632         add bulletproofing for cases where stdin, stdout, or stderr are closed.
66633         * lib/fd-safer.c: New file.
66634         * lib/fcntl-safer.h, open-safer.c: Remove.
66635         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
66636         * lib/dup-safer.c: Include unistd-safer.h first.
66637         Don't include errno.h.
66638         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
66639         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
66640         * lib/file-type.c: Rely on file-type.h change.
66641         * lib/getloadavg.c: Include unistd-safer.h.
66642         (getloadavg): Use safer open.
66643         * lib/getusershell.c: Include "stdio-safer.h".
66644         (getusershell): Use safer fopen.
66645         * lib/long-options.c (long_options): Use NULL rather than 0.
66646         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
66647         'free'.
66648         * lib/modechange.c: Likewise.
66649         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
66650         (MODE_DONE): New constant.
66651         (struct mode_change): Remove 'next' member.
66652         (make_node_op_equals): New function; like the old one of the
66653         same name, except it allocates an array.
66654         (mode_compile, mode_create_from_ref): Use it.
66655         (mode_compile): Allocate result as an array, not a linked list.
66656         Parse octal string ourself, so that we catch mistakes like "+0".
66657         (mode_adjust): Arg is an array, not a linked list.
66658         * lib/modechange.c: Include stat-macros.h, xalloc.h.
66659         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
66660         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
66661         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
66662         Remove.  This is now stat-macros.h's job.
66663         (talloc): Remove.  All callers replaced by xalloc, so that
66664         our invokers don't have to worry about reporting memory failures.
66665         (make_node_op_equals): Remove.
66666         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66667         New constants.
66668         (struct mode_change): Moved here from modechange.h.
66669         (mode_append_entry): Remove.
66670         (mode_compile): Remove MASKED_OPS arg, since it encouraged
66671         apps to have incorrect behavior.  Use simpler algorithm for head
66672         and tail.  Don't futz with umask; that's now the job of mode_adjust.
66673         Detect more invalid usages rather than having somewhat-random behavior.
66674         Don't insert an "a=" action, as that leads to incorrect behavior.
66675         (mode_compile, mode_create_from_ref): Return NULL on error instead
66676         of an enum, since now there's only one way to have an error.  All
66677         callers changed.
66678         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
66679         at the correct time.  Simplify calculation of "+u" and its ilk.
66680         Don't mishandle "+X".
66681         (mode_free): Remove "register" and localize decls.
66682         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66683         (struct mode_change): Move to modechange.c; callers don't
66684         need to see this stuff.
66685         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
66686         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
66687         (mode_change, mode_adjust): Reflect the new signatures noted above.
66688         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
66689         that might redefine system include files.
66690         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
66691         (my_usleep): Use NULL rather than (void *) 0.
66692         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
66693         Use siginterrupt to specify that system calls should be interrupted.
66694         (rpl_nanosleep): Move initialization of suspended closer to call of
66695         my_usleep.
66696         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
66697         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
66698         (desirable_utmp_entry): New function.
66699         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
66700         using x2nrealloc, to simplify logic.
66701         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
66702         size calculation.  Do not assume utmp file is a regular file.
66703         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
66704         (READ_UTMP_CHECK_PIDS): New constant.
66705         * lib/save-cwd.c: Include unistd-safer.h.
66706         (save_cwd): Use fd_safer.
66707         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
66708         [!_LIBC] Include "stat-macros.h" instead.
66709         * lib/unistd-safer.h (fd_safer): New decl.
66710
66711 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66712
66713         * modules/getloadavg (Depends-on): Add unistd-safer.
66714         * modules/getusershell (Depends-on): Add stdio-safer.
66715         * modules/lstat (Depends-on): Remove xalloc.
66716         * modules/mkstemp (Depends-on): Add stat-macros.
66717         * modules/modechange (Depends-on): Remove xstrtol.
66718         Add stat-macros, xalloc.
66719         * modules/save-cwd (Depends-on): Add unistd-safer.
66720         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
66721         * modules/unistd-safer (Files): Add lib/fd-safer.c
66722         (Makefile.am): Remove lib_SOURCES.
66723
66724         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
66725         Remove fcntl-safer; unistd-safer supersedes it.
66726
66727 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66728
66729         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
66730         AC_HEADER_STAT.
66731         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
66732         (gl_PREREQ_CHOWN): Remove.
66733         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
66734         it.  Don't require AC_HEADER_STAT.
66735         (gl_PREREQ_LSTAT): Remove.
66736         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
66737         Don't require AC_HEADER_STAT.
66738         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
66739         (gl_PREREQ_RMDIR): Remove.
66740         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
66741         mention stat-macros.h or AC_HEADER_STAT, since we'll make
66742         the stat-macros module a prerequisite.
66743         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
66744         * m4/filemode.m4 (gl_FILEMODE): Likewise.
66745         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
66746         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
66747         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
66748         variable names.
66749         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
66750         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
66751         variable prefixes.
66752         * m4/fcntl-safer.m4: Remove.
66753         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
66754         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
66755         Invoke gl_PREREQ_FD_SAFER.
66756         (gl_PREREQ_FD_SAFER): New macro.
66757         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
66758         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
66759         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
66760         Remove duplicate call to AC_LIBOBJ(readutmp).
66761         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
66762
66763         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
66764         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
66765
66766 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66767
66768         * MODULES.html.sh (Misc): Add byteswap.
66769
66770 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66771
66772         * modules/getcwd (Depends-on): Add extensions.
66773         * modules/openat (Depends-on): Likewise.
66774
66775 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66776
66777         * modules/byteswap: New file.
66778
66779 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66780
66781         * m4/byteswap.m4: New file.
66782
66783 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66784
66785         * lib/byteswap_.h: New file.
66786
66787 2005-04-25  Karl Berry  <karl@gnu.org>
66788
66789         * m4/gettext.m4: Update from GNU gettext 0.14.4.
66790
66791 2005-04-25  Albert Chin  <china@thewrittenword.com>
66792
66793         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
66794         Toolkit C bug.
66795
66796 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66797
66798         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66799         (func_ln_if_changed) Remove forcibly for no error message
66800         in case file does not exist.
66801
66802 2005-04-19  Simon Josefsson  <jas@extundo.com>
66803
66804         * gnulib-tool (Options): Make --symlink mean --symbolic.
66805
66806 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66807
66808         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66809
66810 2005-04-16  Simon Josefsson  <jas@extundo.com>
66811
66812         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66813
66814 2005-04-15  Simon Josefsson  <jas@extundo.com>
66815
66816         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66817
66818 2005-04-15  Simon Josefsson  <jas@extundo.com>
66819
66820         * gnulib-tool: Rename --symlink to --symbolic.
66821
66822 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66823
66824         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66825         symbolic links to files instead of copying/moving.  Add --aux-dir,
66826         specifying directory relative --dir where auxiliary build tools
66827         are placed.
66828
66829 2005-04-14  Bruno Haible  <bruno@clisp.org>
66830
66831         * modules/allocsa (License): Change to LGPL.
66832         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66833
66834 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66835
66836         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66837         that "UTC +1 second" continues to work.  Problem reported
66838         by Dmitry V. Levin.
66839         (relunit_snumber): New rule.
66840         (relunit): Use it.
66841
66842 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66843
66844         * lib/getdate.y (universal_time_zone_table): New constant.
66845         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66846         universal_time_zone_table.
66847         (lookup_zone): Prefer universal_time_zone_table to
66848         local_time_zone_table, so that "GMT" time stamps are allowed in
66849         London during the summer.  Problem reported by Ian Abbott.
66850
66851 2005-04-12  Jim Meyering  <jim@meyering.net>
66852
66853         * lib/human.c (humblock): Set *options even when returning due to
66854         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66855         warning from gcc-4.
66856
66857 2005-04-09  Jim Meyering  <jim@meyering.net>
66858
66859         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66860         -Wuninitialized: initialize tm0.tm_year.
66861
66862 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66865         count, since there's no maximum.  All uses changed.
66866         Add member dsts_seen.
66867         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66868         not being INT_MAX.
66869         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66870         Use pc_rels_seen to decide whther a date is absolute.
66871
66872         * lib/getdate.y (number): Don't overwrite year.
66873         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66874         check.
66875
66876 2005-04-02  Simon Josefsson  <jas@extundo.com>
66877
66878         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66879         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66880
66881 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66882
66883         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66884         where no absolute path name can be longer than PATH_MAX.
66885
66886 2005-03-27  Jim Meyering  <jim@meyering.net>
66887
66888         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66889
66890 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66891
66892         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66893         "one's complement" -> "ones' complement" in comment, as per Knuth.
66894         "value of type" -> "type or expression" in comment.
66895         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66896
66897 2005-03-26  Jim Meyering  <jim@meyering.net>
66898
66899         Comment nits.
66900         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66901         Correct typos: s/or/of/.
66902
66903 2005-03-26  Jim Meyering  <jim@meyering.net>
66904
66905         * modules/check-include-files: Move to ../ and rename to...
66906         * check-module: ...this.
66907
66908 2005-03-25  Jim Meyering  <jim@meyering.net>
66909
66910         * modules/xvasprintf (Files): Add xalloc.h.
66911
66912 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66913
66914         * modules/gettext (Files): config/config.rpath ->
66915         build-aux/config.rpath
66916         * modules/iconv (Files): Likewise.
66917         Problem reported by Oskar Liljeblad.
66918
66919 2005-03-23  Jim Meyering  <jim@meyering.net>
66920
66921         * modules/check-include-files: New script to check for
66922         missing dependencies, multiple includes, etc.
66923
66924         * modules/c-strtold (Depends-on): Add xalloc.
66925         * modules/c-strtod (Depends-on): Add xalloc.
66926         * modules/hash (Depends-on): Add xalloc.
66927         (Files): Remove lib/xalloc.h.
66928
66929         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66930         * modules/userspec (Files): Add lib/inttostr.h.
66931
66932 2005-03-23  Jim Meyering  <jim@meyering.net>
66933
66934         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66935
66936 2005-03-22  Jim Meyering  <jim@meyering.net>
66937
66938         * modules/stat-macros: New module.
66939         * modules/canonicalize, modules/euidaccess, modules/file-type,
66940         * modules/filemode, modules/lchown, modules/makepath,
66941         * modules/rmdir, modules/stat: Depend on new stat-macros module
66942         rather than listing lib/stat-macros.h manually.
66943         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66944
66945 2005-03-22  Jim Meyering  <jim@meyering.net>
66946
66947         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66948
66949 2005-03-22  Bruno Haible  <bruno@clisp.org>
66950
66951         * config/srclist.txt: Replace target directory 'config' with
66952         'build-aux'.
66953         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66954         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66955         ../build-aux/.
66956
66957 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66958
66959         * modules/chdir-long (Depends-on): Add mempcpy.
66960
66961         * modules/acl, modules/backupfile, modules/c-strtod,
66962         modules/c-strtold, modules/canon-host, modules/canonicalize,
66963         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66964         modules/exclude, modules/exitfail, modules/file-type,
66965         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66966         modules/getdate, modules/getline, modules/getpagesize,
66967         modules/getpass, modules/getugroups, modules/group-member,
66968         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66969         modules/inttostr, modules/long-options, modules/makepath,
66970         modules/md5, modules/memcasecmp, modules/memcoll,
66971         modules/modechange, modules/mountlist, modules/path-concat,
66972         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66973         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66974         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66975         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66976         modules/strftime, modules/strndup, modules/strverscmp,
66977         modules/timespec, modules/unlocked-io, modules/userspec,
66978         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66979         modules/yesno:
66980         Remove lib_SOURCES line from Makefile.am section, as this is now
66981         done automatically by the corresponding Autoconf macro.
66982
66983 2005-03-21  Jim Meyering  <jim@meyering.net>
66984
66985         Changes imported from coreutils.
66986
66987         * lib/cycle-check.c: Don't include xalloc.h.
66988
66989         * lib/path-concat.c: Don't include assert.h.
66990         (path_concat): Remove assertion that would have triggered
66991         for ABASE starting with more than one slash.
66992         Reported by Andreas Schwab.
66993
66994         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66995         properly when ABASE is an absolute file name.
66996         Correct the description of this function.
66997         Include <assert.h>.
66998         Add an assertion and a test driver.
66999         This fixes a bug introduced on 2004-07-02.
67000         Andreas Schwab reported the resulting failure of cp --parents:
67001         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67002
67003 2005-03-21  Jim Meyering  <jim@meyering.net>
67004
67005         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67006         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67007
67008 2005-03-21  Jim Meyering  <jim@meyering.net>
67009         and  Paul Eggert  <eggert@cs.ucla.edu>
67010
67011         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67012         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67013         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67014         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67015         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67016         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67017         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67018         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67019         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67020         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67021         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67022         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67023         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67024         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67025         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67026         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67027         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67028         for these modules.
67029
67030 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67031
67032         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67033         (which shouldn't happen), generate nothing instead of returning 0
67034         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67035
67036 2005-03-16  Bruno Haible  <bruno@clisp.org>
67037
67038         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67039         HAVE_LONGLONG_64BIT.
67040
67041 2005-03-16  Bruno Haible  <bruno@clisp.org>
67042
67043         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67044         HAVE_LONGLONG_64BIT.
67045
67046 2005-03-16  Bruno Haible  <bruno@clisp.org>
67047
67048         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67049         HAVE_LONGLONG_64BIT.
67050
67051 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67052
67053         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67054         reliably distinguish strftime failure from empty output on POSIX
67055         hosts.
67056
67057 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67058
67059         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67060         (iconv_string): Don't guess a size-zero buffer, as that might cause
67061         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67062         result would be 'too large', where 'too large' is (heuristically)
67063         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67064         overflow concerns.  This will prevent some unwanted malloc failures
67065         when the inputs are very large.
67066
67067 2005-03-15  Karl Berry  <karl@gnu.org>
67068
67069         * config/srclist.txt (config.rpath): from gettext.
67070         * config/config.rpath: update.
67071
67072 2005-03-15  Bruno Haible  <bruno@clisp.org>
67073
67074         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67075         to 'negate'.
67076
67077         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67078         variable.
67079
67080         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67081         results.
67082
67083 2005-03-14  Simon Josefsson  <jas@extundo.com>
67084
67085         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67086         <fx@gnu.org>.
67087
67088 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67089
67090         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67091         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67092         intprops.h.
67093         * lib/strtol.c: Likewise.
67094
67095 2005-03-14  Jim Meyering  <jim@meyering.net>
67096
67097         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67098         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67099         to be nonzero so that we (and caller) can detect the difference
67100         between a valid zero-length expansion and an error return, even
67101         when the underlying strftime fails before writing anything into
67102         that location.
67103
67104 2005-03-14  Bruno Haible  <bruno@clisp.org>
67105
67106         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67107         Update from GNU gettext 0.14.3.
67108
67109 2005-03-10  Jim Meyering  <jim@meyering.net>
67110
67111         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67112
67113 2005-03-10  Jim Meyering  <jim@meyering.net>
67114
67115         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67116         so that this module works on systems without fchdir.
67117
67118 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67119
67120         Factor int-properties macros into a single file, except for
67121         glibc-related files.
67122         * lib/intprops.h: New file.
67123         * lib/getloadavg.c: Include it instead of limits.h.
67124         (INT_STRLEN_BOUND): Remove.
67125         * lib/human.c: Include intprops.h.
67126         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67127         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67128         302/1000.
67129         * lib/inttostr.h: Include intprops.h instead of limits.h.
67130         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67131         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67132         for consistency with intprops.h.
67133         (time_t_is_integer, twos_complement_arithmetic): Use them.
67134         * lib/sig2str.h: Include <signal.h>, intprops.h.
67135         (INT_STRLEN_BOUND): Remove.
67136         * lib/strftime.c (TYPE_SIGNED): Remove.
67137         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67138         * lib/strtol.c: Adjust comments to match intprops.h.
67139         * lib/userspec.c: Include intprops.h.
67140         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67141         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67142         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67143         instead of rolling our own expressions.
67144         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67145
67146         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67147         instead of int.
67148         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67149         the right thing even if adding 1900 would overflow.  Similarly
67150         for tm_mon + 1 and tm_yday + 1.
67151         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67152         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67153         (DO_SIGNED_NUMBER): New macro.
67154         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67155
67156 2005-03-07  Bruno Haible  <bruno@clisp.org>
67157
67158         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67159
67160 2005-03-07  Bruno Haible  <bruno@clisp.org>
67161
67162         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67163
67164 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67165
67166         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67167         (func_import): Only replace files via --import when they have actually
67168         changed.
67169
67170 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67171
67172         * m4/mmap-anon.m4: New file.
67173         * m4/pagealign_alloc.m4: New file.
67174
67175 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67176             Bruno Haible  <bruno@clisp.org>
67177
67178         * modules/pagealign_alloc: New file.
67179         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67180
67181 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67182             Bruno Haible  <bruno@clisp.org>
67183
67184         * lib/pagealign_alloc.h: New file.
67185         * lib/pagealign_alloc.c: New file.
67186
67187 2005-03-03  Bruno Haible  <bruno@clisp.org>
67188
67189         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67190         Use an all-permissive copyright notice, recommended by RMS.
67191
67192 2005-03-02  Bruno Haible  <bruno@clisp.org>
67193
67194         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67195         of AIX, the replacement has to be done only after <string.h> is
67196         included, therefore not in config.h. stpncpy.h does the replacement,
67197         and stpncpy.c uses it.
67198
67199 2005-03-02  Bruno Haible  <bruno@clisp.org>
67200
67201         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67202         stpncpy.c uses it.
67203
67204 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67205
67206         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67207         The workaround isn't strictly needed for POSIX conformance, and
67208         it's too much of a pain to configure and maintain.  We'll ask
67209         people to fix their kernels instead.
67210         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67211         (NANOSLEEP_BUG_WORKAROUND): Remove.
67212         (xnanosleep): Remove the workaround.
67213
67214 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67215
67216         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67217         Reported by Derek Price.
67218         (Include): Add "timespec.h".
67219
67220         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67221
67222 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67223
67224         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67225         to detect nanosleep bug.
67226
67227 2005-03-01  Bruno Haible  <bruno@clisp.org>
67228
67229         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67230
67231 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67232
67233         * modules/gethrxtime: New file.
67234         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67235         (Depends-on): Add gethrxtime.
67236         (configure.ac): Add gl_XNANOSLEEP.
67237         (Makefile.am): Remove lib_SOURCES line.
67238
67239 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67240
67241         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67242         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67243
67244 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67245
67246         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67247         * lib/timespec.h (gettime): Return void, since it always
67248         succeeds now.  All uses changed.
67249         * lib/gettime.c (gettime) Likewise.
67250         [HAVE_NANOTIME]: Prefer nanotime.
67251         Assume gettimeofday succeeds, as POSIX requires.
67252         Assime time () succeeds, since other code already does.
67253         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67254         (timespec_subtract): Remove.
67255         (NANOSLEEP_BUG_WORKAROUND): New constant.
67256         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67257         things considerably.  Use it only on GNU/Linux hosts, since the
67258         workaround shouldn't be needed elsewhere.
67259
67260 2005-02-24  Bruno Haible  <bruno@clisp.org>
67261
67262         * modules/gettext (Files): Add m4/glibc2.m4.
67263
67264 2005-02-24  Bruno Haible  <bruno@clisp.org>
67265
67266         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67267         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67268         * m4/progtest.m4:
67269         Update from GNU gettext 0.14.2.
67270         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67271
67272 2005-02-24  Bruno Haible  <bruno@clisp.org>
67273
67274         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67275         * lib/config.charset: Update from GNU gettext 0.14.2.
67276
67277 2005-02-24  Bruno Haible  <bruno@clisp.org>
67278
67279         * lib/gettext.h: Update from GNU gettext 0.14.2.
67280
67281 2005-02-23  Simon Josefsson  <jas@extundo.com>
67282
67283         * m4/iconvme.m4: New file.
67284
67285 2005-02-23  Jim Meyering  <jim@meyering.net>
67286
67287         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67288         change.
67289         Thanks to Bruno Haible for catching it.
67290
67291 2005-02-22  Simon Josefsson  <jas@extundo.com>
67292
67293         * modules/iconvme: New file.
67294
67295         * MODULES.html.sh: Add iconvme.
67296
67297 2005-02-22  Simon Josefsson  <jas@extundo.com>
67298
67299         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67300
67301 2005-02-22  Simon Josefsson  <jas@extundo.com>
67302
67303         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67304
67305 2005-02-22  Jim Meyering  <jim@meyering.net>
67306
67307         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67308         s/ifndef/ifdef/.
67309
67310 2005-02-20  Neil Conway  <neilc@samurai.com>
67311
67312         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67313         returned by OSX/Darwin if the specified buffer is not large
67314         enough for the hostname.
67315
67316 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67317
67318         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67319         pass it to _help, otherwise the latter coredumps trying to
67320         dereference state.root_argp.
67321
67322 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67323
67324         * modules/chdir-long (Depends-on): Add memrchr.
67325         * modules/memrchr (Files): Add lib/memrchr.h.
67326         (Include): "memrchr.h".
67327
67328 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67329
67330         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67331
67332 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67333
67334         * lib/memrchr.h: New file.
67335         * lib/chdir-long.c: Include it.
67336         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67337         Don't bother including stddef.h.
67338
67339 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67340
67341         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67342         inclusion.
67343         Include <sys/types.h>, for dev_t.
67344         (ME_DUMMY, ME_REMOTE): Move from here....
67345         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67346         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67347         Dmitry V. Levin.
67348         Include mountlist.h first, to test the interface.
67349
67350 2005-01-29  Bruno Haible  <bruno@clisp.org>
67351
67352         * lib/progname.c (program_name): Initialize.
67353         Needed when linking statically on MacOS X.
67354
67355 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67356
67357         Sync from coreutils.
67358         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67359         (Depends-on): Add c-strtod.
67360         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67361
67362 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67363
67364         Sync from coreutils.
67365         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67366
67367         Remove files that are specific to coreutils.
67368         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67369
67370 2005-01-28  Bruno Haible  <bruno@clisp.org>
67371
67372         * modules/javacomp: New file.
67373         * MODULES.html.sh (Java): Add javacomp.
67374
67375 2005-01-28  Bruno Haible  <bruno@clisp.org>
67376
67377         * m4/javacomp.m4: New file, from GNU gettext.
67378
67379 2005-01-28  Bruno Haible  <bruno@clisp.org>
67380
67381         * lib/javacomp.sh.in: New file, from GNU gettext.
67382         * lib/javacomp.h: New file, from GNU gettext.
67383         * lib/javacomp.c: New file, from GNU gettext.
67384
67385 2005-01-26  Simon Josefsson  <jas@extundo.com>
67386
67387         * lib/gai_strerror.c: Use GPL in header.
67388
67389 2005-01-26  Bruno Haible  <bruno@clisp.org>
67390
67391         * modules/javaexec: New file.
67392         * MODULES.html.sh (Java): Add javaexec.
67393
67394 2005-01-26  Bruno Haible  <bruno@clisp.org>
67395
67396         * m4/javaexec.m4: New file, from GNU gettext.
67397
67398 2005-01-26  Bruno Haible  <bruno@clisp.org>
67399
67400         * lib/javaexec.sh.in: New file, from GNU gettext.
67401         * lib/javaexec.h: New file, from GNU gettext.
67402         * lib/javaexec.c: New file, from GNU gettext.
67403
67404 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67405
67406         * modules/lchown (Depends-on): Remove lchown.h
67407
67408 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67409
67410         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67411         must be defined if the header file was not found, in order
67412         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67413
67414 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67415
67416         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67417         initializers for struct pentry_state.
67418         (__argp_error): Check return value of __asprintf
67419         (__argp_failure): Translate error message
67420
67421         * lib/argp-parse.c: Removed braces around the expansion of N_()
67422
67423 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67424
67425         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67426         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67427         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67428         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67429         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67430         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67431         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67432         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67433         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67434         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67435         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67436         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67437         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67438         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67439         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67440         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67441         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67442         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67443         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67444         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67445         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67446         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67447         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67448         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67449         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67450         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67451         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67452         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67453         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67454         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67455         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67456         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67457         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67458         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67459         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67460         Use an all-permissive copyright notice, recommended by RMS.
67461
67462 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67463
67464         * modules/chdir-long (Depends-on): Remove mempcpy.
67465
67466 2005-01-21  Jim Meyering  <jim@meyering.net>
67467
67468         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
67469         same value as for Solaris 9.
67470
67471         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
67472         component length.  This included changing the parameter to be
67473         of type `char *' rather than `char const *'.
67474         * lib/chdir-long.h (chdir_long): Update prototype.
67475
67476         * lib/openat.c (fdopendir, fstatat): New functions.
67477         * lib/openat.h: Include headers required for use of DIR and struct
67478         stat.
67479         [AT_SYMLINK_NOFOLLOW]: Define.
67480         (fdopendir, fstatat): Add prototypes.
67481
67482 2005-01-21  Bruno Haible  <bruno@clisp.org>
67483
67484         * modules/classpath: New file.
67485         * MODULES.html.sh (Java): Add classpath.
67486
67487 2005-01-21  Bruno Haible  <bruno@clisp.org>
67488
67489         * lib/classpath.h: New file, from GNU gettext.
67490         * lib/classpath.c: New file, from GNU gettext.
67491
67492 2005-01-20  Simon Josefsson  <jas@extundo.com>
67493
67494         * modules/version-etc-fsf: New file.
67495
67496 2005-01-20  Simon Josefsson  <jas@extundo.com>
67497
67498         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
67499         * lib/version-etc.c: Remove version_etc_copyright.
67500         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
67501         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
67502
67503 2005-01-20  Simon Josefsson  <jas@extundo.com>
67504
67505         * lib/base64.h (isbase64): Add.
67506
67507         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
67508         using a unsigned prototype, don't inline.
67509         (base64_decode): Use it.
67510
67511 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
67514         it.
67515
67516 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67517
67518         * lib/save-cwd.c (save_cwd): Remove code to support the case
67519         where fchdir is missing or flaky.
67520
67521 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
67524
67525 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67526
67527         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
67528         AC_LIBSOURCES now does this.
67529         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
67530         with new ullong_max module.
67531
67532 2005-01-19  Bruno Haible  <bruno@clisp.org>
67533
67534         * modules/sh-quote: New file.
67535         * MODULES.html.sh (Executing programs): Add sh-quote.
67536
67537 2005-01-19  Bruno Haible  <bruno@clisp.org>
67538
67539         * lib/sh-quote.h: New file, from GNU gettext.
67540         * lib/sh-quote.c: New file, from GNU gettext.
67541
67542 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         Merge from coreutils.
67545         * m4/ullong_max.m4: New file.
67546         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
67547         (gl_MACROS): Assume localeconv exists.
67548
67549 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67550
67551         Merge changes from coreutils, as described below in several
67552         changelogs dated today.
67553
67554         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
67555         (O_DIRECTORY): Remove; not needed here, since "." must be
67556         a directory.  All uses removed.
67557         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
67558         universal on Suns, and we also need to test for IRIX.
67559         Revamp code to use 'if' rather than '#if'.
67560         Avoid unnecessary comparison of cwd->desc to 0.
67561
67562         * lib/utimens.c (futimens): Robustify the previous patch, by checking
67563         for known valid error numbers rather than observed invalid ones.
67564
67565 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67566
67567         * modules/ullong_max: New file.
67568
67569         * modules/chdir-long, modules/openat: New files.
67570         * modules/save-cwd (Depends-on): Depend on chdir-long.
67571         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
67572
67573 2005-01-18  Jim Meyering  <jim@meyering.net>
67574
67575         Merge from coreutils.
67576         * m4/chdir-long.m4, m4/openat.m4: New files.
67577         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
67578         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
67579         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
67580         is sane and DOES follow symlinks.  Besides, testing 20 different
67581         systems found no broken chown implementations.
67582         Prompted by a change in rsync's copy of this macro.
67583         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
67584
67585         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
67586
67587         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
67588         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
67589         NULL-means-set-to-current-time semantics.
67590         Remove temporary file immediately, rather than waiting
67591         for configure's at-exit trap code to do it.
67592
67593 2005-01-18  Jim Meyering  <jim@meyering.net>
67594
67595         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67596
67597         * lib/utimens.c (futimens): Account for the fact that futimes
67598         can also fail with errno == ENOSYS or errno == ENOENT.
67599         Patch from Dmitry V. Levin.
67600
67601         Change the name of the robust chdir function from chdir to chdir_long.
67602         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
67603         (restore_cwd): Use chdir_long, not chdir.
67604         * lib/chdir-long.c: Renamed from chdir.c.
67605         * lib/chdir-long.h: Renamed from chdir.h.
67606         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
67607         Hurd.
67608
67609 2005-01-18  Bruno Haible  <bruno@clisp.org>
67610
67611         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
67612         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
67613         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
67614         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
67615         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
67616         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
67617         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
67618         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
67619         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
67620         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
67621         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
67622         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
67623         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
67624         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
67625         Use an all-permissive copyright notice, recommended by RMS.
67626
67627 2005-01-18  Bob Proulx  <bob@proulx.com>
67628
67629         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
67630         simplify offsetof() macro construct to avoid compile failure with
67631         native HP-UX 11.0 ANSI C compiler.
67632
67633 2005-01-17  Bruno Haible  <bruno@clisp.org>
67634
67635         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
67636         redundant because stpncpy.m4 takes care of it.
67637
67638 2005-01-17  Bruno Haible  <bruno@clisp.org>
67639
67640         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
67641
67642 2005-01-17  Bruno Haible  <bruno@clisp.org>
67643
67644         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
67645         used.
67646
67647 2005-01-17  Bruno Haible  <bruno@clisp.org>
67648
67649         * lib/fwriteerror.h (fwriteerror): Change specification to include
67650         fclose.
67651         * lib/fwriteerror.c: Include <stdbool.h>.
67652         (fwriteerror): At the end, close the file stream. Record whether
67653         stdout was already closed.
67654
67655 2005-01-17  Bruno Haible  <bruno@clisp.org>
67656
67657         * lib/execute.c (environ): Declare if needed.
67658         * lib/pipe.c (environ): Likewise.
67659         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
67660
67661 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67662
67663         * modules/argp: Depend on vsnprintf
67664
67665 2005-01-10  Jim Meyering  <jim@meyering.net>
67666
67667         * modules/closeout (Depends-on): Add atexit.
67668
67669 2005-01-06  Bruno Haible  <bruno@clisp.org>
67670
67671         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
67672
67673 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
67676         definitions to be after all include files, to avoid collisions.
67677         Problem reported by Bob Proulx.
67678
67679 2005-01-04  Jim Meyering  <jim@meyering.net>
67680
67681         Changes imported from coreutils.
67682         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
67683         as the mkstemp template, use a temporary directory and an
67684         8.3-friendly template to avoid trouble on systems like DJGPP.
67685         Reported by Juan M. Guerrero via Stepan Kasal.
67686         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
67687         close. Remove the temporary directory right away, rather than waiting
67688         for configure's at-exit trap code to do it.
67689         Suggestion from Stepan Kasal.
67690
67691 2005-01-01  Simon Josefsson  <jas@extundo.com>
67692
67693         * gnulib-tool: Print #include directives when --import'ing.
67694
67695 2004-12-28  Simon Josefsson  <jas@extundo.com>
67696
67697         * tests/test-base64.c: Include required header files.  Remove
67698         unused variables.
67699
67700 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67701
67702         * modules/error (Depends-on): Remove gettext.
67703
67704 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
67707         not needed.  This removes a dependency on the gettext module.
67708         [defined _LIBC]: Do not include <libintl.h>; not needed.
67709
67710 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
67713         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
67714
67715 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67716
67717         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
67718         HAVE_DECL_STRTOLD.
67719
67720 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67721
67722         * modules/getdate (Depends-on): Remove alloca-opt.
67723
67724 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67725
67726         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
67727
67728 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         * lib/argp-parse.c: Include <stddef.h>.
67731         (alignof, alignto): New macros.
67732         (parser_init): Don't assume that void * is aligned sufficiently
67733         for struct option.
67734
67735         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
67736         need to extend the stack.
67737         (YYINITDEPTH): New macro, so that the initial stack isn't overly
67738         large.
67739
67740 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67741
67742         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
67743
67744 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
67747         (2004-10-24) change.  Apparently this was a false alarm.
67748
67749         * modules/getdate: Depend on alloca-opt, not alloca.
67750
67751 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67752
67753         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
67754         Remove now-obsolete comment about AIX.
67755         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
67756         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
67757         (YYMAXDEPTH): New macro.
67758
67759 2004-12-18  Simon Josefsson  <jas@extundo.com>
67760
67761         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
67762
67763 2004-12-18  Bruno Haible  <bruno@clisp.org>
67764
67765         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
67766
67767 2004-12-18  Bruno Haible  <bruno@clisp.org>
67768
67769         * lib/fatal-signal.c (fatal_signals): Make non-const.
67770         (init_fatal_signals): New function.
67771         (uninstall_handlers, install_handlers): Ignore signals that were set to
67772         SIG_IGN.
67773         (at_fatal_signal): Call init_fatal_signals.
67774         (init_fatal_signal_set): Likewise. Ignore signals that were set to
67775         SIG_IGN.
67776         Reported by Paul Eggert.
67777
67778 2004-12-18  Bruno Haible  <bruno@clisp.org>
67779
67780         * doc/alloca.texi: New file.
67781         * doc/alloca-opt.texi: New file.
67782
67783 2004-12-17  Jim Meyering  <jim@meyering.net>
67784
67785         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
67786         Otherwise, install-sh could exit with improper exit status when
67787         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
67788
67789 2004-12-16  Simon Josefsson  <jas@extundo.com>
67790
67791         * tests/test-base64.c: Add license.
67792
67793 2004-12-15  Stepan Kasal  <address@hidden>
67794
67795         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
67796
67797 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67798
67799         * modules/getcwd (Files): Add m4/d-ino.m4.
67800         Suggested by Mark D. Baushke.
67801
67802 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67803
67804         * lib/getdate.y (textint): New member "negative".
67805         (time_zone_hhmm): New function.
67806         Expect 14 shift-reduce conflicts, not 13.
67807         (o_colon_minutes): New rule.
67808         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67809         (yylex): Set the "negative" member of signed numbers.
67810
67811 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67812
67813         * doc/getdate.texi (Time of day items, Time zone items):
67814         Describe new formats +00:00, UTC+00:00.
67815
67816 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67817
67818         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67819         spurious "-l"s.  Problem reported by Stepan Kasal.
67820
67821 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67822
67823         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67824         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67825
67826 2004-12-04  Simon Josefsson  <jas@extundo.com>
67827
67828         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67829         Vandoorselaere <yoann@prelude-ids.org>.
67830
67831 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67832
67833         Changes imported from coreutils.
67834         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67835         exist.
67836         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67837
67838 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67839
67840         Changes imported from coreutils.
67841         * lib/hard-locale.c: Assume <locale.h> exists.
67842         Include "strdup.h".
67843         (GLIBC_VERSION): New macro.
67844         (hard_locale): Assume setlocale exists.
67845         Rewrite to avoid #ifdef.
67846         Use strdup rather than malloc + strcpy.
67847         * lib/human.c: Assume <locale.h> exists.
67848         (human_readable): Assume localeconv exists.
67849
67850 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67851
67852         * modules/hard-locale (Depends-on): Add strdup.
67853
67854 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67855
67856         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67857         convert T2, not T.  (Imported from libc.)
67858
67859 2004-11-30  Simon Josefsson  <jas@extundo.com>
67860
67861         * modules/restrict (License): Change to LGPL.
67862
67863 2004-11-30  Simon Josefsson  <jas@extundo.com>
67864
67865         * m4/restrict.m4: Add copyright and copying conditions.
67866
67867 2004-11-30  Simon Josefsson  <jas@extundo.com>
67868
67869         * m4/base64.m4: New file.
67870
67871 2004-11-30  Simon Josefsson  <jas@extundo.com>
67872
67873         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67874         base64.
67875
67876         * tests/test-base64.c: New file.
67877
67878         * modules/base64: New file.
67879
67880 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67883         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67884
67885         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67886
67887 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67888
67889         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67890         (__getcwd.c): Don't restore errno; glibc doesn't.
67891         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67892         first, falling back to our code only if its results look suspicious.
67893         Ensure that the resulting buffer is only as large as necessary.
67894
67895         * lib/readutmp.c: Include readutmp.h first.
67896         Include <errno.h>, since readutmp.h no longer does that.
67897         * lib/readutmp.h: Don't include <errno.h>,
67898         <sys/param.h>, <time.h>; not needed to establish interface.
67899         (errno): Remove decl.
67900         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67901         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67902         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67903
67904 2004-11-28  Simon Josefsson  <jas@extundo.com>
67905
67906         * lib/base64.h, base64.c: New file.
67907
67908 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67911
67912 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67915         (Depends-on): Remove pathmax, same.  Add mempcpy.
67916         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67917         (Makefile.am): Append getcwd.h to lib_SOURCES.
67918         (Include): Add getcwd.h.
67919         (Maintainer): Change from Jim Meyering to "all, glibc",
67920         since getdate now uses intended-for-glibc code.
67921         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67922         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67923
67924 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67925
67926         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67927         HP's ANSI C compiler.
67928         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67929         Declaring int functions causes warnings on some modern systems and
67930         shouldn't be needed to compile on ancient ones.
67931         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67932         defined.
67933
67934         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67935         with the following changes.
67936         (__set_errno): Parenthesize properly.
67937         Include <stdbool.h>.
67938         (MIN, MAX, MATCHING_INO): New macros.
67939         (__getcwd): Define with prototype, not K&R form.
67940         Use heuristics to allocate default buffer on stack if possible.
67941         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67942         behavior, and to avoid the PATH_MAX limit when computing
67943         ../../../../...
67944         Use MATCHING_INO to compare inode number to file.
67945         Check for arithmetic overflow in size calculations.
67946         Fix bug in reallocation of dot array that caused getcwd to fail
67947         on directories nested deeper than 75.
67948         Be more careful about saving errno on error.
67949         Do not use realloc; use only free+malloc, as this is a bit
67950         more flexible and avoids a needless copy operation.
67951         Do not inspect st_dev and st_ino for symbolic links; POSIX
67952         doesn't specify the latter.
67953         Check for closedir errors.
67954         Avoid needless casts.
67955         Use "#ifdef weak_alias" around weak_alias, to be like other
67956         glibc code.
67957         The following changes to getcwd.c have effect only when used in
67958         gnulib; they have no effect inside glibc proper.
67959         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67960         as alloca isn't used.
67961         (alloca, __alloca): Likewise.
67962         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67963         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67964         unconditionally, as gnulib assumes C89 or better.
67965         Do not include <sys/param.h>.
67966         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67967         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67968         better.
67969         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67970         Include <dirent.h> in a way that is compatible with modern Autoconf.
67971         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67972         New macros, if not already defined.
67973         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67974         Use "_LIBC", not "defined _LIBC", for consistency.
67975         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67976         a mempcpy module.
67977         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67978         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67979         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67980         credit only to Jim Meyering and adjust the copyright dates.
67981         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67982         <stdlib.h>, <unistd.h>, "pathmax.h".
67983         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67984         (INITIAL_BUFFER_SIZE): Remove.
67985         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67986
67987 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67988
67989         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67990         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67991         Use the _ONCE methods, for efficiency.
67992         Check for fcntl.h.  In test program, include <errno.h>
67993         and <fcntl.h> if available.  Remove old K&R cruft from
67994         test program.  Check for common errors in GNU/Linux,
67995         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67996         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67997         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67998         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67999         name accordingly.
68000         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68001         accommodate new getcwd.c.
68002         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68003         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68004         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68005         that's all we need now.
68006
68007 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68008
68009         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68010         argp-parse.c depends on getopt internals, that means we should
68011         always use our getopt, to be on the safe side.
68012         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68013         order not to spoil the result of an eventual previous invocation
68014         of gl_GETOPT_SUBSTITUTE.
68015
68016 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68017
68018         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68019         redefinition warnings. To avoid them, include the defines
68020         in `#if !defined __need_getopt ... #endif'. The only place
68021         where __getopt_argv_const is used is in definitions
68022         of getopt_long and getopt_long_only below, which are as well
68023         protected by `#ifndef __need_getopt'.
68024         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68025         __need_getopt after including <stdio.h> and <unistd.h> These
68026         headers might have defined it.
68027
68028 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68029
68030         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68031
68032 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68033
68034         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68035         (futimens): New function, which uses futimes if available.
68036         (futimens, utimens): Support timespec==NULL, with same semantics
68037         as utime and utimens.
68038         * lib/utimens.h (futimens): New decl.
68039
68040 2004-11-23  Jim Meyering  <jim@meyering.net>
68041
68042         * lib/getopt_.h: Remove trailing blanks.
68043
68044 2004-11-23  Jim Meyering  <jim@meyering.net>
68045
68046         * lib/__fpending.c: Add comment.
68047
68048 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         * modules/canonicalize (Depends-on): Add xreadlink.
68051         Problem reported by James Youngman.
68052
68053 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68054
68055         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68056         New macros.
68057         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68058         optopt): Use them instead of invoking ## directly; otherwise, the
68059         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68060
68061 2004-11-19  Bruno Haible  <bruno@clisp.org>
68062
68063         * lib/strtok_r.c: Move comments from here...
68064         * lib/strtok_r.h: ... to here.
68065
68066 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68067
68068         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68069         implementations that mishandle size_t overflow.
68070
68071 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68074         might fail.  Problem reported by Yoann Vandoorselaere.
68075         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68076         implementations that mishandle size_t overflow.
68077
68078 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68079
68080         * modules/canon-host (Depends-on): Add strdup.
68081
68082 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68083
68084         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68085
68086 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68087
68088         * lib/canon-host.c: Include "strdup.h".
68089         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68090         Use strdup instead of malloc/strcpy to duplicate strings.
68091
68092         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68093         (human_space_before_unit): New constant.
68094         * lib/human.c (human_readable): Support it.
68095
68096         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68097         (xgetcwd): Set errno correctly when failing.
68098         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68099         the failure is actually due to a PATH_MAX problem.
68100
68101         Further getopt changes to make it more likely that glibc will
68102         buy the changes back.
68103         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68104         (getopt): Use it, so to preserve glibc semantic
68105         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68106         when compiling for libc.
68107         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68108         (getopt_long, getopt_long_only): Use it.
68109
68110         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68111         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68112         (getopt): Argv is now char * const *, as per standard.
68113         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68114         not char *__getopt_argv_const *.
68115         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68116         _getopt_long_only_r): Likewise.
68117         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68118         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68119         _getopt_long_r, _getopt_long_only_r): Likewise.
68120         * lib/getopt_.h (__getopt_argv_const): Remove.
68121         (getopt): Argv is now char * const *, as per standard.
68122
68123         * lib/getdate.y (tORDINAL): New token.
68124         (day, relunit): Allow it for relative times.
68125         (relative_time_table): Use tORDINAL for ordinals.
68126
68127 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68128
68129         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68130         Document that "second" isn't allowed as an ordinal number.
68131
68132 2004-11-16  Jim Meyering  <jim@meyering.net>
68133
68134         * modules/closeout (Depends-on): Add fpending.
68135
68136 2004-11-15  Jim Meyering  <jim@meyering.net>
68137
68138         * lib/closeout.c: Include "__fpending.h" once again.
68139         Include <stdbool.h>.
68140         (close_stdout): Don't fail just because stdout was closed initially,
68141         since some programs don't write to stdout in the normal course of
68142         operation (other than --version and --help), and we don't want this
68143         function to make e.g. `touch file >&-' fail.
68144         But do fail if it was closed and someone has tried to write to it.
68145         E.g., `printf foo >&-' must fail.
68146
68147 2004-11-13  Jim Meyering  <jim@meyering.net>
68148
68149         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68150
68151 2004-11-12  Simon Josefsson  <jas@extundo.com>
68152
68153         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68154         small doc fix is still pending.
68155
68156 2004-11-11  Simon Josefsson  <jas@extundo.com>
68157
68158         * modules/strtok_r: New file.
68159
68160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68161         strtok_r.
68162
68163 2004-11-11  Simon Josefsson  <jas@extundo.com>
68164
68165         * m4/strtok_r.m4: New file.
68166
68167         * m4/getopt.m4: Replace opterr.
68168
68169 2004-11-11  Simon Josefsson  <jas@extundo.com>
68170
68171         * lib/strtok_r.h, strtok_r.c: New file.
68172
68173 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68174
68175         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68176         of replacing opterr, getopt, etc.  This should handle the
68177         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68178
68179 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68180
68181         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68182         we can stop lying to compilers about the constness of argv when we
68183         are compiled outside glibc.
68184         (getopt, getopt_long, getopt_long_only): Use it.
68185         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68186         _getopt_internal, getopt): Likewise.
68187         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68188         _getopt_long_only_r): Likewise.
68189         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68190         _getopt_long_r, _getopt_long_only_r): Likewise.
68191
68192         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68193         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68194         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68195         the other external symbols.
68196         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68197         declaration, since the above renaming now works around collisions.
68198
68199 2004-11-11  Jim Meyering  <jim@meyering.net>
68200
68201         * lib/linebreak.c: Remove trailing blanks.
68202         * lib/alloca_.h: Likewise.
68203         * lib/acosl.c: Likewise.
68204         * lib/euidaccess.c: Likewise.
68205         * lib/allocsa.h: Likewise.
68206
68207 2004-11-10  Simon Josefsson  <jas@extundo.com>
68208
68209         * m4/getaddrinfo.m4: New file.
68210
68211 2004-11-10  Simon Josefsson  <jas@extundo.com>
68212
68213         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68214
68215 2004-11-10  Simon Josefsson  <jas@extundo.com>
68216
68217         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68218         getaddrinfo.
68219
68220         * modules/getaddrinfo: New file.
68221
68222 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68223
68224         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68225
68226 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68227
68228         * lib/mktime.c (SHR): New macro, which is a portable
68229         substitute for >> that should work even on Crays.
68230         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68231         Problem reported by Mark D. Baushke in
68232         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68233         * lib/getdate.y (SHR): Likewise.
68234         (tm_diff): Use it.
68235         * lib/strftime.c (SHR): Likewise.
68236         (tm_diff): Use it.
68237         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68238         quote_these_too, so that right shifts are well defined.  All uses
68239         changed.
68240
68241 2004-11-10  Jim Meyering  <jim@meyering.net>
68242
68243         Ensure that no close failure goes unreported.
68244         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68245         return early when it seems there's nothing to flush.
68246         Don't include __fpending.h.
68247
68248 2004-11-10  Jim Meyering  <jim@meyering.net>
68249
68250         * modules/closeout (Depends-on): Remove fpending.
68251
68252 2004-11-10  Jim Meyering  <jim@meyering.net>
68253
68254         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68255
68256 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68259         gl_FUNC_STRFTIME.
68260         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68261         and AC_REQUIRE when possible, to avoid duplicate checks.
68262         Check for <wchar.h>.
68263
68264 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68265
68266         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68267
68268 2004-11-09  Bruno Haible  <bruno@clisp.org>
68269
68270         * m4/sockpfaf.m4: New file.
68271
68272 2004-11-05  Bruno Haible  <bruno@clisp.org>
68273
68274         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68275         Reported by Mark D. Baushke <mdb@cvshome.org>.
68276
68277 2004-11-04  Bruno Haible  <bruno@clisp.org>
68278
68279         2004-09-11  Bruno Haible  <bruno@clisp.org>
68280                 * allocsa.valgrind: New file.
68281         2004-02-06  Bruno Haible  <bruno@clisp.org>
68282                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68283                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68284                 Reported by Christopher Seip <chris.seip@hp.com>.
68285
68286 2004-11-04  Bruno Haible  <bruno@clisp.org>
68287
68288         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68289         (Makefile.am): Distribute it.
68290
68291 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68292
68293         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68294         with errno == ERANGE if the buffer is too small.
68295         Problem reported by Mark D. Baushke.
68296
68297 2004-11-03  Albert Chin  <china@thewrittenword.com>
68298             Paul Eggert  <eggert@cs.ucla.edu>
68299
68300         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68301         equivalent, substitute $ac_type for equivalent type rather than
68302         blindly using uint32_t *always* which won't work if uint32_t is not
68303         available.  Define _UINT32_T to work around typedef of uint32_t if
68304         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68305         2.5.1.
68306
68307 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         * m4/jm-macros.m4: Sync from coreutils.
68310         (gl_MACROS): Check for mbrlen, for pathchk.
68311         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68312
68313 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68314
68315         * lib/xreadlink.c (MAXSIZE): New macro.
68316         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68317         size does not exceed MAXSIZE.  Avoid cast.
68318         As suggested by Mark D. Baushke in
68319         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68320         if readlink fails with buffer size just under MAXSIZE, try again
68321         with MAXSIZE.
68322
68323 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68324
68325         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68326
68327 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68328         and  Paul Eggert  <eggert@cs.ucla.edu>
68329
68330         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68331         (get_date): Overparenthesize to avoid GCC warning.
68332
68333 2004-11-02  Bruno Haible  <bruno@clisp.org>
68334
68335         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68336         returns void.
68337
68338 2004-11-02  Bruno Haible  <bruno@clisp.org>
68339
68340         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68341         function returns void.
68342
68343 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68346         fflush_unlocked, flockfile, funlockfile, funlockfile,
68347         fputs_unlocked, putc_unlocked.
68348
68349 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68350
68351         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68352         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68353         already declared.
68354
68355 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68356
68357         * modules/getdate (Files): Add doc/getdate.texi.
68358         (Depends-on): Add setenv, xalloc.
68359
68360 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * lib/getdate.y: Add support for TZ="foo" within a date string.
68363         Fix some bugs near time_t boundaries.  Reject dates with
68364         out-of-range components, e.g., "Sept 31".
68365         Include <stdlib.h>, "setenv.h", "xalloc.h".
68366         (ISDIGIT_LOCALE): Remove; unused.
68367         Note that the TZ and time functions used here are not reentrant.
68368         (mktime_ok, get_tz): New functions.
68369         (TZBUFSIZE): New constant.
68370         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68371         This requires that we sometimes generate our own TZ="XXX..." setting.
68372
68373 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68374
68375         * doc/getdate.texi: New file, from coreutils with modifications for
68376         the new TZ parsing.
68377
68378 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68379
68380         * lib/mktime.c (not_equal_tm): Remove redundant check.
68381
68382 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * modules/regex (lib_SOURCES): Add regex.c.
68385         Reported by James Youngman in
68386         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68387
68388 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         * lib/getdate.y: Use Bison 1.875 features, and some minor
68391         code cleanups.  This change does not affect semantics.
68392         Don't include <stdlib.h>; no longer needed.
68393         Don't include unlocked-io.h; only the "#if TEST" code uses
68394         stdio, and performance isn't crucial there.
68395         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68396         Bison 1.875 features as described below.
68397         All uses of "PC." replaced by "pc->".
68398         (YYSTYPE): Add a forward declaration.
68399         (yylex, yyerror): Use full prototypes in forward decls.
68400         Use "%pure-parser" rather than obsolescent "%pure_parser".
68401         Use %parse-param and %lex-param instead of obsolescent
68402         YYPARSE_PARAM and YYLEX_PARAM.
68403         (meridian_table, month_and_day_table, time_units_table,
68404         relative_time_table, time_zone_table, military_table,
68405         lookup_zone, lookup_word, get_date):
68406         Use NULL instead of 0 where appropriate.
68407         (to_hour): Avoid abort (), to avoid a dependency on
68408         stdlib.h.
68409         (yyerror, yylex): Now accepts parser_control * arg.
68410         (main) [TEST]: Use '\0' rather than 0 for char.
68411
68412 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68415
68416 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68419         It's now the caller's responsibility to handle the case where
68420         !HAVE_GETPAGESIZE && !defined getpagesize.
68421
68422         * lib/mktime.c (leapyear): Arg is long int, not int.
68423
68424 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68427
68428 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68429
68430         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68431         missing.  Problem reported by James Youngman.
68432
68433 2004-10-16  Simon Josefsson  <jas@extundo.com>
68434
68435         * gnulib-tool: Fix comments.  Fix parse problem.
68436         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68437
68438 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68439
68440         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68441         implementation of getopt_long.  Problem reported by Alexander Taler in:
68442         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68443
68444 2004-10-15  Bruno Haible  <bruno@clisp.org>
68445
68446         * gnulib-tool: Untabify. Initialize supplied_libname.
68447         (func_usage): More homogenous output.
68448         (func_modules_transitive_closure, func_modules_to_filelist,
68449         func_emit_lib_Makefile_am): New functions.
68450         (func_import): New function, extracted from big case statement. Use
68451         func_get_license, func_modules_transitive_closure,
68452         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68453         opt_lgpl. Don't use test -a, as it's not portable.
68454         (func_create_testdir): Use func_modules_transitive_closure,
68455         func_modules_to_filelist, func_emit_lib_Makefile_am.
68456
68457 2004-10-15  Bruno Haible  <bruno@clisp.org>
68458
68459         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68460
68461 2004-10-15  Bruno Haible  <bruno@clisp.org>
68462
68463         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
68464         the portions belonging to each module.
68465         Suggested by Derek Robert Price <derek@ximbiot.com>.
68466
68467 2004-10-12  Simon Josefsson  <jas@extundo.com>
68468
68469         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68470         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
68471         to real functions.
68472
68473 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68474
68475         * modules/vsnprintf: New file.
68476
68477 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68478
68479         * m4/vsnprintf.m4: New file.
68480
68481 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68482
68483         * lib/vsnprintf.h: New file.
68484         * lib/vsnprintf.c: New file.
68485
68486 2004-10-11  Bruno Haible  <bruno@clisp.org>
68487
68488         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
68489         vsnprintf.
68490
68491 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68492
68493         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
68494
68495 2004-10-07  Bruno Haible  <bruno@clisp.org>
68496
68497         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
68498         fits into the provided buffer.
68499
68500 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * lib/diacrit.c, diacrit.h: Add GPL notice.
68503
68504         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
68505         notice.
68506         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
68507         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
68508         This avoids a potential constant-folding bug.
68509
68510 2004-10-05  Bruno Haible  <bruno@clisp.org>
68511
68512         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
68513         for the declaration of strsep.
68514
68515 2004-10-05  Bruno Haible  <bruno@clisp.org>
68516
68517         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
68518
68519 2004-10-04  Simon Josefsson  <jas@extundo.com>
68520
68521         * modules/memmem: New file.
68522         * tests/test-memmem.c: New file.
68523         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
68524
68525 2004-10-04  Simon Josefsson  <jas@extundo.com>
68526
68527         * m4/memmem.m4: New file.
68528
68529 2004-10-04  Simon Josefsson  <jas@extundo.com>
68530
68531         * lib/memmem.h: New file.
68532         * lib/memmem.c: New file, taken from glibc.
68533
68534 2004-10-04  Simon Josefsson  <jas@extundo.com>
68535
68536         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
68537         '#ifdef USE_UNLOCKED_IO'.
68538
68539 2004-10-04  Simon Josefsson  <jas@extundo.com>
68540
68541         * config/srclist.txt: Add memmem from glibc.
68542
68543 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68544
68545         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
68546
68547         * modules/argmatch, modules/argp, modules/closeout, modules/error,
68548         modules/exclude, modules/getdate, modules/getline,
68549         modules/getndelim2, modules/getpass, modules/getpass-gnu,
68550         modules/getusershell, modules/linebuffer, modules/md5,
68551         modules/mountlist, modules/posixtm, modules/readtokens,
68552         modules/readutmp, modules/regex, modules/sha1,
68553         modules/version-etc, modules/yesno:
68554         Remove dependency on unlocked-io.
68555
68556 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68557
68558         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
68559
68560         * m4/unlocked-io.m4: Add copyright notice.
68561         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
68562
68563 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
68566         * lib/xmalloc.c (xmemdup): Likewise.
68567         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
68568         XFREE): Remove these long-obsolescent macros.
68569         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
68570         * lib/xstrdup.c: Remove.
68571
68572         * lib/regex.c (re_comp): Cast gettext return value to char *,
68573         Problem reported by Martin Neitzel via Mark D. Baushke.
68574
68575 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
68578         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
68579         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
68580         regex.c, sha1.c, version-etc.c, yesno.c:
68581         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
68582         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
68583         the includer's responsibility.
68584
68585         Sync from coreutils.
68586
68587         * lib/modechange.c (mode_compile): Don't decrement a pointer that
68588         points to the start of a string, as the C Standard says the
68589         resulting behavior is undefined.
68590
68591         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
68592         simple -> simple_backups, numbered_existing ->
68593         numbered_existing_backups, numbered -> numbered_backups
68594         to avoid shadowing problems.  All uses changed.
68595         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
68596         * lib/backupfile.c (check_extension, numbered_backup):
68597         Rename locals to avoid shadowing 'basename'.
68598         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
68599         once.
68600
68601         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
68602         * lib/.cvsignore: Add getopt.h.
68603
68604 2004-10-04  Bruno Haible  <bruno@clisp.org>
68605
68606         * modules/README: New file.
68607         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
68608         not a module.
68609
68610 2004-10-02  Jim Meyering  <jim@meyering.net>
68611
68612         * lib/dirfd.h, getpagesize.h: Add copyright notice.
68613
68614 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68615
68616         * modules/strsep: New file.
68617
68618 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68619
68620         * m4/strsep.m4: New file.
68621
68622 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68623
68624         * lib/strsep.h: New file.
68625         * lib/strsep.c: New file.
68626
68627 2004-10-01  Simon Josefsson  <jas@extundo.com>
68628
68629         * lib/snprintf.c (snprintf): Handle size==0.
68630
68631 2004-10-01  Simon Josefsson  <jas@extundo.com>
68632             Bruno Haible  <bruno@clisp.org>
68633
68634         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
68635         (snprintf): Declare 'args'.
68636
68637 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
68638
68639         * lib/snprintf.c: Remove comments as to why each header is needed.
68640
68641 2004-10-01  Bruno Haible  <bruno@clisp.org>
68642
68643         * MODULES.html.sh: Add strsep.
68644
68645 2004-09-30  Simon Josefsson  <jas@extundo.com>
68646
68647         * modules/snprintf: New file.
68648
68649 2004-09-30  Simon Josefsson  <jas@extundo.com>
68650
68651         * m4/snprintf.m4: New file.
68652
68653 2004-09-30  Simon Josefsson  <jas@extundo.com>
68654
68655         * lib/snprintf.h, lib/snprintf.c: New files.
68656
68657 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68658
68659         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
68660         (hol_entry_help): Never translate an empty string.
68661         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
68662         * lib/argp.h (OPTION_NO_TRANS): New option.
68663
68664 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * modules/argp (Maintainer): Replace Simon Josefsson
68667         by Sergey Poznyakoff.
68668
68669 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68670
68671         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
68672         changes merged back into glibc.
68673
68674 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
68677
68678 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68679
68680         * lib/xvasprintf.c: Include xalloc.h.
68681         (xvasprintf): Use xalloc_die, not xmalloc_die.
68682
68683 2004-09-29  Bruno Haible  <bruno@clisp.org>
68684
68685         * modules/alloca-opt: New file, derived from modules/alloca.
68686         * modules/allocsa: Depend on alloca-opt instead of alloca.
68687         * modules/setenv: Likewise.
68688         * modules/vasnprintf: Likewise.
68689         * MODULES.html.sh: Add alloca-opt.
68690
68691 2004-09-28  Simon Josefsson  <jas@extundo.com>
68692
68693         * gnulib-tool: New parameter --lgpl, to asseert that modules are
68694         LGPL, and to replace license template from GPL to LGPL.
68695
68696 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68697
68698         * modules/dummy: Change license to LGPL.
68699
68700 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68701
68702         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
68703
68704 2004-09-24  Simon Josefsson  <jas@extundo.com>
68705
68706         * modules/minmax (License): Change from GPL to LGPL.
68707
68708 2004-09-23  Simon Josefsson  <jas@extundo.com>
68709
68710         * gnulib-tool (--import): Typo.
68711
68712 2004-09-23  Simon Josefsson  <jas@extundo.com>
68713
68714         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
68715
68716 2004-09-22  Bruno Haible  <bruno@clisp.org>
68717
68718         * modules/*: Add 'License' field.
68719         * gnulib-tool: Accept --extract-license option.
68720         (func_get_license): New function.
68721
68722 2004-09-21  Bruno Haible  <bruno@clisp.org>
68723
68724         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
68725         Reported by Simon Josefsson.
68726
68727 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68728
68729         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
68730         gl_AC_TYPE_LONG_LONG.
68731
68732 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68733
68734         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
68735
68736 2004-09-18  Simon Josefsson  <jas@extundo.com>
68737         and  Paul Eggert  <eggert@cs.ucla.edu>
68738
68739         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
68740         calls with autoreconf.  Define GL_LIB.
68741
68742 2004-09-14  Karl Berry  <karl@gnu.org>
68743
68744         * config/srclist.txt: unsync setenv.c, sigh.
68745
68746 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
68749         Problem reported by Bruno Haible in:
68750         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
68751
68752 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68753
68754         * config/srclist.txt: Comment out argp-pvh.c.
68755
68756 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
68757
68758         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
68759         in case some system header has #define'd it.  Problem reported by
68760         Soeren D. Schulze in
68761         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
68762
68763 2004-09-09  Karl Berry  <karl@gnu.org>
68764
68765         * regex.[ch]: delete from the root.  These were supposed to be
68766                 synced with emacs cvs, but this has not happened for about
68767                 a year, and anyway nothing else uses emacs regex.[ch].
68768                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
68769                 lib/regex[.ch] is untouched.
68770
68771 2004-09-09  Bruno Haible  <bruno@clisp.org>
68772
68773         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
68774
68775 2004-09-09  Bruno Haible  <bruno@clisp.org>
68776
68777         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
68778         modifications.
68779         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
68780
68781 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68782
68783         * modules/xvasprintf: New file.
68784         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
68785
68786 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68787
68788         * lib/xvasprintf.h: New file.
68789         * lib/xvasprintf.c: New file.
68790         * lib/xasprintf.c: New file.
68791
68792 2004-09-08  Bruno Haible  <bruno@clisp.org>
68793
68794         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
68795
68796 2004-09-08  Bruno Haible  <bruno@clisp.org>
68797
68798         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68799         length is > INT_MAX.
68800         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68801         more.
68802
68803 2004-09-08  Bruno Haible  <bruno@clisp.org>
68804
68805         * lib/stdint_.h: New file, taken from GNU clisp.
68806
68807 2004-09-08  Bruno Haible  <bruno@clisp.org>
68808             Oskar Liljeblad  <oskar@osk.mine.nu>
68809
68810         * modules/stdint: New file.
68811         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68812
68813 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68814
68815         Import from coreutils.
68816         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68817         strings on unbounded length.  alloca's performance benefits aren't
68818         that important here.
68819         (V_STRDUP): Remove.
68820         (parse_with_separator): New function, with most of the internals
68821         of the old parse_user_spec.  Allow user to omit both user and group,
68822         for compatibility with FreeBSD.
68823         Clone only the user name, not the entire spec.
68824         Do not set *uid, *gid unless entirely successful.
68825         Avoid memory leak in some failing cases.
68826         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68827         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68828         (parse_user_spec): Rewrite to use parse_with_separator.
68829
68830 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68831
68832         * modules/userspec: Don't depend on alloca.
68833
68834 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68835
68836         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68837
68838 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68839
68840         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68841         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68842         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68843
68844 2004-08-16  Simon Josefsson  <jas@extundo.com>
68845
68846         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68847         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68848         Add --dry-run for --import.
68849         Let user provided command line parameters override configure.ac
68850         settings.
68851
68852 2004-08-12  Simon Josefsson  <jas@extundo.com>
68853
68854         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68855         as discussed with Paul Eggert in threads rooted at
68856         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68857         and
68858         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68859         Before, the test was empty, and relied on ELIDE_CODE in source
68860         code.)
68861         (gl_PREREQ_GETOPT): New macro.
68862         (gl_GETOPT): Use them.
68863
68864 2004-08-12  Simon Josefsson  <jas@extundo.com>
68865
68866         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68867         * lib/getopt_.h: Renamed from getopt.h.
68868
68869 2004-08-12  Simon Josefsson  <jas@extundo.com>
68870
68871         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68872         Change default library name from libfoo to libgnu.
68873         Now, if you have a configure.ac that says:
68874                 gl_SOURCE_BASE(gl)
68875                 gl_M4_BASE(gl/m4)
68876                 gl_MODULES(error getopt etcetera)
68877                 gl_INIT
68878         you can import all you need by running:
68879                 ../gnulib/gnulib-tool --import
68880
68881         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68882         (Makefile.am): Rewrite, use logic from argz.
68883         (Include): Use <getopt.h> instead of "getopt.h".
68884
68885 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68886
68887         * modules/argp (Files): Add m4/unlocked-io.m4.
68888         (Depends-on): Add extensions.
68889
68890 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68893         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68894         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68895         Check for program_invocation_name, program_invocation_short_name,
68896         flockfile, funlockfile, features.h, _getopt_long_only_r.
68897
68898 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68899
68900         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68901         its complicated substitute.
68902         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68903         and program_invocation_name.
68904         (__argp_basename) [!_LIBC]: Remove; the only use was
68905         replaced by its body.
68906         (__argp_short_program_name): Change condition from
68907         !defined __argp_short_program_name to
68908         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68909         to match argp-namefrob.h.
68910         (__argp_failure): Don't assume strerror_r returns char *.
68911         * lib/argp-parse.c (N_): Define unconditionally.
68912         (argp_default_options): Fill out initializers with 0 to avoid
68913         gcc warnings.
68914
68915 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68916
68917         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68918         getopt1.c.
68919
68920 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         Merge from coreutils.
68923
68924         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68925
68926         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68927         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68928
68929 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68930
68931         Merge from coreutils.
68932
68933         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68934         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68935         for Reliant Unix 5.43.
68936
68937         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68938         (union fooround): Use uintmax_t, not long int.
68939         The rest is a merge from libc:
68940         [defined _LIBC]: Include <shlib-compat.h>.
68941         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68942
68943         * lib/settime.c (settime): Recode to avoid warning with
68944         Sun Forte C 6U2.
68945
68946         * lib/strverscmp.c: Convert to UTF-8.
68947
68948 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68949
68950         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68951         m4/uintmax_t.m4.
68952
68953 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68954
68955         * modules/xalloc-die: New file.
68956         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68957
68958         * modules/md5 (Files): Add m4/uint32_t.m4.
68959         * modules/sha1: Renamed from modules/sha.
68960         (Files):
68961         Rename lib/sha.h to lib/sha1.h.
68962         Rename lib/sha.c to lib/sha1.c.
68963         Rename m4/sha.m4 to m4/sha1.m4.
68964         (lib_SOURCES): Likewise.
68965         (configure.ac): Rename gl_SHA to gl_SHA1.
68966         (Include): sha.h -> sha1.h.
68967
68968 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68969
68970         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68971         * m4/sha1.m4: Renamed from sha.m4.
68972         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68973
68974 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         * lib/obstack.h (obstack_empty_p):
68977         Don't assume that chunk->contents is suitably aligned.
68978         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68979         Likewise. Problem reported by Benno in
68980         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68981
68982         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68983         readable.  This could be improved further but it'd take some work.
68984
68985 2004-08-08  Simon Josefsson  <jas@extundo.com>
68986
68987         * modules/xgethostname (Depends-on): Remove exit and error (not
68988         used).
68989
68990         * modules/getpass-gnu: Add getpass.h.
68991         (Depends-on): Add stdbool.
68992         * modules/getpass: Add getpass.h.
68993
68994 2004-08-08  Simon Josefsson  <jas@extundo.com>
68995
68996         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68997         Check getpass declaration.
68998
68999 2004-08-08  Simon Josefsson  <jas@extundo.com>
69000
69001         * lib/xgethostname.c: Don't include error.h (not used).
69002
69003         * lib/getpass.h: Add.
69004         * lib/getpass.c: Include getpass.h first.
69005
69006 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         * lib/xalloc-die.c: New file.
69009         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69010         All uses removed.
69011         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69012         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69013         xalloc-die.c.
69014         (_, N_, xalloc_die): Move to xalloc-die.c.
69015         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69016         so that we needn't mess with xalloc_msg_memory_exhausted.
69017
69018         * lib/sha1.h: Renamed from sha.h.
69019         (SHA1_H): Renamed from _SHA_H.
69020         (sha1_ctx): Renamed from sha_ctx.
69021         (sha1_init_ctx): Renamed from sha_init_ctx.
69022         (sha1_process_block): Renamed from sha_process_block.
69023         (sha1_process_bytes): Renamed from sha_process_bytes.
69024         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69025         (sha1_read_ctx): Renamed from sha_read_ctx.
69026         (sha1_stream): Renamed from sha_stream.
69027         (sha1_buffer): Renamed from sha_buffer.
69028         * lib/sha1.c: Likewise; renamed from sha.c.
69029         Do not include <sys/types.h>.
69030         Include <stddef.h> rather than <stdlib.h>.
69031
69032 2004-08-08  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69035         FILESYSTEM_PREFIX_LEN.
69036         * lib/progreloc.c: Likewise.
69037         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69038
69039 2004-08-06  Simon Josefsson  <jas@extundo.com>
69040
69041         * modules/progname (Depends-on): Don't depend on stdbool.
69042
69043 2004-08-06  Simon Josefsson  <jas@extundo.com>
69044
69045         * modules/getsubopt: New file.
69046         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69047         getsubopt.
69048
69049 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69050
69051         More merge from coreutils.
69052
69053         * m4/utimens.m4, m4/utimecmp.m4: New files.
69054         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69055         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69056         prereq.m4, sha.m4: Import changes from coreutils.
69057
69058 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         More merge from coreutils.
69061         * modules/raise, modules/readtokens0, modules/utimens:
69062         * modules/utimecmp, module/xnanosleep: New files.
69063         * modules/strftime: Add lib/strftime.h.
69064         Change include from <time.h> to "strftime.h".
69065         * modules/yesno: Add lib/yesno.h.
69066         * modules/backupfile: Remove lib/addext.c.
69067         * modules/euidaccess: Add stat-macros.h.
69068         * modules/canonicalize, modules/euidaccess,
69069         modules/filemode, modules/lchown, modules/makepath,
69070         modules/rmdir, modules/stat: Likewise.
69071
69072 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69073
69074         Merge from tar.
69075         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69076         SIZE_MAX is a valid preprocessor constant.
69077         (__argp_basename): Change from "#ifndef _LIBC"
69078         to "#ifndef __argp_short_program_name", so that
69079         we don't compile these functions for tar.
69080
69081         More merges from coreutils.
69082         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69083         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69084         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69085         * lib/addext.c: Remove; no longer needed.
69086         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69087         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69088         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69089         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69090         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69091         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69092         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69093         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69094         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69095         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69096         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69097         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69098         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69099         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69100         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69101         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69102         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69103         Import changes from coreutils.
69104
69105 2004-08-05  Simon Josefsson  <jas@extundo.com>
69106
69107         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69108
69109 2004-08-05  Simon Josefsson  <jas@extundo.com>
69110
69111         * m4/getsubopt.m4: New file.
69112
69113 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         Merge from coreutils.
69116
69117         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69118         * m4/getcwd-path-max.m4: New files.
69119
69120         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69121         FILESYSTEM_PREFIX_LEN ->
69122         FILE_SYSTEM_PREFIX_LEN.
69123         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69124         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69125         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69126         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69127
69128         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69129         prerequisite modules now handle the DOS stuff.
69130         Don't check for unistd.h.
69131
69132 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         Merge from coreutils.
69135
69136         * lib/.gdb-history: Remove; this doesn't belong here.
69137
69138         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69139         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69140         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69141         * lib/getcwd.c: New files.
69142
69143         * lib/dirname.h: Include <stdbool.h>.
69144         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69145         for consistency with POSIX terminology.  All uses changed.
69146         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69147         (strip_trailing_slashes): Use bool for booleans.
69148         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69149
69150         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69151         sometimes returns a positive errno value even when it succeeds.
69152         (print_errno_message) [!LIBC]: Fall back on strerror if
69153         __strerror_r fails.
69154
69155         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69156         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69157         (longest_relative_suffix): New function.
69158         (path_concat): Use it.  Assume first argument is not NULL.
69159         Port to DOS.  Omit redundant separators.
69160         Report an error instead of returning NULL.
69161         Use mempcpy instead of memcpy.
69162         (xpath_concat): Remove: not declared or used.
69163
69164         * lib/same.h: Include <stdbool.h>
69165         (same_name): Return bool, not int.
69166         * lib/same.c (same_name): Likewise.
69167         (errno): Don't declare; we assume C89 or better now.
69168
69169         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69170         if not already defined.
69171
69172         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69173         * lib/dup-safer.c (errno): Likewise.
69174
69175 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         Merge from coreutils.
69178         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69179         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69180         * modules/path-concat: Don't depend on strdup.
69181
69182 2004-08-03  Simon Josefsson  <jas@extundo.com>
69183
69184         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69185         * lib/progname.h: Don't include stdbool.h.
69186
69187 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69190         * MODULES.html.sh (func_all_modules): Remove fatal.
69191
69192 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69193
69194         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69195
69196 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69197
69198         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69199         working.
69200
69201 2004-08-02  Simon Josefsson  <jas@extundo.com>
69202
69203         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69204         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69205         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69206
69207 2004-08-01  Simon Josefsson  <jas@extundo.com>
69208
69209         * lib/xgetdomainname.c: Include stdlib.h, for free().
69210
69211 2004-07-19  Bruno Haible  <bruno@clisp.org>
69212
69213         * MODULES.html.sh (func_all_modules): Add dummy.
69214
69215 2004-07-16  Simon Josefsson  <jas@extundo.com>
69216
69217         * modules/dummy: New file.
69218
69219 2004-07-16  Simon Josefsson  <jas@extundo.com>
69220
69221         * lib/dummy.c: New file.
69222
69223 2004-07-16  Bruno Haible  <bruno@clisp.org>
69224
69225         * lib/backupfile.h: Add extern "C" for C++.
69226         * lib/closeout.h: Likewise.
69227         * lib/copy-file.h: Likewise.
69228         * lib/findprog.h: Likewise.
69229         * lib/full-write.h: Likewise.
69230         * lib/pathname.h: Likewise.
69231         * lib/progname.h: Likewise.
69232         * lib/stpcpy.h: Likewise.
69233         * lib/stpncpy.h: Likewise.
69234         * lib/strcase.h: Likewise.
69235         * lib/strstr.h: Likewise.
69236         * lib/xalloc.h: Likewise.
69237
69238         * lib/mbswidth.h: Add extern "C" for C++.
69239         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69240
69241 2004-07-13  Robert Millan  <robertmh@gnu.org>
69242
69243         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69244
69245 2004-07-09  Simon Josefsson  <jas@extundo.com>
69246
69247         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69248         failed without this.)
69249
69250 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69251
69252         * modules/chown (Files): Add lib/fchown-stub.c, since
69253         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69254
69255 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69256
69257         * lib/fchown-stub.c: New file.
69258
69259 2004-06-24  Jim Meyering  <jim@meyering.net>
69260
69261         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69262
69263 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69264
69265         * modules/argz: Omit "#include".
69266
69267         * MODULES.html.sh (func_all_modules): Add calloc, to match
69268         2004-06-01 addition of calloc module.
69269
69270 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         * m4/argz.m4: New file, which is autoupdated from libtool.
69273
69274 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69277         libtool.
69278
69279 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69280
69281         * config/srclist-update: Don't insist on "USA." before the
69282         close-comment, as libtool omits the period and puts the */ on a
69283         separate line.
69284         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69285         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69286
69287 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69288
69289         * modules/argz: New file.
69290         * MODULES.html.sh (func_all_modules): Add argz.
69291
69292 2004-06-12  Jim Meyering  <jim@meyering.net>
69293         and  Paul Eggert  <eggert@cs.ucla.edu>
69294
69295         * modules/hash (Files): Add lib/xalloc.h.
69296         * modules/pipe (Depends-on): Add wait-process.
69297         * modules/stat (Depends-on): Add xalloc.
69298         * modules/userspec (Files): Add lib/userspec.h.
69299         * modules/xstrto
69300
69301         Upgrade from gettext-0.13.
69302         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69303         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69304         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69305
69306 2004-06-10  Jim Meyering  <jim@meyering.net>
69307
69308         * lib/calloc.c: New file.
69309
69310 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69311
69312         * lib/getdate.y (yylex): Allow space between sign and number.
69313         Problem reported by Dan Jacobson.
69314
69315 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69316
69317         Merge from coreutils CVS.
69318
69319         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69320         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69321         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69322         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69323         xstrtol.m4: Fix copyright date and/or serial number.
69324
69325         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69326         See if we need an fchown replacement.
69327         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69328         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69329         and use the replacement function if we detect either defect.
69330
69331         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69332         gl_UTIMECMP.
69333
69334 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69335         and  Jim Meyering  <jim@meyering.net>
69336
69337         Merge from coreutils CVS.
69338
69339         * lib/stat-macros.h: New file, with contents from file-type.h
69340         and coreutils' system.h.
69341         * lib/file-type.c: Include "stat-macros.h".
69342         * lib/file-type.h (file_type): Move all macro definitions to new file,
69343         stat-macros.h.
69344
69345         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69346         Wrap old code with this conditional.
69347         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69348         function that does not dereference symlinks.
69349         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69350
69351         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69352         dependency problems.
69353         (xreadlink): Accept new arg SIZE, for efficiency.
69354         All decls and uses changed.
69355         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69356
69357         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69358         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69359
69360         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69361         sysexits.h.
69362
69363 2004-06-01  Jim Meyering  <jim@meyering.net>
69364
69365         * m4/calloc.m4: New file.
69366
69367 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69370         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69371         Also, fix a typo in a diagnostic.
69372
69373 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69374
69375         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69376         or AC_FUNC_REALLOC.
69377
69378 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69379
69380         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69381         macros to be defined.
69382         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69383         the allocator returns NULL because the requested size is zero.
69384
69385 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69388         var.  Add comment explaining why libc still defines it.  This
69389         merges the following patch from glibc:
69390         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69391
69392 2004-05-20  Andreas Schwab  <schwab@suse.de>
69393
69394         * m4/free.m4: Replace free if it not known to work, not the other
69395         way round.
69396
69397 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69400         present in glibc since revision 1.1 of this file.
69401         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69402         obstack_alignment_mask, obstack_alloc, obstack_base,
69403         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69404         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69405         obstack_grow0, obstack_init, obstack_int_grow,
69406         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69407         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69408         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69409         nonexistent functions.
69410
69411 2004-05-18  Karl Berry  <karl@gnu.org>
69412
69413         * config/srclist.txt: break link for vasnprintf.c.
69414
69415 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69416
69417         Port obstack to the AS/400, where pointers are 16 bytes wide and
69418         you cannot cast an integer to a valid pointer.  This patch is
69419         currently waiting to be integrated into glibc; see
69420         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69421
69422         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69423         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69424         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69425         (struct obstack): temp member is now a union of a pointer and
69426         an integer, instead of an integer.  All integer uses changed.
69427         This does not affect the physical layout of struct obstack,
69428         except on hosts (like the AS/400) where the size or alignment of
69429         void * is greater than that of ptrdiff_t.
69430         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69431         __STDC__)]: Store temporary in pointer member of union, not
69432         integer member.
69433         * lib/obstack.c: Include <stddef.h>, for offsetof.
69434         (struct fooalign): Remove; it doesn't need a name.
69435         (union fooround): Change double to long double, and add void *.
69436         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69437         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69438         not a macro.  Hence the values are always int; so remove all
69439         casts-to-int in uses.
69440
69441 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69442
69443         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69444         we can get this patch merged into glibc.
69445
69446 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69447             Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         * m4/argp: Depend on alloca.
69450
69451 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69452             Paul Eggert  <eggert@cs.ucla.edu>
69453
69454         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69455         freecoding.
69456
69457 2004-05-17  Bruno Haible  <bruno@clisp.org>
69458
69459         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69460         precision that consists of a '.' followed by an empty digit string.
69461         Patch by Tor Lillqvist <tml@iki.fi>.
69462
69463 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69464
69465         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
69466         for backward compatibility with older code.  We need our own
69467         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
69468         it under some other name, and our alloca.h will define it.
69469
69470 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69471             Derek Price  <derek@ximbiot.com>
69472
69473         * lib/alloca.c: Include <alloca.h>, to get our interface.
69474         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
69475         include <alloca.h> first.  Use C89 prototype for alloca; this
69476         requires including <stddef.h> for size_t.  Use extern "C" if C++.
69477         Use #elif for simplicity, since we can assume C89 now.
69478         Don't try to source the system alloca.h since it will not be found
69479         and to prevent recursively including its replacement.
69480         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
69481         * lib/regex.c: Likewise.
69482
69483 2004-05-16  Derek Price  <derek@ximbiot.com>
69484             Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         getline cleanup.  This changes the getndelim2 API: both order of
69487         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
69488         no delimiter).
69489
69490         * lib/getline.c: Don't include stddef.h or stdio.h, since our
69491         interface does that.
69492         (getline): Always use getdelim, so that we don't have two
69493         copies of this code.
69494         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
69495         if available.
69496         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
69497         (GETNDELIM2_MAXIMUM): New macro.
69498         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
69499         instead of the old practice of delim2==0.  All callers changed.
69500         Return -1 on overflow, instead of returning junk.
69501         Do not set *linesize unless allocation succeeds.
69502         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
69503         that we include sys/types.h.
69504         * lib/getnline.h: Likewise.
69505         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
69506         (getndelim2): Reorder arguments.
69507         * lib/getnline.c (getnline, getndelim):
69508         Don't discard the NMAX argument.
69509         (getnline): Invoke getndelim, to avoid code duplication.
69510         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
69511         of (size_t) -1 by callers of the getnline family.
69512
69513 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
69516         Check for gettimeofday.
69517         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
69518         Check for settimeofday, stime.
69519
69520 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         * lib/nanosleep.c (suspended): Change its type from int to
69523         sig_atomic_t volatile.
69524         (first_call): Make it private to rpl_nanosleep, and have it
69525         be zero initially as that's a bit faster.
69526         (my_usleep): Round up fractional times instead of truncating them,
69527         as this is the usual meaning for 'sleep'.
69528
69529         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
69530         doesn't work.
69531         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
69532         (ENOSYS): Define if not defined.
69533         (settime): Fall back on stime if it exists and settimeofday fails.
69534         But don't bother with fallbacks if a method fails with errno == EPERM.
69535
69536 2004-05-11  Jim Meyering  <jim@meyering.net>
69537
69538         Prior to this change, the save_cwd caller required read access to the
69539         current directory on most systems (ones with the fchdir function).
69540
69541         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
69542         fails, try write-only, and finally, resort to using xgetcwd.
69543
69544 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69545
69546         * lib/obstack.c, obstack.h: Import changes from libc.
69547
69548 2004-04-28  Bruno Haible  <bruno@clisp.org>
69549
69550         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
69551         also implicitly appends .exe to executables.
69552         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
69553         accepts Windows pathnames.
69554         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69555         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69556         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69557         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69558         Reported by Derek Robert Price <derek@ximbiot.com>.
69559
69560 2004-04-21  Karl Berry  <karl@gnu.org>
69561
69562         * config/srclist.txt (localcharset.c): break sync.
69563
69564 2004-04-20  Paul Eggert  <eggert@twinsun.com>
69565
69566         * m4/host-os.m4: Add a copyright notice.
69567
69568 2004-04-20  Jim Meyering  <jim@meyering.net>
69569
69570         Change UTILS_ to gl_ in AC_DEFINE'd names.
69571         Change utils_- and jm_-prefixed variables, too.
69572         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
69573         UTILS_FUNC_MKDIR_TRAILING_SLASH.
69574         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
69575
69576         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
69577         Don't emit trailing blanks.
69578         Also rename jm_-prefixed variables to have gl_ prefix.
69579
69580         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
69581         Also rename jm_-prefixed variables to have gl_ prefix.
69582
69583         * m4/jm-macros.m4: Reflect the renamings.
69584         * m4/prereq.m4: Likewise.
69585
69586 2004-04-20  Jim Meyering  <jim@meyering.net>
69587
69588         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
69589         memory.
69590
69591 2004-04-20  Jim Meyering  <jim@meyering.net>
69592             Bruno Haible  <bruno@clisp.org>
69593
69594         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
69595         memory when realloc fails.
69596
69597 2004-04-19  Jim Meyering  <jim@meyering.net>
69598
69599         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
69600         now that readutmp.c may call `free (0)'.
69601
69602 2004-04-19  Bruno Haible  <bruno@clisp.org>
69603
69604         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
69605         * m4/inttypes_h.m4: Likewise.
69606         * m4/stdint_h.m4: Likewise.
69607         * m4/intmax_t.m4: Likewise.
69608         * m4/uintmax_t.m4: Likewise.
69609
69610 2004-04-18  Jim Meyering  <jim@meyering.net>
69611
69612         * m4/prereq.m4: Don't forbid jm_ prefix.
69613
69614         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
69615         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
69616         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
69617         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
69618         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
69619         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
69620         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
69621         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
69622         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
69623         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
69624         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
69625         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
69626         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
69627         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
69628         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
69629         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
69630         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
69631         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
69632         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
69633
69634 2004-04-18  Jim Meyering  <jim@meyering.net>
69635
69636         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
69637         failure, don't leak memory and do call END_UTMP_ENT.
69638
69639 2004-04-16  Jim Meyering  <jim@meyering.net>
69640
69641         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
69642         coreutils' stat program.
69643         (gl_PREREQ): Don't require jm_PREREQ_STAT.
69644
69645 2004-04-11  Paul Eggert  <eggert@twinsun.com>
69646
69647         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
69648         C89.
69649         (CHAR_BIT): Remove, since we assume C89.
69650         Include <stdint.h> if available, as per current Autoconf CVS advice.
69651
69652 2004-03-31  Jim Meyering  <jim@meyering.net>
69653
69654         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
69655         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
69656         * m4/xalloc.m4: Likewise.
69657
69658 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69659
69660         Merge from coreutils.
69661
69662         * m4/inttostr.m4: New file.
69663         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
69664         Require AM_STDBOOL_H and gl_TIMESPEC instead.
69665         Require gl_CLOCK_TIME.
69666         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
69667
69668 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69669
69670         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
69671         not bool, to be more consistent with Unix conventions.
69672         Suggested by Bruno Haible.
69673
69674         Merge from coreutils.
69675
69676         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
69677         * lib/umaxtostr.c: New files.
69678
69679         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
69680         the usual <time.h> dance.
69681         (get_date): Change signature to support fractional time stamps.
69682         All callers changed.
69683         * lib/getdate.y: Include "getdate.h" first, as we can now
69684         assume C89 and don't need to worry about 'const'.
69685         Similarly, include "unlocked-io.h" near start, not in middle.
69686         Include <limits.h>.
69687         (textint.value): Use long int rather than int.
69688         (textint.digits): Use size_t rather than int.
69689         (BILLION, LOG10_BILLION): New constants.
69690         (parser_control): New member rel_ns.  Members day_ordinal,
69691         time_zone, month, day, hour, minutes, rel_year, rel_month,
69692         rel_day, rel_hour, rel_minutes, rel_seconds
69693         are now long int, not int.  Member seconds is now struct timespec,
69694         not int.  New member timespec_seen.  Members dates_seen, days_seen,
69695         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
69696         not int.
69697         (%union.intval): Now long int, not int.
69698         New member timespec.
69699         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
69700         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
69701         (spec): Now is a timespec or an item list.
69702         (timespec, items): New nonterminals.
69703         (time, rel, relunit, number, get_date):
69704         Add support for fractional seconds.
69705         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
69706         (gmtime, localtime, mktime): Remove decls; not needed with C89.
69707         (to_hour): First arg is now long int, not int.
69708         (to_year): Returns long int, not int.
69709         Don't treat year -70 like 70.
69710         (tm_diff): Returns long int, not int.
69711         (lookup_word): Use bool instead of int when appropriate.
69712         (yylex): Use size_t for count, not int.
69713         Detect overflow when parsing large integer constants.
69714         Add support for fractions.
69715         (get_date): Make pointers 'const' if possible.
69716         Use more-portable code to detect integer overflow.
69717         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
69718         Don't use ctime; it's not reliable if the year has >4 digits.
69719
69720         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
69721         This is for compatibility with BSD.
69722
69723         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
69724         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
69725         From coreutils' system.h.
69726
69727         * lib/userspec.c: Don't include "posixver.h".
69728         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
69729         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
69730         compatible extension.  Simplify code by removing a boolean int
69731         that was always nonzero if a string was nonnull.
69732
69733 2004-03-30  Jim Meyering  <jim@meyering.net>
69734
69735         Merge from coreutils.
69736
69737         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
69738         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
69739         on some systems one must include <grp.h> before it.
69740         Reported by Christian Krackowizer.
69741
69742 2004-03-30  Jim Meyering  <jim@meyering.net>
69743
69744         Merge from coreutils.
69745
69746         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
69747
69748         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
69749         an empty input stream.
69750
69751         * lib/readtokens.c: Include <stdbool.h>.
69752         (readtoken): Use `size_t' rather than int/long.
69753         All callers adjusted.
69754         Use `bool' rather than `int' where appropriate.
69755         Use memset rather than an explicit loop.
69756         Use x2nrealloc rather than xrealloc.
69757         Allow the use of `\0' as a delimiter.
69758         (readtokens): Likewise.
69759         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
69760
69761 2004-03-30  Jim Meyering  <jim@meyering.net>
69762
69763         * m4/realloc.m4: Remove file, since now it does no more than
69764         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
69765         the `configure.ac' section of module/realloc.
69766         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
69767
69768 2004-03-30  Bruno Haible  <bruno@clisp.org>
69769
69770         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
69771         nonnull.
69772
69773 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69774
69775         Merge changes to getloadavg.c from coreutils and Emacs.
69776
69777         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
69778         Define to an expression, not to the empty string.
69779         Include cloexec.h and xalloc.h.
69780         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
69781         Use set_cloexec_flag rather than rolling our own.
69782         * lib/cloexec.c, lib/cloexec.h: New files.
69783
69784 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69785
69786         * m4/cloexec.m4: New file.
69787
69788 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69789
69790         * lib/getopt.h: Sync with libc CVS.
69791
69792 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69793             Bruno Haible  <bruno@clisp.org>
69794
69795         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
69796         mbswidth.
69797
69798 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69799             Bruno Haible  <bruno@clisp.org>
69800
69801         * lib/mbswidth.h: Include <wchar.h> only if
69802         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69803         <wchar.h>.
69804         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69805
69806 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69807
69808         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69809         Sync with libc CVS.
69810         * lib/getopt_int.h: New file, also synced from libc.
69811
69812 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69813
69814         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69815         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69816         Bring back getopt.c, getopt.h, getopt1.c.
69817
69818 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69819
69820         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69821         All uses changed.  Check for sa_sigaction member; this fixes
69822         a bug first reported by Jason Andrade in
69823         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69824
69825 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69826
69827         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69828         '#if' expressions.  Unlike the code it replaces, it does not
69829         depend on (defined _SC_PAGESIZE).  However, it does depend on
69830         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69831         first reported by Jason Andrade in
69832         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69833
69834 2004-02-25  Simon Josefsson  <jas@extundo.com>
69835
69836         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69837
69838 2004-02-25  Simon Josefsson  <jas@extundo.com>
69839
69840         * lib/strdup.h: New file.
69841         * lib/strdup.c: Include it.
69842         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69843         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69844
69845 2004-02-23  Karl Berry  <karl@gnu.org>
69846
69847         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69848         (from fencepost.gnu.org:/gd/gnuorg).
69849
69850 2004-02-23  Karl Berry  <karl@gnu.org>
69851
69852         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69853         * config/srclist.txt: add maintain/standards documents.
69854
69855 2004-02-18  Bruno Haible  <bruno@clisp.org>
69856
69857         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69858         Reported by Derek Robert Price <derek@ximbiot.com>.
69859
69860 2004-02-16  Karl Berry  <karl@gnu.org>
69861
69862         * config/mkinstalldirs, install-sh: update from automake.
69863
69864 2004-02-06  Karl Berry  <karl@gnu.org>
69865
69866         * m4/po.m4: update from gettext 0.14.1.
69867
69868 2004-02-06  Karl Berry  <karl@gnu.org>
69869
69870         * lib/config.charset: update from gettext 0.14.1.
69871
69872 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69873
69874         Add comments and code, prompted by suggestions from Bruno Haible
69875         for sh-quote.
69876         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69877         describing the enum quoting_style values.
69878         * lib/quotearg.c (quotearg_alloc): New function.
69879         (quotearg_buffer_restyled): Treat lone { and } as special.
69880         Treat = as special.  Work around bug with older shells
69881         that "see" a '\' that is really the 2nd byte of a multibyte char.
69882         Quote empty string with shell_quoting_style.
69883
69884 2004-02-03  Bruno Haible  <bruno@clisp.org>
69885
69886         * m4/pipe.m4: New file, from GNU gettext.
69887
69888 2004-02-03  Bruno Haible  <bruno@clisp.org>
69889
69890         * lib/pipe.h: New file, from GNU gettext.
69891         * lib/pipe.c: New file, from GNU gettext.
69892
69893 2004-01-27  Bruno Haible  <bruno@clisp.org>
69894
69895         * m4/execute.m4: New file, from GNU gettext.
69896
69897 2004-01-27  Bruno Haible  <bruno@clisp.org>
69898
69899         * lib/execute.h: New file, from GNU gettext.
69900         * lib/execute.c: New file, from GNU gettext.
69901         * lib/w32spawn.h: New file, from GNU gettext.
69902
69903 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69904
69905         Merge from diffutils.
69906
69907         * lib/file-type.c (file_type): Add typed memory objects.
69908         * lib/file-type.h (S_TYPEISTMO): New macro.
69909
69910         * lib/c-stack.h (c_stack_action): Remove argv argument.
69911         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69912         (die): Don't calculate message unless segv_action returns.
69913         (get_stack_location, min_address_from_argv, max_address_from_argv,
69914         volatile stack_base, volatile_stack_size): Remove.
69915         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69916         that every segmentation violation is a stack overflow.  (Ouch!)
69917         See Debian bug 136249 (still outstanding) for more info about why
69918         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69919
69920 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69921
69922         Exit-status fix from coreutils.
69923
69924         Use exit_failure consistently in place of EXIT_FAILURE,
69925         so that program exit statuses are consistent on failure.
69926
69927         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69928         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69929         * lib/argmatch.h: Comment fix to match the above.
69930         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69931         Now a macro referring to exit_failure, instead of a separate
69932         variable.  Include "exitfail.h" to get it.
69933         * lib/xstrtol.h: Include "exitfail.h".
69934         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69935
69936         * lib/long-options.c (parse_long_options): Use prototype
69937         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69938         for clarity.
69939
69940 2004-01-21  Jim Meyering  <jim@meyering.net>
69941
69942         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69943         so as not to conflict with a different-sized __mktime_internal
69944         function in GNU libc.
69945         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69946         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69947
69948 2004-01-20  Karl Berry  <karl@gnu.org>
69949
69950         * config/config.guess: update from config.
69951
69952         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69953
69954 2004-01-20  Bruno Haible  <bruno@clisp.org>
69955
69956         Safer stack allocation.
69957         * lib/setenv.c: Include allocsa.h.
69958         (alloca): Remove fallback definition.
69959         (freea): Remove macro.
69960         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69961         instead of freea.
69962
69963 2004-01-20  Bruno Haible  <bruno@clisp.org>
69964
69965         * m4/eealloc.m4: New file, from GNU gettext.
69966
69967 2004-01-20  Bruno Haible  <bruno@clisp.org>
69968
69969         * m4/allocsa.m4: New file, from GNU gettext.
69970
69971 2004-01-20  Bruno Haible  <bruno@clisp.org>
69972
69973         * lib/xallocsa.h: New file, from GNU gettext.
69974         * lib/xallocsa.c: New file, from GNU gettext.
69975
69976 2004-01-20  Bruno Haible  <bruno@clisp.org>
69977
69978         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69979
69980 2004-01-20  Bruno Haible  <bruno@clisp.org>
69981
69982         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69983         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69984         specially.
69985
69986 2004-01-20  Bruno Haible  <bruno@clisp.org>
69987
69988         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69989         patch.
69990
69991 2004-01-20  Bruno Haible  <bruno@clisp.org>
69992
69993         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69994
69995 2004-01-20  Bruno Haible  <bruno@clisp.org>
69996
69997         * lib/eealloc.h: New file.
69998
69999 2004-01-20  Bruno Haible  <bruno@clisp.org>
70000
70001         * lib/binary-io.h: Avoid warnings on Cygwin.
70002
70003 2004-01-20  Bruno Haible  <bruno@clisp.org>
70004
70005         * lib/allocsa.h: New file, from GNU gettext.
70006         * lib/allocsa.c: New file, from GNU gettext.
70007
70008 2004-01-18  Karl Berry  <karl@gnu.org>
70009
70010         * doc/gpl.texi, doc/lgpl.texi: new files.
70011
70012 2004-01-18  Karl Berry  <karl@gnu.org>
70013
70014         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70015         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70016
70017 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70018
70019         Merge from coreutils.
70020
70021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70022         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70023         (gl_DEFAULT_POSIX2_VERSION): Move
70024         the documentation from 'configure' into 'config.hin',
70025         so that 'configure --help' isn't burdened by it and
70026         we don't have to worry about its formatting there.
70027         Reword the documentation so that it's more succinct
70028         and can be run together into a single paragraph.
70029         * m4/same.m4 (gl_SAME): Check for pathconf.
70030
70031 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70032
70033         Merge from coreutils.
70034
70035         * lib/posixver.c: Include posixver.h.
70036
70037         * lib/same.c: Include <stdbool.h>, <limits.h>.
70038         (_POSIX_NAME_MAX): Define if not defined.
70039         (MIN): New macro.
70040         (same_name): If file names are silently truncated, report
70041         that the file names are the same if they are the same after
70042         the silent truncation.
70043
70044         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70045         conversion function.
70046         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70047         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70048         longer needed.
70049
70050 2004-01-15  Jim Meyering  <jim@meyering.net>
70051
70052         Merge from coreutils.
70053
70054         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70055         if no library is required.
70056         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70057         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70058         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70059         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70060         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70061         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70062         value, $ac_cv_search_crypt, if it's "none required".
70063         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70064         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70065         not gl_FUNC_GETLOADAVG.
70066         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70067         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70068
70069 2004-01-15  Jim Meyering  <jim@meyering.net>
70070
70071         Merge from coreutils.
70072
70073         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70074         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70075         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70076
70077         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70078         optional configure-time default.
70079
70080         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70081
70082         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70083
70084 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70085
70086         Merge from coreutils.
70087
70088         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70089         value, $ac_cv_search_nanosleep, if it's "none required".
70090
70091 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70092
70093         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70094         with like-named macro in fnmatch.c.
70095         (EXT): Use an internal constant instead.
70096
70097         Merge fnmatch patches from glibc.
70098         * lib/fnmatch.c (mbsinit): Remove define.
70099         Add libc_hidden_ver (__fnmatch, fnmatch).
70100         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70101         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70102
70103 2004-01-14  Karl Berry  <karl@gnu.org>
70104
70105         * config/install-sh: update from automake.
70106
70107 2004-01-13  Karl Berry  <karl@gnu.org>
70108
70109         * config/install-sh: update from automake.
70110
70111 2004-01-09  Karl Berry  <karl@gnu.org>
70112
70113         * config/install-sh: update from automake.
70114
70115 2004-01-05  Karl Berry  <karl@gnu.org>
70116
70117         * config/config.{sub,guess}: update from config.
70118
70119 2003-12-31  Karl Berry  <karl@gnu.org>
70120
70121         * config/depcomp: update from automake.
70122
70123 2003-12-14  Karl Berry  <karl@gnu.org>
70124
70125         * lib/config.charset: update from gettext-runtime.
70126
70127 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70128
70129         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70130         Bug reported by Alfred M. Szmidt.
70131
70132 2003-12-03  Bruno Haible  <bruno@clisp.org>
70133
70134         * m4/gettext.m4: Upgrade from gettext-0.13.
70135         * m4/po.m4: Upgrade from gettext-0.13.
70136         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70137         * m4/intmax.m4: New file, from gettext-0.13.
70138         * m4/printf-posix.m4: New file, from gettext-0.13.
70139
70140 2003-11-29  Karl Berry  <karl@gnu.org>
70141
70142         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70143
70144 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70145             Bruno Haible  <bruno@clisp.org>
70146
70147         * lib/printf-parse.h: Don't include sys/types.h.
70148         (ARG_NONE): New macro.
70149         (char_directive): Change type of *arg_index fields to size_t.
70150         * lib/printf-parse.c: Don't include sys/types.h.
70151         (SSIZE_MAX): Remove macro.
70152         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70153         Remove unnecessary overflow check.
70154         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70155         fields.
70156
70157 2003-11-25  Bruno Haible  <bruno@clisp.org>
70158
70159         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70160
70161 2003-11-25  Bruno Haible  <bruno@clisp.org>
70162
70163         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70164         gt_TYPE_SSIZE_T.
70165
70166 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70167
70168         * modules/alloca: Remove dependency on xalloc.
70169
70170 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70171
70172         * lib/alloca.c: Remove dependency on xalloc module.
70173         (xalloc_die): Remove.
70174         (memory_full) [!defined emacs]: New macro.
70175         [!defined emacs]: Don't include xalloc.h.
70176         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70177         address arithmetic overflows.  Change datatypes a bit to avoid
70178         unnecessary casts.
70179
70180 2003-11-22  Jim Meyering  <jim@meyering.net>
70181
70182         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70183         s/size/size_t/.
70184
70185 2003-11-21  Karl Berry  <karl@gnu.org>
70186
70187         * config/config.{sub,guess}: update from config.
70188
70189 2003-11-18  Karl Berry  <karl@gnu.org>
70190
70191         * config/config.{sub,guess}: update from config.
70192
70193         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70194
70195 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70196
70197         * README: Mention that S+T cannot overflow if S is the size of
70198         an existing object and T is sufficiently small.
70199
70200 2003-11-17  Jim Meyering  <jim@meyering.net>
70201
70202         On systems without utime and without a utimes function capable of
70203         dealing with a NULL struct utimbuf* argument, this utime replacement
70204         could -- in unusual circumstances -- leak a file descriptor.
70205         * lib/utime.c: Include <unistd.h> and <errno.h>.
70206         (utime_null): Be sure to close `fd' and to preserve errno.
70207         Reported by Geoff Collyer via Arnold Robbins.
70208
70209 2003-11-17  Bruno Haible  <bruno@clisp.org>
70210
70211         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70212         (Depends-on): Add xsize.
70213
70214 2003-11-17  Bruno Haible  <bruno@clisp.org>
70215
70216         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70217
70218 2003-11-17  Bruno Haible  <bruno@clisp.org>
70219
70220         * lib/vasnprintf.c (alloca): Remove fallback definition.
70221         (freea): Remove definition.
70222         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70223         Reported by Paul Eggert.
70224
70225 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70226             Bruno Haible  <bruno@clisp.org>
70227
70228         Protect against address arithmetic overflow.
70229         * lib/printf-args.h: Include stddef.h.
70230         (arguments): Change type of field 'count' to size_t.
70231         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70232         'unsigned int' where appropriate.
70233         * lib/printf-parse.h: Include sys/types.h.
70234         (char_directive): Change type of *arg_index fields to ssize_t.
70235         (char_directives): Change type of fields 'count', max_*_length to
70236         size_t.
70237         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70238         (SSIZE_MAX): Define fallback value.
70239         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70240         instead of 'int' where appropriate. Check a_allocated, d_allocated
70241         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70242         * lib/vasnprintf.c: Include xsize.h.
70243         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70244         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70245         overflow. Avoid wraparound when converting a width or precision from
70246         decimal to binary.
70247
70248 2003-11-16  Bruno Haible  <bruno@clisp.org>
70249
70250         Update from GNU gettext.
70251         * lib/printf-parse.c: Generalize to it can be compiled for wide
70252         strings.
70253         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70254         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70255         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70256         SNPRINTF): New macros.
70257         Don't include <alloca.h> if the file is used inside libintl.
70258         (local_wcslen): New function, for Solaris 2.5.1.
70259         (VASNPRINTF): Use it instead of wcslen.
70260
70261 2003-11-16  Bruno Haible  <bruno@clisp.org>
70262
70263         * lib/xsize.h (xmax): New function.
70264         (xsum, xsum3, xsum4): Declare as "pure" functions.
70265
70266 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70267
70268         * modules/xalloc (Files): Undo latest change, since xalloc.h
70269         no longer needs SIZE_MAX or PTRDIFF_MAX.
70270
70271 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70272
70273         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70274         gl_PTRDIFF_MAX.
70275
70276 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70277
70278         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70279         "return", to pacify some unknown compiler.  Problem reported
70280         by Joerg Schilling.
70281
70282 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70283
70284         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70285         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70286         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70287         heuristic is just as accurate as far as we know, and it removes a
70288         dependency on size_max.m4 and ptrdiff_max.m4.
70289
70290 2003-11-11  Bruno Haible  <bruno@clisp.org>
70291
70292         * modules/xsize (Files): Add m4/size_max.m4.
70293         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70294
70295 2003-11-11  Bruno Haible  <bruno@clisp.org>
70296
70297         * m4/size_max.m4: New file.
70298         * m4/ptrdiff_max.m4: New file.
70299         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70300         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70301         (gl_XALLOC): Invoke it.
70302
70303 2003-11-11  Bruno Haible  <bruno@clisp.org>
70304
70305         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70306         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70307         defined.
70308
70309 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70310
70311         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70312         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70313         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70314         From Bruno Haible.
70315         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70316         not (size_t) -1, since it's defined here.
70317
70318 2003-11-09  Karl Berry  <karl@gnu.org>
70319
70320         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70321
70322 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70323
70324         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70325         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70326         Reject sizes of exactly SIZE_MAX bytes.
70327         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70328         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70329
70330 2003-11-05  Bruno Haible  <bruno@clisp.org>
70331
70332         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70333         SIZE_MAX defined in <limits.h> on Solaris.
70334
70335 2003-11-04  Jim Meyering  <jim@meyering.net>
70336
70337         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70338         variable names, rather than @VAR@.
70339         * modules/poll: Likewise.
70340
70341 2003-11-04  Bruno Haible  <bruno@clisp.org>
70342
70343         * modules/xsize: New file.
70344         * modules/linebreak: Depend on xsize.
70345         * MODULES.html.sh (func_all_modules): Add xsize.
70346
70347 2003-11-04  Bruno Haible  <bruno@clisp.org>
70348
70349         * m4/xsize.m4: New file.
70350
70351 2003-11-04  Bruno Haible  <bruno@clisp.org>
70352
70353         * lib/xsize.h: New file.
70354         * lib/linebreak.c: Include xsize.h.
70355         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70356         argument for overflow.
70357         Suggested by Paul Eggert.
70358
70359 2003-11-03  Karl Berry  <karl@gnu.org>
70360
70361         * config/config.{guess,sub}: update from config.
70362
70363 2003-11-03  Jim Meyering  <jim@meyering.net>
70364
70365         * modules/userspec (lib_SOURCES): Add userspec.h.
70366         (Include): Add "userspec.h".
70367         Improve description.
70368
70369 2003-11-03  Jim Meyering  <jim@meyering.net>
70370
70371         * lib/userspec.c: Include "userspec.h".
70372         * lib/userspec.h: New file.
70373
70374 2003-11-03  Bruno Haible  <bruno@clisp.org>
70375
70376         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70377
70378 2003-11-03  Bruno Haible  <bruno@clisp.org>
70379
70380         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70381         available, to avoid (extremely rare) race condition.
70382         Suggested by Paul Eggert.
70383
70384 2003-11-02  Karl Berry  <karl@gnu.org>
70385
70386         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70387
70388 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70389
70390         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70391         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70392         (read_filesystem_list): Set and use me_type_malloced.
70393         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70394         whatever the type happens to be), for brevity and consistency.
70395         Check for size calculation overflow on Alphas running OSF/1.
70396
70397 2003-10-31  Jim Meyering  <jim@meyering.net>
70398
70399         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70400
70401         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70402
70403 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70404             Bruno Haible  <bruno@clisp.org>
70405
70406         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70407         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70408
70409 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70410
70411         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70412         netbsd*-gnu*.  Suggested by Robert Millan.
70413
70414 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70415
70416         * modules/group-member: Depend on stdbool.
70417
70418 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70419
70420         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70421
70422 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70423
70424         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70425         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70426         after the 'gnu' in these cases.  This fixes some bugs in the
70427         previous change, and is based on suggestions by Robert Millan.
70428
70429 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70430
70431         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70432         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70433         no longer needed.
70434         * lib/quotearg.c (quotearg_n_options): Use it.
70435         * lib/group-member.c: Include <stdbool.h>.
70436         (free_group_info): Arg is now const *; don't free arg.
70437         (get_group_info): Now returns bool and accepts struct group_info *,
70438         rather than returning a malloc'ed struct group_info *.
70439         All uses changed.  Check for overflow in internal size calculation.
70440
70441         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70442         rather than xmalloc/xrealloc.
70443         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70444         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70445         conformance bug: the old code used a pointer after freeing the
70446         storage that it addressed.
70447         * lib/hash.c (hash_initialize): Simplify the code by using
70448         xalloc_oversized rather than doing it by hand.
70449         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70450         the buffer preserved.  Use free and xmalloc instead.
70451         * lib/quotearg.c (quotearg_n_options): Likewise.
70452         Use a simpler test for size overflow.  Don't use xalloc_oversized
70453         because unsigned int might be wider than size_t (!); this suggests
70454         that we should switch from unsigned int to size_t for slot numbers.
70455
70456 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70457
70458         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70459         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70460         NetBSD kernels.  Requested by Richard Stallman.
70461
70462 2003-10-27  Paul Eggert  <eggert@twinsun.com>
70463
70464         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
70465         to allocate the returned structure.  Do not allocate a subarray,
70466         as x2nrealloc will do that.
70467         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
70468         instead of xnrealloc.
70469         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
70470
70471 2003-10-27  Bruno Haible  <bruno@clisp.org>
70472
70473         * lib/stdbool_.h: Better support for BeOS.
70474
70475 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70476
70477         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
70478         now uses inline.
70479
70480 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70481
70482         * lib/xalloc.h (xalloc_oversized): New static inline function, for
70483         callers that want to do their own size-overflow checking.  Include
70484         <stdbool.h>, since xalloc_oversized returns bool.
70485         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
70486         to use xalloc_oversized.
70487
70488         Add two functions x2realloc, x2nrealloc, for programs that grow
70489         arrays dynamically by doubling their sizes.
70490         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
70491         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
70492         New functions.
70493
70494         Port to C99 semantics for 'inline' of external functions.
70495         Bug reported by Bruno Haible.
70496         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
70497         with the old contents of xnmalloc.
70498         (xnmalloc, xmalloc): Use it.
70499         (xnrealloc_inline): New static inline function,
70500         with the old contents of xnrealloc.
70501         (xnrealloc, xrealloc): Use it.
70502
70503         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
70504         that.
70505
70506 2003-10-26  Karl Berry  <karl@gnu.org>
70507
70508         * config/srclist.txt (COPYING.DOC): no longer available from
70509         /gd/gnuorg; don't know where the ultimate source is.
70510
70511 2003-10-25  Paul Eggert  <eggert@twinsun.com>
70512
70513         Fix several address-calculation bugs in the hash modules,
70514         plus some minor code cleanup.
70515
70516         * lib/hash.h: Include <stdbool.h>, for bool.
70517         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
70518         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
70519         hash_get_n_entries, hash_get_max_bucket_length,
70520         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
70521         hash_rehash): Use size_t rather than unsigned.
70522         * lib/hash.c (struct hash_table, hash_get_n_buckets,
70523         hash_get_n_buckets_used, hash_get_n_entries,
70524         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
70525         hash_get_entries, hash_do_for_each, hash_string, is_prime,
70526         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
70527         Likewise.
70528         (SIZE_MAX): Define if not defined.
70529         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
70530         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
70531         hash_print):
70532         Use const * when possible.
70533         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
70534         (check_tuning): Fix bug: if tuning parameters were very close to
70535         0 or 1, rounding errors could have caused subscript violations.
70536         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
70537         (hash_initialize): Add 'fail:' label
70538         to free table and return NULL, and use it to simplify code.
70539         Use calloc rather than clearing the storage ourself.
70540         (hash_initialize, hash_rehash): Check for arithmetic overflow in
70541         buffer size calculations.
70542         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
70543         Include <stddef.h>, for size_t.
70544         * lib/hash-pjw.c (hash_pjw): Likewise.
70545         Switch to method described by Bruno Haible.
70546         Include <limits.h>, for CHAR_BIT.
70547         (SIZE_BITS): New macro.
70548
70549 2003-10-23  Paul Eggert  <eggert@twinsun.com>
70550
70551         * m4/getline.m4 (AM_FUNC_GETLINE):
70552         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
70553         hosts.  Problem reported by Derek Robert Price in
70554         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
70555         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
70556         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
70557
70558 2003-10-21  Paul Eggert  <eggert@twinsun.com>
70559
70560         * lib/getndelim2.c (getndelim2): When size calculation overflows,
70561         ceiling the allocation at NMAX bytes rather than silently
70562         discarding input bytes before NMAX is reached.  This makes
70563         a difference only if NMAX exceeds SIZE_MAX / 2.
70564
70565         * lib/obstack.c: Merge from glibc.
70566         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
70567         Add libc_hidden_def (_obstack_newchunk).
70568         (_obstack_free) [! defined _LIBC]: Remove.
70569         [defined _LIBC]: Make a strong alias from obstack_free, rather than
70570         a clone of the function body.
70571         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
70572         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
70573
70574         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
70575         glibc.
70576         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
70577         arg to memcpy.
70578
70579         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
70580         (obstack_ptr_grow_fast, obstack_int_grow_fast):
70581         Don't use lvalue casts, as GCC plans to remove support for them
70582         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
70583         was also present in the non-GCC version, indicating that this
70584         code had always been buggy and had never been widely used.
70585         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
70586         Use the fast variant of each macro, rather than copying the
70587         definiens of the fast variant; that way, we'll be more likely to
70588         catch future bugs in the fast variants.
70589
70590 2003-10-20  Bruno Haible  <bruno@clisp.org>
70591
70592         * modules/wait-process: New file.
70593         * MODULES.html.sh (func_all_modules): Add wait-process.
70594
70595 2003-10-20  Bruno Haible  <bruno@clisp.org>
70596
70597         * m4/wait-process.m4: New file.
70598
70599 2003-10-20  Bruno Haible  <bruno@clisp.org>
70600
70601         * lib/wait-process.h: New file, from GNU gettext.
70602         * lib/wait-process.c: New file, from GNU gettext.
70603
70604 2003-10-19  Jim Meyering  <jim@meyering.net>
70605
70606         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
70607         HPUX 10.20.
70608
70609 2003-10-18  Karl Berry  <karl@gnu.org>
70610
70611         * config/config.guess: update from config.
70612
70613 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70614
70615         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
70616         (getgroups): First arg is int, not size_t.
70617         Don't let 'free' mangle errno.
70618
70619 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70620
70621         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
70622
70623 2003-10-16  Karl Berry  <karl@gnu.org>
70624
70625         * config/config.{guess,sub}: update from config.
70626
70627 2003-10-16  Jim Meyering  <jim@meyering.net>
70628
70629         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
70630         memcpy.
70631
70632 2003-10-15  Paul Eggert  <eggert@twinsun.com>
70633
70634         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
70635         (SIZE_MAX): Remove.
70636         (new_exclude, add_exclude_file): Initial size no longer needs to
70637         be a power of 2.
70638         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
70639         our own address arithmetic overflow checking.
70640
70641         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
70642         (fnmatch): Do not alloca more than 2000 wide characters;
70643         instead, use malloc for large buffers.
70644         Check for address arithmetic overflow, and return -1
70645         with errno set to ENOMEM in that case.
70646         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
70647         (NEW_PATTERN): Do not alloca more than 8000 bytes;
70648         instead, return -1.  Check for address arithmetic overflow.
70649
70650 2003-10-14  Paul Eggert  <eggert@twinsun.com>
70651
70652         Handle invalid suffixes and overflow independently, so that
70653         callers can treat them independently as needed.  Fix some bugs in
70654         suffix handling, e.g., "100k@" was not diagnosed as an invalid
70655         suffix for a human-readable blocksize.  The major caller-visible
70656         change is the addition of a new
70657         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
70658         that both overflow and suffix chars were found.
70659
70660         * lib/human.c (humblock): Don't check separately for invalid suffix
70661         char; that is xstrtoumax's job (now that its bug is fixed).
70662         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
70663         INTMAX_MAX]: New macros.
70664         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
70665         TYPE_MAXIMUM): New macros.
70666         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
70667         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
70668         if overflow occurs, as it's what __strtol does and it's more useful
70669         in practice.
70670         (__xstrtol): If __strtol reports some error other than ERANGE,
70671         reflect it to the caller as LONGINT_INVALID.  If it reports
70672         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
70673         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
70674         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
70675         value.
70676         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
70677         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
70678         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
70679         [defined UINTMAX_MAX]: New macros.
70680
70681 2003-10-14  Bruno Haible  <bruno@clisp.org>
70682
70683         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
70684
70685 2003-10-14  Bruno Haible  <bruno@clisp.org>
70686
70687         * m4/sig_atomic_t: New file, from GNU gettext.
70688         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
70689
70690 2003-10-14  Bruno Haible  <bruno@clisp.org>
70691
70692         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
70693         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
70694         Also use volatile where needed.
70695
70696 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70697
70698         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
70699         Change maintainer from Bruno Haible to 'all'.
70700
70701 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70702
70703         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
70704
70705 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70706
70707         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
70708         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
70709         and define in terms of the other primitives.
70710         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
70711         (SIZE_MAX): Define if not already defined.
70712         (array_size_overflow): New function.
70713         (xalloc_die): Abort instead of exiting if 'error' returns.
70714         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
70715         (xmalloc, xrealloc): Use them.
70716         (xcalloc): Check for address arithmetic overflow.
70717         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
70718         a bit faster than strcpy.
70719
70720 2003-10-10  Simon Josefsson  <jas@extundo.com>
70721
70722         * modules/argp (Depends-on): Add restrict and strcase.
70723
70724 2003-10-10  Simon Josefsson  <jas@extundo.com>
70725
70726         * m4/argp.m4: Add AC_C_INLINE.
70727
70728 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70729
70730         Merge getpass from libc, plus a few fixes.
70731
70732         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
70733         Include <stdbool.h>.
70734         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
70735         __fsetlocking to empty.
70736         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
70737         do include <bits/libc-lock.h>.
70738         Do not include <fcntl.h>; not needed.
70739         [_LIBC]: Include <wchar.h>.
70740         (NOTCANCEL_MODE): New macro.
70741         (flockfile, funlockfile) [_LIBC]: New macros.
70742         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
70743         [!_LIBC]: New macros.
70744         (call_fclose): New function.
70745         (getpass): Use it.  Save tty stream separately; this simplifies the
70746         code and makes it more reliable if stdin happens to equal stdout.
70747         Invoke __fsetlocking on tty.
70748         Handle thread cancellation if needed.
70749         Namespace cleanup (use __tcgetattr, __getline).
70750         Use bool for Booleans.
70751         [USE_IN_LIBIO]: Handle wide streams.
70752         [!_LIBC]: Unconditionally do the fseek, since we don't know what
70753         stream might go where.
70754
70755         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
70756         doesn't have to include <stdio.h> before us.
70757         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
70758         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
70759         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
70760         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
70761         if not declared, so that we can use getpass.c code from libc without
70762         rewriting it.
70763         (flockfile, ftrylockfile, funlockfile): New macros.
70764
70765 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70766
70767         * modules/getpass: Depend on stdbool.
70768
70769 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70770
70771         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
70772
70773 2003-10-07  Karl Berry  <karl@gnu.org>
70774
70775         * config/config.{guess,sub}: update from config.
70776
70777 2003-10-06  Jim Meyering  <jim@meyering.net>
70778             Bruno Haible  <bruno@clisp.org>
70779
70780         This lets translators provide better translations for the
70781         "Written by ..." part of --version output.
70782         * lib/version-etc.h: Include stdarg.h.
70783         (version_etc_copyright): Declare as readonly.
70784         (version_etc): Make this function variadic with a NULL-terminated list
70785         of author name strings.
70786         (version_etc_va): New declaration.
70787         * lib/version-etc.c: Include stdarg.h, stdlib.h.
70788         (version_etc_copyright): Declare as readonly.
70789         (version_etc_va): New function. Provide a different translatable string
70790         for each possible number of authors < 10. Abbreviate when there are 10
70791         authors or more.
70792         (version_etc): Make this function variadic. Call version_etc_va.
70793         Suggestion from Gary V. Vaughan.
70794
70795         * lib/long-options.h (parse_long_options): Change prototype: the
70796         authors string is moved to the end and becomes variadic.
70797         * lib/long-options.c: Include stdarg.h.
70798         (parse_long_options): Make this function variadic, too.
70799         Call version_etc_va, not version_etc.
70800
70801 2003-10-06  Bruno Haible  <bruno@clisp.org>
70802
70803         * modules/version-etc-2: Remove file.
70804         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70805
70806 2003-10-06  Bruno Haible  <bruno@clisp.org>
70807
70808         * modules/fatal-signal: New file.
70809         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70810
70811 2003-10-06  Bruno Haible  <bruno@clisp.org>
70812
70813         * m4/fatal-signal.m4: New file.
70814         * m4/signalblocking.m4: New file, from GNU gettext.
70815
70816 2003-10-06  Bruno Haible  <bruno@clisp.org>
70817
70818         * lib/version-etc-2.h: Remove file.
70819         * lib/version-etc-2.c: Remove file.
70820
70821 2003-10-06  Bruno Haible  <bruno@clisp.org>
70822
70823         * lib/fatal-signal.h: New file, from GNU gettext.
70824         * lib/fatal-signal.c: New file, from GNU gettext.
70825
70826 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70827
70828         * README: Rework advice for preventing empty .o files.
70829         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70830         not <sys/types.h>.
70831
70832 2003-10-04  Karl Berry  <karl@gnu.org>
70833
70834         * lib/argp*: update from libc.
70835
70836 2003-10-04  Karl Berry  <karl@gnu.org>
70837
70838         * config/config.{guess,sub}: update from config.
70839
70840 2003-10-02  Bruno Haible  <bruno@clisp.org>
70841
70842         * modules/lchown (Include): Add lchown.h.
70843         * modules/time_r (Include): Use "..." syntax.
70844         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70845
70846 2003-10-01  Simon Josefsson  <jas@extundo.com>
70847
70848         * MODULES.html.sh (func_all_modules): Move gethostname from section
70849         'based on' to section 'lacking' POSIX:2001.
70850
70851 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70852
70853         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70854         to output mode on the same stream.
70855
70856 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70857
70858         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70859         Fix arg typo in previous patch.
70860
70861 2003-09-28  Jim Meyering  <jim@meyering.net>
70862
70863         * lib/error.c: Correct cpp indentation.
70864
70865 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70866
70867         * modules/free: New file.
70868
70869 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70870
70871         * m4/free.m4: New file.
70872
70873 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70874
70875         * lib/minmax.h (MIN, MAX)
70876         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70877         Omit the special code that used __typeof__, since we worry that
70878         it could be more trouble than it's worth.  See:
70879         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70880         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70881
70882         * lib/free.c: New file.
70883
70884 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70885
70886         Trivial fixes to Makefile.am parts of module listings.
70887         * modules/strstr: Append strstr.h to lib_SOURCES.
70888         * modules/strcase: Likewise, for strcase.h.
70889
70890 2003-09-27  Karl Berry  <karl@gnu.org>
70891
70892         * config/mkinstalldirs: update from automake.
70893
70894 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70895
70896         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70897         (error_tail): Do not loop, reallocating temporary buffer, since
70898         the output cannot contain more wide characters than the input
70899         contains bytes, the size must be big enough already.  This avoids
70900         one potential size overflow calculation.  Check for size overflow
70901         when calculating temporary buffer size.  Free temporary buffer
70902         when done, if it was allocated with malloc; this plugs a memory
70903         leak.  Remove casts from void * to pointers, that are no longer
70904         needed now that we're assuming C89 or better.
70905
70906         Merge error changes from glibc.
70907
70908         * lib/error.c, error.h: Update copyright notice header to match glibc.
70909         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70910         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70911         Disable cancellation while printing error.
70912         * lib/error.h: Prepend __ to parameter names.
70913
70914 2003-09-26  Jim Meyering  <jim@meyering.net>
70915
70916         * lib/error.c (error_tail): Move some declarations
70917         into inner scope where the local variables are used.
70918
70919 2003-09-26  Bruno Haible  <bruno@clisp.org>
70920
70921         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70922         stpncpy().
70923         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70924
70925 2003-09-26  Bruno Haible  <bruno@clisp.org>
70926
70927         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70928         (stpncpy): Define as alias for gnu_stpncpy.
70929         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70930
70931 2003-09-25  Simon Josefsson  <jas@extundo.com>
70932
70933         * lib/xgetdomainname.h: New file.
70934         * lib/xgetdomainname.c: New file.
70935
70936 2003-09-25  Simon Josefsson  <jas@extundo.com>
70937             Bruno Haible  <bruno@clisp.org>
70938
70939         * modules/getdomainname: New file.
70940         * modules/xgetdomainname: New file.
70941         * MODULES.html.sh (func_all_modules): Add getdomainname,
70942         xgetdomainname.
70943
70944 2003-09-25  Simon Josefsson  <jas@extundo.com>
70945             Bruno Haible  <bruno@clisp.org>
70946
70947         * m4/getdomainname.m4: New file.
70948
70949 2003-09-25  Simon Josefsson  <jas@extundo.com>
70950             Bruno Haible  <bruno@clisp.org>
70951
70952         * lib/getdomainname.h: New file.
70953         * lib/getdomainname.c: New file.
70954
70955 2003-09-25  Karl Berry  <karl@gnu.org>
70956
70957         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70958
70959 2003-09-25  Karl Berry  <karl@gnu.org>
70960
70961         * config/install-sh: update from automake.
70962
70963 2003-09-25  Bruno Haible  <bruno@clisp.org>
70964
70965         * modules/version-etc-2: New file, from modules/version-etc with
70966         modifications.
70967         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70968
70969 2003-09-25  Bruno Haible  <bruno@clisp.org>
70970
70971         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70972         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70973
70974 2003-09-24  Simon Josefsson  <jas@extundo.com>
70975
70976         * modules/xgethostname: Add xgethostname.h.
70977
70978 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70979
70980         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70981         the buffer associated with the argument.  Bug reported by
70982         Simon Josefsson.
70983
70984 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70985
70986         * README: Document assumptions that 'int' is at least 32 bits
70987         wide, that integer arithmetic is 2's complement without overflow,
70988         that there are no holes in integer values, that adding sizes of
70989         two nonoverlapping objects can't overflow, and that all-bits-zero
70990         yields scalar zero.  Fix spelling and capitalization typos.
70991
70992 2003-09-19  Karl Berry  <karl@gnu.org>
70993
70994         * lib/argp.h: update from libc.
70995
70996 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70997
70998         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70999         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71000         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71001
71002 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71003
71004         * gnulib-tool: Use "test -h", not "test -L", for portability
71005         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71006         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71007         (sed_extract_prog): Issue s commands one-by-one, rather than
71008         using \| in one s command.
71009
71010 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71011
71012         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71013         input error, instead of returning NULL the next time we are called
71014         (and therefore losing track of errno).
71015
71016 2003-09-16  Bruno Haible  <bruno@clisp.org>
71017
71018         * gnulib-tool (func_create_testdir): Warn about duplicated
71019         dependencies.
71020
71021 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71022
71023         * modules/argmatch, modules/fatal, modules/obstack,
71024         modules/xalloc, modules/xgethostname: Sort dependencies by
71025         importance, not alphabetically.
71026
71027 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71028
71029         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71030         fails, so that the caller gets the proper errno.
71031
71032         * lib/readutmp.c (read_utmp): Likewise.
71033         Check for fstat error.  Close stream and free storage
71034         when failing.
71035
71036 2003-09-14  Karl Berry  <karl@gnu.org>
71037
71038         * config/srclist.txt (strdup.c): disable for c89 changes.
71039
71040 2003-09-14  Jim Meyering  <jim@meyering.net>
71041
71042         * lib/getloadavg.c: Correct cpp indentation.
71043         * lib/strdup.c: Likewise.
71044         * lib/vasnprintf.c: Likewise.
71045
71046 2003-09-14  Bruno Haible  <bruno@clisp.org>
71047
71048         * modules/fwriteerror: New file.
71049         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71050
71051 2003-09-14  Bruno Haible  <bruno@clisp.org>
71052
71053         * lib/fwriteerror.h: New file.
71054         * lib/fwriteerror.c: New file.
71055
71056 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71057
71058         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71059         modules/xgethostname, modules/xalloc: Depend on exit.
71060
71061 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71062
71063         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71064
71065         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71066         and AC_MINIX, too, so that their extensions are available.
71067
71068         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71069         This macro has been superseded by gl_BACKUPFILE.
71070
71071         More patches to assume C89 or better.
71072
71073         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71074
71075         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71076         unconditionally.
71077         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71078         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71079         Include <string.h>, <stdlib.h> unconditionally.
71080         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71081         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71082         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71083         headers or for string.h.
71084         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71085         or strtoul.
71086
71087         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71088         headers.
71089         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71090         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71091         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71092         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71093         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71094         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71095         memcpy, memset.
71096         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71097         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71098         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71099         strtol.
71100         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71101         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71102         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71103         strtoul.
71104
71105 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71106
71107         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71108         * lib/obstack.c [!defined _LIBC]: Likewise.
71109         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71110         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71111         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71112
71113         More changes to assume C89 or better.
71114
71115         * lib/error.c (error_tail): Assume vprintf.
71116
71117         * lib/argmatch.c (getenv): Remove decl.
71118         * lib/progreloc.c (get_full_program_name): Define via prototype.
71119         * lib/setenv.c (clearenv): Likewise.
71120         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71121         needed.
71122         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71123         (malloc, memcpy): Remove decls.
71124         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71125         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71126         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71127         (memcpy): Remove macro.
71128         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71129         (__P): Remove.  All uses removed.
71130         (PTR): Remove.  All uses changed to void *.
71131         (CHAR_BIT, NULL): Remove.
71132         (spaces, zeros, memset_space, memset_zero)
71133         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71134         Remove.
71135         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71136         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71137         Define with prototype.
71138         Remove now-unnecessary prototype decl.
71139         (extra_args_spec): Assume ANSI C.  All uses changed.
71140         (extra_args_spec_iso): Remove.
71141         (my_strftime, emacs_strftimeu): Define via prototype.
71142         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71143         unconditionally.
71144         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71145         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71146         (strtoul, strtol): Remove decls.
71147         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71148         LONG_MAX): Remove.
71149         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71150         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71151         (LOCALE_PARAM_PROTO): New macro.
71152         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71153         (INTERNAL (strtol), strtol): Define with a prototype.
71154         (PARAMS): Remove.  All uses removed.
71155         * lib/tempname.c: Include <string.h> unconditionally.
71156         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71157         * lib/xgethostname.c (main): Define with a prototype.
71158         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71159         Include <stdlib.h> unconditionally.
71160         (calloc, malloc, realloc, free): Remove decls.
71161         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71162         Include <stdlib.h> unconditionally.  Sort include file names.
71163         (strtod): Remove.
71164         (xstrtod): Define with a prototype.
71165         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71166         (strtol, strtoul): Remove decls.
71167
71168 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71169
71170         More patches to assume C89 or better.
71171         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71172         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71173         string.h, memchr, STDC_HEADERS.
71174
71175 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71176
71177         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71178         Include <stdlib.h>, <string.h> unconditionally.
71179         Remove now-unnecessary cast to char *.
71180         * lib/strnlen.c: Include <string.h> unconditionally.
71181         * lib/yesno.c (yesno): Define with a prototype.
71182
71183 2003-09-11  Bruno Haible  <bruno@clisp.org>
71184
71185         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71186
71187 2003-09-10  Jim Meyering  <jim@meyering.net>
71188
71189         * lib/error.c: Correct indentation of cpp directives.
71190
71191 2003-09-10  Bruno Haible  <bruno@clisp.org>
71192
71193         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71194         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71195         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71196         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71197         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71198         <stdlib.h> and <string.h> checks.
71199         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71200         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71201
71202 2003-09-10  Bruno Haible  <bruno@clisp.org>
71203
71204         * lib/strcspn.c: Include <string.h> unconditionally.
71205         * lib/strpbrk.c: Include <string.h> unconditionally.
71206         * lib/strstr.c: Include <string.h> unconditionally.
71207         * lib/unicodeio.c: Include <string.h> unconditionally.
71208         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71209         * lib/unsetenv.c: Likewise.
71210         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71211         * lib/yesno.c: Include <stdlib.h> unconditionally.
71212         (rpmatch): Add prototype.
71213
71214 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71215
71216         More patches to assume C89 or better.
71217         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71218         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71219         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71220         or for string.h.
71221         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71222         stdlib.h.
71223         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71224         C headers.
71225         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71226         string.h.
71227         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71228         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71229         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71230         or for string.h.
71231         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71232         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71233         C headers.
71234         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71235         memcpy.
71236         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71237         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71238         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71239         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71240         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71241         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71242         string.h, free.
71243         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71244         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71245         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71246         C headers, or for string.h.
71247         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71248         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71249         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71250         headers, memory.h, stdlib.h, string.h, strings.h.
71251         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71252         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71253         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71254         strchr.
71255         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71256         headers, memory.h, string.h.
71257         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71258         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71259         free.
71260         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71261         headers.
71262         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71263         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71264         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71265         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71266         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71267
71268 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71269
71270         More K&R removal.
71271
71272         * lib/acosl.c (main): Use a prototype.
71273         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71274         tanl.c: Likewise.
71275
71276         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71277
71278         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71279         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71280         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71281         with a prototype.
71282         * lib/getopt.c (const): Remove macro.
71283         Include <string.h> unconditionally.
71284         (my_index): Remove; all uses changed to strchr.
71285         (strlen): Remove decl.
71286         (exchange): Remove forward decl; no longer needed.
71287         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71288         Define with prototype.
71289         * lib/getopt1.c (const): Remove macro.
71290         (getopt_long, getopt_long_only, main): Define with prototype.
71291
71292         * lib/getugroups.c: Include <string.h> unconditionally.
71293
71294         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71295         (getusershell, setusershell, endusershell, readname, main):
71296         Define with prototypes.
71297
71298         * lib/group-member.c: Include group-member.h first.
71299         Include <stdlib.h> unconditionally.
71300
71301         * lib/hard-locale.c: Include hard-locale.h first.
71302         Include <stdlib.h>, <string.h> unconditionally.
71303
71304         * lib/hash.c (free, malloc): Remove decls.
71305         Include <stdlib.h> unconditionally.
71306
71307         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71308         (getenv): Do not declare.
71309
71310         * lib/idcache.c: Include <string.h> unconditionally.
71311
71312         * lib/long-options.c: Include long-options.h first, to test interface.
71313         Include <stdlib.h> unconditionally.
71314
71315         * lib/makepath.c: Include makepath.h first, to test interface.
71316         Include <stdlib.h> and <string.h> unconditionally.
71317
71318         * lib/linebuffer.c: Include <stdlib.h>.
71319         (free): Remove decl.
71320
71321         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71322         stddef.h. rpl_malloc returns void *, not char *.
71323         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71324         prototype.
71325
71326         * lib/md5.h: Include <limits.h> unconditionally.
71327         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71328         (__P): Remove; all uses removed.
71329         * lib/md5.c: Include "md5.h" first.
71330         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71331         md5_buffer, md5_process_bytes, md5_process_block):
71332         Define with prototypes.
71333         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71334         * lib/sha.c: Include "sha.h" first.
71335         Include <stdlib.h>, <string.h> unconditionally.
71336
71337         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71338         * lib/memcmp.c (__ptr_t): Likewise.
71339         * lib/memrchr.c (__ptr_t): Likewise.
71340         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71341         Include <string.h> unconditionally.
71342         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71343         * lib/memchr.c: Include <stdlib.h> unconditionally.
71344         * lib/memchr.c (LONG_MAX): Remove.
71345         * lib/memrchr.c (LONG_MAX): Likewise.
71346         * lib/memchr.c (__memchr): Define via a prototype.
71347         * lib/memrchr.c (__memrchr): Likewise.
71348         * lib/memcmp.c (__P): Remove, and remove all uses.
71349         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71350         Remove forward decls; no longer needed.
71351         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71352         Use types required by C89 in prototype.
71353
71354         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71355         * lib/savedir.c: Likewise.
71356         * lib/mkdir.c (free): Remove decl.
71357         * lib/rmdir.c (rmdir): Define with a prototype.
71358         * lib/savedir.c: Include savedir.h first, to test interface.
71359
71360         * lib/mktime.c (STDC_HEADERS): Remove.
71361         Include <stdlib.h>, <string.h> unconditionally.
71362
71363         * lib/modechange.c: Include <stdlib.h> unconditionally.
71364         (malloc): Remove decl.
71365
71366         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71367         (free): Remove decl.
71368
71369         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71370         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71371         (This type really should be intptr_t, but that's a C99ism.)
71372         (_obstack_memcpy): Remove: all uses changed to memcpy.
71373         Include <string.h> unconditionally.
71374         (struct obstack): Assume __STDC__ for types of members
71375         chunkfun, freefun, extra_arg.
71376         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71377         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71378         obstack_begin, obstack_specify_allocation,
71379         obstack_specify_allocation_with_arg, obstack_chunkfun,
71380         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71381         Remove unprototyped decls and the macros that use them.
71382         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71383         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71384         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71385         (defined __STDC__ && __STDC__)]:
71386         Remove nonprototyped code.
71387         Include <stdlib.h> unconditionally.
71388         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71389         _obstack_allocated_p, _obstack_free, obstack_free,
71390         _obstack_memory_used, print_and_abort):
71391         Define using prototypes.
71392         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71393         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71394         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71395         obstack_next_free, obstack_object_size, obstack_room) [0]:
71396         Remove unused, unprototyped code.
71397
71398         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71399
71400         * lib/physmem.c (physmem_total, physmem_available, main): Define
71401         with prototypes.
71402
71403         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71404         (main): Define with a prototype.
71405
71406         * lib/posixver.c (getenv): Remove decl.
71407
71408         * lib/putenv.c (malloc): Returns void *, not char *.
71409         Include <string.h> unconditionally.
71410         (strchr, memcpy, NULL): Do not define.
71411
71412         * lib/readtokens.c: Include readtokens.h first, to test interface.
71413         Include <stdlib.h>, <string.h> unconditionally.
71414         (init_tokenbuffer): Define with a prototype.
71415
71416         * lib/regex.c (PARAMS): Remove.  All uses removed.
71417         All uses of _RE_ARGS removed, too.
71418         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71419         unconditionally.
71420         (bzero): Assume memset exists.
71421         (memcmp, memcpy, NULL): Remove.
71422         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71423         char, or assignments to local vars of type signed char.
71424         (init_syntax_once, PREFIX(extract_number_and_incr),
71425         PREFIX(print_partial_compiled_pattern),
71426         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71427         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71428         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71429         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71430         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71431         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71432         wcs_compile_range, byte_compile_range, truncate_wchar,
71433         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71434         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71435         count_mbs_length, wcs_re_match_2_internal,
71436         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71437         PREFIX(alt_match_null_string_p),
71438         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71439         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71440         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71441         now-unnecessary declaration, if any.
71442         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71443         regcomp, regexec):
71444         Remove now-unnecessary casts among pointer types.
71445         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71446
71447         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71448         (free): Remove decl.
71449
71450         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71451
71452         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71453         (free): Remove decl.
71454
71455         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71456         * lib/xgetcwd.c: Likewise.
71457
71458         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71459         (free): Remove decl.
71460
71461         * lib/strchrnul.c (strchrnul): Define with a prototype.
71462         Fix bug: c_in was not converted to char before searching.
71463
71464         The following changes are not K&R related:
71465
71466         * lib/group-member.h: Include <sys/types.h>, so that this file is
71467         self-contained.
71468         * lib/makepath.h: Likewise.
71469
71470         * lib/getusershell.c (readname, default_index, line_size, readname):
71471         Use size_t, not int, for sizes.
71472         (readname): If the size overflows, report an error instead of
71473         looping forever.
71474
71475 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71476
71477         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
71478         libc.
71479
71480 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71481
71482         * README: New section: portability guidelines.
71483
71484 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71485
71486         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
71487         C89 spec.
71488
71489 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71490
71491         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
71492
71493 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71494
71495         Assume C89 or better; remove K&R cruft.
71496         A few of these changes were first proposed by Derek Robert Price
71497         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
71498
71499         * lib/addext.c: Include <string.h> unconditionally.
71500         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
71501         Don't declare getenv or malloc.
71502
71503         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
71504         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
71505         (NULL): Remove.
71506         (find_stack_direction, alloca): Use prototypes.
71507
71508         * lib/atexit.c (atexit): Define using a prototype.
71509
71510         * lib/basename.c, dirname.c, stripslash.c:
71511         Include <string.h> unconditionally.
71512
71513         * lib/bcopy.c: Include <stddef.h>.
71514         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
71515
71516         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
71517
71518         * lib/error.h (error, error_at_line, error_print_progname)
71519         [! (defined (__STDC__) && __STDC__)]: Remove decls.
71520         * lib/error.c: Include error.h first, to check interface.
71521         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71522         (VA_START): Remove; all uses changeed to va_start.
71523         (exit, strerror): Remove decls.
71524         (error_print_progname): Prototype uncondionally.
71525         Don't include <errno.h>; no longer needed.
71526         (private_strerror): Remove.
71527         (error_tail): Always define.
71528         (error, error_at_line): Assume C89 or better; always use prototypes.
71529         * lib/fatal.c: Include "fatal.h" first, to test interface.
71530         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71531         (VA_START): Remove; all uses changed to va_start.
71532         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
71533         this case.
71534         (exit): Remove decl.
71535         (fatal): Prototype unconditionally.  Assume va_start works.
71536         Abort at end, to pacify gcc.
71537
71538         * lib/euidaccess.c (main): Define with a prototype.
71539
71540         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
71541
71542         * lib/exitfail.c: Include <stdlib.h> unconditionally.
71543
71544         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
71545         prototypes.
71546         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
71547         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
71548         (getenv): Remove decl.
71549         (fnmatch): Define using a prototype.
71550         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
71551         (FCT): Define using a prototype.
71552
71553         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
71554
71555         * lib/gethostname.c: Include <stddef.h>.
71556         (gethostname): Define with prototype.  Length is size_t, not int.
71557
71558 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71559
71560         Assume C89 or better; remove K&R cruft.
71561         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
71562         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
71563         string.h, getenv, malloc.
71564         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
71565         headers.
71566         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
71567         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
71568         do not check for strerror.
71569         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
71570         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
71571         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
71572         do not check for doprnt or vprintf.
71573         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
71574         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
71575
71576 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71577
71578         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
71579         getversion.c should have been removed then, but was accidentally
71580         preserved.
71581
71582         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
71583         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
71584
71585 2003-09-08  Karl Berry  <karl@gnu.org>
71586
71587         * config/config.sub, config.guess, srclistvars.sh: update from savannah
71588                 config, forget about prep.
71589
71590         * config/depcomp, missing: update from automake.
71591
71592 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71593
71594         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
71595         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71596
71597 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71598
71599         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
71600         copy_tm_result.  Bug reported by Simon Josefsson in
71601         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71602
71603 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71604
71605         * m4/time_r.m4: New file.
71606         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
71607         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
71608         is. Check for timegm declaration.
71609         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
71610         Do not check for gmtime_r.
71611         Replace mktime if __mktime_internal does not exist and if mktime
71612         hasn't been replaced already.
71613
71614 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71615
71616         * lib/time_r.c, lib/time_r.h: New files.
71617
71618         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
71619         __localtime_r.
71620         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
71621         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
71622
71623         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
71624         __gmtime_r.
71625         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
71626         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
71627         Include <time_r.h>.
71628
71629         * lib/timegm.c: Switch to glibc implementation, with the following
71630         changes:
71631         [defined HAVE_CONFIG_H]: Include <config.h>.
71632         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
71633         (__mktime_internal) [!defined _LIBC]: New decl.
71634         (__gmtime_r) [!defined _LIBC]: New macro and function.
71635         (timegm): Use a prototype, since gnulib assumes C89.
71636         Do not bother declaring tmp to be const, as it's not really usefu.
71637         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
71638         (timegm): Declare only if HAVE_DECL_TIMEGM.
71639
71640 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71641
71642         * MODULES.html.sh (func_all_modules): Add time_r.
71643         * modules/time_r: New file.
71644         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
71645         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
71646
71647 2003-09-03  Paul Eggert  <eggert@twinsun.com>
71648
71649         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
71650         Bug reported by Lute Kamstra in
71651         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
71652
71653         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
71654         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
71655         course with correspondingly smaller numbers for tomorrow and
71656         yesterday.  From Tadayoshi Funaba.  Originally installed into
71657         sh-utils on 1999-08-07, but the patch got lost (I guess during the
71658         coreutils merge?).
71659
71660 2003-08-31  Simon Josefsson  <jas@extundo.com>
71661
71662         * modules/timegm: New file.
71663         * MODULES.html.sh (func_all_modules): Add timegm.
71664
71665 2003-08-31  Simon Josefsson  <jas@extundo.com>
71666
71667         * m4/timegm.m4: New file.
71668
71669 2003-08-31  Simon Josefsson  <jas@extundo.com>
71670
71671         * lib/timegm.h: New file.
71672         * lib/timegm.c: New file.  Based on
71673         wget-1.8.2/src/http.c:mktime_from_utc.
71674
71675 2003-08-31  Karl Berry  <karl@gnu.org>
71676
71677         * lib/argp.h: update from libc.
71678
71679 2003-08-28  Bruno Haible  <bruno@clisp.org>
71680
71681         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
71682         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
71683         followed by '#define fnmatch fnmatch_posix' gives an error.
71684
71685 2003-08-28  Bruno Haible  <bruno@clisp.org>
71686
71687         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
71688         warning on QNX, which defines O_BINARY to 000000.
71689
71690 2003-08-27  Jim Meyering  <jim@meyering.net>
71691
71692         * m4/mkstemp.m4: Require that the system mkstemp be able to create
71693         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
71694         would fail after 32.  Reported by Danny Levinson.  Details here:
71695         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
71696
71697 2003-08-24  Bruno Haible  <bruno@clisp.org>
71698
71699         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
71700         MSVC7 <stdio.h> is included later.
71701
71702 2003-08-22  Simon Josefsson  <jas@extundo.com>
71703
71704         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
71705
71706 2003-08-20  Karl Berry  <karl@gnu.org>
71707
71708         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
71709
71710 2003-08-20  Bruno Haible  <bruno@clisp.org>
71711
71712         * modules/progname: New file.
71713         * MODULES.html.sh (func_all_modules): Add progname.
71714
71715 2003-08-20  Bruno Haible  <bruno@clisp.org>
71716
71717         * lib/progname.h: New file, from GNU gettext.
71718         * lib/progname.c: New file, from GNU gettext.
71719         * lib/progreloc.c: New file, from GNU gettext.
71720
71721 2003-08-19  Jim Meyering  <jim@meyering.net>
71722
71723         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
71724         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
71725
71726 2003-08-19  Bruno Haible  <bruno@clisp.org>
71727
71728         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
71729         more.
71730
71731 2003-08-19  Bruno Haible  <bruno@clisp.org>
71732
71733         * lib/xstrdup.c: Assume <string.h> exists.
71734
71735 2003-08-18  Paul Eggert  <eggert@twinsun.com>
71736
71737         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
71738         in makefile rules.
71739
71740 2003-08-18  Jim Meyering  <jim@meyering.net>
71741
71742         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
71743         * m4/lib-ld.m4: Likewise.
71744
71745 2003-08-18  Jim Meyering  <jim@meyering.net>
71746
71747         * lib/setenv.h: Indent nested cpp directive.
71748         * lib/vasnprintf.c: Remove trailing blanks.
71749
71750 2003-08-17  Simon Josefsson  <jas@extundo.com>
71751
71752         * modules/xstrndup: New file.
71753         * MODULES.html.sh (func_all_modules): Add xstrndup.
71754
71755 2003-08-17  Simon Josefsson  <jas@extundo.com>
71756
71757         * modules/argp: Fix autoconf macro name. Add more dependencies.
71758
71759 2003-08-17  Simon Josefsson  <jas@extundo.com>
71760
71761         * m4/xstrndup.m4: New file.
71762
71763 2003-08-17  Simon Josefsson  <jas@extundo.com>
71764
71765         * m4/argp.m4: New file.
71766
71767 2003-08-17  Simon Josefsson  <jas@extundo.com>
71768             Bruno Haible  <bruno@clisp.org>
71769
71770         * lib/xstrndup.h: New file.
71771         * lib/xstrndup.c: New file.
71772
71773 2003-08-17  Bruno Haible  <bruno@clisp.org>
71774
71775         * modules/strndup (Files, Include): Add lib/strndup.h.
71776
71777 2003-08-17  Bruno Haible  <bruno@clisp.org>
71778
71779         * modules/euidaccess (Files): Add lib/euidaccess.h.
71780
71781 2003-08-17  Bruno Haible  <bruno@clisp.org>
71782
71783         * lib/strndup.h: New file.
71784
71785 2003-08-17  Bruno Haible  <bruno@clisp.org>
71786
71787         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
71788         like AC_GNU_SOURCE.
71789         * modules/extensions (configure.ac): Comment out the invocation of
71790         gl_USE_SYSTEM_EXTENSIONS.
71791
71792 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71793
71794         Merges from coreutils, etc.
71795         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
71796         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71797         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71798         fixing a typo.
71799         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71800         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71801
71802 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71803
71804         Document merge from coreutils.
71805         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71806         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71807         * modules/utime: Add m4/utimes-null.m4.
71808
71809 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71810
71811         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71812         space, undoing this 2003-08-12 change:
71813         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71814
71815 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71816
71817         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71818         strtoul.c from libc, undoing this 2003-08-12 change:
71819         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71820
71821 2003-08-16  Jim Meyering  <jim@meyering.net>
71822
71823         Merges from coreutils.
71824         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71825         prefix.  Adjust cache variables similarly.  Create 500 rather than
71826         just 300 files, to exercise bug on Darwin6.5, too.
71827         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71828         $missing_dir.
71829         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71830         AM_SYS_POSIX_TERMIOS.
71831         Reported by mkc@mathdogs.com.
71832         Also change use of $am_cv_sys_posix_termios
71833         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71834         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71835         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71836         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71837         in /proc/mounts until it finds one with matching device number.  This
71838         is unnecessary when the FILE argument *is* a mount point.  No stat call
71839         is necessary in that case.  So, disable the statvfs-testing code on
71840         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71841         as RedHat bug# 84846.
71842         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71843         to 1MB, so as not to render systems with no stack size limit (e.g.,
71844         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71845         Include <unistd.h>.  On some systems,
71846         it is required for the definition of _SC_PAGESIZE.
71847
71848 2003-08-16  Jim Meyering  <jim@meyering.net>
71849
71850         Merge from coreutils.
71851         * lib/xstrtoimax.c: #else #if -> #elif.
71852         * lib/xstrtoumax.c: Likewise.
71853
71854 2003-08-16  Jim Meyering  <jim@meyering.net>
71855
71856         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71857         * m4/utimes.m4: Removed.
71858         * m4/utimes-null.m4: Renamed from utimes.m4.
71859
71860         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71861         to 1MB, so as not to render systems with no stack size limit (e.g.,
71862         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71863         Include <unistd.h>.  On some systems,
71864         it is required for the definition of _SC_PAGESIZE.
71865
71866 2003-08-16  Jim Meyering  <jim@meyering.net>
71867         and Paul Eggert  <eggert@cs.ucla.edu>
71868
71869         Merges from coreutils, etc.
71870
71871         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71872         using the latest version from cvs.  This avoids problems with #line
71873         directives using a vendor (Sun) compiler.
71874         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71875         Don't set GETGROUPS_LIB here; now it's
71876         done via getgroups.m4's wrapper function.
71877         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71878         rather than just in sh-util/configure.in, so that the
71879         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71880         same.
71881         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71882         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71883         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71884         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71885         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71886         Remove code that is now done by the newly-required macros.
71887         Append $(EXEEXT) to DF_PROG.
71888         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71889         Do not invoke or require the following here,
71890         since prereq.m4 or some gnulib .m4 now does this for us:
71891         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71892         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71893         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71894         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71895         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71896         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71897         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71898         AC_FUNC_OBSTACK.
71899         Do not replace the following functions, as this is now the job
71900         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71901         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71902         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71903         atexit getpass, strdup, getpagesize.
71904         Replace 'raise'.
71905         Do not check for the following functions, as this is now the job
71906         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71907         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71908         setregid.
71909         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71910         Check for sys/sysctl.h.
71911         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71912         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71913         of checking for ssize_t ourselves.
71914
71915         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71916         Require every macro that gnulib/modules/* suggests for us.
71917         (jm_PREREQ_ADDEXT): New macro.
71918         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71919         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71920
71921         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71922         (gl_PHYSMEM): Use it.
71923         Also check for `table' function.
71924         Check for new headers and functions.
71925         Add check for sys/sysmp.h.
71926         With suggestions from Kaveh Ghazi.
71927         Ignore headers that are present but cannot be compiled.  This
71928         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71929         C 5.4.
71930
71931 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71932
71933         Document merge from coreutils.
71934         * modules/userspec: Depend on posixver.
71935         * modules/strftime: Depend on tzset.
71936
71937 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71938
71939         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71940         rather than tab, after '#' in shell-script copyright notices.
71941         Suggested by Bruno Haible.
71942
71943 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71944
71945         * config/srclist-update: Use three spaces, rather than tab, after '#'
71946         in shell-script copyright notices.  Suggested by Bruno Haible.
71947         Remove unnecessary parenthesization in regular expression.
71948
71949 2003-08-15  Jim Meyering  <jim@meyering.net>
71950
71951         Merge from coreutils.
71952         * lib/xgethostname.c: Include <stdlib.h>.
71953         (xghostname): Don't exit for anything other than memory-related
71954         failure; just return NULL.
71955         * lib/userspec.c: Include "posixver.h".
71956         (parse_user_spec): Accept `.' as a separator only
71957         in pre-POSIX-200112 mode.
71958         * lib/strtoimax.c: Use #elif rather than #else #if.
71959         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71960         Remove function, now that we can rely on a working tzset function.
71961         [!_LIBC]: Ensure that the required autoconf test has been run.
71962         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71963         Use underlying_strftime for %r.
71964         * lib/sha.c: Merge in some clean-up and optimization changes from
71965         glibc.
71966         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71967         Ensure that it is a multiple of 64.
71968         Rearrange loop exit tests so as to avoid performing an
71969         additional fread after encountering an error or EOF.
71970         * lib/realloc.c: Update copyright date.
71971
71972 2003-08-15  Jim Meyering  <jim@meyering.net>
71973         and Paul Eggert  <eggert@twinsun.com>
71974
71975         Merge from coreutils.
71976         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71977         member but strut utmpx does not.  Needed for AIX 4.3.3.
71978         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71979
71980 2003-08-15  Jim Meyering  <jim@meyering.net>
71981         and Paul Eggert  <eggert@cs.ucla.edu>
71982
71983         Merges from coreutils, etc.
71984         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71985         Require gl_FUNC_TZSET_CLOBBER.
71986         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71987         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71988         members.
71989
71990 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71991
71992         Help the merge from coreutils.
71993         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71994         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71995         * m4/tzset.m4: Use it too.
71996
71997 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71998
71999         * modules/tzset: New file.
72000
72001 2003-08-14  Jim Meyering  <jim@meyering.net>
72002
72003         Merges from coreutils.
72004         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72005         variable names, rather than @FNMATCH_H@.
72006         * modules/alloca: Likewise for $(ALLOCA_H).
72007
72008         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72009         the three copies of the literal target, `fnmatch.h'.
72010         * modules/alloca (alloca.h): Likewise.
72011
72012 2003-08-14  Jim Meyering  <jim@meyering.net>
72013
72014         Merge from coreutils.
72015         * m4/tzset.m4: New file.
72016         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72017         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72018         otherwise, AIX 5.1 systems would end up using the latter.
72019         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72020         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72021         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72022         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72023
72024 2003-08-14  Jim Meyering  <jim@meyering.net>
72025
72026         Merge from coreutils.
72027         * lib/obstack.h: Whitespace changes.
72028         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72029         and xcalloc return values.
72030         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72031         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72032         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72033         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72034         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72035         error from mntctl.
72036         Use mntctl's return value to drive the entry-processing loop, since
72037         we can't rely on the value of the vmt_length member in the last
72038         entry.  On some systems doing so could result in exhausting
72039         virtual memory.  Based in part on a patch from Mike Jetzer.
72040
72041 2003-08-14  Jim Meyering  <jim@meyering.net>
72042         and Paul Eggert  <eggert@twinsun.com>
72043
72044         Merges from coreutils, plus other fixes.
72045         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72046         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72047         for credits and details.  Thanks to Kaveh Ghazi for helping
72048         to keep these files in sync.
72049         (ARRAY_SIZE): Define it.
72050         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72051         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72052         (memcasecmp): Don't assume size_t fits in unsigned int.
72053         Remove casts and duplicate code.
72054         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72055         (memcpy): Remove definition.
72056         Merge in some clean-up and optimization changes from glibc.
72057         [BLOCKSIZE]: Move definition to top of file.
72058         Ensure that it is a multiple of 64.
72059         Rearrange loop exit tests so as to avoid performing an
72060         additional fread after encountering an error or EOF.
72061         * lib/md5.h (md5_uintptr): Define.
72062         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72063         return to the initial working directory.  Preserve errno
72064         for caller.
72065         * lib/idcache.c: Include "xalloc.h".
72066         (xmalloc, xrealloc): Remove decls.
72067         (getuser): Remove casts no longer required in C89.
72068         * lib/human.c: Include stdio.h, for sprintf.
72069         * lib/group-member.c: Include "xalloc.h".
72070         (xmalloc, xrealloc): Remove decls.
72071         (get_group_info): Remove casts no longer required in C89.
72072         * lib/getusershell.c (readname): Remove casts no longer required in
72073         C89.
72074         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72075         * lib/getline.c: Whitespace fix, from coreutils.
72076
72077 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72078
72079         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72080         Check for isascii.
72081
72082         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72083         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72084         Undo previous (whitespace-only) change.
72085
72086 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72087
72088         * lib/exclude.c: Include <ctype.h>
72089         (IN_CTYPE_DOMAIN): New macro.
72090         (is_space): New fn.
72091         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72092         and empty lines.
72093
72094         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72095         Undo previous (whitespace-only) change.
72096
72097 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72098
72099         * config/srclist-update: Change update back to the old behavior,
72100         leaving whitespace alone.  Use one 'sed' command rather than a
72101         pipeline.
72102         (fixlicense): Now a variable, not a function.
72103         (remove_trailing_blanks): Remove.
72104         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72105         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72106         Undo previous (whitespace-only) change.
72107
72108 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72109
72110         Merge from coreutils.
72111         * modules/euidaccess: Add lib_SOURCES, include for new
72112         file euidaccess.h
72113
72114 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72115
72116         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72117         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72118         Normalize leading white space and remove trailing white space.
72119
72120         Merge from coreutils
72121         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72122
72123         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72124         0.12.1.  These files are now being upgraded automatically by
72125         ../config/srclist-update.
72126
72127 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72128
72129         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72130         Normalize leading white space and remove trailing white space.
72131         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72132         notice, as per ../config/srclist-update.
72133
72134         Merge from coreutils.
72135         * lib/euidaccess.h: New file.
72136         * lib/euidaccess.c: Include it.
72137         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72138         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72139         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72140
72141 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72142
72143         * config/srclist-update: Add copyright notice.
72144         (remove_id_lines, remove_trailing_blanks): New constants.
72145         (fixfile): Use them to normalize spacing a bit in copied files.
72146         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72147         Normalize leading white space and remove trailing white space.
72148
72149         * config/texinfo.tex: Sync with texinfo.
72150
72151         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72152         strtoul.c from libc, to merge coreutils whitespace changes.
72153
72154         * config/srclist.txt: Get the following m4 files from gettext:
72155         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72156         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72157         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72158         wint_t.m4.
72159
72160 2003-08-12  Karl Berry  <karl@gnu.org>
72161
72162         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72163         been made.
72164
72165 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72166
72167         * modules/gnu-source, m4/gnu-source.m4:
72168         Remove; we're assuming Autoconf 2.54 or later now.
72169         Suggested by Bruno Haible.
72170         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72171
72172 2003-08-11  Bruno Haible  <bruno@clisp.org>
72173
72174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72175
72176 2003-08-11  Bruno Haible  <bruno@clisp.org>
72177
72178         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72179         (vasnprintf): Use it instead of wcslen.
72180
72181 2003-08-11  Bruno Haible  <bruno@clisp.org>
72182
72183         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72184         value to ensure that _Bool promotes to int. Use #define for _Bool when
72185         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72186
72187 2003-08-10  Karl Berry  <karl@gnu.org>
72188
72189         * lib/regex.h: update from libc (whitespace fix).
72190
72191 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72192
72193         Merge some files from coreutils.  These changes were
72194         originally made by Jim Meyering.
72195         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72196         many older Unixes require this.
72197         * lib/alloca.c (alloca): Remove cast to argument of free;
72198         no longer needed in C89.
72199         * lib/alloca_.h, regex.h: Fix white space to match
72200         what GNU indent does.
72201
72202 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72203
72204         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72205         apparently Emacs's Unicode mode got confused before my 2003-08-05
72206         checkin.
72207
72208 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72209
72210         * m4/extensions.m4: New file.
72211         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72212         Require gl_USE_SYSTEM_EXTENSIONS.
72213         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72214         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72215
72216 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72217
72218         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72219         * modules/extensions, modules/gnu-source: New files.
72220         * modules/timespec, modules/unlocked-io: Depend on extensions.
72221
72222 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72223
72224         * modules/restrict: New file.
72225         * MODULES.html.sh (func_all_modules): Add restrict.
72226         * modules/regex: Depend on restrict.
72227
72228 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72229
72230         * m4/restrict.m4: New file.
72231         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72232
72233 2003-08-07  Bruno Haible  <bruno@clisp.org>
72234
72235         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72236         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72237
72238 2003-08-07  Bruno Haible  <bruno@clisp.org>
72239
72240         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72241         makes the module 'getndelim2' compatible with the module 'getline'.
72242
72243 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72244
72245         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72246         byte with "\201" to avoid glitches when editing that source file
72247         with multi-gnome-terminal.
72248
72249 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72250
72251         * lib/bumpalloc.h: Remove.
72252
72253 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72254
72255         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72256         * modules/bumpalloc: Remove.
72257
72258 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72259
72260         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72261         GNU coding style.
72262
72263         Merge from coreutils.
72264         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72265         1. From glibc.
72266         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72267         from Karl Berry, implemented by Jim Meyering.
72268         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72269         from Dmitry V. Levin.
72270         Remove anachronistic cast of xrealloc.
72271         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72272         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72273         type. Otherwise, it wouldn't compile with at least /bin/cc on
72274         ymp-cray-unicos9.0.2.X.
72275         Combine two mostly-identical uses of alloca into one.
72276         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72277
72278 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72279
72280         [From Emacs.]
72281
72282         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72283         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72284         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72285         obsolete NLIST_NAME_UNION.
72286         [__GNU__]: Undef BSD and FSCALE.
72287         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72288
72289 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72290
72291         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72292         an enum type, so that it's guaranteed to promote to int.  See:
72293         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72294
72295 2003-08-03  Karl Berry  <karl@gnu.org>
72296
72297         * config/depcomp: update from automake.
72298
72299 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72300
72301         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72302         (strerror): Don't assume that a printable int fits in 14 bytes.
72303
72304 2003-07-31  Bruno Haible  <bruno@clisp.org>
72305
72306         * modules/getpass-gnu: New file.
72307         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72308
72309 2003-07-31  Bruno Haible  <bruno@clisp.org>
72310
72311         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72312
72313 2003-07-24  Karl Berry  <karl@gnu.org>
72314
72315         * config/missing: update from automake.
72316
72317 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72318             Bruno Haible  <bruno@clisp.org>
72319
72320         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72321         * lib/getline.c (getline, getdelim): Likewise.
72322         Remove _GNU_SOURCE define; now it's defined in config.h through
72323         m4/getline.m4.
72324
72325 2003-07-23  Karl Berry  <karl@gnu.org>
72326
72327         * config/config.sub: update from prep.
72328
72329 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72330
72331         * modules/xalloc (Depends-on): Add exitfail.
72332         * modules/xmemcoll: Likewise.
72333
72334 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72335
72336         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72337         over-parenthesization in macros.
72338
72339         Sync with coreutils.
72340
72341         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72342         required by C99.
72343
72344         Use `exit_failure' for xalloc and xmemcoll instead of their own
72345         private exit-failure variables.
72346         * lib/xalloc.h (xalloc_exit_failure): Remove.
72347         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72348         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72349         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72350         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72351         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72352
72353 2003-07-20  Jim Meyering  <jim@meyering.net>
72354
72355         * modules/closeout (Depends-on): Add exitfail.
72356         Suggestion from Bruno Haible.
72357
72358 2003-07-19  Karl Berry  <karl@gnu.org>
72359
72360         * config/config.sub: update from prep.
72361
72362 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72363
72364         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72365         Remove.
72366         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72367         to test that it can stand by itself.  Include "exitfail.h".
72368         Clients should set exit_failure instead.
72369         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72370
72371 2003-07-18  Bruno Haible  <bruno@clisp.org>
72372
72373         * modules/getndelim2: New file.
72374         * modules/getline: Share files with module getndelim2.
72375         * modules/getnline: Depend on getndelim2 instead of sharing files with
72376         it. Add getnline.c to lib_SOURCES.
72377         * MODULES.html.sh (func_all_modules): Add getndelim2.
72378
72379 2003-07-18  Bruno Haible  <bruno@clisp.org>
72380
72381         * m4/getndelim2.m4: New file.
72382         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72383         invoke gl_PREREQ_GETNDELIM2.
72384         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72385         gl_PREREQ_GETNDELIM2.
72386         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72387         gl_GETNDELIM2.
72388
72389 2003-07-18  Bruno Haible  <bruno@clisp.org>
72390
72391         * lib/getndelim2.h: New file.
72392         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72393         getndelim2.h.
72394         (getndelim2): Make non-static. Change return type to ssize_t.
72395         * lib/getline.h: Change argument names.
72396         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72397         * lib/getnline.c: Include getndelim2.h.
72398
72399 2003-07-18  Andreas Schwab  <schwab@suse.de>
72400
72401         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72402
72403 2003-07-17  Karl Berry  <karl@gnu.org>
72404
72405         * config/config.sub: update from prep.
72406
72407 2003-07-17  Bruno Haible  <bruno@clisp.org>
72408
72409         * modules/getnline: New file.
72410         * modules/getline: Add lib/getndelim2.c to source file list.
72411         * MODULES.html.sh (func_all_modules): Add getnline.
72412
72413 2003-07-17  Bruno Haible  <bruno@clisp.org>
72414
72415         * m4/getnline.m4: New file.
72416
72417 2003-07-17  Bruno Haible  <bruno@clisp.org>
72418
72419         * m4/Makefile.am.in: Remove file.
72420         * m4/Makefile.am: Remove file.
72421         * m4/Makefile.in: Remove file.
72422
72423 2003-07-17  Bruno Haible  <bruno@clisp.org>
72424
72425         * lib/getnline.h: New file.
72426         * lib/getnline.c: New file.
72427         * lib/getndelim2.c: New file, extracted from getline.c.
72428         (getndelim2): Renamed from getdelim2, with added nmax argument.
72429         * lib/getline.c: Include getndelim2.c.
72430         (getdelim2): Moved out to getndelim2.c.
72431         (getline, getdelim): Update.
72432
72433 2003-07-17  Bruno Haible  <bruno@clisp.org>
72434
72435         * lib/Makefile.am: Remove file.
72436         * lib/Makefile.in: Remove file.
72437
72438 2003-07-17  Bruno Haible  <bruno@clisp.org>
72439
72440         * configure.in: Remove file.
72441         * Makefile.in: Remove file.
72442
72443 2003-07-17  Bruno Haible  <bruno@clisp.org>
72444
72445         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72446
72447 2003-07-16  Karl Berry  <karl@gnu.org>
72448
72449         * config/srclist-update: was running fixlicense twice, which caused
72450                 texinfo.tex to be nullified for some reason.  Simplify,
72451                 $gplsrc is no longer needed as far as I can see?
72452
72453 2003-07-16  Jim Meyering  <jim@meyering.net>
72454
72455         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72456
72457 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72458
72459         * config/srclist.txt: Get the following files from gettext-runtime/intl
72460         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
72461         ref-del.sin.  From Bruno Haible.
72462         * config/srclist-update (fixfile): Change grep pattern again, since the
72463         previous fix didn't work (there was another trailing $).  Use
72464         '[$]' to escape the $s.
72465
72466 2003-07-15  Karl Berry  <karl@gnu.org>
72467
72468         * lib/vasnprintf.c: update from gettext.
72469
72470 2003-07-15  Karl Berry  <karl@gnu.org>
72471
72472         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
72473         gets expanded when surrounded by '$'.
72474
72475 2003-07-15  Jim Meyering  <jim@meyering.net>
72476
72477         * modules/save-cwd: Don't depend on error.  From Derek Price.
72478
72479 2003-07-15  Jim Meyering  <jim@meyering.net>
72480
72481         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
72482
72483 2003-07-14  Simon Josefsson  <jas@extundo.com>
72484
72485         * modules/mempcpy: New file.
72486         * MODULES.html.sh (func_all_modules): Add mempcpy.
72487
72488 2003-07-14  Simon Josefsson  <jas@extundo.com>
72489
72490         * m4/mempcpy.m4: New file.
72491
72492 2003-07-14  Simon Josefsson  <jas@extundo.com>
72493
72494         * lib/mempcpy.h: New file.
72495         * lib/mempcpy.c: New file.
72496
72497 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72498
72499         * modules/getdate, modules/posixtm: Depend on mktime.
72500
72501 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72502
72503         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
72504         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
72505         unicodeio.c, unicodeio.h, unlocked-io.h:
72506         Switch from LGPL to GPL.
72507
72508 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72509
72510         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
72511         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
72512         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
72513         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
72514         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
72515         updated automatically by ../config/srclist-update.  This changes
72516         their license from LPGL to GPL.
72517
72518 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72519
72520         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
72521         assumed to refer to the root of the most recent stable gettext version.
72522         * config/srclistvars.sh: Add defaults for eggert.
72523         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
72524         Match "This program" as well as "The program".  This is needed
72525         for gettext.
72526
72527 2003-07-14  Jim Meyering  <jim@meyering.net>
72528
72529         Don't emit diagnostics.  Let callers do that.
72530         * lib/save-cwd.c: Don't include "error.h".
72531         (save_cwd): Don't call error.  Ensure that errno is valid
72532         when returning nonzero.
72533
72534         * lib/save-cwd.h (restore_cwd): Update prototype.
72535         * lib/save-cwd.c (restore_cwd): Remove two parameters.
72536         Simplify.  Don't call error upon failure.  Let callers do that.
72537         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
72538         when auditing is enabled.  But don't bother updating the #if.
72539
72540 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
72541
72542         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
72543         it breaks C++ compilation.
72544         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
72545
72546 2003-07-10  Simon Josefsson  <jas@extundo.com>
72547
72548         * modules/strchrnul (Makefile.am): Add strchrnul.h.
72549
72550 2003-07-10  Jim Meyering  <jim@meyering.net>
72551
72552         * m4/clock_time.m4: Remove trailing blank.
72553         * m4/intmax_t.m4: Likewise.
72554
72555 2003-07-10  Jim Meyering  <jim@meyering.net>
72556
72557         * lib/vasnprintf.c: Remove trailing blanks.
72558         Make cpp indentation consistent.
72559
72560 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72561
72562         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
72563         posixver.c, strftime.c, strnlen.c, strverscmp.c:
72564         Switch from LGPL to GPL.
72565
72566 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72567
72568         * config/srclist.txt: Sort sublists.  Add
72569         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
72570         that differ from gnulib for one reason or another; we'd like this list
72571         to be smaller but for now let's document what we have.
72572
72573 2003-07-08  Paul Eggert  <eggert@twinsun.com>
72574
72575         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
72576         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
72577         and sweeter "eval x=$x".
72578         * config/srclist.txt: Get lib/argp* from glibc.
72579
72580 2003-07-07  Paul Eggert  <eggert@twinsun.com>
72581
72582         * lib/mktime.c: Fix some boundary cases and remove need for floating
72583         point.
72584
72585         Issue a compile-time diagnostic if time_t is floating point, or if
72586         two's complement arithmetic is not in effect, or if arithmetic
72587         right shift does not propagate the sign.  These assumptions were
72588         all in the original code but they weren't checked.
72589
72590         (TIME_T_MIDPOINT, verify): New macros.
72591         (__isleap): Remove; it has integer overflow problems.
72592         (leapyear): New function, without those problems.
72593         (ydhms_tm_diff): Remove; splitting into two parts.
72594         (ydhms_diff): New function, containing the arithmetic part of
72595         the old ydhms_tm_diff function.  Issue a compile-time
72596         diagnostic if we are not using C99 integer division.
72597         Avoid casts when possible.
72598         (guess_time_tm): New function, containing the checking part of
72599         the old ydhms_tm_diff function.  Return the new value, rather than
72600         the difference between it and the old.  Accept a new argument T
72601         so that *T specifies the old value.  Check for overflow in the result.
72602
72603         (__mktime_internal): Use a time_t offset, not a long int offset.
72604         This undoes the 2003-06-04 change, which is no longer needed now
72605         that we have better overflow checking.
72606         (localtime_offset): Likewise.
72607
72608         (__mktime_internal): Avoid harmful overflow on hosts where time_t
72609         and long are 64-bit but int is only 32-bit.
72610         (ydhms_diff): Use long int to store year1 and yday1.
72611         Issue a compile-time diagnostic if long int is not wide enough.
72612
72613         (__mktime_internal): Use long int to store adjusted year and yday.
72614         Use plain C rather than preprocessor commands, if that doesn't
72615         affect efficiency.
72616         Check for overflow (and try to repair) after each probe
72617         rather than checking only at the very end.  This avoids some bugs
72618         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
72619         does not equal GMT offset at maximum time).
72620         Use integer to check for overflow rather than floating point; this
72621         is more portable to non-IEEE hosts, and is a tad faster.
72622         When we detect that we are oscillating between two values,
72623         don't check whether tm_isdst has the requested value, since
72624         we already know the answer.  When tm_isdst has the wrong value,
72625         use a different heuristic to find the right one, based on the
72626         extreme values actually observed in practice in tz2003a,
72627         rather than the (overly optimistic) "previous 3 calendar quarters".
72628
72629         (not_equal_tm, print_tm, check_result): Use "const T" rather than
72630         "T const" to accommodate glibc style.
72631         (check_result): Use less-confusing report format.  "long" -> "long int.
72632         (main): Likewise.
72633         Don't loop if the iteration overflows time_t.
72634         Allow a negative step in the iteration.
72635
72636 2003-07-06  Karl Berry  <karl@gnu.org>
72637
72638         * config/depcomp: update from automake.
72639         * config/config.sub: update from prep.
72640
72641 2003-07-03  Karl Berry  <karl@gnu.org>
72642
72643         * config/config.guess: update from prep.
72644
72645 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72646
72647         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
72648         xreadlink.c now includes it unconditionally.
72649
72650 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72651
72652         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
72653         having it depend on HAVE_SYS_TYPES_H.
72654
72655 2003-07-01  Bruno Haible  <bruno@clisp.org>
72656
72657         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
72658         <sys/types.h> should be sufficient.
72659         Reported by Paul Eggert.
72660
72661 2003-06-26  Karl Berry  <karl@gnu.org>
72662
72663         * config/depcomp: update from automake.
72664
72665 2003-06-26  Bruno Haible  <bruno@clisp.org>
72666
72667         * modules/human: Depend on module stdbool.
72668
72669 2003-06-25  Bruno Haible  <bruno@clisp.org>
72670
72671         * modules/readlink: New file.
72672         * modules/xreadlink: Depend on it.
72673         * MODULES.html.sh (func_all_modules): Add readlink.
72674
72675 2003-06-25  Bruno Haible  <bruno@clisp.org>
72676
72677         * m4/readlink.m4: New file.
72678
72679 2003-06-25  Bruno Haible  <bruno@clisp.org>
72680
72681         * lib/readlink.c: New file.
72682
72683 2003-06-22  Karl Berry  <karl@gnu.org>
72684
72685         * config/srclist.txt: update mkinstalldirs from automake.
72686         * config/mkinstalldirs: update.
72687
72688 2003-06-22  Bruno Haible  <bruno@clisp.org>
72689
72690         Portability to mingw32.
72691         * m4/ssize_t.m4: New file, from GNU gettext.
72692         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
72693         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
72694
72695 2003-06-22  Bruno Haible  <bruno@clisp.org>
72696
72697         * modules/safe-read: Add m4/ssize_t.m4.
72698         * modules/xreadlink: Add m4/ssize_t.m4.
72699
72700 2003-06-20  Bruno Haible  <bruno@clisp.org>
72701
72702         Assume C89, so PARAMS isn't needed.
72703         * lib/unicodeio.h (PARAMS): Remove.
72704         * lib/unicodeio.c: Don't use PARAMS.
72705
72706 2003-06-18  Karl Berry  <karl@gnu.org>
72707
72708         * config/config.{guess,sub}: update from prep.
72709
72710 2003-06-18  Jim Meyering  <jim@meyering.net>
72711
72712         Merge changes from coreutils.
72713         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
72714         Remove explicit declarations of xmalloc and realloc.
72715         Include xalloc.h.
72716         (read_utmp): Remove anachronistic cast of xmalloc.
72717
72718 2003-06-17  Paul Eggert  <eggert@twinsun.com>
72719
72720         Assume C89, so PARAMS isn't needed.
72721         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
72722         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
72723         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
72724         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
72725         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
72726         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
72727         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
72728         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
72729         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
72730         lib/xstrtod.h, lib/xstrtol.h: Likewise.
72731         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
72732         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
72733         no longer needed. Anyway, config.h should always be included before any
72734         other file.
72735
72736 2003-06-11  Simon Josefsson  <jas@extundo.com>
72737
72738         * modules/sysexits: New file.
72739         * MODULES.html.sh (func_all_modules): Add sysexits.
72740
72741 2003-06-11  Simon Josefsson  <jas@extundo.com>
72742
72743         * lib/sysexit_.h: New file.
72744
72745 2003-06-11  Derek Price  <derek@ximbiot.com>
72746
72747         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
72748         necessary.
72749
72750 2003-06-11  Bruno Haible  <bruno@clisp.org>
72751
72752         * m4/sysexits.m4: New file.
72753
72754 2003-06-10  Simon Josefsson  <jas@extundo.com>
72755
72756         * lib/argp.h: New file, from glibc.
72757         * lib/argp-ba.c: New file, from glibc.
72758         * lib/argp-eexst.c: New file, from glibc.
72759         * lib/argp-fmtstream.c: New file, from glibc.
72760         * lib/argp-fmtstream.h: New file, from glibc.
72761         * lib/argp-fs-xinl.c: New file, from glibc.
72762         * lib/argp-help.c: New file, from glibc.
72763         * lib/argp-namefrob.h: New file, from glibc.
72764         * lib/argp-parse.c: New file, from glibc.
72765         * lib/argp-pv.c: New file, from glibc.
72766         * lib/argp-pvh.c: New file, from glibc.
72767         * lib/argp-xinl.c: New file, from glibc.
72768
72769 2003-06-10  Simon Josefsson  <jas@extundo.com>
72770
72771         * modules/strchrnul: New file.
72772
72773 2003-06-10  Simon Josefsson  <jas@extundo.com>
72774
72775         * modules/argp: New file.
72776
72777 2003-06-10  Simon Josefsson  <jas@extundo.com>
72778
72779         * m4/strchrnul.m4: New file.
72780
72781 2003-06-10  Simon Josefsson  <jas@extundo.com>
72782
72783         * lib/strchrnul.h: New file.
72784         * lib/strchrnul.c: New file.
72785
72786 2003-06-10  Bruno Haible  <bruno@clisp.org>
72787
72788         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
72789
72790 2003-06-07  Karl Berry  <karl@gnu.org>
72791
72792         * config/config.{guess,sub}: update from prep.
72793
72794 2003-06-07  Jim Meyering  <jim@meyering.net>
72795
72796         * modules/strtod: Use $(...) notation, not @...@ for
72797         AC_REPLACE'd variables.
72798         * modules/localcharset: Likewise.
72799
72800 2003-06-07  Jim Meyering  <jim@meyering.net>
72801
72802         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72803         in place of my name in the copyright comment.
72804         Remove definition and uses of __P.
72805
72806         From coreutils.
72807         * lib/stat.c: Don't declare xmalloc explicitly.
72808         Instead, include "xalloc.h".
72809         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72810         xrealloc, and xcalloc return values.
72811         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72812         Improve comment.
72813         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72814
72815 2003-06-07  Bruno Haible  <bruno@clisp.org>
72816
72817         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72818         avoid AC_CONFIG_LINKS.
72819         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72820         fnmatch.h, to avoid AC_CONFIG_LINKS.
72821         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72822
72823 2003-06-07  Bruno Haible  <bruno@clisp.org>
72824
72825         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72826         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72827         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72828         directory.
72829         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72830         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72831         directory.
72832
72833 2003-06-06  Jim Meyering  <jim@meyering.net>
72834
72835         Merge from coreutils.
72836         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72837         Consolidate declarations and initializations of *_base* locals.
72838
72839         Merge from coreutils.
72840         This avoids a core dump on systems without GNU putenv,
72841         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72842         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72843         (unsetenv): New static function, from GNU libc.
72844         (rpl_putenv): Use it.
72845
72846         * lib/modechange.c: Remove trailing blanks.
72847
72848         Merge from coreutils.
72849         * lib/fsusage.c: Remove declaration of statfs.
72850         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72851
72852         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72853
72854 2003-06-06  Jim Meyering  <jim@meyering.net>
72855
72856         * lib/stdbool_.h: Renamed from stdbool.h.in.
72857
72858 2003-06-06  Jim Meyering  <jim@meyering.net>
72859             Bruno Haible  <bruno@clisp.org>
72860
72861         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72862         Adjust Makefile.am snippet not to redirect directly to target.
72863         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72864
72865 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72866
72867         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72868         mismatch, look in future quarters as well as past.  This fixes a
72869         bug when processing fall-backwards gaps immediately after a long
72870         period of daylight-saving time.
72871
72872         * lib/mktime.c: Assume freestanding C89 or better.
72873         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72874         (__P): Remove; not used.
72875         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72876         (mktime, not_equal_tm, print_tm, check_result,
72877         main): Use prototypes.  Use const * where appropriate.
72878         (main): Fix typo in testing code that uncovered by above changes.
72879         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72880
72881 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72882
72883         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72884         locale.h, localeconv.  This merges changes from coreutils.
72885
72886         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72887         It can be removed after the next Autoconf is released.
72888         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72889         needed.
72890
72891 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72892
72893         * lib/mktime.c: Fix Debian bug 177940
72894         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72895         (localtime_offset): Now long int, not time_t, because we want it
72896         to be guaranteed to be signed.  All uses changed.
72897         (__mktime_internal): If overflow would occur when adding offset,
72898         don't add it.
72899
72900         Merge 'human' changes from coreutils.  Rewrite to support
72901         locale-specific notations like thousands separators.
72902         * lib/human.c: Simplify authorship notice.
72903         Include human.h immediately after config.h.
72904         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72905         <limits.h>: Do not include, since human.h does.
72906         (SIZE_MAX, UINTMAX_MAX): New macros.
72907         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72908         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72909         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72910         (power_letter): Renamed from suffixes.
72911         (generate_suffix_backwards): Remove.
72912         (adjust_value): Now takes int style (because of human.h changes)
72913         and long double value (for greater precision on some platforms).
72914         (group_number): New function.
72915         (human_readable): Use it.  Use integer options, not enum.
72916         Put the options before the sizes in the arg list.
72917         Support all the new options.
72918         The old human_readable function has been removed;
72919         use inttostr.h instead.
72920         (human_readable, default_block_size, humblock):
72921         Use uintmax_t, not int, for block sizes.
72922         (human_readable_inexact, block_size_types): Remove.
72923         (block_size_opts): New constant.
72924         (human_options): Renamed from human_block_size, with new signature
72925         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72926         * lib/human.h: Add copyright and authorship notice.
72927         Include <limits.h> and <stdbool.h> unconditionally.
72928         (PARAMS): Remove.  All uses removed.
72929         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72930         (enum human_inexact_style): Remove tag; now a nameless enum.
72931         (human_floor, human_ceiling, human_round_to_even): Now have
72932         values 2, 0, 1 rather than -1, 1, 0.
72933         (human_group_digits, human_suppress_point_zero, human_autoscale,
72934         human_base_1024, human_SI, human_B): New constants.
72935         (human_readable_inexact, human_block_size): Remove.
72936         (human_readable): Size args are now uintmax_t, not int.
72937         (human_options): New decl.
72938
72939         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72940         unnecessary now that we assume C89 or better.  This change
72941         imported from coreutils.
72942
72943         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72944         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72945         in the 2003-05-30 sync from glibc.
72946
72947         .h files should stand alone, but we shouldn't include <sys/types.h>
72948         if we can get away with just <stddef.h>.
72949
72950         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72951         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72952         rather than <sys/types.h>, as we merely need size_t.
72953         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72954         to get size_t.
72955         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72956         Include <stdio.h>, to get FILE.
72957         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72958         memcasecmp.h has included <stddef.h> and all we need is size_t.
72959         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72960         our interface, instead of including <sys/types.h>
72961
72962 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72963
72964         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72965         now, as glibc mktime is buggy on non-glibc systems.
72966
72967 2003-06-03  Karl Berry  <karl@gnu.org>
72968
72969         * config/config.sub: update from prep.
72970
72971 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72972
72973         [from coreutils]
72974         Fix some minor time-related bugs with POSIX time arguments.
72975         Some valid time stamps were being rejected (notably -1, and
72976         time stamps before 1900 on 64-bit hosts).  And some invalid
72977         time stamps were being accepted, e.g. September 31.
72978
72979         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72980         that we can return (time_t) -1 successfully.
72981         * lib/posixtm.c: Likewise.
72982         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72983         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72984         (t): Remove static var.
72985         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72986         of static var.  All uses changed.
72987         (year): Do not reject years before 1900; they can occur with
72988         64-bit time_t.
72989         (posix_time_parse): Do not check for out-of-range components;
72990         that is now the caller's responsibility, since our checks were
72991         only approximations.
72992         (posixtime): Use mktime to check for out-of-range components,
72993         since it knows them exactly.
72994         If mktime returns (time_t) -1, check whether an error actually occurred
72995         by invoking localtime on -1.
72996         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72997         posixtime failures better.
72998         Improve the test data (in comments only).
72999
73000 2003-06-02  Karl Berry  <karl@gnu.org>
73001
73002         * config/mkinstalldirs (version): new variable.
73003         (--version): new option.
73004         (usage): improve message.
73005
73006 2003-05-30  Karl Berry  <karl@gnu.org>
73007
73008         * lib/mktime.c: update from libc.
73009
73010 2003-05-30  Bruno Haible  <bruno@clisp.org>
73011
73012         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73013         * config/config.rpath: Upgrade to gettext-0.12.1.
73014
73015 2003-05-30  Bruno Haible  <bruno@clisp.org>
73016
73017         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73018         * m4/nls.m4: New file, from gettext-0.12.1.
73019         * m4/po.m4: New file, from gettext-0.12.1.
73020         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73021
73022 2003-05-30  Bruno Haible  <bruno@clisp.org>
73023
73024         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73025         * lib/localcharset.h: Likewise.
73026         * lib/localcharset.c: Likewise.
73027
73028 2003-05-29  Karl Berry  <karl@gnu.org>
73029
73030         * config/config.rpath: update from gettext.
73031
73032 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73033
73034         Assume the headers required for C89 freestanding compilers.
73035         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73036         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73037         * m4/human.m4 (gl_HUMAN): Likewise.
73038         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73039         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73040         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73041         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73042         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73043         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73044
73045 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73046
73047         Assume the headers required for C89 freestanding compilers.
73048         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73049         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73050         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73051         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73052         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73053         define, since <limits.h> is guaranteed to do that.
73054         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73055         * lib/exclude.c: Include <stdbool.h> unconditionally.
73056         * lib/tempname.c: Include <stddef.h> unconditionally.
73057         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73058         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73059         <stddef.h> does that.
73060         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73061         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73062         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73063         needed.
73064         * lib/xstrtol.c: Likewise.
73065         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73066         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73067
73068         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73069         warnings on some platforms.
73070
73071         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73072         arbitrarily.
73073
73074 2003-05-26  Jim Meyering  <jim@meyering.net>
73075
73076         Merge in a change from coreutils:
73077         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73078         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73079         that condition, rather than `-1' which is slightly misleading.
73080         Change the name of the cache variable to have the gl_ prefix.
73081         Prompted by a patch from Richard Dawe for DJGPP.
73082
73083 2003-05-24  Karl Berry  <karl@gnu.org>
73084
73085         * config/config.guess: update from prep.
73086
73087 2003-05-22  Karl Berry  <karl@gnu.org>
73088
73089         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73090
73091 2003-05-20  Karl Berry  <karl@gnu.org>
73092
73093         * config/config.guess: update from prep.
73094
73095 2003-05-18  Karl Berry  <karl@gnu.org>
73096
73097         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73098         might actually be set by the user.
73099
73100         * config/depcomp, install-sh, mdate-sh: update from automake.
73101
73102 2003-05-17  Bruno Haible  <bruno@clisp.org>
73103
73104         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73105         invalid expansion for AC_EGREP_CPP.
73106         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73107         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73108         Suggested by Akim Demaille <akim@epita.fr> in
73109         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73110
73111 2003-05-12  Jim Meyering  <jim@meyering.net>
73112
73113         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73114         the space-padded-by-default conversion specifiers, %e, %k, %l.
73115
73116 2003-05-12  Bruno Haible  <bruno@clisp.org>
73117
73118         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73119         the string is longer than 4 KB.
73120
73121 2003-05-11  Karl Berry  <karl@gnu.org>
73122
73123         * config/config.{guess,sub}: update from prep.
73124
73125 2003-05-09  Bruno Haible  <bruno@clisp.org>
73126
73127         * modules/error: Add m4/strerror_r.m4 to file list.
73128
73129 2003-05-03  Bruno Haible  <bruno@clisp.org>
73130
73131         Upgrade to Unicode-4.0.
73132         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73133         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73134         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73135         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73136         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73137         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73138         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73139         Change width of U+E0100..U+E01EF from 1 to 0.
73140
73141 2003-04-25  Jim Meyering  <jim@meyering.net>
73142
73143         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73144         of type size_t, not int.
73145
73146 2003-04-25  Bruno Haible  <bruno@clisp.org>
73147
73148         * lib/copy-file.c: Include <stddef.h>, for size_t.
73149
73150 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73151
73152         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73153         code which expansion is under static control.  Patch imported from
73154         Akim Demaille's patch to Bison; see
73155         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73156
73157 2003-04-14  Bruno Haible  <bruno@clisp.org>
73158
73159         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73160
73161 2003-04-11  Jim Meyering  <jim@meyering.net>
73162
73163         Merge changes from Coreutils.
73164
73165         2003-03-22  Jim Meyering  <jim@meyering.net>
73166
73167         * lib/strftime.c (widen): Cast alloca return value to proper type.
73168
73169         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73170
73171         From GNU libc.
73172         * lib/strftime.c (my_strftime): Handle very large width
73173         specifications for numeric values correctly.  Improve checks for
73174         overflow.
73175
73176         2003-01-19  Jim Meyering  <jim@meyering.net>
73177
73178         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73179         definitions.
73180         (nl_get_alt_digit) [! defined my_strftime]: Define.
73181         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73182         _nl_get_alt_digit and _nl_get_walt_digit.
73183
73184         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73185         libc. These changes have no effect outside of _LIBC.
73186
73187 2003-04-10  Bruno Haible  <bruno@clisp.org>
73188
73189         * modules/findprog: New file.
73190         * MODULES.html.sh (func_all_modules): Add it.
73191
73192 2003-04-10  Bruno Haible  <bruno@clisp.org>
73193
73194         * m4/findprog.m4: New file.
73195         * m4/eaccess.m4: New file.
73196
73197 2003-04-10  Bruno Haible  <bruno@clisp.org>
73198
73199         * lib/findprog.h: New file, from GNU gettext.
73200         * lib/findprog.c: New file, from GNU gettext.
73201
73202 2003-04-05  Jim Meyering  <jim@meyering.net>
73203
73204         Merge changes from Coreutils.
73205
73206         * lib/exclude.h (PARAMS): Remove definition and uses.
73207         * lib/exclude.c: Remove uses of `PARAMS'.
73208
73209         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73210         Add test-cases for DOS filenames. Declare program_name.
73211         (main): Set up program_name.  Patch by Rich Dawe.
73212
73213         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73214         error from mntctl.
73215         Use mntctl's return value to drive the entry-processing loop, since
73216         we can't rely on the value of the vmt_length member in the last
73217         entry.  On some systems doing so could result in exhausting
73218         virtual memory.  Based in part on a patch from Mike Jetzer.
73219
73220 2003-04-04  Bruno Haible  <bruno@clisp.org>
73221
73222         * modules/linebreak: New file.
73223         * MODULES.html.sh (func_all_modules): Add it.
73224
73225 2003-04-04  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/linebreak.m4: New file.
73228
73229 2003-04-04  Bruno Haible  <bruno@clisp.org>
73230
73231         * lib/linebreak.h: New file, from GNU gettext.
73232         * lib/linebreak.c: New file, from GNU gettext with slight
73233         modifications.
73234         * lib/lbrkprop.h: New file, from GNU gettext.
73235
73236 2003-04-03  Bruno Haible  <bruno@clisp.org>
73237
73238         * modules/utf8-ucs4: New file.
73239         * modules/utf16-ucs4: New file.
73240         * modules/ucs4-utf8: New file.
73241         * modules/ucs4-utf16: New file.
73242         * MODULES.html.sh (func_all_modules): Add them.
73243
73244 2003-04-03  Bruno Haible  <bruno@clisp.org>
73245
73246         * m4/utf-ucs4.m4: New file.
73247         * m4/ucs4-utf.m4: New file.
73248
73249 2003-04-03  Bruno Haible  <bruno@clisp.org>
73250
73251         * lib/utf8-ucs4.h: New file, from GNU gettext.
73252         * lib/utf16-ucs4.h: New file, from GNU gettext.
73253         * lib/ucs4-utf8.h: New file, from GNU gettext.
73254         * lib/ucs4-utf16.h: New file, from GNU gettext.
73255
73256 2003-04-02  Bruno Haible  <bruno@clisp.org>
73257
73258         * modules/binary-io: New file.
73259         * MODULES.html.sh (func_all_modules): Add it.
73260
73261 2003-04-02  Bruno Haible  <bruno@clisp.org>
73262
73263         * lib/binary-io.h: New file, from GNU gettext.
73264
73265 2003-04-01  Bruno Haible  <bruno@clisp.org>
73266
73267         * modules/pathname: New file.
73268         * MODULES.html.sh (func_all_modules): Add it.
73269
73270 2003-04-01  Bruno Haible  <bruno@clisp.org>
73271
73272         * lib/pathname.h: New file, from GNU gettext.
73273         * lib/concatpath.c: New file, from GNU gettext.
73274
73275 2003-03-30  Bruno Haible  <bruno@clisp.org>
73276
73277         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73278
73279 2003-03-30  Bruno Haible  <bruno@clisp.org>
73280
73281         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73282         function chown() doesn't exist.
73283
73284 2003-03-28  Bruno Haible  <bruno@clisp.org>
73285
73286         * modules/copy-file: New file.
73287         * MODULES.html.sh (func_all_modules): Add it.
73288
73289 2003-03-28  Bruno Haible  <bruno@clisp.org>
73290
73291         * m4/copy-file.m4: New file.
73292
73293 2003-03-28  Bruno Haible  <bruno@clisp.org>
73294
73295         * lib/copy-file.h: New file, from GNU gettext.
73296         * lib/copy-file.c: New file, from GNU gettext.
73297
73298 2003-03-18  Jim Meyering  <jim@meyering.net>
73299
73300         * lib/quote.c (quote_n): Fix typo in comment.
73301
73302 2003-03-18  Bruno Haible  <bruno@clisp.org>
73303
73304         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73305         checking.
73306         * m4/onceonly_2_57.m4: Likewise.
73307
73308 2003-03-17  Bruno Haible  <bruno@clisp.org>
73309
73310         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73311         (m4_quote): Remove macro.
73312         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73313
73314 2003-03-14  Jim Meyering  <jim@meyering.net>
73315
73316         Merge changes from Coreutils.
73317         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73318         to be const, in order to avoid warnings.
73319         (obstack_room): Likewise.
73320         (obstack_empty_p): Likewise.
73321
73322 2003-03-14  Bruno Haible  <bruno@clisp.org>
73323
73324         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73325         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73326
73327 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73328
73329         Merge changes from Bison.
73330         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73331         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73332         when compiling Bison 1.875's `bitset bset = obstack_alloc
73333         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73334         * lib/hash.c: Include <stdbool.h> unconditionally.
73335
73336 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73337
73338         * m4/onceonly.m4 (m4_quote): New macro.
73339         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73340         Quote AC_FOREACH variable-expansions properly.
73341
73342 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73343
73344         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73345
73346 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73347
73348         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73349         Reported by Bruce Becker; see:
73350         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73351
73352 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73353             Bruno Haible  <bruno@clisp.org>
73354
73355         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73356         Reported by John Hughes, see
73357         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73358
73359 2003-02-20  Bruno Haible  <bruno@clisp.org>
73360
73361         * MODULES.html.sh (func_all_modules): Add poll.
73362
73363 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73364
73365         * modules/poll: New file.
73366
73367 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73368
73369         * lib/poll_.h: New file.
73370         * lib/poll.c: New file.
73371
73372 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73373
73374         * m4/poll.m4: New file.
73375
73376 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73377
73378         * modules/mathl: New file.
73379
73380 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73381
73382         * lib/mathl.h: New file.
73383         * lib/acosl.c: New file.
73384         * lib/asinl.c: New file.
73385         * lib/atanl.c: New file.
73386         * lib/ceill.c: New file.
73387         * lib/cosl.c: New file.
73388         * lib/expl.c: New file.
73389         * lib/floorl.c: New file.
73390         * lib/frexpl.c: New file.
73391         * lib/ldexpl.c: New file.
73392         * lib/logl.c: New file.
73393         * lib/sincosl.c: New file.
73394         * lib/sinl.c: New file.
73395         * lib/sqrtl.c: New file.
73396         * lib/tanl.c: New file.
73397         * lib/trigl.c: New file.
73398         * lib/trigl.h: New file.
73399
73400 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73401
73402         * m4/mathl.m4: New file.
73403
73404 2003-02-18  Bruno Haible  <bruno@clisp.org>
73405
73406         * MODULES.html.sh (func_all_modules): Add mathl.
73407
73408 2003-02-17  Bruno Haible  <bruno@clisp.org>
73409
73410         * modules/mkdtemp: New module.
73411         * MODULES.html.sh (func_all_modules): Add it.
73412
73413 2003-02-17  Bruno Haible  <bruno@clisp.org>
73414
73415         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73416
73417 2003-02-17  Bruno Haible  <bruno@clisp.org>
73418
73419         * lib/mkdtemp.h: New file, from GNU gettext.
73420         * lib/mkdtemp.c: New file, from GNU gettext.
73421
73422 2003-02-02  Jim Meyering  <jim@meyering.net>
73423
73424         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73425         e.g. glibc-2.2.93.
73426
73427 2003-01-31  Bruno Haible  <bruno@clisp.org>
73428
73429         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73430         'rpl_rename'.
73431         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73432         'rpl_strnlen'.
73433         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73434         'rpl_strtod'.
73435         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73436         'rpl_utime'.
73437
73438 2003-01-31  Bruno Haible  <bruno@clisp.org>
73439
73440         * lib/rename.c: #undef rename before defining rpl_rename.
73441         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73442
73443 2003-01-30  Bruno Haible  <bruno@clisp.org>
73444
73445         * modules/vasnprintf, modules/vasprintf: New modules.
73446         * MODULES.html.sh (func_all_modules): Add them.
73447
73448 2003-01-30  Bruno Haible  <bruno@clisp.org>
73449
73450         * m4/signed.m4: New file, from GNU gettext.
73451         * m4/longdouble.m4: New file, from GNU gettext.
73452         * m4/wchar_t.m4: New file, from GNU gettext.
73453         * m4/wint_t.m4: New file, from GNU gettext.
73454         * m4/vasnprintf.m4: New file.
73455         * m4/vasprintf.m4: New file.
73456
73457 2003-01-30  Bruno Haible  <bruno@clisp.org>
73458
73459         * lib/printf-args.h: New file, from GNU gettext.
73460         * lib/printf-args.c: New file, from GNU gettext.
73461         * lib/printf-parse.h: New file, from GNU gettext.
73462         * lib/printf-parse.c: New file, from GNU gettext.
73463         * lib/vasnprintf.h: New file, from GNU gettext.
73464         * lib/vasnprintf.c: New file, from GNU gettext.
73465         * lib/asnprintf.c: New file, from GNU gettext.
73466         * lib/vasprintf.h: New file, from GNU gettext with modifications.
73467         * lib/vasprintf.c: New file, from GNU gettext.
73468         * lib/asprintf.c: New file, from GNU gettext.
73469
73470 2003-01-29  Bruno Haible  <bruno@clisp.org>
73471
73472         * modules/stpncpy: New module.
73473         * MODULES.html.sh (func_all_modules): Add it.
73474
73475 2003-01-29  Bruno Haible  <bruno@clisp.org>
73476
73477         * m4/stpncpy.m4: New file.
73478
73479 2003-01-29  Bruno Haible  <bruno@clisp.org>
73480
73481         * lib/stpncpy.h: New file, from GNU gettext with modifications.
73482         * lib/stpncpy.c: New file, from GNU gettext with modifications.
73483
73484 2003-01-28  Bruno Haible  <bruno@clisp.org>
73485
73486         * modules/c-ctype: New module.
73487         * MODULES.html.sh (func_all_modules): Add it.
73488
73489 2003-01-28  Bruno Haible  <bruno@clisp.org>
73490
73491         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
73492         Paul Eggert.
73493         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
73494         Paul Eggert.
73495
73496 2003-01-27  Bruno Haible  <bruno@clisp.org>
73497
73498         * modules/xsetenv: New module.
73499         * MODULES.html.sh (func_all_modules): Add it.
73500
73501 2003-01-27  Bruno Haible  <bruno@clisp.org>
73502
73503         * lib/xsetenv.h: New file, from GNU gettext.
73504         * lib/xsetenv.c: New file, from GNU gettext.
73505
73506 2003-01-23  Jim Meyering  <jim@meyering.net>
73507
73508         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
73509         from working on systems without dirfd (at least Irix and OSF1/Tru64).
73510
73511 2003-01-23  Bruno Haible  <bruno@clisp.org>
73512
73513         * modules/minmax: New module.
73514         * MODULES.html.sh (func_all_modules): Add it.
73515
73516 2003-01-23  Bruno Haible  <bruno@clisp.org>
73517
73518         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
73519         Eggert.
73520
73521 2003-01-22  Bruno Haible  <bruno@clisp.org>
73522
73523         * modules/exit: New module.
73524         * MODULES.html.sh (func_all_modules): Add it.
73525
73526 2003-01-22  Bruno Haible  <bruno@clisp.org>
73527
73528         * lib/exit.h: New file, from GNU gettext.
73529
73530 2003-01-19  Bruno Haible  <bruno@clisp.org>
73531
73532         * gnulib-tool: Recognize option --extract-maintainer.
73533         (func_get_maintainer): New function.
73534         * modules/*: Add Maintainer entry.
73535
73536 2003-01-16  Jim Meyering  <jim@meyering.net>
73537
73538         * m4/regex.m4: The `regex' struct is both input and output.
73539         Initialize it before each use.  Patch by Tim Waugh.
73540
73541 2003-01-16  Bruno Haible  <bruno@clisp.org>
73542
73543         * MODULES.html.sh: Add a table of contents. Add the module name as
73544         leftmost column. Add hyperlinks.
73545
73546 2003-01-15  Bruno Haible  <bruno@clisp.org>
73547
73548         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
73549
73550 2003-01-15  Bruno Haible  <bruno@clisp.org>
73551
73552         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
73553         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
73554         suffix.
73555
73556 2003-01-15  Bruno Haible  <bruno@clisp.org>
73557
73558         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
73559
73560 2003-01-15  Bruno Haible  <bruno@clisp.org>
73561
73562         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
73563         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
73564
73565 2003-01-14  Jim Meyering  <jim@meyering.net>
73566
73567         * lib/same.c (same_name): Tweak a comment.
73568
73569 2003-01-14  Bruno Haible  <bruno@clisp.org>
73570
73571         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
73572         when a string comparison is sufficient.
73573
73574 2003-01-14  Bruno Haible  <bruno@clisp.org>
73575
73576         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
73577         'unsigned int'.
73578
73579 2003-01-14  Bruno Haible  <bruno@clisp.org>
73580
73581         * lib/hash-pjw.c: Add comment about low quality of this function.
73582
73583 2003-01-13  Bruno Haible  <bruno@clisp.org>
73584
73585         * modules/stpcpy: Distribute lib/stpcpy.h.
73586         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
73587
73588 2003-01-13  Bruno Haible  <bruno@clisp.org>
73589
73590         * modules/*: Add a description.
73591         * modules/strpbrk: Fix Makefile.am snippet.
73592         * modules/strtoimax: Fix dependencies.
73593         * modules/strtoumax: Likewise.
73594
73595 2003-01-13  Bruno Haible  <bruno@clisp.org>
73596
73597         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
73598         * modules/alloca (Makefile.am): All object files depend on alloca.h.
73599         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
73600
73601 2003-01-13  Bruno Haible  <bruno@clisp.org>
73602
73603         * gnulib-tool (func_create_testdir): Store config/* files in the main
73604         directory.
73605         * config.rpath: Move to ...
73606         * config/config.rpath: ... here.
73607         * modules/gettext: Contains config/config.rpath, not config.rpath.
73608         * modules/iconv: Likewise.
73609
73610 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73611
73612         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73613         to avoid collisions with libcurses and libreadline.
73614
73615         * m4/getstr.m4: Remove.
73616         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
73617
73618 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73619
73620         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73621         to avoid collisions with libcurses and libreadline.
73622
73623         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
73624         * lib/getstr.h, getstr.c: Remove.
73625         * lib/getline.c: Include "getline.h", to check interface.
73626         Move body of old getstr.c here: this defines MIN_CHUNK and
73627         declares getdelim2, which is renamed from getstr.
73628         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
73629
73630         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
73631         All uses changed.
73632         * lib/linebuffer.h: Likewise.
73633         (readline): Remove backward-compatibility macro.
73634
73635 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73636
73637         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73638         to avoid collisions with libcurses and libreadline.
73639         * getstr: Remove.
73640         * MODULES.html.sh: Remove getstr.
73641         * modules/getline: Depend on unlocked-io, not getstr.
73642
73643 2003-01-12  Jim Meyering  <jim@meyering.net>
73644
73645         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
73646
73647 2003-01-10  Bruno Haible  <bruno@clisp.org>
73648
73649         * modules/alloca: Change Makefile.am requirements. Simplify Include
73650         requirements. Add lib/alloca_.h to file list.
73651
73652 2003-01-10  Bruno Haible  <bruno@clisp.org>
73653
73654         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
73655
73656 2003-01-10  Bruno Haible  <bruno@clisp.org>
73657
73658         * lib/alloca_.h: New file.
73659         * lib/getdate.y: Unconditionally include alloca.h.
73660         * lib/makepath.c: Likewise.
73661         * lib/setenv.c: Likewise.
73662         * lib/userspec.c: Likewise.
73663
73664 2003-01-09  Karl Berry  <karl@gnu.org>
73665
73666         * MODULES.html.sh: include `dirname $0` in PATH, to find
73667         gnulib-tool.
73668
73669 2003-01-09  Bruno Haible  <bruno@clisp.org>
73670
73671         * modules/stdbool: Change configure.ac, Makefile.am requirements.
73672         Simplify Include requirements. Add lib/stdbool.h.in to file list.
73673
73674 2003-01-09  Bruno Haible  <bruno@clisp.org>
73675
73676         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
73677
73678 2003-01-09  Bruno Haible  <bruno@clisp.org>
73679
73680         * lib/stdbool.h.in: New file.
73681
73682 2003-01-09  Bruno Haible  <bruno@clisp.org>
73683
73684         * gnulib-tool (func_all_modules): Ignore files ending in ~.
73685         * MODULES.html.sh: Likewise.
73686
73687 2003-01-08  Jim Meyering  <jim@meyering.net>
73688
73689         * lib/full-write.c: Undefine and define-away `const' after inclusion
73690         of errno.h, not before.  Suggestion from Bruno Haible.
73691
73692 2003-01-08  Bruno Haible  <bruno@clisp.org>
73693
73694         * modules/full-read: Depend on full-write.
73695
73696 2003-01-08  Bruno Haible  <bruno@clisp.org>
73697
73698         * lib/safe-read.c: Include specification header first, to ensure its
73699         selfcontainedness.
73700         * lib/full-write.c: Likewise.
73701
73702 2003-01-07  Jim Meyering  <jim@meyering.net>
73703
73704         * lib/full-write.c: Rework so that it may serve to define full_read,
73705         too.
73706         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
73707
73708 2003-01-07  Bruno Haible  <bruno@clisp.org>
73709
73710         * lib/strtoimax.c: Include <stdint.h> as an alternative to
73711         <inttypes.h>.
73712         * lib/xstrtol.h: Likewise.
73713         * lib/xstrtoimax.c: Likewise.
73714         * lib/xstrtoumax.c: Likewise.
73715         * lib/human.h: Likewise.
73716
73717         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
73718         on systems that have <inttypes.h> but not <stdint.h>.
73719
73720 2003-01-07  Bruno Haible  <bruno@clisp.org>
73721
73722         * MODULES.html.sh: Add copyright notice.
73723         (missed_files): Omit CVS directory entries.
73724         (func_module): Make it work with sed-3.02.
73725         * MODULES.txt: Remove file.
73726
73727 2003-01-06  Jim Meyering  <jim@meyering.net>
73728
73729         * lib/version-etc.c: Update year in translatable copyright string.
73730
73731 2003-01-03  Karl Berry  <karl@gnu.org>
73732
73733         * config/config.{guess,sub}: update from prep.
73734
73735 2003-01-02  Karl Berry  <karl@gnu.org>
73736
73737         * doc/COPYING.DOC: belatedly updated to 1.2.
73738
73739 2003-01-01  Karl Berry  <karl@gnu.org>
73740
73741         * gnulib-tool (func_verify_module): report module name $module in
73742         error message, not $1.
73743         * gnulib-tool (create-testdir): don't complain if destdir couldn't
73744         be created, only if it doesn't exist.
73745         * gnulib-tool (last_checkin_date): don't expand the $Date here.
73746
73747 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73748
73749         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
73750
73751 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73752
73753         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
73754         memcmp if strcoll doesn't work.
73755
73756 2002-12-31  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/utime.c (utime_null): No need to call ftruncate if the file was
73759         nonempty.
73760
73761 2002-12-31  Bruno Haible  <bruno@clisp.org>
73762
73763         * lib/memcoll.c (STRCOLL): New macro.
73764         (memcoll): Use it.
73765
73766 2002-12-31  Bruno Haible  <bruno@clisp.org>
73767
73768         * lib/localcharset.h: New file.
73769         * lib/localcharset.c: Include it.
73770         * lib/unicodeio.c: Likewise.
73771
73772 2002-12-31  Bruno Haible  <bruno@clisp.org>
73773
73774         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
73775         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
73776
73777 2002-12-31  Bruno Haible  <bruno@clisp.org>
73778
73779         * lib/getline.h: Include <stddef.h>, for size_t.
73780
73781         * lib/unicodeio.h: Include <stddef.h>, for size_t.
73782         * lib/unicodeio.c: Don't include <stddef.h>.
73783
73784 2002-12-31  Bruno Haible  <bruno@clisp.org>
73785
73786         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
73787         HAVE_TM_ZONE.
73788
73789 2002-12-24  Karl Berry  <karl@gnu.org>
73790
73791         * config/config.guess: update from prep.
73792
73793 2002-12-24  Bruno Haible  <bruno@clisp.org>
73794
73795         General infrasructure.
73796         * m4/README: Rewritten.
73797         * m4/onceonly.m4: New file.
73798         * m4/onceonly_2_57.m4: New file.
73799
73800         Module atexit.
73801         * m4/atexit.m4: New file.
73802
73803         Module strtod.
73804         * m4/strtod.m4: New file.
73805
73806         Module strtol.
73807         * m4/strtol.m4: New file.
73808
73809         Module strtoul.
73810         * m4/strtoul.m4: New file.
73811
73812         Module memchr.
73813         * m4/memchr.m4: New file.
73814
73815         Module memcmp.
73816         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73817         (jm_FUNC_MEMCMP): Invoke it.
73818
73819         Module memcpy.
73820         * m4/memcpy.m4: New file.
73821
73822         Module memmove.
73823         * m4/memmove.m4: New file.
73824
73825         Module memset.
73826         * m4/memset.m4: New file.
73827
73828         Module strcspn.
73829         * m4/strcspn.m4: New file.
73830
73831         Module strpbrk.
73832         * m4/strpbrk.m4: New file.
73833
73834         Module strstr.
73835         * m4/strstr.m4: New file.
73836
73837         Module strerror.
73838         * m4/strerror.m4: New file.
73839
73840         Module mktime.
73841         * m4/mktime.m4: Renamed from jm-mktime.m4.
73842         (gl_PREREQ_MKTIME): New macro.
73843         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73844
73845         Module malloc.
73846         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73847         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73848         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73849
73850         Module realloc.
73851         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73852         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73853         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73854
73855         Module strftime.
73856         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73857         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73858         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73859         gl_TM_GMTOFF.
73860         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73861
73862         Module xalloc.
73863         * m4/xalloc.m4: New file.
73864
73865         Module alloca.
73866         * m4/alloca.m4: New file.
73867
73868         Module putenv.
73869         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73870         (jm_FUNC_PUTENV): Invoke it.
73871
73872         Module setenv.
73873         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73874         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73875         when invoked twice.
73876         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73877         gt_FUNC_SETENV.
73878
73879         Module memrchr.
73880         * m4/memrchr.m4: New file.
73881
73882         Module stpcpy.
73883         * m4/stpcpy.m4: New file.
73884
73885         Module strcase.
73886         * m4/strcase.m4: New file.
73887
73888         Module strdup.
73889         * m4/strdup.m4: New file.
73890
73891         Module strnlen.
73892         * m4/strnlen.m4: New file.
73893
73894         Module strndup.
73895         * m4/strndup.m4: New file.
73896
73897         Module xstrtod.
73898         * m4/xstrtod.m4: New file.
73899
73900         Module xstrtol.
73901         * m4/xstrtol.m4: New file.
73902
73903         Module getdate.
73904         * m4/getdate.m4: New file.
73905
73906         Module unlocked-io.
73907         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73908         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73909         * m4/jm-glibc-io.m4n: Remove file.
73910
73911         Module long-options.
73912         * m4/long-options.m4: New file.
73913
73914         Module md5.
73915         * m4/md5.m4: New file.
73916
73917         Module sha.
73918         * m4/sha.m4: New file.
73919
73920         Module getstr.
73921         * m4/getstr.m4: New file.
73922
73923         Module getline.
73924         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73925         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73926         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73927         simply getline. Infoke gl_PREREQ_GETLINE.
73928
73929         Module obstack.
73930         * m4/obstack.m4: New file.
73931
73932         Module hash.
73933         * m4/hash.m4: New file.
73934
73935         Module readtokens.
73936         * m4/readtokens.m4: New file.
73937
73938         Module strverscmp.
73939         * m4/strverscmp.m4: New file.
73940
73941         Module stdbool.
73942         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73943         OSF/1.
73944
73945         Module strtoll.
73946         * m4/strtoll.m4: New file.
73947
73948         Module strtoull.
73949         * m4/strtoull.m4: New file.
73950
73951         Module strtoimax.
73952         * m4/strtoimax.m4: New file.
73953
73954         Module strtoumax.
73955         * m4/strtoumax.m4: New file.
73956
73957         Module xstrtoimax.
73958         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73959         jm_AC_PREREQ_XSTRTOIMAX.
73960         Moved the strtol prerequisites to strtol.m4.
73961         Moved the strtoll prerequisites to strtoll.m4.
73962         Moved the strtoimax prerequisites to strtoimax.m4.
73963
73964         Module xstrtoumax.
73965         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73966         jm_AC_PREREQ_XSTRTOUMAX.
73967         Moved the strtoul prerequisites to strtoul.m4.
73968         Moved the strtoull prerequisites to strtoull.m4.
73969         Moved the strtoumax prerequisites to strtoumax.m4.
73970
73971         Module chown.
73972         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73973         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73974
73975         Module dup2.
73976         * m4/dup2.m4: New file.
73977
73978         Module ftruncate.
73979         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73980         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73981
73982         Module getgroups.
73983         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73984         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73985
73986         Module gettimeofday.
73987         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73988         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73989         gl_PREREQ_GETTIMEOFDAY.
73990
73991         Module mkdir.
73992         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73993         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73994
73995         Module mkstemp.
73996         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73997         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73998         jm_AC_TYPE_UINTMAX_T.
73999         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74000
74001         Module stat.
74002         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74003         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74004
74005         Module lstat.
74006         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74007         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74008
74009         Module timespec.
74010         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74011         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74012         * m4/st_mtim.m4: Indentation.
74013
74014         Module nanosleep.
74015         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74016         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74017         gl_PREREQ_NANOSLEEP.
74018
74019         Module regex.
74020         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74021         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74022         (gl_REGEX): New macro.
74023
74024         Module rename.
74025         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74026         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74027
74028         Module rmdir.
74029         * m4/rmdir.m4: New file.
74030
74031         Module utime.
74032         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74033         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74034         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74035
74036         Module dirname.
74037         * m4/dirname.m4: New file.
74038
74039         Module getopt.
74040         * m4/getopt.m4: New file.
74041
74042         Module unistd-safer.
74043         * m4/unistd-safer.m4: New file.
74044
74045         Module fnmatch.
74046         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74047         declaration.
74048         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74049         (gl_FUNC_FNMATCH_POSIX): New macro.
74050         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74051         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74052         simply fnmatch.
74053
74054         Module exclude.
74055         * m4/exclude.m4: New file.
74056
74057         Module human.
74058         * m4/human.m4: New file.
74059
74060         Module acl.
74061         * m4/acl.m4: Nop.
74062
74063         Module backupfile.
74064         * m4/backupfile.m4: New file.
74065         * m4/d-ino.m4: Indentation.
74066
74067         Module fsusage.
74068         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74069         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74070         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74071
74072         Module dirfd.
74073         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74074         requirements.
74075
74076         Module euidaccess.
74077         * m4/euidaccess.m4: New file.
74078
74079         Module file-type.
74080         * m4/file-type.m4: New file.
74081
74082         Module fileblocks.
74083         * m4/fileblocks.m4: New file.
74084
74085         Module filemode.
74086         * m4/filemode.m4: New file.
74087
74088         Module isdir.
74089         * m4/isdir.m4: New file.
74090
74091         Module lchown.
74092         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74093         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74094
74095         Module makepath.
74096         * m4/makepath.m4: New file.
74097
74098         Module modechange.
74099         * m4/modechange.m4: New file.
74100
74101         Module mountlist.
74102         * m4/mountlist.m4: New file.
74103         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74104         Indentation.
74105
74106         Module path-concat.
74107         * m4/path-concat.m4: New file.
74108
74109         Module pathmax.
74110         * m4/pathmax.m4: New file.
74111
74112         Module same.
74113         * m4/same.m4: New file.
74114
74115         Module save-cwd.
74116         * m4/save-cwd.m4: New file.
74117
74118         Module savedir.
74119         * m4/savedir.m4: New file.
74120
74121         Module xgetcwd.
74122         * m4/xgetcwd.m4: New file.
74123         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74124
74125         Module xreadlink.
74126         * m4/xreadlink.m4: New file.
74127
74128         Module safe-read.
74129         * m4/safe-read.m4: New file.
74130
74131         Module safe-write.
74132         * m4/safe-write.m4: New file.
74133
74134         Module closeout.
74135         * m4/closeout.m4: New file.
74136
74137         Module stdio-safer.
74138         * m4/stdio-safer.m4: New file.
74139
74140         Module getpass.
74141         * m4/getpass.m4: New file.
74142
74143         Module getugroups.
74144         * m4/getugroups.m4: New file.
74145
74146         Module group-member.
74147         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74148         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74149
74150         Module idcache.
74151         * m4/idcache.m4: New file.
74152
74153         Module userspec.
74154         * m4/userspec.m4: New file.
74155
74156         Module gettime.
74157         * m4/clock_time.m4: New file.
74158         * m4/gettime.m4: New file.
74159
74160         Module settime.
74161         * m4/settime.m4: New file.
74162
74163         Module posixtm.
74164         * m4/posixtm.m4: New file.
74165
74166         Module gethostname.
74167         * m4/gethostname.m4: New file.
74168
74169         Module canon-host.
74170         * m4/canon-host.m4: New file.
74171
74172         Module gettext.
74173         * m4/codeset.m4: New file, from gettext-0.11.5.
74174         * m4/gettext.m4: New file, from gettext-0.11.5.
74175         * m4/glibc21.m4: New file, from gettext-0.11.5.
74176         * m4/iconv.m4: New file, from gettext-0.11.5.
74177         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74178         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74179         * m4/inttypes.m4: New file, from gettext-0.11.5.
74180         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74181         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74182         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74183         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74184         * m4/lib-link.m4: New file, from gettext-0.11.5.
74185         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74186         * m4/progtest.m4: New file, from gettext-0.11.5.
74187         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74188         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74189         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74190
74191         Module localcharset.
74192         * m4/localcharset.m4: New file.
74193
74194         Module hard-locale.
74195         * m4/hard-locale.m4: New file.
74196
74197         Module mbswidth.
74198         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74199         onceonly macros.
74200         * m4/mbrtowc.m4: Add comment.
74201
74202         Module memcasecmp.
74203         * m4/memcasecmp.m4: New file.
74204
74205         Module memcoll.
74206         * m4/memcoll.m4: New file.
74207
74208         Module unicodeio.
74209         * m4/unicodeio.m4: New file.
74210
74211         Module rpmatch.
74212         * m4/rpmatch.m4: New file.
74213
74214         Module yesno.
74215         * m4/yesno.m4: New file.
74216
74217         Module exitfail.
74218         * m4/exitfail.m4: New file.
74219
74220         Module c-stack.
74221         * m4/c-stack.m4 (gl_C_STACK): New macro.
74222         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74223
74224         Module error.
74225         * m4/error.m4 (gl_ERROR): New macro.
74226         (jm_PREREQ_ERROR): Use onceonly macros.
74227
74228         Module fatal.
74229         * m4/fatal.m4: New file.
74230
74231         Module getloadavg.
74232         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74233         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74234
74235         Module getpagesize.
74236         * m4/getpagesize.m4: New file.
74237
74238         Module getusershell.
74239         * m4/getusershell.m4: New file.
74240
74241         Module physmem.
74242         * m4/physmem.m4: New file.
74243
74244         Module posixver.
74245         * m4/posixver.m4: New file.
74246
74247         Module quotearg.
74248         * m4/quotearg.m4: New file.
74249
74250         Module quote.
74251         * m4/quote.m4: New file.
74252
74253         Module readutmp.
74254         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74255
74256         Module sig2str.
74257         * m4/sig2str.m4: New file.
74258
74259         Other.
74260         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74261         ulonglong.m4.
74262         * m4/intmax_t.m4: New file.
74263         * m4/d-type.m4: Indentation.
74264         * m4/jm-macros.m4: Update.
74265         * m4/prereq.m4 (jm_PREREQ): Update.
74266         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74267         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74268         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74269         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74270         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74271         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74272         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74273         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74274         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74275         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74276         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74277         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74278         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74279         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74280         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74281         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74282         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74283         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74284         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74285
74286 2002-12-24  Bruno Haible  <bruno@clisp.org>
74287
74288         * MODULES.txt: Update according to m4/ changes.
74289
74290         Module gettext.
74291         * config.rpath: New file, from gettext-0.11.5.
74292
74293         * modules/*: New module descriptions.
74294         * gnulib-tool: New file.
74295         * MODULES.html.sh: New file.
74296
74297 2002-12-21  Karl Berry  <karl@gnu.org>
74298
74299         * doc/fdl.texi: update to version 1.2.
74300
74301 2002-12-19  Karl Berry  <karl@gnu.org>
74302
74303         * config/config.guess: update from prep.
74304
74305 2002-12-18  Bruno Haible  <bruno@clisp.org>
74306
74307         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74308         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74309
74310 2002-12-17  Bruno Haible  <bruno@clisp.org>
74311
74312         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74313         stdlib.h, string.h.
74314
74315 2002-12-17  Bruno Haible  <bruno@clisp.org>
74316
74317         * lib/canon-host.c (strdup): Remove unused declaration.
74318
74319         * lib/fsusage.c: Include full_read.h.
74320         (get_fs_usage): Use full_read instead of safe_read.
74321
74322         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74323
74324 2002-12-12  Karl Berry  <karl@gnu.org>
74325
74326         * config/config.guess: update from prep.
74327
74328 2002-12-11  Bruno Haible  <bruno@clisp.org>
74329
74330         * m4/setenv.m4: New file, from gettext-0.11.5.
74331
74332 2002-12-11  Bruno Haible  <bruno@clisp.org>
74333
74334         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74335         not unsetenv().
74336         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74337         modifications:
74338
74339         2002-12-11  Bruno Haible  <bruno@clisp.org>
74340
74341                 * setenv.c (alloca): Fall back to malloc.
74342                 (freea): New macro.
74343                 (setenv): Use freea() to free memory allocated with alloca().
74344
74345         2002-11-13  Bruno Haible  <bruno@clisp.org>
74346
74347                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74348                 function declarations.
74349                 * unsetenv.c (unsetenv): Likewise.
74350
74351         2002-03-04  Bruno Haible  <bruno@clisp.org>
74352
74353                 Portability to AIX 4.3.3.
74354                 * unsetenv.c: New file, extracted from setenv.c.
74355                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74356
74357         2001-12-20  Bruno Haible  <bruno@clisp.org>
74358
74359                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74360                 use malloc instead. For SunOS 4.
74361
74362         2001-12-11  Bruno Haible  <bruno@clisp.org>
74363
74364                 * setenv.c: Declare alloca.
74365                 (compar_fn_t): New typedef.
74366                 (KNOWN_VALUE, STORE_VALUE): Use it.
74367
74368         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74369         setenv.h.
74370
74371 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74372
74373         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74374         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74375         Choose values that are less likely to collide with system fnmatch
74376         options.
74377         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74378         defined (e.g., a pure POSIX system).
74379         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74380         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74381
74382 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74383
74384         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74385         a pain in practice to deal with generated m4 files.  This change
74386         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74387
74388         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74389         and jm-glibc-io.m4, as they are no longer a special case.
74390         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74391         kludge and the auto-generation stuff.  Check only whether the
74392         functions are declared, not whether they exist, since older hosts
74393         that don't declare the functions can't use the optimization anyway.
74394
74395 2002-12-06  Jim Meyering  <jim@meyering.net>
74396
74397         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74398
74399         Merge in changes from libc's misc/error.c, in preparation
74400         for the merge of gnulib's changes back into libc.
74401
74402         * lib/error.c (_): Define only if not already defined.
74403         Move definition to follow all #include directives.
74404         Include unlocked-io.h only if !_LIBC.
74405         [_LIBC]: Include <libio/libioP.h>.
74406         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74407         (fflush): Tweak definition to use INTUSE.
74408         (putc): Define.
74409
74410 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74411
74412         * lib/alloca.c [defined emacs]: Include "lisp.h".
74413         (xalloc_die) [defined emacs]: New macro.
74414         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74415         [! defined emacs]: Include <xalloc.h>.
74416         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74417         (pointer): Typedef to POINTER_TYPE *.
74418         (malloc): Remove decl; we now always use xmalloc.
74419         (alloca): Use old-style definition, since Emacs needs this.
74420         Check for arithmetic overflow when computing combined size.
74421
74422 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74423
74424         Do not generate unlocked-io.h automatically, since it's easier to
74425         maintain it by hand.
74426
74427         * lib/unlocked-io.h: New file, from GNU diffutils,
74428         but with proper copyright notice and attribution.
74429         * lib/gen-uio: Remove.
74430         * lib/Makefile.am: Add copyright notice.
74431         (libfetish_a_SOURCES): Add unlocked-io.h.
74432         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74433         (DISTCLEANFILES, io_functions): Remove macros.
74434         (EXTRA_DIST): Remove gen_uio.
74435         (unlocked-io.h): Remove rule.
74436
74437 2002-12-04  Jim Meyering  <jim@meyering.net>
74438
74439         Reflect the fact that stat.c and lstat.c are no longer generated.
74440         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74441         (DISTCLEANFILES): Likewise.
74442         (EXTRA_DIST): Likewise.
74443         (all_local): Don't depend on stat.c or lstat.c.
74444         (stat.c, lstat.c): Remove rules.
74445         (EXTRA_DIST): Remove xstat.in.
74446
74447         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74448         * lib/stat.c: New file.  Contents mostly from xstat.in.
74449         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74450         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74451
74452         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74453         too.
74454         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74455
74456 2002-12-03  Jim Meyering  <jim@meyering.net>
74457
74458         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74459         but not semantics, to minimize the differences between these two files.
74460         (safe_read): Change comment to mention SAFE_READ_ERROR.
74461
74462         * lib/safe-read.c (IS_EINTR): Define.
74463         (safe_read): Use IS_EINTR in place of in-function cpp directives.
74464
74465 2002-12-02  Jim Meyering  <jim@meyering.net>
74466
74467         * lib/safe-read.c (EINTR): Define.
74468         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74469         (INT_MAX): Provide fallback.
74470         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
74471
74472         * lib/safe-read.h (SAFE_READ_ERROR): Define.
74473
74474 2002-12-02  Bruno Haible  <bruno@clisp.org>
74475
74476         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
74477         Define, taken from safe-read.c.
74478         (INT_MAX): Provide fallback.
74479         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
74480         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
74481
74482         * lib/safe-read.c (EINTR): Remove definition.
74483         (safe_read): Don't use EINTR if it is absent.
74484
74485 2002-12-01  Jim Meyering  <jim@meyering.net>
74486
74487         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
74488         zero.
74489         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
74490
74491 2002-11-27  Paul Eggert  <eggert@twinsun.com>
74492
74493         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
74494         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
74495         with `if (! (value < limit)) abort ();', for readability.
74496
74497 2002-11-26  Karl Berry  <karl@gnu.org>
74498
74499         * lib/strdup.c: copy from libc again, with jim's ok.
74500         * lib/.cppi-disable: re-add strdup.c
74501
74502 2002-11-25  Karl Berry  <karl@gnu.org>
74503
74504         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
74505         instead of "strtol.c".
74506
74507 2002-11-25  Karl Berry  <karl@gnu.org>
74508
74509         * config/install-sh: update from automake for variable quoting, $0 in
74510         error msgs, etc.
74511
74512         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
74513         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
74514         entry.
74515
74516 2002-11-25  Jim Meyering  <jim@meyering.net>
74517
74518         * lib/mktime.c: Sync from libc, now that it has the latest fix.
74519
74520 2002-11-24  Karl Berry  <karl@gnu.org>
74521
74522         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
74523         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
74524
74525 2002-11-24  Jim Meyering  <jim@meyering.net>
74526
74527         Update from coreutils:
74528
74529         * lib/mktime.c: Merge in changes from libc.
74530
74531         Avoid a link-time failure on some Linux systems.
74532         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
74533         (otherwise).
74534         (__mon_yday): Declare with the STATIC attribute.
74535         (__mktime_internal): Likewise.
74536         Based on a report from Greg Schafer.
74537
74538 2002-11-23  Jim Meyering  <jim@meyering.net>
74539
74540         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
74541         Use `unsigned', not `int', as type of index.
74542
74543         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
74544
74545         * lib/fsusage.c: Remove unneeded parentheses around operands of
74546         `defined'.
74547
74548 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74549
74550         * lib/quotearg.h: Allow multiple inclusion by surrounding with
74551         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
74552         so that we can be included first.
74553         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
74554         * lib/quotearg.c: Include quotearg.h immediately after config.h.
74555         No need to include stddef.h or sys/types.h any more.
74556         Surround local include files with "", not "<>".
74557         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
74558         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
74559         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
74560         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
74561         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
74562         (ISPRINT): Remove; no longer needed now that we assume C89.
74563
74564         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
74565         Preserve errno.
74566
74567         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
74568         quotearg_char): Use SIZE_MAX rather than
74569         (size_t) -1 when we are talking about "infinity".
74570
74571         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
74572
74573 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74574
74575         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
74576         hint that one should use `if (! x) abort ();' rather than `assert
74577         (x);', and anyway it's one less thing to worry about configuring.
74578         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
74579         hash_rehash, hash_insert): Use abort rather than assert.
74580
74581 2002-11-22  Bruno Haible  <bruno@clisp.org>
74582
74583         * lib/safe-read.h: Assume C89. Add comments.
74584         (safe_read): Change return type to size_t.
74585         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
74586         byte counts > SSIZE_MAX correctly.
74587         * lib/safe-write.h: New file.
74588         * lib/safe-write.c: New file.
74589         * lib/full-read.h: New file.
74590         * lib/full-read.c: New file.
74591         * lib/full-write.h: Assume C89. Add comments.
74592         * lib/full-write.c: Include safe-write.h.
74593         (full_write): Rewritten to use safe_write.
74594         Suggested by Jim Meyering and Paul Eggert.
74595
74596 2002-11-21  Jim Meyering  <jim@meyering.net>
74597
74598         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
74599
74600         Merge in changes from the coreutils.
74601
74602         2002-09-25  Paul Eggert  <eggert@twinsun.com>
74603         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
74604         <stdint.h>.
74605         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
74606         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
74607         int.  Work more efficiently if X is the same width as uintmax_t.
74608         Do not compare X to -1, to avoid bogus compiler warning.
74609         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
74610         Don't assume that f_frsize and f_bsize are the same type.
74611
74612         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
74613         warning on FreeBSD.
74614
74615         * lib/makepath.c (make_path): Restore umask *before* creating the final
74616         component.
74617         (make_path): Minor reformatting.
74618
74619         * lib/xmalloc.c: Adjust to work with new autoconf macros,
74620         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
74621         HAVE_MALLOC/HAVE_REALLOC.
74622
74623         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
74624         dummy ones.  At least on GNU/Linux systems, `auto' means something
74625         else.
74626         From Michael Stone.
74627
74628 2002-11-21  Bruno Haible  <bruno@clisp.org>
74629
74630         Remove case insensitive option matching.
74631         * lib/argmatch.h (argcasematch): Remove declaration.
74632         (ARGCASEMATCH): Remove macro.
74633         (__xargmatch_internal): Remove case_sensitive argument.
74634         (XARGMATCH): Update.
74635         (XARGCASEMATCH): Remove macro.
74636         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
74637         case_sensitive argument.
74638         (argcasematch): Remove function.
74639         (__xargmatch_internal): Remove case_sensitive argument.
74640         (main): Use XARGMATCH instead of XARGCASEMATCH.
74641
74642         * lib/xmalloc.c: Change compile-time error message. Add comment about
74643         required autoconf version.
74644
74645 2002-11-20  Paul Eggert  <eggert@twinsun.com>
74646
74647         Merge argmatch cleanups from Bison.  Assume C89.
74648
74649         * lib/argmatch.c: Include config.h here, not in argmatch.h.
74650         Include stdlib.h, for EXIT_FAILURE.
74651         Always include <string.h>, since we assume C89.
74652         (EXIT_FAILURE): Remove pre-C89 bug workaround.
74653         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
74654         Include <stddef.h> instead, since it's all we need for size_t.
74655         (PARAMS): Remove.  All uses removed.
74656         (ARRAY_CARDINALITY): Do not bother to #undef.
74657         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
74658         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74659         Remove unnecessary parentheses.
74660         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74661         Insert necessary parentheses.
74662         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
74663         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
74664
74665 2002-11-19  Bruno Haible  <bruno@clisp.org>
74666
74667         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
74668         * lib/mbswidth.h: Include <stddef.h>, for size_t.
74669
74670         * lib/mbswidth.h (PARAMS): Remove macro.
74671         (mbswidth, mbsnwidth): Use ANSI C function declarations.
74672         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
74673
74674         * lib/gcd.h (PARAMS): Remove macro.
74675         (gcd): Use ANSI C function declarations.
74676         * lib/gcd.c (gcd): Likewise.
74677
74678 2002-11-15  Bruno Haible  <bruno@clisp.org>
74679
74680         * lib/strcspn.c: Include <stddef.h>.
74681         (strcspn): Use ANSI C function declaration. Change return type to
74682         size_t. Use NULL.
74683         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
74684         (strpbrk): Use NULL.
74685         * lib/strpbrk.h (PARAMS): Remove macro.
74686         (strpbrk): Use ANSI C function declaration.
74687         * lib/strstr.c: Don't include <sys/types.h>.
74688         * lib/strstr.h (PARAMS): Remove macro.
74689         (strstr): Use ANSI C function declarations.
74690
74691 2002-11-14  Karl Berry  <karl@gnu.org>
74692
74693         * config/mkinstalldirs: `do' on separate line, instead of
74694         `for var; do'.
74695
74696 2002-11-06  Bruno Haible  <bruno@clisp.org>
74697
74698         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
74699         * lib/gcd.c (gcd): Likewise.
74700
74701 2002-11-05  Bruno Haible  <bruno@clisp.org>
74702
74703         * lib/gcd.h: New file, from gettext-0.11.5.
74704         * lib/gcd.c: New file, from gettext-0.11.5.
74705
74706 2002-11-05  Bruno Haible  <bruno@clisp.org>
74707
74708         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74709         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74710         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74711         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74712
74713         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
74714         <libintl.h>.
74715         * lib/makepath.c: Include gettext.h instead of <locale.h> and
74716         <libintl.h>.
74717
74718         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
74719         * lib/human.c: Include gettext.h instead of <libintl.h>.
74720         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
74721         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
74722         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
74723         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
74724         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
74725         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
74726         (textdomain): Remove definition.
74727         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
74728
74729         * lib/long-options.c: Remove include of <libintl.h> and definition of
74730         _.
74731         * lib/same.c: Remove include of <libintl.h> and definition of _.
74732
74733 2002-11-04  Owen Taylor  <otaylor@redhat.com>
74734
74735         * lib/config.charset: A few additions for Solaris.
74736
74737 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74738
74739         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
74740         * lib/localcharset.c (locale_charset): Declare as extern "C".
74741
74742 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74743
74744         * lib/config.charset: msdos in uk_UA uses CP1125.
74745
74746 2002-11-04  Bruno Haible  <bruno@clisp.org>
74747
74748         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
74749         * lib/strcase.h: New file, from GNU gettext-0.11.5.
74750         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
74751         * lib/strstr.h: New file, from GNU gettext-0.11.5.
74752         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
74753
74754 2002-11-04  Bruno Haible  <bruno@clisp.org>
74755
74756         * lib/localcharset.c (locale_charset): Don't return an empty string.
74757
74758 2002-11-04  Bruno Haible  <bruno@clisp.org>
74759
74760         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
74761         aliases.
74762
74763 2002-11-04  Bruno Haible  <bruno@clisp.org>
74764
74765         * lib/config.charset: Update for newest glibc. Add canonical names
74766         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
74767
74768 2002-11-04  Bruno Haible  <bruno@clisp.org>
74769
74770         * lib/config.charset: Add support for NetBSD.
74771
74772 2002-11-04  Bruno Haible  <bruno@clisp.org>
74773
74774         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
74775
74776 2002-11-01  Bruno Haible  <bruno@clisp.org>
74777
74778         * configure.in: Add AC_CONFIG_AUX_DIR call.
74779         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
74780         test/Makefile.
74781         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
74782
74783 2002-09-28  Karl Berry  <karl@gnu.org>
74784
74785         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
74786         installed automake until the next release, since changes have been
74787         made.
74788
74789 2002-09-25  Karl Berry  <karl@gnu.org>
74790
74791         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
74792         * lib/getopt*: copy from libc/posix.
74793         * lib/gettext.h: copy from gettext.
74794         * lib/.cppi-disable: add strdup.c, gettext.h.
74795
74796 2002-09-25  Karl Berry  <karl@gnu.org>
74797
74798         * config/srclist.txt: enable gettext.h check.
74799         * config/config.{guess,sub}: update from prep.
74800         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74801                 from automake 1.6.3.
74802         See srclist*.
74803
74804 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74805
74806         * regex.c (PATFETCH): Remove the translating fetch.
74807         (PATFETCH_RAW): Rename to PATFETCH.
74808         (set_image_of_range): New fun.
74809         (SET_RANGE_TABLE_WORK_AREA): Use it.
74810         (regex_compile): Don't translate the pattern chars so eagerly.
74811         Only do it when inserting an `exactn' bytecode or when handling
74812         a char-range.
74813         (mutually_exclusive_p): Avoid empty statement.
74814
74815 2002-07-06  Jim Meyering  <meyering@lucent.com>
74816
74817         * m4/README: Don't mention Makefile.am.in.
74818         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74819
74820 2002-07-01  Jim Meyering  <meyering@lucent.com>
74821
74822         * lib/c-stack.c: Include sys/time.h.
74823         From Volker Borchert.
74824
74825 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74826
74827         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74828
74829 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74830
74831         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74832         New macro.  Use it uniformly instead of
74833         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74834         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74835         reported by Vin Shelton.
74836
74837 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74838
74839         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74840         Do not assume SA_SIGINFO behavior.
74841         Bug reported by Jim Meyering on NetBSD 1.5.2.
74842
74843 2002-06-22  Jim Meyering  <meyering@lucent.com>
74844
74845         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74846         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74847
74848         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74849         now that configure.ac uses AC_GNU_SOURCE.
74850         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74851         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74852
74853         Update to latest tools.  Suggestions from Paul Eggert.
74854         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74855         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74856         * m4/fnmatch.m4: Likewise.
74857         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74858         to AC_HEADER_STDBOOL
74859
74860 2002-06-22  Jim Meyering  <meyering@lucent.com>
74861
74862         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74863         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74864
74865 2002-06-22  Jim Meyering  <meyering@lucent.com>
74866
74867         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74868
74869         * lib/exitfail.c, exitfail.h: Likewise.
74870         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74871
74872         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74873         of fnmatch.h.
74874         (EXTRA_DIST): Add fnmatch_loop.c.
74875         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74876
74877         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74878         * lib/fnmatch.c: Update from diffutils-2.8.2.
74879         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74880         * lib/fnmatch.h: Remove file.
74881
74882 2002-06-21  Jim Meyering  <meyering@lucent.com>
74883
74884         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74885         * m4/mbrtowc.m4: Likewise.
74886
74887         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74888         * m4/mbswidth.m4: Reflect name change:
74889         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74890         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74891
74892         * m4/lib-link.m4: Update from gettext-0.11.2.
74893         * m4/gettext.m4: Likewise.
74894
74895         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74896         From Alfred M. Szmidt.
74897
74898 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74899
74900         * lib/file-type.h: Report an error if neither S_ISREG nor
74901         S_IFREG is defined, instead of using a test specific to glibc
74902         2.2.  This should be safe, since POSIX requires S_ISREG and
74903         Unix Version 7 had S_IFREG.  We don't need to check for
74904         <sys/types.h> since we don't use any symbols that it defines.
74905
74906 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74907
74908         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74909         $@-t, so that each temporary file name is unique and valid in the first
74910         8 characters, for operation under DOS.
74911
74912 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74913
74914         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74915
74916 2002-06-15  Jim Meyering  <meyering@lucent.com>
74917
74918         Work even with DJGPP 2.03, which lacks support for symlinks.
74919         From Richard Dawe.
74920         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74921         is defined.
74922         * lib/lchown.c (S_ISLNK): Likewise.
74923
74924 2002-06-15  Jim Meyering  <meyering@lucent.com>
74925
74926         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74927         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74928         have been included before this file.
74929
74930 2002-06-14  Jim Meyering  <meyering@lucent.com>
74931
74932         * lib/file-type.h: Use the version from diffutils-2.8.2.
74933         * lib/file-type.c: Likewise.
74934
74935 2002-06-07  Jim Meyering  <meyering@lucent.com>
74936
74937         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74938         They're needed at least for NetBSD 1.5.2.
74939         ($statxfs_includes): Include those same headers.
74940         ($statxfs_includes): Include sys/vfs.h if available.
74941         ($statxfs_includes): Likewise for sys/statvfs.h.
74942         Check for the following members in both structs statfs and statvfs:
74943         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74944
74945 2002-06-01  Jim Meyering  <meyering@lucent.com>
74946
74947         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74948         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74949
74950 2002-05-28  Jim Meyering  <meyering@lucent.com>
74951
74952         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74953         Reported by Volker Borchert.
74954
74955 2002-05-27  Jim Meyering  <meyering@lucent.com>
74956
74957         Fix a problem seen only on nonconforming systems whereby ls.c's
74958         use of localtime, and then of gettimeofday would cause trouble:
74959         the localtime call used to initialize rpl_gettimeofday's save
74960         mechanism would clobber ls's current local time information so
74961         that in any long listing the first file would always be listed
74962         with date 1970-01-01.  Analysis by Volker Borchert.
74963
74964         * lib/gettimeofday.c (localtime): Undefine.
74965         (rpl_localtime): New function.
74966
74967 2002-05-27  Jim Meyering  <meyering@lucent.com>
74968
74969         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74970         localtime.
74971
74972         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74973         use the replacement function; it wouldn't resolve at link time.
74974         Reported by Volker Borchert.
74975
74976 2002-05-22  Jim Meyering  <meyering@lucent.com>
74977
74978         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74979         file-type.h.
74980         * lib/file-type.h: New file.
74981         * lib/file-type.c (file_type): New file/function.  Extracted from
74982         diffutils.
74983
74984 2002-04-30  Jim Meyering  <meyering@lucent.com>
74985
74986         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74987
74988 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74989
74990         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74991
74992 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74993
74994         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74995         Do not check for alloca.h (no longer used) or stdbool.h (was never
74996         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74997
74998 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74999
75000         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75001
75002 2002-04-29  Jim Meyering  <meyering@lucent.com>
75003
75004         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75005         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75006         Use AC_FUNC_STRNLEN here instead.
75007
75008         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75009         With autoconf-2.53a, it's part of AC_PROG_CC.
75010
75011 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75012
75013         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75014         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75015
75016 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75017
75018         * lib/sig2str.h, lib/sig2str.c: New files.
75019         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75020
75021 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75022
75023         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75024         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75025         of 127, since 64 is the largest conceivable number for ancient
75026         nonstandard hosts.
75027         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75028
75029 2002-04-28  Jim Meyering  <meyering@lucent.com>
75030
75031         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75032
75033 2002-04-24  Jim Meyering  <meyering@lucent.com>
75034
75035         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75036         (jm_PREREQ): Use it.
75037
75038         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75039         mach/mach.h fcntl.h.
75040         Check for this function: setlocale.
75041
75042 2002-04-24  Jim Meyering  <meyering@lucent.com>
75043
75044         * lib/gettext.h: New file, from Gettext.
75045         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75046         (libfetish_a_SOURCES): Add gettext.h.
75047
75048 2002-04-16  Jim Meyering  <meyering@lucent.com>
75049
75050         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75051         ut_pid, ut_id, ut_exit.
75052
75053 2002-04-16  Jim Meyering  <meyering@lucent.com>
75054
75055         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75056         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75057         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75058
75059 2002-04-12  Jim Meyering  <meyering@lucent.com>
75060
75061         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75062         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75063         existence of the getmntinfo function.  Needed for Darwin 5.3.
75064
75065         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75066         This is necessary at least on Darwin 5.3.
75067
75068         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75069         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75070         strnlen.o in the library, and that makes some versions of ranlib
75071         object.
75072
75073 2002-04-12  Jim Meyering  <meyering@lucent.com>
75074
75075         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75076
75077 2002-04-09  Jim Meyering  <meyering@lucent.com>
75078
75079         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75080         to be more precise.  Rather than saying we're checking whether the
75081         function `works', say what we're testing.
75082         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75083         Reported by Bruno Haible.
75084
75085 2002-03-10  Jim Meyering  <meyering@lucent.com>
75086
75087         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75088         Suggestion from Santiago Vila.
75089
75090 2002-03-08  Jim Meyering  <meyering@lucent.com>
75091
75092         * lib/rename.c: Mention that this wrapper is needed also on
75093         mips-dec-ultrix4.4 systems.
75094
75095 2002-03-02  Jim Meyering  <meyering@lucent.com>
75096
75097         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75098         not HAVE_CLOCK_SETTIME.
75099
75100 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75101
75102         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75103         Check for clock_settime.
75104
75105 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75106
75107         * lib/nanosleep.h: Rename to....
75108         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75109
75110         * lib/gettime.c: New file.
75111         * lib/settime.c: New file.
75112         * lib/stime.c: Remove.
75113
75114         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75115         timespec.h.  Remove nanosleep.h.
75116
75117 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75118
75119         * m4/acl.m4: New file.
75120         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75121         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75122
75123 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75124
75125         * lib/acl.c, lib/acl.h: New files.
75126         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75127
75128 2002-02-24  Jim Meyering  <meyering@lucent.com>
75129
75130         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75131         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75132         cause trouble.  Reported by Nelson Beebe.
75133
75134 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75135
75136         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75137         compilers that don't know that xalloc_die never returns.
75138
75139 2002-02-20  Jim Meyering  <meyering@lucent.com>
75140
75141         * lib/getdate.c: Regenerate using bison-1.33.
75142
75143 2002-02-17  Jim Meyering  <meyering@lucent.com>
75144
75145         * config/config.guess (main): Don't use `head -1'; it's no longer
75146         portable. Use `sed 1q' instead.
75147
75148 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75149
75150         * m4/codeset.m4: Upgrade to gettext-0.11.
75151         * m4/gettext.m4: Upgrade to gettext-0.11.
75152         * m4/glibc21.m4: Upgrade to gettext-0.11.
75153         * m4/iconv.m4: Upgrade to gettext-0.11.
75154         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75155         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75156         * m4/lib-ld.m4: New file, from gettext-0.11.
75157         * m4/lib-link.m4: New file, from gettext-0.11.
75158         * m4/lib-prefix.m4: New file, from gettext-0.11.
75159         * m4/progtest.m4: Upgrade to gettext-0.11.
75160
75161 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75162
75163         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75164         (jm_PREREQ): Use it.
75165
75166 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75167
75168         * lib/posixver.c, lib/posixver.h: New files.
75169         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75170
75171 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75172             Bruno Haible  <bruno@clisp.org>
75173
75174         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75175         (fwrite_success_callback): New declaration.
75176         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75177         print_unicode_char. Call failure callback instead of error.
75178         (fwrite_success_callback): New function.
75179         (exit_failure_callback): New function.
75180         (fallback_failure_callback): New function.
75181         (print_unicode_char): Call unicode_to_mb.
75182
75183 2002-01-26  Jim Meyering  <meyering@lucent.com>
75184
75185         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75186         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75187
75188 2002-01-26  Jim Meyering  <meyering@lucent.com>
75189
75190         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75191
75192 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75193
75194         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75195
75196 2002-01-22  Jim Meyering  <meyering@lucent.com>
75197
75198         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75199         Otherwise, some versions of automake would omit the rule that makes
75200         Makefile from Makefile.in.
75201
75202 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75203
75204         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75205         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75206         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75207         (memcoll): Set errno to zero if there is no error.
75208
75209         * lib/quotearg.c (quotearg_buffer_restyled):
75210         Fix bug with quoting buffers containing NUL when backslashing escapes.
75211         This bug was exposed by the other changes in this patch.
75212         (quotearg_n_options): New arg ARGSIZE.
75213         All callers changed.
75214         (quoting_options_from_style): New function.
75215         (quotearg_n_style): Use it.
75216         (quotearg_n_style_mem): New function.
75217
75218         * lib/quotearg.h (quotearg_n_style_mem): New function.
75219
75220 2002-01-19  Jim Meyering  <meyering@lucent.com>
75221
75222         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75223         Remove useless quotes: DF_PROG="df".
75224         * m4/strnlen.m4: New file.
75225
75226 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75227
75228         * lib/backupfile.c (ISDIGIT): Comment fix.
75229         * lib/getdate.y (ISDIGIT): Likewise.
75230         * lib/posixtm.c (ISDIGIT, year): Likewise.
75231         * lib/strverscmp.c (ISDIGIT): Likewise.
75232         * lib/userspec.c (ISDIGIT): Likewise.
75233
75234 2002-01-16  Jim Meyering  <meyering@lucent.com>
75235
75236         * lib/getdate.y: Add three semicolons, each just before a closing
75237         brace. Bison (as of version 1.31) no longer papers over that mistake.
75238
75239 2002-01-05  Jim Meyering  <meyering@lucent.com>
75240
75241         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75242
75243 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75244
75245         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75246         not silently exit merely because the output buffer happens to
75247         have nothing pending.
75248
75249 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75250
75251         See the big note in ../ChangeLog.
75252         * lib/human.c (suffixes): Prefer K to k for 1024.
75253         (generate_suffix_backwards): New function.
75254         (human_readable_inexact): Use it.
75255         * lib/xstrtol.c (__xstrtol): If there is no number but there
75256         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75257         Accept 'K' as well as 'k'.
75258
75259 2001-12-15  Jim Meyering  <meyering@lucent.com>
75260
75261         * lib/regex.h (__restrict_arr): Update from libc.
75262
75263         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75264         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75265         (STREQ): Define.
75266
75267 2001-12-14  Jim Meyering  <meyering@lucent.com>
75268
75269         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75270         Suggestion from Bruno Haible.
75271
75272 2001-12-10  Jim Meyering  <meyering@lucent.com>
75273
75274         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75275         xrealloc, Instead, include "xalloc.h".
75276         (initbuffer): Don't cast xmalloc return value to char*.
75277         (readline): Reword comment.
75278         Don't cast xrealloc return value to char*
75279         Return NULL, not 0.
75280
75281 2001-12-09  Jim Meyering  <meyering@lucent.com>
75282
75283         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75284         about `signed and unsigned type in conditional expression'.
75285         * lib/posixtm.c (posix_time_parse): Likewise.
75286
75287         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75288
75289         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75290         to avoid a pedantic warning.
75291
75292         * lib/getstr.c: Don't include assert.h.
75293         (getstr): Remove warning-evoking assertions.
75294         Return -1 if offset parameter is out of bounds.
75295         Change the type of a local from int to size_t.
75296
75297         * lib/strftime.c (my_strftime_localtime_r): Include this function
75298         definition in the `#if ! HAVE_TM_GMTOFF' block.
75299
75300         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75301         Include xalloc.h instead.
75302
75303 2001-12-02  Jim Meyering  <meyering@lucent.com>
75304
75305         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75306         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75307         included.
75308
75309         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75310         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75311
75312 2001-11-30  Akim Demaille  <akim@epita.fr>
75313
75314         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75315         before being defined.
75316
75317 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75318
75319         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75320         First arg is int, not unsigned.
75321         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75322         (SIZE_MAX, UINT_MAX): New macros.
75323         (quotearg_n_options): Abort if N is negative.
75324         Avoid overflow check on hosts where size_t is 64 bits and int
75325         is 32 bits, as overflow is impossible there.
75326         Fix off-by-one typo that caused unnecessary reallocation.
75327
75328 2001-11-27  Jim Meyering  <meyering@lucent.com>
75329
75330         * lib/tempname.c: Merge with version from libc.
75331         * lib/regex.c: Likewise.
75332
75333         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75334         systems for which STDC_HEADERS is 0, it was not included, resulting in
75335         a warning about an integer-to-pointer conversion problem with getenv.
75336         Reported by Volker Borchert.
75337
75338 2001-11-26  Jim Meyering  <meyering@lucent.com>
75339
75340         * lib/gtod.h: Remove file.
75341         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75342         * lib/gettimeofday.c: Don't include gtod.h.
75343         (GTOD_init): Remove function.
75344         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75345         Suggestion from Volker Borchert.
75346
75347 2001-11-23  Jim Meyering  <meyering@lucent.com>
75348
75349         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75350         it.
75351         * lib/hash.c (struct hash_table): Define it here instead.
75352
75353 2001-11-22  Jim Meyering  <meyering@lucent.com>
75354
75355         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75356
75357 2001-11-20  Jim Meyering  <meyering@lucent.com>
75358
75359         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75360         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75361
75362 2001-11-19  Jim Meyering  <meyering@lucent.com>
75363
75364         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75365         directory.  Use "conftestXXXXXX" as the template.
75366         Suggestion from Paul Eggert.
75367
75368         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75369         immediately, so the test doesn't mistakenly hit the max-open-files
75370         limit.
75371
75372 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75373
75374         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75375         (TEMPORARIES): New macro.
75376         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75377         removes an artificial limitation (e.g. HP-UX 10.20, where
75378         TMP_MAX is 17576).
75379
75380 2001-11-18  Jim Meyering  <meyering@lucent.com>
75381
75382         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75383
75384 2001-11-18  Jim Meyering  <meyering@lucent.com>
75385
75386         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75387         on SunOS 4.
75388
75389         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75390         files will be created before anything else.
75391
75392 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75393
75394         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75395         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75396
75397 2001-11-17  Jim Meyering  <meyering@lucent.com>
75398
75399         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75400         Prompted by a report from Bob Proulx.
75401
75402         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75403         Instead, require UTILS_FUNC_MKSTEMP.
75404
75405 2001-11-17  Jim Meyering  <meyering@lucent.com>
75406
75407         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75408         Now, that's done as part of AC_FUNC_STRTOD.
75409
75410 2001-11-17  Jim Meyering  <meyering@lucent.com>
75411
75412         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75413         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75414         rather than group writable.  Patch by Juan F. Codagnone.
75415
75416         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75417         xrealloc, Instead, include "xalloc.h".
75418
75419         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75420         Remove explicit declarations of xmalloc, xrealloc,
75421         and xstrdup.  Instead, include "xalloc.h".
75422
75423         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75424         unlocked-io.h.
75425         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75426         Likewise.
75427         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75428
75429         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75430         Reported by Padraig Brady.
75431
75432         * lib/mkstemp.c: #undef mkstemp.
75433         Include config.h.
75434         (rpl_mkstemp): Rename from mkstemp.
75435         Protoize.
75436
75437 2001-11-16  Jim Meyering  <meyering@lucent.com>
75438
75439         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75440         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75441         determine the amount of total physical memory, use pstat_getstatic.
75442         HPUX-11 doesn't define _SC_PHYS_PAGES.
75443         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75444         If sysconf couldn't be used to determine the amount of available
75445         physical memory, use both pstat_getstatic and pstat_getdynamic.
75446         Based on a patch from Bob Proulx.
75447
75448 2001-11-10  Jim Meyering  <meyering@lucent.com>
75449
75450         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75451         (jm_PREREQ): Use it.
75452
75453 2001-11-09  Jim Meyering  <meyering@lucent.com>
75454
75455         * m4/jm-macros.m4: Require autoconf-2.52f.
75456         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75457         Use these AC_-prefixed names, not the AM_-prefixed ones.
75458
75459         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75460
75461 2001-11-05  Jim Meyering  <meyering@lucent.com>
75462
75463         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
75464
75465 2001-11-04  Jim Meyering  <meyering@lucent.com>
75466
75467         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
75468         $DEFS.
75469
75470 2001-11-03  Jim Meyering  <meyering@lucent.com>
75471
75472         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
75473         of AC_DEFUN.
75474
75475         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
75476         know the name of the variable in the macro definition.
75477
75478 2001-11-03  Jim Meyering  <meyering@lucent.com>
75479
75480         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
75481         in argmatch_to_argument call.
75482
75483         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
75484         argument.
75485
75486         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
75487         e.g., a fault due to an attempt to free a NULL pointer.
75488
75489 2001-11-01  Jim Meyering  <meyering@lucent.com>
75490
75491         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
75492         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
75493
75494 2001-11-01  Jim Meyering  <meyering@lucent.com>
75495
75496         * lib/dirfd.c, lib/dirfd.h: New files.
75497         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
75498
75499         * lib/hash.c (hash_print) [TESTING]: Clean up.
75500
75501 2001-10-22  Paul Eggert  <eggert@twinsun.com>
75502
75503         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
75504         to avoid a warning if -Wall.
75505
75506 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
75507
75508         * README: New file
75509         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
75510         (per RMS's instructions, this is now the canonical source)
75511         * lgpl/, gpl/: New directories.
75512
75513 2001-10-21  Paul Eggert  <eggert@twinsun.com>
75514
75515         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
75516
75517 2001-10-21  Jim Meyering  <meyering@lucent.com>
75518
75519         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
75520         this code would end up calling gettext even in packages built
75521         with --disable-nls.
75522         * lib/getopt.c (_): Likewise.
75523         * lib/regex.c (_): Likewise.
75524
75525 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75526
75527         * m4/error.m4 (jm_PREREQ_ERROR):
75528         Do not invoke AC_CHECK_FUNCS with strerror_r, as
75529         AC_FUNC_STRERROR_R does that.
75530         Check for strerror declaration.
75531
75532         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
75533         are supposed to have them these days.
75534         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
75535         Merge changes from latest Autoconf CVS.
75536         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
75537         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
75538         POSIX decided to standardize on the int flavor of strerror_r.
75539
75540 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75541
75542         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
75543         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
75544         Use strerror_r that is only a macro, even if it is not a function.
75545         (strerror): Check for HAVE_DECL_STRERROR before declaring.
75546         (private_strerror): Use prototypes, not old-style function definition.
75547         (print_errno_message): New function.
75548         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
75549         char*-flavored one.
75550         (error_tail, error, error_at_line): Use it.
75551
75552 2001-10-11  Jim Meyering  <meyering@lucent.com>
75553
75554         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
75555         and quote_n (1, ... to avoid clobbering a buffer.
75556
75557 2001-10-05  Jim Meyering  <meyering@lucent.com>
75558
75559         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
75560         hash-pjw.h.
75561         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
75562         * lib/hash-pjw.h: New file.
75563
75564 2001-09-30  Jim Meyering  <meyering@lucent.com>
75565
75566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
75567         `struct fsstat' has the `f_fstypename' member.
75568         Use that to define FS_TYPE, which is now used to make
75569         the getfsstat link test tighter.
75570
75571 2001-09-30  Jim Meyering  <meyering@lucent.com>
75572
75573         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
75574         Include <sys/ucred.h>, for Apple Darwin.
75575         Include sys/mount.h and sys/fs_types.h only if available.
75576         (FS_TYPE): Define.
75577         (read_filesystem_list): Use FS_TYPE.
75578
75579 2001-09-29  Paul Eggert  <eggert@twinsun.com>
75580
75581         * lib/exclude.c (excluded_filename): 0 -> false, since it's
75582         a boolean context.
75583
75584 2001-09-29  Jim Meyering  <meyering@lucent.com>
75585
75586         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75587         [one-argument getmntent function]): Include stdio.h before mntent.h.
75588         SunOS 4.1.x needs it for the declaration of `FILE'.
75589         Patch by Volker Borchert.
75590
75591         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75592         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
75593         sys/fs_types.h, and make the link-test for getfsstat guard #include
75594         directives with appropriate #if HAVE_*_H tests so that we can
75595         detect getfsstat on Apple Darwin1.3.7 systems.
75596         Reported by Nelson Beebe.
75597         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
75598
75599 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75600
75601         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75602         #defines strtoimax.  Also treat the other strto* functions
75603         like strtoimax.
75604
75605         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75606         Check for strtoul and strtoumax,
75607         as those declarations are made even in the signed case.
75608         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
75609         Likewise, for strtol and strtoimax.
75610
75611 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75612
75613         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75614         #defines strtoimax.  Also treat the other strto* functions
75615         like strtoimax.
75616
75617         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
75618         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
75619         (strtoimax, strtoumax): Do not declare if already defined as a macro.
75620
75621 2001-09-26  Jim Meyering  <meyering@lucent.com>
75622
75623         Most macros in unlocked-io.h had the wrong number of arguments.
75624         * lib/gen-uio: New script.
75625         (USE_UNLOCKED_IO): Define to 1 if not already defined.
75626         * lib/unlocked-io.hin: Remove file.
75627         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
75628         rather than trying to embed it here.
75629         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
75630         Reported by Padraig Brady.
75631
75632 2001-09-25  Volker Borchert  <bt@teknon.de>
75633
75634         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
75635         `result'.
75636
75637 2001-09-24  Jim Meyering  <meyering@lucent.com>
75638
75639         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
75640
75641 2001-09-23  Jim Meyering  <meyering@lucent.com>
75642
75643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
75644         instead of the mere test for existence of mntent.h.  The latter
75645         would get a false-positive on AIX 3.4 systems.
75646         In the outer getmntent if-block, don't die if neither of the getmntent
75647         tests succeeds.  Instead, just fall through and continue with the
75648         remaining tests.
75649
75650 2001-09-23  Jim Meyering  <meyering@lucent.com>
75651
75652         * lib/mountlist.c: Remove useless parentheses in #if directives.
75653         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
75654         the deprecated MOUNTED symbol is no longer defined in mntent.h.
75655
75656 2001-09-22  Jim Meyering  <meyering@lucent.com>
75657
75658         * m4/gettext.m4: New file.  From gettext.
75659         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
75660         * m4/progtest.m4: Likewise
75661         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
75662         * m4/glibc21.m4: Likewise.
75663
75664         * m4/libintl.m4: Remove.  No longer used.
75665
75666 2001-09-22  Jim Meyering  <meyering@lucent.com>
75667
75668         * lib/localcharset.c: Update from latest gettext.
75669         * lib/config.charset: Likewise.
75670
75671 2001-09-20  Jim Meyering  <meyering@lucent.com>
75672
75673         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
75674         strtoimax.
75675         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
75676         strtoumax.
75677
75678 2001-09-20  Jim Meyering  <meyering@lucent.com>
75679
75680         * lib/xstrtol.c (strtoimax): Guard declaration with
75681         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
75682         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
75683         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
75684         (strtoumax): Likewise, for completeness (it wasn't necessary).
75685
75686 2001-09-17  Paul Eggert  <eggert@twinsun.com>
75687
75688         * lib/strtoimax.c (HAVE_LONG_LONG):
75689         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
75690         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
75691         to work around bug in IBM C compiler.
75692
75693 2001-09-17  Jim Meyering  <meyering@lucent.com>
75694
75695         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
75696         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
75697         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
75698         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
75699         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
75700         whenever the right hand side need not be expanded by the shell.
75701
75702 2001-09-16  Paul Eggert  <eggert@twinsun.com>
75703
75704         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
75705         library.  It's not correct, as some older glibcs are buggy.
75706         fnmatch wasn't fixed until glibc 2.2.
75707
75708         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
75709         special shell magic here.
75710
75711 2001-09-16  Jim Meyering  <meyering@lucent.com>
75712
75713         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
75714         * m4/jm-macros.m4: Require it.
75715
75716 2001-09-16  Jim Meyering  <meyering@lucent.com>
75717
75718         * lib/mkdir.c: New file.
75719
75720 2001-09-15  Jim Meyering  <meyering@lucent.com>
75721
75722         * m4/jm-macros.m4: Check for help2man.
75723
75724 2001-09-11  Jim Meyering  <meyering@lucent.com>
75725
75726         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
75727         The body, by Paul Eggert, was moved here from configure.in.
75728         * m4/jm-macros.m4: Require UTILS_HOST_OS.
75729
75730 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75731
75732         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
75733         (jm_PREREQ): Use it.
75734
75735 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75736
75737         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
75738         Use ssize_t, not int, to store result of readlink.
75739         Check for ssize_t overflow as well as size_t overflow,
75740         as POSIX says the result of readlink is implementation-defined
75741         when ssize_t overflows.
75742         Remove unnecessary cast to char*.
75743         Use free+malloc instead of realloc, as the storage doesn't need
75744         to be preserved and it's clearer and can be more efficient that way.
75745         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
75746         * lib/xreadlink.h (xreadlink): Update prototype.
75747
75748 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75749
75750         * lib/xgetcwd.c: Revert some of the previous change; intead,
75751         fix the HAVE_GETCWD_NULL code to behave more like the
75752         !HAVE_GETCWD_NULL code used to.
75753
75754         Include "xalloc.h".
75755         (xgetcwd): Do not return NULL when memory is exhausted; instead,
75756         invoke xalloc_die.
75757
75758 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75759
75760         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
75761         sys/param.h, as pathmax.h includes them.
75762
75763 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75764
75765         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
75766         (jm_PREREQ_XGETCWD): New macro.
75767
75768         * m4/getcwd.m4: New file.
75769
75770 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75771
75772         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
75773         like the HAVE_GETCWD_NULL code.
75774         Include pathmax.h if not HAVE_GETCWD.
75775         Do not include xalloc.h.
75776         (INITIAL_BUFFER_SIZE): New symbol.
75777         Do not use xmalloc / xrealloc, since the caller is responsible for
75778         handling errors.  Preserve errno around `free' during failure.
75779         Do not overrun buffer when using getwd.
75780
75781 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75782
75783         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
75784         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
75785         getcwd (NULL, 0).
75786
75787 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75788
75789         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
75790         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
75791         spotted by Jim Meyering.
75792
75793 2001-09-03  Jim Meyering  <meyering@lucent.com>
75794
75795         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
75796         failure.
75797
75798 2001-09-02  Jim Meyering  <meyering@lucent.com>
75799
75800         * lib/error.c: Update from GNU libc.
75801
75802 2001-09-01  Jim Meyering  <meyering@lucent.com>
75803
75804         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75805         Used by df.
75806
75807 2001-09-01  Jim Meyering  <meyering@lucent.com>
75808
75809         * lib/xreadlink.c: New file.
75810         * lib/xreadlink.h: New file.
75811         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75812         xreadlink.h.
75813
75814         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75815         doesn't conflict with sparc Solaris 7's definition in
75816         /usr/include/sys/int_types.h.
75817
75818         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75819         files.
75820         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75821         and strncasecmp as r-values.  Unixware didn't have declarations.
75822
75823 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75824
75825         * lib/xstrtol.h: Add copyright notice.
75826         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75827         LONGINT_INVALID_SUFFIX_CHAR.
75828
75829 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75830
75831         * lib/xstrtol.c (strtoimax): New decl.
75832
75833 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75834
75835         * lib/xgetcwd.c: Don't include pathmax.h.
75836         Include stdlib.h and unistd.h if available.
75837         Include xalloc.h.
75838         (xmalloc, xstrdup, free): Remove decls.
75839         (xgetcwd): Don't assume sizes fit in unsigned.
75840         Check for overflow when computing sizes.
75841         Simplify reallocation code.
75842
75843 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75844
75845         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75846         a directory's st_size can have an arbitrary value, so the old
75847         usage could waste an arbitrary amount of memory.  All uses
75848         changed.
75849         * lib/savedir.h: Update prototype.
75850
75851 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75852
75853         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75854
75855         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75856         old strtoimax.c.
75857
75858         Also, make the following further changes to make this file's
75859         configuration more similar to that of strtol.c:
75860         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75861         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75862         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75863         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75864         changed to signed values.
75865
75866         And make the following changes as well:
75867         Fix copyright notice, as 1999 was missing.
75868         (verify): New macro.
75869         (strtoimax): Check sizes at compile-time, not run-time.
75870         Prefer strtol to strtoll if both work.
75871         (main): Remove; it was not that useful and was a pain to maintain.
75872
75873         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75874
75875 2001-08-31  Jim Meyering  <meyering@lucent.com>
75876
75877         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75878         Use an initial, malloc'd, buffer of length 128 rather than
75879         a statically allocated one of length 1024.
75880
75881 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75882
75883         Simplify code, partly by assuming autoconf 2.52 semantics.
75884
75885         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75886
75887         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75888         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75889         All uses removed.
75890         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75891         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75892         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75893         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75894         jm_AC_HEADER_INTTYPES_H.
75895         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75896
75897         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75898
75899         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75900         Quote first arg of AC_DEFUN.
75901         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75902         since they are needed to parse the include file even if we need
75903         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75904         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75905         but with opposite signedness.
75906
75907 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75908
75909         Merge 'exclude' changes from tar 1.13.22.
75910         This fixes one or two unlikely storage allocation overflow bugs,
75911         but doesn't change user-visible behavior otherwise.
75912
75913 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75914
75915         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75916         (jm_PREREQ_EXCLUDE): New macro.
75917
75918 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75919
75920         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75921         tm to be declared.
75922
75923 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75924
75925         * lib/hash.c: Remove '2001' from copyright notice.
75926
75927 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75928
75929         * lib/full-write.h: New file.
75930         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75931         * lib/full-write.c: Correct credits, as cccp.c no longer
75932         exists and anyway it was so heavily changed from the old cccp
75933         code as to be unrecognizable.  Include full-write.h.
75934         (full_write) Return size_t, with short writes meaning failure.
75935         All callers changed.  This fixes a bug with large buffers
75936         on 64-bit hosts.
75937         * lib/utime.c: Include full-write.h.
75938
75939 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75940
75941         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75942         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75943         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75944         Include if available.
75945         (<xalloc.h>): Include
75946         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75947         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75948         collide with FNM macros.
75949         (struct patopts): New struct.
75950         (struct exclude): Use it, as exclude patterns now come with options.
75951         (new_exclude): Support above changes.
75952         (new_exclude, add_exclude_file):
75953         Initial size must now be a power of two to simplify overflow checking.
75954         (free_exclude, fnmatch_no_wildcards): New function.
75955         (excluded_filename): No longer requires options arg, as the options
75956         are determined by add_exclude.  Now returns bool, not int.
75957         (excluded_filename, add_exclude):
75958         Add support for the fancy new exclusion options.
75959         (add_exclude, add_exclude_file): Now takes int options arg.
75960         Check for arithmetic overflow when computing sizes.
75961         (add_exclude_file): xrealloc might modify errno, so don't
75962         realloc until after errno might be used.
75963
75964         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75965         New macros.
75966         (free_exclude): New decl.
75967         (add_exclude, add_exclude_file): Now takes int options arg.
75968         (excluded_filename): No longer requires options arg, as the options
75969         are determined by add_exclude.  Now returns bool, not int.
75970
75971 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75972
75973         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75974
75975 2001-08-27  Jim Meyering  <meyering@lucent.com>
75976
75977         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75978
75979         * lib/version-etc.c (N_): Remove definition.
75980         Revert most of last change.
75981         Instead, simply don't mark the `Copyright...' string for translation.
75982         Based on advice from Paul Eggert.
75983
75984         * lib/strtoxmax.c: Tweak comment.
75985
75986 2001-08-26  Jim Meyering  <meyering@lucent.com>
75987
75988         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75989
75990         * m4/xstrtoimax.m4: New file.
75991         * m4/xstrtoumax.m4: Add comments explaining why we
75992         AC_REPLACE_FUNCS(strtol).
75993
75994 2001-08-26  Jim Meyering  <meyering@lucent.com>
75995
75996         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75997         of copyright with `%s' so translators don't get an untranslated
75998         message in 2002.
75999         (COPYRIGHT_YEAR): Define.
76000         (version_etc): Use fprintf rather than fputs.
76001         Suggestion from Ulrich Drepper.
76002
76003         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76004
76005         * lib/strtoll.c: New file, from GNU libc.
76006         * lib/xstrtoimax.c: New file.
76007
76008         * lib/xstrtol.h: Add xstrtoimax.
76009         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76010         * lib/strtoimax.c: New file.  Likewise, but first define
76011         STRTOUXMAX_SIGNED.
76012
76013         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76014         ...
76015         * lib/strtoxmax.c: ... then renamed to this.
76016
76017 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76018
76019         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76020         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76021         (jm_AC_TYPE_INTMAX_T): New macro.
76022         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76023
76024         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76025
76026         * m4/longlong.m4: Renamed from ulonglong.m4.
76027         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76028         * m4/uintmax_t.m4: Removed.
76029
76030 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76031
76032         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76033         Port to Solaris 8, where 'sed' requires a space after the 'r'
76034         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76035         Redirect output to $tmp just once.
76036
76037 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76038
76039         * lib/addext.c (<errno.h>): Include.
76040         (errno): Declare if not defined.
76041         (addext): Work correctly when pathconf returns -1 and leaves
76042         errno alone because there is no limit.  Also, work even if
76043         pathconf returns a value greater than SIZE_MAX.
76044
76045 2001-08-12  Jim Meyering  <meyering@lucent.com>
76046
76047         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76048         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76049         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76050         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76051         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76052         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76053         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76054         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76055         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76056         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76057         utime.m4, utimes.m4, xstrtoumax.m4:
76058         Quote the first argument in each use of AC_DEFUN.
76059
76060 2001-08-12  Jim Meyering  <meyering@lucent.com>
76061
76062         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76063         Simply `return getcwd (NULL, 0);'.
76064         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76065         Use 1300 as initial value for length, not PATH_MAX.
76066
76067         * lib/pathmax.h: Clean up cpp syntax.
76068
76069 2001-08-12  Jim Meyering  <meyering@lucent.com>
76070
76071         * lib/gettimeofday.c: New file.
76072         * lib/gtod.h: New file.
76073         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76074
76075 2001-08-05  Jim Meyering  <meyering@lucent.com>
76076
76077         * m4/jm-macros.m4: Require autoconf-2.52.
76078
76079 2001-08-04  Jim Meyering  <meyering@lucent.com>
76080
76081         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76082         stmt, to get in sync with glibc.
76083
76084 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76085
76086         The following changes are from gettext 0.10.39 as maintained by
76087         Bruno Haible.
76088
76089         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76090         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76091         with inverted sense.  All uses changed.
76092
76093         * lib/mbswidth.c: Don't include <limits.h>.
76094         Include <stdlib.h> and <string.h> unconditionally.
76095         (iswcntrl, mbsinit, ISCNTRL): New macros.
76096         (mbsnwidth): Use K&R style function declarations.
76097         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76098         can optimize it when MB_CUR_MAX == 1.
76099         The width of control characters is zero, not 1.
76100
76101 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76102
76103         The following changes are from gettext 0.10.39 as maintained by
76104         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76105
76106         * m4/codeset.m4: Upgrade to serial AM1.
76107         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76108         all uses changed.  Quote first arg of AC_DEFUN.
76109         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76110
76111         * m4/iconv.m4: Upgrade to serial AM2.
76112         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76113         Add --with-libconv-prefix.
76114         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76115         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76116         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76117         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76118         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76119
76120         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76121         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76122         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76123         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76124         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76125         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76126         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76127         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76128         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76129
76130         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76131         string.h any more.
76132
76133         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76134         not the default value.
76135
76136         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76137         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76138         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76139         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76140         Also check for iswcntrl, used for wcwidth fallback.
76141         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76142         to Autoconf 2.13.
76143
76144 2001-08-03  Jim Meyering  <meyering@lucent.com>
76145
76146         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76147         as it was in the original.  Reported by Paul Eggert.
76148
76149 2001-07-16  Jim Meyering  <meyering@lucent.com>
76150
76151         * m4/gettimeofday.m4: New file.
76152         Prompted by a report from Bernhard Baehr.
76153
76154 2001-07-15  Jim Meyering  <meyering@lucent.com>
76155
76156         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76157         stuff. Now it's in ../Makefile.cfg.
76158
76159 2001-07-15  Jim Meyering  <meyering@lucent.com>
76160
76161         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76162         (BUILT_SOURCES): Add unlocked-io.h.
76163         (io_functions): Define.
76164         (unlocked-io.h): New rule.
76165         (DISTCLEANFILES): Add unlocked-io.h.
76166         (all-local): Depend on unlocked-io.h, to ensure it is created.
76167
76168         * lib/unlocked-io.hin: New file
76169
76170         * lib/regex.c: Update from glibc.
76171
76172 2001-07-05  Jim Meyering  <meyering@lucent.com>
76173
76174         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76175         recommendation.
76176         (libfetish_a_SOURCES): Put all .h files here instead.
76177         Remove a thus-exposed (better checks in automake) duplicate and
76178         two unnecessary .h files.
76179
76180 2001-07-04  Jim Meyering  <meyering@lucent.com>
76181
76182         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76183         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76184         distcheck failure.
76185
76186 2001-07-02  Jim Meyering  <meyering@lucent.com>
76187
76188         The following changes were prompted by suggestions from Bruno Haible.
76189
76190         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76191         is now generated.
76192         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76193         definition of EXTRA_DIST.
76194         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76195         ensure that the generated file is created/updated whenever the list
76196         of $(unlocked_functions) is changed.
76197         (jm-glibc-io.m4): New rule.
76198         (unlocked-io.h): New rule -- currently unused.
76199
76200 2001-06-24  Jim Meyering  <meyering@lucent.com>
76201
76202         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76203         unmatched right bracket, rather than kludging it with an extra,
76204         falsely-matching quote in a comment.  Patch by Akim Demaille.
76205
76206 2001-06-11  Jim Meyering  <meyering@lucent.com>
76207
76208         * lib/regex.c: Update from GNU libc.
76209
76210 2001-05-27  Jim Meyering  <meyering@lucent.com>
76211
76212         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76213         Check for ut_type in struct utmp.
76214
76215 2001-05-27  Jim Meyering  <meyering@lucent.com>
76216
76217         * lib/readutmp.h (UT_TYPE): Define.
76218
76219 2001-05-24  Jim Meyering  <meyering@lucent.com>
76220
76221         * lib/argmatch.c: Include "quote.h".
76222         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76223         quote function.  Reported by Göran Uddeborg.
76224
76225 2001-05-22  Jim Meyering  <meyering@lucent.com>
76226
76227         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76228         now that we use the package-supplied version unconditionally.
76229         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76230
76231 2001-05-21  Jim Meyering  <meyering@lucent.com>
76232
76233         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76234         shell syntax errors.
76235
76236 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76237
76238         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76239
76240 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76241
76242         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76243         Don't bother to check library strftime, since
76244         we'll be using our own my_strftime function anyway.
76245         Define my_strftime instead of strftime.
76246
76247 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76248
76249         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76250         which is not yet declared.
76251
76252 2001-05-15  Jim Meyering  <meyering@lucent.com>
76253
76254         * m4/regex.m4: Use proper quoting so brackets appear in the test
76255         program.
76256         Reported by, and with help from, Bruno Haible.
76257
76258 2001-05-13  Jim Meyering  <meyering@lucent.com>
76259
76260         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76261         undefined.
76262
76263 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76264
76265         dirname code cleanup.  base_name now behaves more compatibly
76266         with POSIX basename when given file names that have trailing
76267         slashes, and similarly for dir_name.  Add new primitives
76268         base_len and dir_len.  Put the directory-name-related decls
76269         into dirname.h.
76270
76271         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76272         * lib/backupfile.c (base_name): Likewise.
76273         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76274         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76275         * lib/makepath.c (strip_trailing_slashes): Likewise.
76276         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76277         ISSLASH): Likewise.
76278         * lib/rename.c (strip_trailing_slashes): Likewise.
76279         * lib/same.c (base_name): Likewise.
76280         * lib/stripslash.c (ISSLASH): Likewise.
76281
76282         * lib/addext.c: Include <dirname.h> after size_t is defined.
76283         * lib/backupfile.c: Likewise.
76284
76285         * lib/addext.c (addext): Use base_len to trim redundant
76286         trailing slashes instead of doing it ourselves.
76287         But do not trim the last slash if it is not redundant.
76288
76289         * lib/backupfile.c (find_backup_file_name,
76290         max_backup_version): Use base_len instead of rolling it ourselves.
76291         Handle the case of "" and (on DOS) "C:" correctly.
76292
76293         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76294         needed. Include <string.h>, <dirname.h>.
76295         (base_name): Allow file names ending in slashes, other than names
76296         that are all slashes.  In this case, return the basename followed
76297         by the slashes.  This is more general, and can be used in places
76298         where the original base_name purposely had an assertion failure.
76299         (base_len): New function.
76300
76301         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76302         Do not include <assert.h>; no longer needed.
76303         Include xalloc.h.
76304         (memrchr): Remove decl.
76305         (dir_name_r): Remove.
76306         (dir_len): Renamed from dirlen.  All callers changed.
76307         Rewrite in terms of base_name, for simplicity and consistency.
76308         (dir_name): Never return NULL.  All callers changed.
76309         Do not include <stdlib.h> in test program; no longer needed.
76310         return 0; is fine for test program.
76311
76312         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76313         New macros.
76314         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76315
76316         * lib/path-concat.c (path_concat): Use base_len to compute
76317         base length, not strlen; this means we cannot rely on memcpy
76318         to null-terminate.
76319
76320         * lib/same.c (STREQ): Remove.
76321         (same_name): Handle the case where the basename ends in trailing '/'.
76322
76323         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76324         a slash was stripped.  Do not strip the last slash after a
76325         file system prefix.
76326
76327 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76328
76329         * lib/Makefile.am (libfetish_a_SOURCES):
76330         Add strftime.c, since we now compile it on all hosts.
76331
76332         * lib/strftime.c (my_strftime):
76333         Define to nstrftime if emacs, but only if my_strftime is not defined.
76334         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76335         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76336         Add one more extra argument: a nanoseconds value.
76337         All uses changed.
76338         (ns): New macro.
76339         (my_strftime function): Add %N format.
76340         (emacs_strftimeu): Renamed from emacs_strftime,
76341         with extra ut argument.
76342
76343 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76344
76345         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76346
76347 2001-04-21  Jim Meyering  <meyering@lucent.com>
76348
76349         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76350         doesn't interfere.
76351
76352 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76353
76354         * m4/ftruncate.m4: Check for chsize.
76355         Link with ftruncate.o unconditionally if ftruncate is missing.
76356         This was required when cross-compiling to i586-mingw32msvc.
76357
76358 2001-04-08  Jim Meyering  <meyering@lucent.com>
76359
76360         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76361         recomputed; that's necessary when the offset spans a DST transition.
76362         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76363
76364 2001-04-02  Jim Meyering  <meyering@lucent.com>
76365
76366         * lib/regex.h, regex.c: Update from GNU libc.
76367
76368 2001-03-24  Jim Meyering  <meyering@lucent.com>
76369
76370         * m4/jm-macros.m4: Require autoconf-2.49d.
76371
76372 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76373
76374         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76375
76376 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76377
76378         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76379
76380 2001-03-17  Jim Meyering  <meyering@lucent.com>
76381
76382         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76383         now that the version in autoconf is equivalent.
76384         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76385
76386         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76387         Suggestion from Akim Demaille.
76388
76389         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76390         (jm_PREREQ_TEMPNAME): New function.
76391
76392 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76393
76394         * lib/tempname.c (uint64_t): Define to uintmax_t if
76395         not defined, and if UINT64_MAX is not defined.
76396         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76397         Reported by John David Anglin.
76398
76399 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76400
76401         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76402         resolve alias if codeset is empty.
76403         * lib/config.charset (BeOS): Use wildcard syntax.
76404
76405 2001-03-13  Jim Meyering  <meyering@lucent.com>
76406
76407         * lib/path-concat.c (path_concat)
76408         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76409         concatenating e.g., `C:' and `foo'.
76410         From Bruno Haible.
76411
76412 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76413
76414         * lib/localcharset.c (locale_charset): Don't use
76415         setlocale(LC_CTYPE,NULL). Don't return NULL.
76416         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76417
76418 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76419
76420         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76421         support for DOS/DJGPP.
76422
76423 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76424
76425         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76426         lacks mkstemp.  Compile our own tempname.c if we compile our own
76427         mkstemp.c, as mkstemp relies on tempname.
76428
76429 2001-03-01  Jim Meyering  <meyering@lucent.com>
76430
76431         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76432         AH_VERBATIM really does output its argument verbatim.
76433
76434 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76435
76436         * lib/Makefile.am (libfetish_a_SOURCES):
76437         Add dup-safer.c, fopen-safer.c.
76438         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76439
76440         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76441         * lib/unistd-safer.h: New files.
76442
76443 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76444
76445         The mkstemp replacement is taken from glibc 2.2.2, with some
76446         portability fixes for use outside glibc, as follows:
76447
76448         * lib/tempname.c (struct_stat64): New macro.
76449         (direxists, __gen_tempname): Use it.
76450         This avoids a portability problem with Solaris 8.
76451
76452         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76453         (<stddef.h>, <stdint.h>, <string.h>):
76454         Include only if STDC_HEADERS || _LIBC.
76455         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76456         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76457         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76458         (__set_errno): Define this macro if <errno.h> doesn't.
76459         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76460         Define these macros if <stdio.h> doesn't.
76461         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
76462         Define these macros if <sys/stat.h>
76463         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
76464         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76465         __xstat64): Define if not _LIBC.
76466         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
76467         (__gen_tempname): Invoke gettimeofday only if
76468         HAVE_GETTIMEOFDAY || _LIBC;
76469         otherwise, fall back on plain "time".
76470         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
76471
76472         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
76473
76474         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
76475
76476 2001-02-18  Paul Eggert  <eggert@twinsun.com>
76477
76478         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
76479
76480 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76481
76482         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
76483         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
76484         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
76485         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76486
76487 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76488
76489         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
76490         Remove workaround macros for hosts that have mbrtowc but not
76491         mbstate_t, as we now insist on proper declarations for both
76492         before using mbrtowc.
76493
76494 2001-02-17  Jim Meyering  <meyering@lucent.com>
76495
76496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
76497         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
76498         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
76499         UnixWare 7.1.1.
76500
76501         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
76502         rather than AC_CACHE_VAL.
76503
76504 2001-02-17  Jim Meyering  <meyering@lucent.com>
76505
76506         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
76507         around included file name.
76508
76509         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
76510
76511         * lib/strftime.c: Update from GNU libc (the only changes were to
76512         comments).
76513
76514 2001-02-17  Jim Meyering  <meyering@lucent.com>
76515
76516         * lib/regex.c: Update from libc.
76517
76518 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
76519
76520         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
76521         clash.
76522
76523 2001-02-16  Paul Eggert  <eggert@twinsun.com>
76524
76525         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
76526         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
76527         Reported by Mark Hounschell via Paul Eggert.
76528
76529 2001-02-07  Jim Meyering  <meyering@lucent.com>
76530
76531         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
76532
76533 2001-02-05  Jim Meyering  <meyering@lucent.com>
76534
76535         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
76536         it includes the patch required for `large file' support with at least
76537         HP-UX's 10.20 /bin/cc.
76538
76539 2001-02-03  Jim Meyering  <meyering@lucent.com>
76540
76541         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
76542         AS_IF, now that it works once again (mysteriously).
76543         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76544
76545 2001-01-30  Jim Meyering  <meyering@lucent.com>
76546
76547         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
76548         * m4/chown.m4: Rename conftestchown to conftest.chown.
76549         * m4/rename.m4: s/conftestdir/conftest.d1/ and
76550         s/conftestdir2/conftest.d2/.
76551         * m4/utimes.m4: s/conftestdata/conftest.data/
76552         Inspired by Pavel Roskin's change in autoconf.
76553
76554 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
76555
76556         * lib/config.charset: Update for FreeBSD 4.2.
76557
76558 2001-01-27  Jim Meyering  <meyering@lucent.com>
76559
76560         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
76561         a use of AS_IF.
76562         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76563
76564 2001-01-26  Jim Meyering  <meyering@lucent.com>
76565
76566         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
76567         quotearg.c includes it.
76568
76569 2001-01-26  Jim Meyering  <meyering@lucent.com>
76570
76571         * lib/quotearg.c: Include stddef.h.
76572         * lib/quote.c: Include stddef.h.
76573         Reported by Axel Kittenberger.
76574
76575         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
76576         line in double quotes so that it evokes a better diagnostic.
76577         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
76578         Reported by Axel Kittenberger.
76579
76580 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
76581
76582         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
76583         as if it was a `charset'.
76584
76585 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76586
76587         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
76588         has const.
76589
76590 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76591
76592         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
76593         to avoid a warning.  Add back 'const' to inptr.
76594
76595 2001-01-20  Jim Meyering  <meyering@lucent.com>
76596
76597         Be sure that headers are checked before used in code compiled
76598         for the type checks.
76599         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
76600         In place of that, invoke jm_CHECK_ALL_TYPES.
76601         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
76602         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
76603         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
76604         The check for ssize_t was mistakenly run before the test for unistd.h.
76605
76606         The configure-time check for stdbool.h was missing.
76607         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
76608         (jm_PREREQ_HASH): New function.
76609
76610 2001-01-17  Jim Meyering  <meyering@lucent.com>
76611
76612         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
76613         for autoconf-2.49c.
76614         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
76615
76616 2001-01-16  Jim Meyering  <meyering@lucent.com>
76617
76618         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
76619         From Bruno Haible.
76620
76621 2001-01-14  Jim Meyering  <meyering@lucent.com>
76622
76623         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
76624         foo and bar.  Create conftestdir/ in the script, not in the C code.
76625         Remove directories in the script, not in the C code.
76626         Remove conftestdir{,2} before trying to create the directory.
76627         Make the entire configure script fail if the mkdir fails.
76628
76629 2001-01-14  Jim Meyering  <meyering@lucent.com>
76630
76631         * lib/rename.c: New file.  From Volker Borchert.
76632         Include stdlib.h, string.h or strings.h, and xalloc.h.
76633         Use strip_trailing_slashes rather than open-coding it.
76634
76635 2001-01-03  Paul Eggert  <eggert@twinsun.com>
76636
76637         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
76638
76639 2001-01-03  Jim Meyering  <meyering@lucent.com>
76640
76641         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
76642         of local `inptr' to avoid warning with some system declarations of
76643         iconv.
76644
76645 2001-01-02  Volker Borchert  <bt@teknon.de>
76646
76647         * m4/rename.m4: New file.
76648         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
76649
76650 2001-01-01  Jim Meyering  <meyering@lucent.com>
76651
76652         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
76653         even on systems with utmpx.h.  It's necessary for the declaration of
76654         utmp's ut_user member.  Reported by Andreas Jaeger.
76655
76656         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
76657         available. They are required for the declarations of getgrgid and
76658         getpwuid resp.
76659         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
76660         Reported by Andreas Jaeger.
76661
76662 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
76663
76664         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
76665         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
76666         so `make install' also works in VPATH builds.
76667
76668 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
76669
76670         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
76671         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
76672         can be used in subdirectories.
76673
76674 2000-12-29  Paul Eggert  <eggert@twinsun.com>
76675
76676         * lib/modechange.c: Do not assume that mode_t uses the
76677         traditional octal encoding.  E.g. "chmod 1 FOO" should set
76678         the other-execute bit of FOO even if S_IXOTH != 1.
76679
76680         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
76681         WOTH, XOTH, ALLM): New macros.
76682         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
76683          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
76684         Use them.
76685         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
76686         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
76687         (mode_compile):
76688         No need to use uintmax_t; unsigned long is long enough.
76689         Don't bother to get suffix since we don't use it.
76690
76691 2000-12-26  Jim Meyering  <meyering@lucent.com>
76692
76693         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
76694         better with autoheader.
76695
76696 2000-12-24  Jim Meyering  <meyering@lucent.com>
76697
76698         * lib/hash.c (is_prime): Return explicit boolean values.
76699         (hash_get_first): Return NULL to appease Irix5.6's 89.
76700         Reported by Nelson Beebe.
76701
76702 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
76703
76704         * lib/localcharset.c (locale_charset): Add support for Win32.
76705
76706 2000-12-18  Paul Eggert  <eggert@twinsun.com>
76707
76708         * lib/physmem.h, lib/physmem.c: New files.
76709
76710         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
76711         (noinst_HEADERS): Add physmem.h.
76712
76713         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
76714         't' for compatibility with Solaris 8 sort.
76715
76716 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
76717
76718         * lib/config.charset: Add support for BeOS.
76719
76720 2000-12-17  Jim Meyering  <meyering@lucent.com>
76721
76722         * m4/dos.m4 (jm_AC_DOS): New file and macro.
76723         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
76724
76725 2000-12-16  Jim Meyering  <meyering@lucent.com>
76726
76727         This bug had a serious impact on chown: `chown N:M FILE' (for integer
76728         N and M) would have treated it like `chown N:N FILE'.
76729
76730         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
76731
76732 2000-12-16  Jim Meyering  <meyering@lucent.com>
76733
76734         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
76735         SHELLS_FILE to a file name that's useful on djgpp systems.
76736         Include stdlib.h.
76737         (ADDITIONAL_DEFAULT_SHELLS): Define.
76738         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
76739         Based mostly on a patch from Prashant TR.
76740
76741 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
76742
76743         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
76744         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
76745         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
76746
76747 2000-12-08  Andreas Schwab  <schwab@suse.de>
76748
76749         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
76750         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
76751
76752 2000-12-07  Jim Meyering  <meyering@lucent.com>
76753
76754         * lib/stripslash.c (ISSLASH): Define.
76755         (strip_trailing_slashes): Use ISSLASH rather than comparing against
76756         `/'.
76757         From Prashant TR.
76758
76759         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
76760         (dir_name_r): Declare this function as static.
76761         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
76762         manifest itself on a name containing a mix of slashes and
76763         backslashes.
76764         Make this function work with names starting with a DOS-style
76765         drive letter and colon prefix.
76766         (dir_name): Append `.' if necessary.
76767         Based mostly on patches from Prashant TR and Eli Zaretskii.
76768
76769         * lib/dirname.h (dir_name_r): Remove prototype.
76770
76771 2000-12-06  Paul Eggert  <eggert@twinsun.com>
76772
76773         * m4/off_t-format.m4: Remove this file.
76774         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
76775
76776 2000-12-06  Jim Meyering  <meyering@lucent.com>
76777
76778         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
76779         replacement strtoull, we may well need the replacement strtoul, too.
76780         Check for declarations of strtoul and strtoull.
76781         Check for strtol.  Mainly as a cue to cause automake to include
76782         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
76783         Check for limits.h -- strtol.c needs it.
76784
76785 2000-12-05  Jim Meyering  <meyering@lucent.com>
76786
76787         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
76788
76789 2000-12-04  Jim Meyering  <meyering@lucent.com>
76790
76791         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
76792         Also include memory.h, stdlib.h, unistd.h if appropriate.
76793         Reported by Andreas Jaeger (conflicting declaration of malloc).
76794
76795 2000-12-02  Jim Meyering  <meyering@lucent.com>
76796
76797         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76798         * m4/jm-macros.m4 (jm_MACROS): require it.
76799
76800 2000-12-02  Jim Meyering  <meyering@lucent.com>
76801
76802         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76803
76804 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76805
76806         * lib/memrchr.c: Include <config.h> before any system include file.
76807
76808 2000-11-30  Jim Meyering  <meyering@lucent.com>
76809
76810         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76811
76812 2000-11-30  Jim Meyering  <meyering@lucent.com>
76813
76814         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76815
76816 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76817
76818         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76819
76820 2000-11-26  Jim Meyering  <meyering@lucent.com>
76821
76822         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76823
76824 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76825
76826         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76827         size of (size_t) -1; it's not portable.
76828
76829 2000-11-17  Jim Meyering  <meyering@lucent.com>
76830
76831         * lib/strstr.c: Update from GNU libc.
76832
76833 2000-11-17  Akim Demaille  <akim@epita.fr>
76834
76835         * lib/obstack.h: Formatting changes.
76836         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76837         prevent type checking.
76838         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76839         cast the value to (void *): assigning a `foo *' to a `void *'
76840         variable is valid.
76841         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76842
76843 2000-11-16  Jim Meyering  <meyering@lucent.com>
76844
76845         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76846
76847 2000-11-11  Jim Meyering  <meyering@lucent.com>
76848
76849         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76850
76851 2000-11-10  Jim Meyering  <meyering@lucent.com>
76852
76853         * lib/obstack.h: Update from GNU libc.
76854         * lib/obstack.c: Likewise.
76855
76856 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76857
76858         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76859
76860 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76861
76862         * lib/getusershell.c (setusershell): Use rewind rather than
76863         fseek/fseeko, to avoid configuration hassles with fseeko.
76864         Don't bother opening SHELLS_FILE if shellstream is NULL;
76865         it's not necessary.
76866
76867 2000-11-05  Jim Meyering  <meyering@lucent.com>
76868
76869         * lib/makepath.h (make_dir): Declare.
76870         * lib/makepath.c (make_dir): Remove `static' attribute.
76871         Tweak a comment.
76872
76873 2000-11-04  Jim Meyering  <meyering@lucent.com>
76874
76875         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76876
76877 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76878
76879         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76880         last one in a bucket, advance to the next bucket.
76881
76882 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76883
76884         * lib/fnmatch.c: Do not comment out all the code if we are using
76885         the GNU C library, because in some cases we are replacing buggy
76886         code in the GNU C library itself.
76887
76888 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76889
76890         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76891         (regex_compile): Catch bogus \(\1\).
76892
76893 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76894
76895         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76896         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76897         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76898
76899 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76900
76901         * lib/error.h, getline.h, modechange.h:
76902         Remove "2000" from Copyright line, as the file hasn't been
76903         changed this year other than in the copyright notice.
76904
76905         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76906         was changed this year.
76907
76908 2000-10-29  Jim Meyering  <meyering@lucent.com>
76909
76910         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76911         renaming.
76912         * m4/ls-mntd-fs.m4: Likewise
76913
76914 2000-10-29  Jim Meyering  <meyering@lucent.com>
76915
76916         * lib/xstat.in: Fix grammar in comment.
76917
76918 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76919
76920         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76921         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76922         doesn't define __restrict_arr.
76923
76924 2000-10-28  Jim Meyering  <meyering@lucent.com>
76925
76926         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76927         (jm_PREREQ_MEMCHR): New function.
76928
76929 2000-10-28  Jim Meyering  <meyering@lucent.com>
76930
76931         * lib/memchr.c: Update from libc.
76932         Adjust for portability:
76933         [HAVE_STDLIB_H]: Include stdlib.h.
76934         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76935         Undef __memchr, too.
76936         [!weak_alias]: Define __memchr to memchr.
76937
76938         * lib/regex.c: Update from libc.
76939         * lib/regex.h: Likewise.
76940         * lib/getopt1.c: Likewise.
76941         * lib/memcmp.c: Likewise.
76942
76943         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76944         Avoid using fseek, when possible -- it's broken by design.
76945         Patch by Ulrich Drepper.
76946
76947 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76948
76949         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76950         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76951         Giving in to popular pressure to shut up the compiler with casts.
76952
76953 2000-10-26  Jim Meyering  <meyering@lucent.com>
76954
76955         * lib/strftime.c: Update from libc.
76956
76957 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76958
76959         * regex.c: More `unsigned char' -> `re_char' changes.
76960         Also change several `int' into `re_wchar_t'.
76961         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76962         (PUSH_FAILURE_POINTER): Don't cast any more.
76963         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76964         We want GCC to complain, since this piece of code makes
76965         re_match non-reentrant, which *should* be fixed.
76966         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76967         (EXTEND_BUFFER): Use RETALLOC.
76968         (SET_LIST_BIT): Don't cast.
76969         (re_wchar_t): New type.
76970         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76971         that those two functions will always properly return.
76972         (IMMEDIATE_QUIT_CHECK): Cast to void.
76973         (analyse_first): Use recursion rather than an explicit stack.
76974         (re_compile_fastmap): Can't fail anymore.
76975         (re_search_2): Don't check re_compile_fastmap for failure.
76976         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76977         Now also sets the new value (passed in a new argument).
76978         (re_match_2_internal): Use it.
76979         Also, use a new var `reg' of type size_t when looping through regs
76980         rather than reuse the inappropriate `mcnt'.
76981
76982 2000-10-25  Jim Meyering  <meyering@lucent.com>
76983
76984         * lib/obstack.c: Update from libc.
76985
76986 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76987
76988         * regex.c (regex_compile): Change the way of handling a range from
76989         a char less than 256 to a char not less than 256.
76990
76991 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76992
76993         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76994         NT-Emacs only.
76995         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76996         so that re_search functions only quit when callers expect them to.
76997
76998 2000-10-23  Jim Meyering  <meyering@lucent.com>
76999
77000         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77001         wrong.  That set_locale call must not have any side effects.
77002         From Paul Eggert.
77003
77004 2000-10-22  Jim Meyering  <meyering@lucent.com>
77005
77006         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77007         [CYCLIC]: Remove now-unused definition.
77008
77009         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77010         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77011         Suggestion from Ulrich Drepper.
77012
77013 2000-10-21  Jim Meyering  <meyering@lucent.com>
77014
77015         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77016         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77017         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77018
77019 2000-10-21  Jim Meyering  <meyering@lucent.com>
77020
77021         * lib/dirname.c (memrchr): Declare if necessary.
77022         (dir_name): Remove the restriction that there be no
77023         trailing slashes.  Now, this code skips past them, effectively
77024         ignoring them.
77025         [TEST_DIRNAME] (main): New unit tests.
77026
77027         * lib/memrchr.c: New file from GNU libc.
77028         Undef __memrchr, too.
77029         [!weak_alias]: Define __memrchr to memrchr.
77030         Guard weak_alias use with `#ifdef weak_alias'.
77031
77032 2000-10-21  Jim Meyering  <meyering@lucent.com>
77033
77034         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77035         (dir_name): Use dir_name_r.
77036         * lib/dirname.h (dir_name_r): Declare it.
77037
77038 2000-10-17  Jim Meyering  <meyering@lucent.com>
77039
77040         * lib/quote.h (PARAMS): Define and use.
77041         Reported by Akim Demaille.
77042
77043         * lib/getopt.c: Update from libc.
77044
77045 2000-10-16  Jim Meyering  <meyering@lucent.com>
77046
77047         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77048         setlocale.
77049         From Jan Fedak.
77050
77051 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77052
77053         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77054
77055 2000-09-25  Jim Meyering  <meyering@lucent.com>
77056
77057         * lib/md5.h (rol): Define (from GnuPG).
77058
77059         * lib/sha.c: Give credit (GnuPG) where due.
77060         (M): Use rol rather than open-coding it.
77061         Add a FIXME comment.
77062
77063 2000-09-21  Jim Meyering  <meyering@lucent.com>
77064
77065         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77066         Reported by Michael Stone.
77067
77068 2000-09-20  Jim Meyering  <meyering@lucent.com>
77069
77070         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77071         (noinst_HEADERS): Add sha.h.
77072         Based on code from Scott G. Miller and from GnuPG.
77073
77074 2000-09-18  Jim Meyering  <meyering@lucent.com>
77075
77076         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77077         LIBS. Otherwise, everyone ends up linking with -lelf for some
77078         configurations.
77079         Reported by Mike Stone.
77080
77081 2000-09-15  Jim Meyering  <meyering@lucent.com>
77082
77083         * lib/regex.c: Update from libc.
77084
77085 2000-09-10  Jim Meyering  <meyering@lucent.com>
77086
77087         * lib/getopt.c (_getopt_internal): Update from glibc.
77088
77089 2000-09-09  Jim Meyering  <meyering@lucent.com>
77090
77091         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77092         think it should be used as a general replacement for isascii.
77093         * lib/fnmatch.c: Likewise.
77094         * lib/mbswidth.c: Likewise
77095         * lib/regex.c: Likewise.
77096
77097         Don't use atoi.
77098         * lib/userspec.c: Include sys/param.h and limits.h.
77099         Include xstrtol.h.
77100         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77101         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77102         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77103         UID, GID.  Check range.
77104
77105 2000-09-06  Jim Meyering  <meyering@lucent.com>
77106
77107         * lib/getopt.c (_getopt_internal): Update from glibc.
77108
77109 2000-08-30  Jim Meyering  <meyering@lucent.com>
77110
77111         * lib/strftime.c: Merge in changes from GNU libc.
77112
77113 2000-08-26  Jim Meyering  <meyering@lucent.com>
77114
77115         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77116         * m4/fpending.m4: New file.
77117
77118 2000-08-26  Jim Meyering  <meyering@lucent.com>
77119
77120         * lib/closeout.c: Include "__fpending.h".
77121         (close_stdout_status): Return right away if there's nothing to flush.
77122
77123         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77124         * lib/__fpending.c: New file.
77125         * lib/__fpending.h: New file.
77126
77127 2000-08-20  Jim Meyering  <meyering@lucent.com>
77128
77129         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77130         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77131         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77132
77133 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77134
77135         Improve fileutils installation on systems where running
77136         programs (like install) can't be unlinked.
77137         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77138         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77139
77140 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77141
77142         Standardize on "memory exhausted" instead of "Memory exhausted"
77143         or "virtual memory exhausted".
77144         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77145         "virtual memory exhausted".
77146         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77147         our own message.
77148         * lib/userspec.c (parse_user_spec): Likewise.
77149         * lib/bumpalloc.h: comment fix
77150         * lib/same.c, userspec.c: Include xalloc.h.
77151
77152         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77153         not char *const and pointing to a constant array.
77154         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77155         (xrealloc): Comment fix.
77156
77157         * lib/userspec.c (parse_user_spec):
77158         Don't translate a message until just before returning,
77159         to avoid unnecessary translation.
77160
77161 2000-08-07  Jim Meyering  <meyering@lucent.com>
77162
77163         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77164         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77165         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77166         getgroups.c, gethostname.c, getopt.h, group-member.c,
77167         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77168         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77169         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77170         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77171         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77172         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77173         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77174         yesno.c: Back out Copyright date changes for each file with no change
77175         this year.  This eases coordination with other programs using the same
77176         source code modules.  From Paul Eggert.
77177
77178 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77179
77180         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77181         not char, for compatibility with glibc 2.1.3 strftime.c.
77182
77183 2000-08-03  Greg McGary  <greg@mcgary.org>
77184
77185         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77186         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77187         (EXTEND_BUFFER): Use them.
77188
77189 2000-08-01  Jim Meyering  <meyering@lucent.com>
77190
77191         * lib/dirname.c (ISSLASH): Define.
77192         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77193         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77194         both `\' and `/' may be use as path separators.
77195         Based on a patch from Prashant TR.
77196
77197 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77198
77199         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77200         slot vector a constant, since it might get modified.
77201
77202 2000-07-31  Jim Meyering  <meyering@lucent.com>
77203
77204         * lib/xmalloc.c: Use `virtual memory exhausted', not
77205         `Memory exhausted'.
77206         * lib/obstack.c (print_and_abort): Likewise.
77207
77208 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77209
77210         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77211         buffer, so that the caller can always quote one small
77212         component of a "memory exhausted" message in slot 0.
77213         From a suggestion by Jim Meyering.
77214
77215 2000-07-30  Jim Meyering  <meyering@lucent.com>
77216
77217         * lib/makepath.c (make_path): Quote the other instance, too.
77218
77219         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77220         (STATIC_BUF_SIZE): Define.
77221         (quotearg_n_options): Use only statically allocated storage when
77222         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77223         than STATIC_BUF_SIZE.
77224
77225 2000-07-29  Jim Meyering  <meyering@lucent.com>
77226
77227         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77228         * lib/dirname.c (dir_name): Likewise.
77229
77230         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77231         `/'.
77232
77233         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77234         (dir_name): Assert that there are no trailing slashes.
77235
77236 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77237
77238         * lib/mbswidth.h (mbswidth): Add a flags argument.
77239         (mbswidth): New declaration.
77240         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77241         * lib/mbswidth.c (mbswidth): Add a flags argument.
77242         (mbsnwidth): New function.
77243
77244 2000-07-24  Jim Meyering  <meyering@lucent.com>
77245
77246         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77247
77248 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77249
77250         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77251
77252 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77253
77254         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77255         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77256         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77257         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77258         invoke multibyte primitives.
77259
77260 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77261
77262         * lib/quotearg.c:
77263         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77264         so that mbstate_t is always defined.
77265
77266         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77267         be 1 in at least one GCC installation, and this configuration
77268         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77269         performance on hosts that have mbrtowc but have only unibyte
77270         locales, but I assume these hosts are rare.
77271
77272 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77273
77274         * lib/mbswidth.c (_XOPEN_SOURCE):
77275         Don't define; this causes problems on Solaris 7.
77276         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77277
77278 2000-07-23  Jim Meyering  <meyering@lucent.com>
77279
77280         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77281         too: getgrgid, getpwuid, getuid.
77282
77283 2000-07-23  Jim Meyering  <meyering@lucent.com>
77284
77285         * lib/basename.c (base_name): Add an assertion.
77286
77287 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77288
77289         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77290         shadow its mbsinit function.
77291
77292 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77293
77294         * lib/mbswidth.h: New file.
77295         * lib/mbswidth.c: New file.
77296         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77297         (noinst_HEADERS): Add mbswidth.h.
77298
77299 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77300
77301         * lib/config.charset: Add support for FreeBSD. Improve support for
77302         HP-UX and IRIX 6.
77303
77304 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77305
77306         * m4/mbswidth.m4: New file.
77307         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77308
77309 2000-07-15  Jim Meyering  <meyering@lucent.com>
77310
77311         * lib/makepath.c: Include quote.h.
77312         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77313         corresponding argument in a `quote (...)' call.
77314         Give better diagnostics.
77315
77316         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77317         (noinst_HEADERS): Add quote.h.
77318
77319         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77320         from tar's src/misc.c.
77321         * lib/quote.h: New file.  Prototypes for same.
77322
77323 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77324
77325         From a suggestion by Bruno Haible.
77326         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77327         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77328         to decide whether to define the BeOS workaround macro;
77329         this adjusts to the change to AC_MBSTATE_T.
77330
77331 2000-07-14  Jim Meyering  <meyering@lucent.com>
77332
77333         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77334         jm_AC_TYPE_UINTMAX_T.
77335
77336 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77337
77338         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77339
77340         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77341         quotearg_buffer_restyled): Add support for
77342         clocale_quoting_style.  Undo previous change to
77343         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77344         and "{RIGHT QUOTATION MARK}" msgids.
77345
77346 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77347
77348         From a suggestion by Bruno Haible.
77349         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77350         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77351         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77352         and mbstate_t, to a single-part test that simply defines mbstate_t.
77353         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77354         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77355
77356 2000-07-10  Jim Meyering  <meyering@lucent.com>
77357
77358         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77359
77360         * m4/gnu-source.m4: Output to confdefs.h directly.
77361         Suggestion from Akim Demaille.
77362
77363 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77364
77365         The old behavior of quoting `like this' doesn't look good with
77366         newer, ISO-style fonts.  See:
77367         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77368
77369         Instead, quote "like this" by default.  Let the translator
77370         tailor the locale-specific quoting behavior by providing
77371         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77372
77373         * lib/quotearg.c (N_): New macro.
77374         (gettext_default): New function.
77375         (quotearg_buffer_restyled): Use
77376         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77377         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77378
77379 2000-07-09  Jim Meyering  <meyering@lucent.com>
77380
77381         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77382         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77383
77384         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77386
77387 2000-07-09  Jim Meyering  <meyering@lucent.com>
77388
77389         * lib/Most files: Update copyright dates to include 2000.
77390
77391 2000-07-08  Jim Meyering  <meyering@lucent.com>
77392
77393         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77394         if not defined.
77395         (xgethostname): Remove now-unnecessary #ifdef.
77396         Move declaration of `err' into loop where it's used.
77397
77398 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77399         and Bruno Haible  <haible@clisp.cons.org>
77400
77401         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77402         only if the test for an object-type mbstate_t fails.  This
77403         prevents us from mistakenly reporting that mbstate_t is a
77404         system object type after we "#define mbstate_t int" to work
77405         around its lack.
77406
77407 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77408         and Bruno Haible  <haible@clisp.cons.org>
77409
77410         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77411
77412 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77413
77414         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77415         to strerror_r.
77416         Include <ctype.h> for use of isalpha.
77417
77418 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77419
77420         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77421         by allocating a larger buffer. Test the gethostname return value for
77422         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77423         returns an error and ENAMETOOLONG isn't defined.
77424
77425 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77426
77427         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77428         dimension.
77429
77430 2000-07-04  Jim Meyering  <meyering@lucent.com>
77431
77432         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77433         of the deprecated AC_CHECKING.
77434
77435 2000-07-04  Jim Meyering  <meyering@lucent.com>
77436
77437         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77438         Reported by Bruno Haible.
77439
77440 2000-07-04  Jim Meyering  <meyering@lucent.com>
77441
77442         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77443         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77444         lacks mbrtowc.
77445
77446 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77447
77448         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77449         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77450
77451 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77452         and Bruno Haible  <haible@clisp.cons.org>
77453
77454         * lib/quotearg.c (mbrtowc):
77455         Assign to *pwc, and return 1 only if result is nonzero.
77456         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77457
77458 2000-07-03  Jim Meyering  <meyering@lucent.com>
77459
77460         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
77461
77462 2000-07-03  Jim Meyering  <meyering@lucent.com>
77463
77464         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
77465         This is necessary to get a definition of e.g., UTMP_FILE on
77466         HP-UX 10.20.
77467         From Bob Proulx.
77468
77469 2000-07-02  Jim Meyering  <meyering@lucent.com>
77470
77471         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
77472
77473         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
77474         AC_LIBOBJ(function_name).
77475         * m4/chown.m4: Likewise.
77476         * m4/fnmatch.m4: Likewise.
77477         * m4/ftruncate.m4: Likewise.
77478         * m4/getgroups.m4: Likewise.
77479         * m4/getline.m4: Likewise.
77480         * m4/group-member.m4: Likewise.
77481         * m4/jm-macros.m4: Likewise.
77482         * m4/lstat.m4: Likewise.
77483         * m4/malloc.m4: Likewise.
77484         * m4/memcmp.m4: Likewise.
77485         * m4/nanosleep.m4: Likewise.
77486         * m4/putenv.m4: Likewise.
77487         * m4/realloc.m4: Likewise.
77488         * m4/regex.m4: Likewise.
77489         * m4/stat.m4: Likewise.
77490         * m4/strftime.m4: Likewise.
77491
77492 2000-07-02  Jim Meyering  <meyering@lucent.com>
77493
77494         * lib/quotearg.c (mbstate_t): Don't define here.
77495
77496 2000-07-02  Jim Meyering  <meyering@lucent.com>
77497
77498         * lib/nanosleep.c (SIGCONT): Define if not already defined.
77499
77500 2000-07-01  Jim Meyering  <meyering@lucent.com>
77501
77502         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
77503
77504 2000-07-01  Jim Meyering  <meyering@lucent.com>
77505
77506         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
77507         problem.
77508
77509 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77510
77511         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
77512         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
77513
77514 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77515
77516         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
77517         per change in ../m4/ls-mntd-fs.m4.
77518         (read_filesystem_list): Ignore symbolic links.
77519
77520 2000-06-29  Jim Meyering  <meyering@lucent.com>
77521
77522         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
77523         for declaration of strcmp.
77524
77525         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
77526
77527         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
77528         Avoid warning by casting result to `char *' to remove `const'.
77529
77530 2000-06-28  Jim Meyering  <meyering@lucent.com>
77531
77532         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
77533         included by quotearg.c, for which we perform this test.  From
77534         Bruno Haible.
77535
77536 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77537
77538         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
77539         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
77540         <utmpx.h> exists, put readutmp.o into LIBOBJS.
77541
77542 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77543
77544         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
77545
77546 2000-06-26  Paul Eggert  <eggert@twinsun.com>
77547
77548         savedir now sets errno on failure and invokes xmalloc to get memory.
77549         Fix a couple of other minor bugs while we're at it.
77550
77551         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
77552         (NAMLEN): Remove macro.
77553         (malloc, realloc): Remove decls.
77554         (stpcpy): Likewise.
77555         ("xalloc.h"): Include.
77556         (NAME_SIZE_DEFAULT): New macro.
77557         (savedir): Use xmalloc / xrealloc to allocate memory.
77558         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
77559         Skip "" directory entries.
77560         Use strlen to calculate directory entry length, since the old method
77561         is rarely used these days and isn't worth supporting.
77562         Don't use a pointer after freeing it.
77563         Check for integer overflow when calculating allocation size.
77564         Use memcpy to copy entries, instead of stpcpy.
77565         Set errno properly when returning NULL.
77566         Check for readdir error.
77567
77568 2000-06-26  Jim Meyering  <meyering@lucent.com>
77569
77570         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
77571
77572 2000-06-25  Jim Meyering  <meyering@lucent.com>
77573
77574         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
77575         Linux header bug when _XOPEN_SOURCE is defined to 500.
77576
77577 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77578
77579         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
77580         deficiency.
77581
77582 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77583
77584         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
77585         Include xalloc.h.
77586         Don't include <stdlib.h>.  Don't declare malloc, realloc.
77587
77588 2000-06-24  Jim Meyering  <meyering@lucent.com>
77589
77590         * m4/strerror_r.m4: Revive this file -- to try out an experimental
77591         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
77592         for which strerror does return char*, but which lacks a conveniently
77593         accessible declaration of the function.  If the compile-test says
77594         strerror_r doesn't work, then resort to a `run'-test that works on
77595         BeOS and segfaults on DEC Unix.
77596
77597 2000-06-24  Jim Meyering  <meyering@lucent.com>
77598
77599         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
77600
77601 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77602
77603         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
77604         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
77605
77606 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77607
77608         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
77609         (mbrtowc, mbstate_t): Define substitutes if
77610         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
77611         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
77612         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
77613
77614 2000-06-23  Jim Meyering  <meyering@lucent.com>
77615
77616         * m4/afs.m4: Add missing AC_MSG_RESULT.
77617         Reported by Bruno Haible.
77618
77619         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
77620         Suggestion from Bruno Haible.
77621
77622 2000-06-23  Jim Meyering  <meyering@lucent.com>
77623
77624         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
77625
77626 2000-06-21  Jim Meyering  <meyering@lucent.com>
77627
77628         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
77629
77630 2000-06-21  Jim Meyering  <meyering@lucent.com>
77631
77632         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
77633         (noinst_HEADERS): Add getstr.h.
77634
77635         * lib/getline.c (getstr): Move into a separate file.
77636         * lib/getstr.c (getstr): New file, extracted from getline.c, with
77637         the following changes: new parameter, delim2; both delim[12]
77638         parameters have type `int', not `char'.  The latter would lose
77639         with 8-bit delimiters.
77640         * lib/getstr.h: New file.
77641
77642 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77643
77644         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
77645         than 1024, return a memory chunk of least possible size, instead
77646         of size PATH_MAX + 2. In the loop, increment the size proportionally.
77647         Use free/xmalloc instead of xrealloc to avoid copying for very long
77648         paths.
77649
77650 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77651
77652         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
77653         the empty string.
77654
77655 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77656
77657         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
77658         address, not strdup.  Include <stdlib.h> and don't declare free().
77659
77660 2000-06-19  Jim Meyering  <meyering@lucent.com>
77661
77662         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
77663
77664 2000-06-18  Jim Meyering  <meyering@lucent.com>
77665
77666         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
77667
77668         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
77669         `checking whether...' message to be consistent with that of the
77670         lstat test.
77671
77672 2000-06-18  Jim Meyering  <meyering@lucent.com>
77673
77674         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
77675         Besides, these days every porting target provides a mkdir function.
77676
77677         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
77678         needed. (this snippet comes from src/system.h).
77679
77680 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
77681
77682         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
77683
77684 2000-06-15  Paul Eggert  <eggert@twinsun.com>
77685
77686         * lib/human.c (adjust_value): New function.
77687         (human_readable_inexact): Apply rounding style even when
77688         printing approximate values.
77689
77690 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77691
77692         * lib/human.c (human_readable_inexact): Allow an input block
77693         size that is not a multiple of the output block size, and vice versa.
77694         Reported by Piergiorgio Sartor.
77695
77696 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77697
77698         * lib/getdate.y (get_date): Apply relative times after time
77699         zone indicator, not before.  Reported by Todd A. Jacobs.
77700
77701 2000-06-13  Jim Meyering  <meyering@lucent.com>
77702
77703         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
77704
77705         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
77706
77707 2000-06-12  Paul Eggert  <eggert@twinsun.com>
77708
77709         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
77710
77711 2000-06-12  Jim Meyering  <meyering@lucent.com>
77712
77713         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
77714         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
77715         optional argument.
77716         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
77717         the optional argument, `lib'.
77718
77719 2000-06-08  Jim Meyering  <meyering@lucent.com>
77720
77721         * m4/largefile.m4: Remove file (now that it's part of autoconf).
77722
77723 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77724
77725         Rewrite largefile configuration so that we don't need to run
77726         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
77727         AC_CANONICAL_HOST in configure.in -- jmm]
77728
77729         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
77730         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
77731         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
77732         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
77733         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
77734         All uses changed.
77735         Instead of inspecting the output of getconf, try to compile the
77736         test program without and with the macro definition.
77737         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
77738         for getconf.  Instead, check for the needed flags by compiling
77739         test programs.
77740
77741 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77742
77743         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
77744
77745 2000-06-04  Jim Meyering  <meyering@lucent.com>
77746
77747         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
77748         SunOS 4.1.4 for which gid_t is an unsigned type.
77749
77750 2000-06-03  Jim Meyering  <meyering@lucent.com>
77751
77752         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
77753         now that autoconf requires that.
77754
77755         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
77756         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
77757         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
77758
77759 2000-06-03  Jim Meyering  <meyering@lucent.com>
77760
77761         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
77762
77763 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77764
77765         * m4/glibc21.m4: New file.
77766         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
77767
77768 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77769
77770         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
77771         newer, don't install charset.alias.
77772         * lib/config.charset: Change the Linux/glibc rules so they become empty
77773         on glibc-2.1 or newer.
77774
77775 2000-06-02  Jim Meyering  <meyering@lucent.com>
77776
77777         * lib/mountlist.c: Back out last change.  Instead, do this...
77778         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
77779         me_dummy member using the same `ignore'-testing code.
77780         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
77781         fs_type strings.
77782         From Mark D. Roth.
77783
77784 2000-05-29  Jim Meyering  <meyering@lucent.com>
77785
77786         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
77787         mounts with the `ignore' attribute.  Based on a patch from
77788         Mark D. Roth.
77789
77790 2000-05-28  Jim Meyering  <meyering@lucent.com>
77791
77792         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
77793         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77794         * m4/stat.m4: Likewise.
77795         * m4/lstat.m4: Likewise.
77796         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77797
77798         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77799         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77800
77801 2000-05-26  Jim Meyering  <meyering@lucent.com>
77802
77803         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77804
77805 2000-05-24  Jim Meyering  <meyering@lucent.com>
77806
77807         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77808         autoconf requires that.
77809         * m4/lib-check.m4: Likewise.
77810         * m4/jm-macros.m4: Likewise.
77811         * m4/strftime.m4: Likewise.
77812
77813         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77814         AC_CHECK_DECLS, now that autoconf requires that.
77815
77816 2000-05-22  Jim Meyering  <meyering@lucent.com>
77817
77818         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77819         * m4/lstat.m4: Likewise.
77820
77821 2000-05-22  Jim Meyering  <meyering@lucent.com>
77822
77823         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77824
77825 2000-05-20  Jim Meyering  <meyering@lucent.com>
77826
77827         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77828         (jm_PREREQ): Use it.
77829
77830 2000-05-18  Jim Meyering  <meyering@lucent.com>
77831
77832         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77833         back, too, since it may have been modified by allocate_entry.
77834         (hash_delete): Rewrite to use neither the assignment operator
77835         nor the comma operator in an if-expression.
77836
77837 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77838
77839         * lib/closeout.c:
77840         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77841         Remove; no longer needed.
77842         "quotearg.h": Add include.
77843         (file_name): Do not bother to explicitly initialize to NULL; it's less
77844         efficient on some hosts.
77845         (close_stdout_status): Remove test as to whether stdout was already
77846         closed; it breaks for the case "echo x | sort >&-".
77847         Quote file name colons.
77848         Do not assume that _("write error") lacks format strings.
77849
77850 2000-05-15  Jim Meyering  <meyering@lucent.com>
77851
77852         * lib/version-etc.c (version_etc_copyright): Update the copyright
77853         string used in all --version output.
77854
77855 2000-05-14  Jim Meyering  <meyering@lucent.com>
77856
77857         * lib/closeout.c (close_stdout_set_file_name): New function.
77858         (close_stdout_status): Use new file-scoped global.
77859         Return right away if fstat says the stdout file descriptor is invalid.
77860         * lib/closeout.h (close_stdout_set_file_name): Declare.
77861
77862 2000-05-10  Jim Meyering  <meyering@lucent.com>
77863
77864         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77865         (close_stdout_set_status): New function.
77866         * lib/closeout.h (close_stdout_set_status): Declare.
77867
77868 2000-05-09  Jim Meyering  <meyering@lucent.com>
77869
77870         * m4/gettext.m4: Rename this...
77871         * m4/libintl.m4: ...to this.
77872
77873 2000-05-08  Jim Meyering  <meyering@lucent.com>
77874
77875         * lib/long-options.c: Don't include closeout.h.
77876         (parse_long_options): Don't call close_stdout for --version.
77877
77878 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77879
77880         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77881         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77882         2.1.3 bug.  This avoids a clash when files like regex.c define
77883         _GNU_SOURCE.
77884
77885 2000-05-06  Jim Meyering  <meyering@lucent.com>
77886
77887         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77888         (AC_REPLACE_FUNCS): Add strnlen.
77889
77890         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77891         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77892
77893         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77894         AC_SEARCH_LIBS call for nanosleep.
77895         (LIB_NANOSLEEP): Set and AC_SUBST.
77896
77897 2000-05-06  Jim Meyering  <meyering@lucent.com>
77898
77899         * lib/strnlen.c: Undefine __strnlen and strnlen.
77900         [!weak_alias]: Define __strnlen to strnlen.
77901
77902         * lib/atexit.c: New file, from libiberty.
77903
77904 2000-05-06  Jim Meyering  <meyering@lucent.com>
77905
77906         * lib/closeout.c (close_stdout_status): Also check for errors on the
77907         stderr stream.
77908
77909 2000-05-05  Jim Meyering  <meyering@lucent.com>
77910
77911         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77912         AC_SEARCH_LIBS call for clock_gettime.
77913         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77914
77915         * m4/search-libs.m4: Update from autoconf.
77916
77917         su doesn't work on Solaris 2.6.
77918         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77919         <shadow.h>.  Reported by Dragos Harabor.
77920
77921 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77922
77923         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77924         memcpy instead of xmalloc, xrealloc, path_concat.
77925         (locale_charset): Treat empty environment variables as absent.
77926         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77927
77928 2000-05-04  Jim Meyering  <meyering@lucent.com>
77929
77930         * lib/getopt.c: Update from glibc.
77931         * lib/obstack.c: Likewise.
77932         * lib/obstack.h: Likewise.
77933         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77934         file
77935
77936         * lib/regex.h: Likewise.
77937         * lib/strndup.c: Likewise.
77938         * lib/strnlen.c: New file, from glibc.
77939
77940 2000-05-03  Jim Meyering  <meyering@lucent.com>
77941
77942         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77943
77944 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77945
77946         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77947         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77948         compile-time test, rather than inspecting host and OS, to
77949         decide whether to define _LARGEFILE_SOURCE.
77950
77951 2000-05-01  Jim Meyering  <meyering@lucent.com>
77952
77953         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77954
77955         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77956         Based on a patch from Bruno Haible.
77957
77958 2000-05-01  Jim Meyering  <meyering@lucent.com>
77959
77960         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77961
77962 2000-04-29  Jim Meyering  <meyering@lucent.com>
77963
77964         * lib/path-concat.c: Declare strdup only if it's not defined.
77965         * lib/canon-host.c: Likewise.
77966
77967 2000-04-28  Jim Meyering  <meyering@lucent.com>
77968
77969         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77970         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77971         is included first, then limits.h is included by locale.h by libintl.h.
77972         From John David Anglin.
77973
77974 2000-04-25  Jim Meyering  <meyering@lucent.com>
77975
77976         * lib/makepath.c (S_IRWXUGO): Define.
77977         (make_path): Always perform explicit chmod if MODE specifies any
77978         of the `special' permission bits.  Prompted by a bug report against
77979         install from Mate Wierdl and Joost van Baal.
77980
77981 2000-04-18  Jim Meyering  <meyering@lucent.com>
77982
77983         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77984         (jm_PREREQ): Use it.
77985
77986 2000-04-18  Jim Meyering  <meyering@lucent.com>
77987
77988         * lib/README: New file.
77989
77990         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77991         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77992
77993 2000-04-17  Jim Meyering  <meyering@lucent.com>
77994
77995         Get it right :-)
77996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77997         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77998         Suggestion from Akim Demaille.
77999
78000 2000-04-17  Jim Meyering  <meyering@lucent.com>
78001
78002         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78003         the definition of it to rpl_strftime also defined-away the system's
78004         declaration.
78005
78006 2000-04-15  Jim Meyering  <meyering@lucent.com>
78007
78008         Use `C' to denote so-called `contiguous' files, the same way
78009         that tar does.
78010         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78011         (ftypelet): Use S_ISCTG.
78012         From Michael Deutschmann.
78013
78014 2000-04-14  Jim Meyering  <meyering@lucent.com>
78015
78016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78017         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78018         clobbered.
78019
78020 2000-04-14  Jim Meyering  <meyering@lucent.com>
78021
78022         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78023
78024 2000-04-13  Jim Meyering  <meyering@lucent.com>
78025
78026         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78027         AH_VERBATIM to insert required #ifndef into config.h.in.
78028         Suggestion from Akim Demaille.
78029
78030 2000-04-12  Jim Meyering  <meyering@lucent.com>
78031
78032         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78033         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78034         Christian Krackowizer.
78035
78036         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78037         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78038         (AC_SYS_LARGEFILE): Require.
78039         (AM_C_PROTOTYPES): Require.
78040
78041 2000-04-08  Jim Meyering  <meyering@lucent.com>
78042
78043         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78044         names don't conflict.  Reported by Eli Zaretskii.
78045
78046 2000-04-07  Jim Meyering  <meyering@lucent.com>
78047
78048         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78049         sys/types.h, to work around system header problems on AIX 3.2.5.
78050         From Bruno Haible.
78051
78052 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78053
78054         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78055         bug.  Deal with the different error behavior of Irix iconv.
78056
78057 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78058
78059         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78060         IRIX if the installer said otherwise.
78061
78062 2000-04-05  Jim Meyering  <meyering@lucent.com>
78063
78064         Portability tweaks required for ultrix4.3.
78065         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78066         (jm_CHECK_DECLS): Add getutent to the list of functions.
78067         (_jm_DECL_HEADERS): Add utmpx.h.
78068         From John David Anglin.
78069
78070         * m4/strftime.m4: Back out the 2000-04-02 change.
78071         Instead of that change, simply undefine putenv in the test program.
78072
78073 2000-04-05  Jim Meyering  <meyering@lucent.com>
78074
78075         Portability tweaks required for ultrix4.3.
78076         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78077         getutent.
78078         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78079         * lib/canon-host.c: Declare strdup.
78080         * lib/path-concat.c: Likewise.
78081         From John David Anglin.
78082
78083 2000-04-04  Jim Meyering  <meyering@lucent.com>
78084
78085         Be more DOS 8.3-friendly.
78086         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78087         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78088         * lib/Makefile.am: Reflect renaming.
78089         Reported by Eli Zaretskii.
78090
78091         Use a temporary file name that won't clash with `charset.alias'
78092         in the DOS 8.3 name space.
78093         * lib/Makefile.am (charset_tmp): Define.
78094         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78095         (uninstall-local): Likewise.
78096         Reported by Eli Zaretskii.
78097
78098 2000-04-03  Jim Meyering  <meyering@lucent.com>
78099
78100         * m4/gettext.m4: Fix typo in comment.
78101
78102         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78103         textutils/configure.in).  Suggestion from Paul Eggert.
78104         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78105
78106 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78107
78108         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78109         variable in the shell rather than using putenv, which isn't
78110         portable.  This avoids the configure-time inter-test dependency
78111         on the potentially-renamed putenv function.
78112
78113 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78114
78115         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78116         before checking struct stat.st_blksize, so that
78117         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78118
78119 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78120
78121         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78122         since strftime.c uses HAVE_STRFTIME to decide whether to use
78123         the underlying strftime.
78124
78125 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78126
78127         * lib/time/strftime.c (my_strftime): Make sure we call the system
78128         strftime, not ourselves, when invoking the underlying strftime.
78129
78130 2000-03-24  Jim Meyering  <meyering@lucent.com>
78131
78132         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78133         (charset_alias): Define.
78134         (install-exec-local): Factor out common code.
78135         (uninstall-local): Split lines longer than 80.
78136         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78137         (SUFFIXES): Define.
78138         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78139         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78140
78141 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78142
78143         * lib/config.charset: Output a line containing "Packages using this
78144         file".
78145         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78146         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78147         ref-del.sed): New rules.
78148
78149 2000-03-17  Jim Meyering  <meyering@lucent.com>
78150
78151         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78152         Otherwise, include <strings.h>
78153
78154 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78155
78156         * lib/unicodeio.c (utf8_wctomb): New function.
78157         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78158         format instead of in UCS-4 with platform dependent endianness.
78159
78160 2000-03-10  Jim Meyering  <meyering@lucent.com>
78161
78162         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78163         From Marco Franzen.
78164
78165 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78166
78167         * lib/savedir.c (savedir): Work even if directory size is
78168         negative; this can happen with some screwy NFS configurations.
78169
78170 2000-03-06  Jim Meyering  <meyering@lucent.com>
78171
78172         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78173         if it's NULL (because we ran out of memory).  From Bruno Haible.
78174
78175 2000-03-05  Jim Meyering  <meyering@lucent.com>
78176
78177         * lib/localcharset.c ("path-concat.h"): Include.
78178         (get_charset_aliases): Use path_concat instead of ANSI string
78179         concatenation.
78180
78181         * lib/unicodeio.h (PARAMS): Define.
78182         Use it to guard prototype.
78183
78184 2000-03-04  Jim Meyering  <meyering@lucent.com>
78185
78186         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78187         for lib/localcharset.c.
78188
78189 2000-03-04  Jim Meyering  <meyering@lucent.com>
78190
78191         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78192         installing into it.
78193         (uninstall-local): Uncomment this rule so `make distcheck' works
78194         once again.
78195
78196         * lib/unicodeio.c (<errno.h>): Include it.
78197         (errno): Declare if not defined.
78198
78199         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78200
78201         * lib/config.charset: New version, incorporating remarks from a linux
78202         i18n mailing list.  From Bruno Haible.
78203
78204 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78205
78206         * m4/codeset.m4: New file.
78207         * m4/iconv.m4: New file.
78208         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78209
78210 2000-03-03  Jim Meyering  <meyering@lucent.com>
78211
78212         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78213
78214 2000-03-02  Jim Meyering  <meyering@lucent.com>
78215
78216         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78217         the messages come out on separate lines.
78218
78219         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78220         rather than jm_CHECK_DECLARATIONS.
78221         * m4/decl.m4: Remove now-unused file.
78222
78223         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78224         geteuid.
78225
78226 2000-03-02  Jim Meyering  <meyering@lucent.com>
78227
78228         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78229
78230 2000-03-01  Jim Meyering  <meyering@lucent.com>
78231
78232         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78233         * lib/unicodeio.c: Likewise.
78234
78235 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78236
78237         * lib/config.charset: New file.
78238         * lib/localcharset.c: New file.
78239         * lib/unicodeio.h, lib/unicodeio.c: New files.
78240         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78241         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78242         (noinst_HEADERS): Add unicodeio.h.
78243         (all-local, install-exec-local, charset.alias): New targets.
78244
78245 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78246
78247         * lib/quotearg.c (ALERT_CHAR): New macro.
78248         (quotearg_buffer_restyled): Use it.
78249
78250 2000-02-27  Jim Meyering  <meyering@lucent.com>
78251
78252         * m4/check-decl.m4: Add getenv to the list.
78253
78254 2000-02-27  Jim Meyering  <meyering@lucent.com>
78255
78256         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78257         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78258
78259         * lib/backupfile.c: Guard inclusion of stdlib.h with
78260         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78261         Declare malloc if needed.
78262
78263         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78264         `#ifndef HAVE_DECL..'
78265         now that autoconf always defines the HAVE_DECL_ symbols.
78266         * lib/human.c: Likewise.
78267         * lib/same.c: Likewise.
78268         * lib/strtoumax.c: Likewise.
78269
78270         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78271         declaration check was not run.
78272         * lib/hash.c: Likewise.
78273         * lib/human.c: Likewise.
78274         * lib/same.c: Likewise.
78275         * lib/strtoumax.c: Likewise.
78276
78277         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78278         `.', then first look up the entire `.'-containing string as a login
78279         name.
78280
78281 2000-02-23  Jim Meyering  <meyering@lucent.com>
78282
78283         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78284         in place of my hack.
78285
78286 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78287
78288         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78289         (textint): New typedef.
78290         (parser_control): Member year changed from int to textint.
78291         All uses changed.
78292         (YYSTYPE): Removed; replaced by %union with int and textint members.
78293         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78294         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78295         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78296         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78297         (date, number, to_year): Use width of number in digits, not its value,
78298         to determine whether it's a 2-digit year, or a 2-digit time.
78299         (yylex): Store number of digits of numeric tokens.
78300         Reported by John Kendall.
78301
78302         (parser_control): Changed from struct parser_control to typedef (for
78303         consistency).  All uses changed.
78304
78305         (tID): Removed; not used.
78306         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78307
78308 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78309
78310         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78311         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78312
78313 2000-02-12  Jim Meyering  <meyering@lucent.com>
78314
78315         * lib/userspec.c (ISDIGIT): Define it.
78316         (isdigit): Remove definition.
78317         (is_number): Use ISDIGIT, not isdigit.
78318         <libintl.h>: Include.
78319         (_ and N_): Define.
78320         (parse_user_spec): Mark translatable strings.
78321
78322 2000-02-10  Jim Meyering  <meyering@lucent.com>
78323
78324         With these changes, nanosleep.[ch] are finally enough like the other
78325         lib/* replacement files to compile on a few more losing systems.
78326
78327         * lib/nanosleep.h: Don't include config.h.
78328         Remove prototype from declaration of nanosleep.
78329         (PARAMS): Remove now-unneeded definition.
78330         * lib/nanosleep.c: #undef nanosleep.
78331         (rpl_nanosleep): Rename from nanosleep.
78332
78333 2000-02-10  Jim Meyering  <meyering@lucent.com>
78334
78335         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78336         gnu_nanosleep to rpl_nanosleep.
78337
78338 2000-02-09  Jim Meyering  <meyering@lucent.com>
78339
78340         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78341         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78342
78343 2000-02-08  Akim Demaille  <akim@epita.fr>
78344
78345         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78346         `[' and `]' and remove uses of `changequote'.
78347         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78348         (AC_SYS_LARGEFILE): Likewise.
78349         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78350         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78351         of changequote.
78352         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78353         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78354         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78355         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78356
78357 2000-02-05  Jim Meyering  <meyering@lucent.com>
78358
78359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78360         Remove explicit use of AC_HEADER_TIME.  It is required by
78361         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78362         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78363         in autoconf whereby the expansion of the latter ended up preceding
78364         the expansion of its prerequisite, AC_HEADER_TIME.
78365         Reported by Volker Borchert.
78366
78367 2000-02-03  Jim Meyering  <meyering@lucent.com>
78368
78369         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78370
78371 2000-02-03  Jim Meyering  <meyering@lucent.com>
78372
78373         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78374         rather than with `#if HAVE_UTMPNAME'.
78375
78376 2000-02-02  Jim Meyering  <meyering@lucent.com>
78377
78378         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78379         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78380         Reported by Eli Zaretskii.
78381
78382 2000-02-01  Jim Meyering  <meyering@lucent.com>
78383
78384         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78385
78386 2000-01-31  Jim Meyering  <meyering@lucent.com>
78387
78388         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78389         functions.  Add the time.h and sys/time.h headers along with the
78390         AC_REQUIRE'ment of AC_HEADER_TIME.
78391
78392 2000-01-31  Jim Meyering  <meyering@lucent.com>
78393
78394         * lib/nanosleep.h (nanosleep): Guard declaration with
78395         `#if ! HAVE_DECL_NANOSLEEP'.
78396         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78397         the declaration in that vendor's sys/timers.h.
78398         Reported by Christian Krackowizer.
78399
78400         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78401         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78402         (ISPRINT): Likewise.
78403         Reported by Tom Tromey.
78404
78405 2000-01-30  Jim Meyering  <meyering@lucent.com>
78406
78407         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78408
78409         * m4/prereq.m4 (utmp_includes): Define.
78410         Check for ut_user and ut_name members in both struct utmpx
78411         and struct utmp.
78412
78413 2000-01-30  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78416         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78417         header files where only utmpx.ut_user is declared.
78418
78419         * lib/readutmp.h (UT_USER): Define.
78420
78421 2000-01-29  Jim Meyering  <meyering@lucent.com>
78422
78423         * m4/lib-check.m4: New file containing library-related checks from
78424         fileutils and sh-utils (textutils had none).
78425
78426 2000-01-28  Jim Meyering  <meyering@lucent.com>
78427
78428         * m4/perl.m4: Change format of warning message to look more like that
78429         from the missing script.  Suggestion from François Pinard.
78430
78431 2000-01-25  Jim Meyering  <meyering@lucent.com>
78432
78433         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78434         well as time.h in the compile check.
78435         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78436         Fix typo in cross-compiling case: s/yes/no/.
78437
78438 2000-01-23  Jim Meyering  <meyering@lucent.com>
78439
78440         * m4/jm-macros.m4: Move df-related tests here from
78441         fileutils/configure.in
78442
78443         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78444         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78445
78446         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78447         s/space/ac_fsusage_space/.
78448         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78449
78450         * m4/ftruncate.m4: New file (derived from part of
78451         fileutils/configure.in).
78452         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78453         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78454
78455         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78456         AC_SUBST these here, rather than just in sh-util/configure.in, so
78457         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78458         all the same.
78459         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78460         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
78461         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
78462         (AC_SUBST(POW_LIBM)): Likewise.
78463         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
78464
78465 2000-01-23  Jim Meyering  <meyering@lucent.com>
78466
78467         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
78468         obstack.c.
78469
78470 2000-01-22  Jim Meyering  <meyering@lucent.com>
78471
78472         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
78473
78474         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
78475
78476         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
78477         configure.in
78478         (AC_CHECK_HEADERS): Likewise for sh-utils.
78479         (AC_CHECK_HEADERS): Likewise for textutils.
78480         Merge the three lists of headers.
78481
78482         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
78483         from fileutils' configure.in.
78484
78485         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
78486         code. Moved tests into their own function (_jm_DECL_HEADERS) in
78487         check-decl.m4.
78488
78489         * m4/check-decl.m4: Use #if rather than #ifdef.
78490         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
78491         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
78492         (_jm_DECL_HEADERS): Define new function.
78493         (jm_CHECK_DECLARATIONS): Require it.
78494
78495 2000-01-22  Jim Meyering  <meyering@lucent.com>
78496
78497         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
78498         [! HAVE_DECL_STRTOULL]: Declare strtoull.
78499         Required for some AIX systems.  Reported by Christian Krackowizer.
78500         [TESTING] (main): New function.
78501
78502         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
78503         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
78504         letters.
78505
78506         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
78507         iswprint.
78508
78509         * lib/strverscmp.c (ISDIGIT): Define.
78510         (strverscmp): Use ISDIGIT, not isdigit.
78511
78512 2000-01-19  Jim Meyering  <meyering@lucent.com>
78513
78514         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
78515         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
78516         defines `struct timespec' in <sys/time.h>
78517
78518         * m4/c-bs-a.m4: Remove uses of changequote altogether.
78519         Thanks to Akim for explaining.
78520
78521 2000-01-17  Paul Eggert  <eggert@twinsun.com>
78522
78523         * lib/nanosleep.c (nanosleep):
78524         Don't use SA_INTERRUPT to decide whether to call sigaction, as
78525         POSIX.1 doesn't require SA_INTERRUPT and some systems
78526         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
78527         it's been part of POSIX.1 since day 1 (in 1988).
78528
78529 2000-01-17  Jim Meyering  <meyering@lucent.com>
78530
78531         * lib/interlock: Remove unused file.  Reported by François Pinard.
78532
78533 2000-01-16  Paul Eggert  <eggert@twinsun.com>
78534
78535         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
78536         alert, backslash, formfeed, and vertical tab unnecessarily in
78537         shell quoting style.
78538
78539 2000-01-16  Jim Meyering  <meyering@lucent.com>
78540
78541         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
78542         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
78543         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
78544         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
78545
78546 2000-01-16  Jim Meyering  <meyering@lucent.com>
78547
78548         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
78549         because the latter didn't work.
78550
78551 2000-01-15  Jim Meyering  <meyering@lucent.com>
78552
78553         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
78554         (AC_REPLACE_FUNCS): Add memcpy and memset.
78555         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
78556         Add strpbrk.
78557         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
78558
78559 2000-01-12  Jim Meyering  <meyering@lucent.com>
78560
78561         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
78562         (jm_PREREQ): Use it.
78563         (jm_PREREQ_READUTMP): New macro.
78564         (jm_PREREQ): Use it.
78565
78566 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78567
78568         Quote multibyte characters correctly.
78569         * m4/c-bs-a.m4: New file.
78570         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
78571         (jm_PREREQ): Use it.
78572
78573 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78574
78575         * m4/uintmax_t.m4: Port to autoconf 2.13.
78576
78577 2000-01-08  Jim Meyering  <meyering@ascend.com>
78578
78579         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
78580         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
78581
78582 2000-01-04  Jim Meyering  <meyering@ascend.com>
78583
78584         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
78585         jm_STRUCT_DIRENT_D_TYPE.
78586         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
78587         jm_STRUCT_DIRENT_D_INO.
78588         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
78589         jm_STRUCT_UTIMBUF.
78590         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
78591         renamings.
78592         * m4/utime.m4: Likewise.
78593
78594         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
78595         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
78596
78597 2000-01-03  Paul Eggert  <eggert@twinsun.com>
78598
78599         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
78600         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
78601
78602 2000-01-02  Jim Meyering  <meyering@ascend.com>
78603
78604         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
78605         remember if this is necessary.
78606
78607 1999-12-26  Jim Meyering  <meyering@ascend.com>
78608
78609         * m4/jm-macros.m4: Use it here.
78610         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
78611
78612 1999-12-23  Jim Meyering  <meyering@ascend.com>
78613
78614         * m4/jm-macros.m4: Check for clock_gettime (moved from
78615         fileutils/configure.in)
78616         Check for gettimeofday.
78617
78618 1999-12-20  Jim Meyering  <meyering@ascend.com>
78619
78620         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
78621         autoconf-2.14a-1999-12-20.
78622
78623 1999-12-19  Jim Meyering  <meyering@ascend.com>
78624
78625         * m4/lstat-slash.m4: New file.
78626         * m4/jm-macros.m4: Use the new macro:
78627         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78628
78629 1999-12-07  Jim Meyering  <meyering@ascend.com>
78630
78631         * m4/perl.m4: Require that File::Compare be available, too.
78632         Too many systems seem to lack it.
78633
78634         * m4/strftime.m4: Add checks for most of the cpp macros tested in
78635         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
78636
78637 1999-11-18  Paul Eggert  <eggert@twinsun.com>
78638
78639         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
78640         problem with the QNX 4.25 shell, which doesn't propagate exit
78641         status of failed commands inside shell assignments.
78642
78643 1999-11-17  Jim Meyering  <meyering@ascend.com>
78644
78645         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
78646
78647 1999-11-07  Jim Meyering  <meyering@ascend.com>
78648
78649         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
78650
78651 1999-11-06  Jim Meyering  <meyering@ascend.com>
78652
78653         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
78654         * m4/jm-macros.m4 (jm_MACROS): Use it here.
78655
78656 1999-11-05  Jim Meyering  <meyering@ascend.com>
78657
78658         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
78659         configure.in of textutils, fileutils, and sh-utils into this one
78660         (shared between those packages) file.
78661         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
78662         AC_STRUCT_ST_BLKSIZE.
78663
78664 1999-11-03  Jim Meyering  <meyering@ascend.com>
78665
78666         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
78667         of AC_CHECK_TYPE checks includes unistd.h.
78668         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
78669         Suggestion from Akim Demaille.
78670
78671 1999-10-30  Jim Meyering  <meyering@ascend.com>
78672
78673         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
78674         m4-quoted string.
78675         * m4/ls-mntd-fs.m4: Likewise.
78676         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
78677         * m4/jm-winsz1.m4: Likewise.
78678
78679         * m4/const.m4: Remove file, since the fix made it into the experimental
78680         version of autoconf.
78681         * m4/mktime.m4: Likewise.
78682
78683         * m4/check-type.m4: Remove file, now that the latest version of
78684         AC_CHECK_TYPE takes a third arg to specify additional #includes.
78685
78686         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
78687         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
78688         AC_CHECK_TYPE.
78689
78690 1999-10-04  Jim Meyering  <meyering@ascend.com>
78691
78692         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
78693
78694 1999-09-22  Paul Eggert  <eggert@twinsun.com>
78695
78696         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
78697         2.95.1 bug with HP-UX 10.20.
78698
78699 1999-09-17  Jim Meyering  <meyering@ascend.com>
78700
78701         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
78702         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
78703         due to missing strdup (against sh-utils-2.0).
78704
78705 1999-08-29  Jim Meyering  <meyering@ascend.com>
78706
78707         * m4/jm-macros.m4: Require jm_BISON.
78708         * m4/bison.m4: New file.
78709
78710 1999-08-17  Paul Eggert  <eggert@twinsun.com>
78711
78712         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
78713         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
78714
78715 1999-08-05  Jim Meyering  <meyering@ascend.com>
78716
78717         * m4/getline.m4: Rename test file from conftestdata to conftest.data
78718         to avoid conflicts with `conftest' on 8+3 filesystems.
78719         Suggestion from Eli Zaretskii.
78720
78721 1999-08-04  Jim Meyering  <meyering@ascend.com>
78722
78723         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
78724         fileutils and sh-utils (textutils's getline test was inadequate).
78725         (AM_FUNC_GETLINE): Run this test.
78726         (AC_CHECK_FUNCS): Check for getdelim.
78727         Reported by Bob Proulx.
78728
78729 1999-08-02  Jim Meyering  <meyering@ascend.com>
78730
78731         * m4/jm-macros.m4: Add a comment.
78732
78733 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78734
78735         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
78736         <inttypes.h> defines strtoumax as a macro (and not as a
78737         function).
78738
78739 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78740
78741         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
78742         that we can shift, multiply and divide unsigned long long
78743         values; Ultrix cc can't do it.
78744
78745 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78746
78747         * m4/mktime.m4: New file, which is a preview of what should appear
78748         in the next public autoconf release.
78749
78750 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78751
78752         * m4/lfs.m4: Remove this file.
78753         * m4/largefile.m4: New file.  It contains the old contents of
78754         lfs.m4, except that all names with prefix AC_LFS have been
78755         changed to use the prefix AC_SYS_LARGEFILE instead, to be
78756         compatible with future autoconf versions.  Also, some minor m4
78757         quoting problems have been fixed.
78758
78759 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78760
78761         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
78762         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
78763         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
78764         and simplify the shell code.
78765
78766 1999-08-01  Jim Meyering  <meyering@ascend.com>
78767
78768         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
78769         m4.
78770
78771 1999-07-20  Jim Meyering  <meyering@ascend.com>
78772
78773         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
78774
78775 1999-07-15  Jim Meyering  <meyering@ascend.com>
78776
78777         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
78778
78779 1999-05-22  Jim Meyering  <meyering@ascend.com>
78780
78781         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
78782
78783 1999-05-20  Jim Meyering  <meyering@ascend.com>
78784
78785         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
78786         Add a colon after each `then' in case $4 is empty.
78787
78788 1999-05-16  Jim Meyering  <meyering@ascend.com>
78789
78790         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
78791
78792 1999-05-10  Jim Meyering  <meyering@ascend.com>
78793
78794         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
78795
78796         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78797         AC_FUNC_MKTIME.
78798
78799 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78800
78801         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78802
78803 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78804
78805         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78806         not CPPFLAGS, so that linking works correctly in IRIX.
78807
78808 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78809
78810         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78811
78812 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78813
78814         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78815         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78816         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78817         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78818         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78819
78820         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78821
78822 1999-04-20  Jim Meyering  <meyering@ascend.com>
78823
78824         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78825         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78826         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78827
78828 1999-04-18  Jim Meyering  <meyering@ascend.com>
78829
78830         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78831         * m4/jm-macros.m4: Use it.
78832
78833 1999-04-06  Jim Meyering  <meyering@ascend.com>
78834
78835         * m4/strftime.m4: Remove test for %f.
78836
78837 1999-03-29  Jim Meyering  <meyering@ascend.com>
78838
78839         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78840         superset of the AC_TYPE_* checks in the textutils, fileutils,
78841         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78842         AC_TYPE_PID_T.
78843
78844 1999-03-28  Jim Meyering  <meyering@ascend.com>
78845
78846         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78847         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78848         replaced e.g., in the *.sh files of the sh-utils.
78849
78850 1999-03-20  Jim Meyering  <meyering@ascend.com>
78851
78852         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78853         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78854         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78855
78856 1999-03-19  Jim Meyering  <meyering@ascend.com>
78857
78858         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78859
78860 1999-03-12  Jim Meyering  <meyering@ascend.com>
78861
78862         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78863
78864 1999-03-07  Jim Meyering  <meyering@ascend.com>
78865
78866         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78867         declared.
78868
78869 1999-02-17  Jim Meyering  <meyering@ascend.com>
78870
78871         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78872         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78873
78874 1999-02-07  Jim Meyering  <meyering@ascend.com>
78875
78876         * m4/group-member.m4: New file -- extracted from sh-utils'
78877         configure.in.
78878
78879         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78880         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78881
78882 1999-02-06  Jim Meyering  <meyering@ascend.com>
78883
78884         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78885         * m4/fnmatch.m4: Likewise.
78886         * m4/getgroups.m4: Likewise.
78887         * m4/lstat.m4: Likewise.
78888         * m4/malloc.m4: Likewise.
78889         * m4/putenv.m4: Likewise.
78890         * m4/realloc.m4: Likewise.
78891         * m4/regex.m4: Likewise.
78892         * m4/stat.m4: Likewise.
78893         * m4/strftime.m4: Likewise.
78894         Suggestion from Alain Magloire.
78895
78896         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78897         * m4/fnmatch.m4: Likewise.
78898         * m4/getgroups.m4: Likewise.
78899         * m4/getline.m4: Likewise.
78900         * m4/lstat.m4: Likewise.
78901         * m4/malloc.m4: Likewise.
78902         * m4/memcmp.m4: Likewise.
78903         * m4/putenv.m4: Likewise.
78904         * m4/realloc.m4: Likewise.
78905         * m4/regex.m4: Likewise.
78906         * m4/stat.m4: Likewise.
78907         * m4/strftime.m4: Likewise.
78908         Suggestion from Alain Magloire.
78909
78910         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78911         an argument.
78912
78913         * m4/regex.m4: Add a run-time Test for proper operation of
78914         re_compile_pattern.
78915
78916 1999-01-31  Jim Meyering  <meyering@ascend.com>
78917
78918         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78919
78920 1999-01-30  Jim Meyering  <meyering@ascend.com>
78921
78922         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78923
78924         * m4/jm-mktime.m4: Make this a wrapper around the official
78925         AM_FUNC_MKTIME rather than my private copy, now that the official one
78926         is up to date.
78927         * m4/mktime.m4: Remove file.
78928
78929         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78930         * m4/uptime.m4: Likewise.
78931         * m4/uintmax_t.m4: Likewise.
78932
78933 1999-01-28  Jim Meyering  <meyering@ascend.com>
78934
78935         * m4/jm-macros.m4: Use jm_AFS.
78936         * m4/afs.m4: New file (from fileutils' configure.in).
78937
78938         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78939         * m4/chown.m4: Likewise.
78940         * m4/d-ino.m4: Likewise.
78941         * m4/d-type.m4: Likewise.
78942         * m4/fnmatch.m4: Likewise.
78943         * m4/getgroups.m4: Likewise.
78944         * m4/gettext.m4: Likewise.
78945         * m4/jm-mktime.m4: Likewise.
78946         * m4/jm-winsz2.m4: Likewise.
78947         * m4/lcmessage.m4: Likewise.
78948         * m4/ls-mntd-fs.m4: Likewise.
78949         * m4/malloc.m4: Likewise.
78950         * m4/memcmp.m4: Likewise.
78951         * m4/putenv.m4: Likewise.
78952         * m4/realloc.m4: Likewise.
78953         * m4/st_mtim.m4: Likewise.
78954         * m4/strftime.m4: Likewise.
78955
78956 1999-01-16  Jim Meyering  <meyering@ascend.com>
78957
78958         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78959         (ARGMATCH_DIE_DECL): Define.
78960
78961 1999-01-12  Jim Meyering  <meyering@ascend.com>
78962
78963         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78964         Reported by Lars Hecking.
78965
78966 1999-01-10  Jim Meyering  <meyering@ascend.com>
78967
78968         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78969         gross kludge.
78970         * m4/inttypes_h.m4: Likewise.
78971         * m4/lstat.m4: Likewise.
78972         * m4/malloc.m4: Likewise.
78973         * m4/readdir.m4: Likewise.
78974         * m4/realloc.m4: Likewise.
78975         * m4/st_dm_mode.m4: Likewise.
78976         * m4/stat.m4: Likewise.
78977         * m4/utimbuf.m4: Likewise.
78978         * m4/utimes.m4: Likewise.
78979
78980         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78981         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78982         comments in config.h.in are meaningful.
78983
78984         * m4/jm-macros.m4: Require autoconf-2.13 here.
78985
78986         * m4/regex.m4: By default, don't use the included regex.c on systems
78987         with glibc 2.  Suggestion from Uli Drepper.
78988
78989 1999-01-02  Jim Meyering  <meyering@ascend.com>
78990
78991         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78992
78993 1998-12-18  Jim Meyering  <meyering@ascend.com>
78994
78995         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78996         Based on a suggestion from Lars Hecking.
78997
78998 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78999
79000         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79001
79002 1998-11-16  Jim Meyering  <meyering@ascend.com>
79003
79004         * m4/lfs.m4: Double-quote the `uname...` expression.
79005
79006 1998-11-14  Jim Meyering  <meyering@ascend.com>
79007
79008         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79009         * m4/stat.m4: Likewise.
79010
79011 1998-11-03  Jim Meyering  <meyering@ascend.com>
79012
79013         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79014         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79015
79016 1998-10-18  Jim Meyering  <meyering@ascend.com>
79017
79018         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79019
79020 1998-10-17  Jim Meyering  <meyering@ascend.com>
79021
79022         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79023         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79024         calls for those previously hard-coded headers.  Instead, take a new
79025         parameter.
79026         (jm_CHECK_DECLARATIONS): Reflect interface change.
79027         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79028         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79029
79030         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79031
79032 1998-10-14  Jim Meyering  <meyering@ascend.com>
79033
79034         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79035         instead of "TZ=America/Vancouver".  From Paul Eggert.
79036
79037 1998-10-11  Jim Meyering  <meyering@ascend.com>
79038
79039         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79040         This adds a test for a recently added compatibility fix for mktime.c.
79041         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79042
79043 1998-09-27  Jim Meyering  <meyering@ascend.com>
79044
79045         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79046
79047         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79048         ../configure.in, including a change from Gordon Matzigkeit to allow
79049         cross-compiling for the Hurd.
79050
79051         * m4/glibc.m4: New file/macro to test for the GNU C Library
79052         versions 1 and 2.  From Gordon Matzigkeit.
79053         Indent.
79054
79055 1998-09-21  Jim Meyering  <meyering@ascend.com>
79056
79057         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79058
79059 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79060
79061         Port nanosecond-resolution times to UnixWare 2.1.2 and
79062         pedantic Solaris 2.6.
79063
79064         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79065         AC_STRUCT_ST_MTIM.
79066         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79067         Generate name of ns member, instead of just 1 or undef.
79068         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79069
79070 1998-08-15  Jim Meyering  <meyering@ascend.com>
79071
79072         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79073         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79074         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79075         instead of jm_TYPE_SSIZE_T.
79076
79077 1998-08-12  Jim Meyering  <meyering@ascend.com>
79078
79079         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79080
79081 1998-08-02  Jim Meyering  <meyering@ascend.com>
79082
79083         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79084         in acconfig.h manually.
79085
79086 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79087
79088         * m4/st_mtim.m4: New file.
79089
79090 1998-07-28  Jim Meyering  <meyering@ascend.com>
79091
79092         * m4/utimes.m4: Undef stat.
79093
79094 1998-07-25  Jim Meyering  <meyering@ascend.com>
79095
79096         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79097         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79098
79099 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79100
79101         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79102         uid and gid actually remain unchanged.
79103
79104 1998-07-07  Jim Meyering  <meyering@ascend.com>
79105
79106         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79107
79108 1998-07-04  Jim Meyering  <meyering@ascend.com>
79109
79110         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79111         to prove that this macro can be used in packages without regex.c.
79112
79113 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79114
79115         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79116         is to be used.
79117
79118 1998-07-03  Jim Meyering  <meyering@ascend.com>
79119
79120         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79121
79122         * m4/gettext.m4: New file -- from gettext-0.10.35.
79123         * m4/lcmessage.m4: Likewise.
79124         * m4/progtest.m4: Likewise.
79125
79126         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79127         * m4/jm-macros.m4: Require the new macro.
79128
79129 1998-06-29  Jim Meyering  <meyering@ascend.com>
79130
79131         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79132         for the definition of NGROUPS (used in a system header included
79133         by sys/mount.h).
79134
79135 1998-06-28  Jim Meyering  <meyering@ascend.com>
79136
79137         * m4/ls-mntd-fs.m4: New file.
79138         * m4/fstypename.m4: New file.
79139
79140         * m4/jm-macros.m4: Require the new macro.
79141         * m4/jm-glibc-io.m4: New file.
79142
79143 1998-05-19  Jim Meyering  <meyering@ascend.com>
79144
79145         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79146         * m4/lchown.m4: New file.
79147
79148         * m4/Makefile.am.in: New file.
79149         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79150
79151 1998-05-14  Jim Meyering  <meyering@ascend.com>
79152
79153         * m4/Makefile.am (EXTRA_DIST): Add them.
79154         * m4/jm-macros.m4: New file.
79155         * m4/utimbuf.m4: New file.
79156
79157 1998-05-12  Jim Meyering  <meyering@ascend.com>
79158
79159         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79160
79161 1998-05-11  Jim Meyering  <meyering@ascend.com>
79162
79163         * m4/isc-posix.m4: New file.
79164
79165 1998-05-10  Jim Meyering  <meyering@ascend.com>
79166
79167         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79168
79169 1998-05-09  Jim Meyering  <meyering@ascend.com>
79170
79171         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79172         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79173         with automake.
79174
79175         * m4/ssize_t.m4: New file.
79176         * m4/mktime.m4: Remove file -- the new automake has this now.
79177
79178 1998-04-26  Jim Meyering  <meyering@ascend.com>
79179
79180         * m4/assert.m4: New file.
79181         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79182
79183 1998-04-05  Jim Meyering  <meyering@ascend.com>
79184
79185         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79186         (jm_PREREQ): Use it here.
79187
79188 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79189
79190         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79191         in acconfig.h.
79192
79193 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79194
79195         * m4/prereq.m4: New file.
79196         * m4/error.m4: New file.
79197         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79198
79199 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79200
79201         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79202         cache-check for the same variable -- that defeated the purpose of
79203         the test; the test program was never run.  This was a problem only
79204         on systems with losing getline functions -- HP-UX 10.20 is one.
79205         Reported by Bjorn Helgaas.
79206
79207 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79208
79209         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79210
79211 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79212
79213         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79214
79215         * m4/const.m4: New file.  Use an initializer in this declaration
79216         typedef int charset[2]; const charset x;
79217         Reported by Bob Glickstein.
79218
79219 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79220
79221         * m4/chown.m4: Fix reversed types on -1 args to chown.
79222         From Kaveh Ghazi.
79223
79224 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79225
79226         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79227         Add lseek and memchr.
79228
79229         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79230         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79231         have a 20-character limit on names.
79232
79233 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79234
79235         * m4/inttypes_h.m4: New file.
79236         * m4/uintmax_t.m4: New file.
79237         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79238
79239
79240         -----
79241
79242         Local Variables:
79243         coding: utf-8
79244         End:
79245
79246         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79247
79248         Copying and distribution of this file, with or without
79249         modification, are permitted provided the copyright notice
79250         and this notice are preserved.